@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /*
   * ── TIER 1: Primitive tokens ──────────────────────────────────────────────
   * Driven by colors.* in settings → injected as --color-* CSS variables.
   * These 16 values are the single source of truth for the entire palette.
   */
  --theme-primary:        var(--color-primary,       #b98d77);
  --theme-primary-glow:   var(--color-primaryGlow,   rgba(185, 141, 119, 0.12));
  --theme-mocha-deep:     var(--color-mochaDeep,     #8a6450);
  --theme-coffee:         var(--color-coffee,        #6f4f3a);
  --theme-espresso:       var(--color-espresso,      #4a3a30);
  --theme-secondary:      var(--color-secondary,     #4a3a30);
  --theme-secondary-glow: var(--color-secondaryGlow, rgba(74, 58, 48, 0.08));
  --theme-accent:         var(--color-accent,        #c19a4b);
  --theme-bg:             var(--color-background,    #fbf6ee);
  --theme-surface:        var(--color-surface,       #fff9f2);
  --theme-surface-raised: var(--color-surfaceRaised, #f7e9e4);
  --theme-surface-high:   var(--color-surfaceHigh,   #fcf3f0);
  --theme-text:           var(--color-text,          #2a2320);
  --theme-text-muted:     var(--color-textMuted,     #726a62);
  --theme-text-faint:     var(--color-textFaint,     #c6b8ac);
  --theme-border:         var(--color-border,        rgba(74, 58, 48, 0.14));
  --theme-glass:          var(--color-glass,         rgba(255, 255, 255, 0.08));
  --theme-star:           var(--color-star,           #f0c64f);

  /*
   * ── TIER 2: Semantic tokens ───────────────────────────────────────────────
   * Derived entirely from Tier 1 — no raw color values repeated here.
   */

  /* Hero */
  --theme-hero-text:           #fff;
  --theme-hero-text-muted:     rgba(255,255,255,0.92);
  --theme-hero-text-soft:      rgba(255,255,255,0.9);
  --theme-hero-scroll-line:    rgba(255,255,255,0.6);
  --theme-hero-marquee-border: rgba(255,255,255,0.06);
  --theme-hero-btn-border:     rgba(255,255,255,0.7);

  /* Footer */
  --theme-footer-bg:              var(--color-footerBg,  #4a3a30);
  --theme-footer-bottom-bg:       color-mix(in srgb, var(--theme-coffee) 82%, #000);
  --theme-footer-text:            var(--theme-surface);
  --theme-footer-heading:         var(--theme-text-faint);
  --theme-footer-muted:           color-mix(in srgb, var(--theme-surface) 55%, transparent);
  --theme-footer-link:            color-mix(in srgb, var(--theme-surface) 65%, transparent);
  --theme-footer-link-hover:      var(--theme-surface);
  --theme-footer-border:          color-mix(in srgb, var(--theme-surface) 8%, transparent);
  --theme-footer-surface:         var(--theme-glass);
  --theme-footer-surface-hover:   color-mix(in srgb, var(--theme-surface) 16%, transparent);

  /* Header */
  --theme-header-bg:              var(--theme-bg);
  --theme-header-text:            var(--theme-text);
  --theme-header-icon:            var(--theme-text-muted);
  --theme-header-icon-hover:      var(--theme-mocha-deep);
  --theme-header-border:          var(--theme-border);
  --theme-header-surface:         var(--theme-surface-raised);
  --theme-header-badge-bg:        var(--theme-primary);
  --theme-header-badge-text:      var(--theme-surface);
  --theme-header-nav-text:        var(--theme-surface);
  --theme-header-initial-bg:      transparent;
  --theme-header-scrolled-bg:     color-mix(in srgb, var(--theme-bg) 97%, transparent);
  --theme-header-scrolled-text:   var(--theme-text);
  --theme-announcement-bg:        var(--theme-primary);
  --theme-announcement-text:      var(--theme-surface);

  /* Menu & navigation */
  --theme-menu-text:              var(--theme-text-muted);
  --theme-menu-hover:             var(--theme-mocha-deep);
  --theme-menu-active:            var(--theme-mocha-deep);
  --theme-dropdown-bg:            var(--theme-bg);
  --theme-dropdown-text:          var(--theme-text);
  --theme-dropdown-hover:         var(--theme-mocha-deep);
  --theme-mobile-menu-bg:         var(--theme-coffee);
  --theme-mobile-menu-text:       var(--theme-surface);
  --theme-mobile-menu-muted:      color-mix(in srgb, var(--theme-surface) 55%, transparent);
  --theme-mobile-menu-border:     color-mix(in srgb, var(--theme-surface) 8%, transparent);
  --theme-overlay:                color-mix(in srgb, var(--theme-text) 50%, transparent);

  /* Cards */
  --theme-card-bg:                var(--color-cardBg, #ffffff);
  --theme-card-border:            var(--theme-border);

  /* Aliases (components) */
  --theme-primary-hover:          var(--theme-mocha-deep);
  --theme-text-light:             var(--theme-surface);
  --theme-text-inverse:           var(--theme-surface);
  --theme-text-secondary:         var(--theme-text-muted);
  --theme-muted:                  var(--theme-text-faint);
  --theme-cream:                  var(--theme-bg);
  --theme-surface-card:           var(--theme-surface-raised);

  /* ── Layout (fixed; not configurable via settings) ─── */
  --theme-container:        1240px;
  --theme-gutter:           clamp(20px, 5vw, 64px);
  --theme-section-spacing:  clamp(64px, 9vw, 132px);
  --theme-radius:           4px;
  --theme-radius-lg:        10px;
  --theme-shadow:           0 2px 12px color-mix(in srgb, var(--theme-text) 7%, transparent);
  --theme-stripe-height:    40px;
  --theme-header-height:    90px;

  /* ── Typography ─── */
  --theme-font-family:  var(--font-family, 'Jost'), 'Helvetica Neue', Arial, sans-serif;
  --theme-font-serif:   var(--font-serif, 'Playfair Display'), Georgia, serif;
  --theme-font-display: var(--font-display, 'Playfair Display'), Georgia, serif;
  /* ── Motion (fixed) ─── */
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur:      320ms;
  --dur-slow: 600ms;
}

/* ─── Page stripe text source (visually hidden, editable in builder) ──────── */
.flr-stripe-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600 !important;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--theme-font-family);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--theme-text);
  background-color: var(--theme-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--theme-font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--theme-container);
  margin-inline: auto;
  padding-inline: var(--theme-gutter);
}

.section {
  padding-block: var(--theme-section-spacing);
}

/* ─── Scroll reveal (components/js/animation.js + data-cs-scroll-reveal on section roots) ─── */
@keyframes csScrollRevealFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden only after animation.js arms the section (storefront). Default: visible (editor). */
[data-cs-scroll-reveal].cs-scroll-reveal-armed:not(.cs-scroll-reveal--visible):not(.cs-scroll-reveal--editor-ready):not([data-cs-scroll-reveal-editor]) .reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

[data-cs-scroll-reveal].cs-scroll-reveal-armed.cs-scroll-reveal--visible:not(.cs-scroll-reveal--editor-ready):not([data-cs-scroll-reveal-editor]) .reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: csScrollRevealFade 0.95s var(--ease) forwards;
}

[data-cs-scroll-reveal].cs-scroll-reveal-armed.cs-scroll-reveal--visible:not(.cs-scroll-reveal--editor-ready):not([data-cs-scroll-reveal-editor]) .reveal.reveal--delay-1 {
  animation-delay: 0.12s;
}

[data-cs-scroll-reveal].cs-scroll-reveal-armed.cs-scroll-reveal--visible:not(.cs-scroll-reveal--editor-ready):not([data-cs-scroll-reveal-editor]) .reveal.reveal--delay-2 {
  animation-delay: 0.24s;
}

[data-cs-scroll-reveal].cs-scroll-reveal-armed.cs-scroll-reveal--visible:not(.cs-scroll-reveal--editor-ready):not([data-cs-scroll-reveal-editor]) .reveal.reveal--delay-3 {
  animation-delay: 0.36s;
}

[data-cs-scroll-reveal].cs-scroll-reveal-armed.cs-scroll-reveal--visible:not(.cs-scroll-reveal--editor-ready):not([data-cs-scroll-reveal-editor]) .reveal.reveal--delay-4 {
  animation-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-cs-scroll-reveal] .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (scripting: none) {
  [data-cs-scroll-reveal] .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

[data-cs-scroll-reveal].cs-scroll-reveal--editor-ready .reveal,
[data-cs-scroll-reveal][data-cs-scroll-reveal-editor] .reveal,
.cs-builder-mode [data-cs-scroll-reveal] .reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

/* ── GrapeJS native map block (grapesjs-blocks-basic) ─────────────── */
.gjs-map {
  display: block;
  width: 100%;
}

.gjs-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
