@layer reset, tokens, base, layout, components, sections, utilities;
@font-face {
  font-family: Italiana;
  src: url(../fonts/italiana-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(../fonts/fraunces-latin-300-normal.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(../fonts/fraunces-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url(../fonts/cinzel-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Marcellus;
  src: url(../fonts/marcellus-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cormorant Garamond;
  src: url(../fonts/cormorant-garamond-latin-400-normal.woff2)
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cormorant Garamond;
  src: url(../fonts/cormorant-garamond-latin-500-normal.woff2)
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Bebas Neue;
  src: url(../fonts/bebas-neue-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url(../fonts/cinzel-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url(../fonts/cinzel-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url(../fonts/cinzel-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cormorant Garamond;
  src: url(../fonts/cormorant-garamond-latin-600-normal.woff2)
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Cormorant Garamond;
  src: url(../fonts/cormorant-garamond-latin-400-italic.woff2)
    format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@layer tokens {
  :root {
    /* Jonas — azul royal / amarelo caixa / creme / navy */
    --c-jonas-blue: #4a62c4;
    --c-jonas-blue-mid: #3b4fb0;
    --c-jonas-yellow: #ffd400;
    --c-jonas-yellow-deep: #e8b800;
    --c-jonas-cream: #f6e7a1;
    --c-jonas-cream-soft: #fffbeb;
    --c-jonas-navy: #141b3a;
    --c-jonas-navy-mid: #1a2348;
    --c-jonas-bread: #d99a3d;
    --c-jonas-bread-deep: #c4852e;
    /* compat: verdes antigos → Jonas */
    --c-green-base: var(--c-jonas-blue);
    --c-green-gate: #3b4fb0;
    --c-green-deep: var(--c-jonas-navy);
    --c-green-brand: var(--c-jonas-navy-mid);
    --c-green-night: #0e1430;
    --c-green-ink: var(--c-jonas-navy);
    --c-cream: var(--c-jonas-cream-soft);
    --c-cream-soft: var(--c-jonas-cream-soft);
    --c-linen: var(--c-jonas-cream);
    --c-terracotta: var(--c-jonas-bread);
    --c-white: #ffffff;
    --c-cream-warm: var(--c-jonas-cream-soft);
    --c-sage-light: #a3b4e8;
    --c-cta-green: var(--c-jonas-navy);
    --grad-gold-fade: linear-gradient(
      180deg,
      #ffd84d 0%,
      #d99a3d 45%,
      rgba(217, 154, 61, 0.25) 78%,
      rgba(217, 154, 61, 0) 100%
    );
    --c-flag-1: #4a62c4;
    --c-flag-2: #6b7fdb;
    --c-flag-3: #ffd400;
    --c-flag-4: #ffe566;
    --c-flag-5: #d99a3d;
    --c-flag-6: #4a62c4;
    --flag-gradient: linear-gradient(
      90deg,
      var(--c-flag-1),
      var(--c-flag-2),
      var(--c-flag-3),
      var(--c-flag-4),
      var(--c-flag-5),
      var(--c-flag-6)
    );
    /* Jonas gradient principal */
    --jonas-gradient: linear-gradient(
      90deg,
      #4a62c4 0%,
      #ffd400 52%,
      #d99a3d 100%
    );
    --jonas-stripe: repeating-linear-gradient(
      -12deg,
      #4a62c4 0 18px,
      #ffd400 18px 36px
    );
    --c-wavy-1: #4a62c4;
    --c-wavy-2: #ffd400;
    --bg: var(--c-jonas-navy);
    --bg-alt: var(--c-jonas-navy-mid);
    --surface-light: var(--c-jonas-cream);
    --text: var(--c-white);
    --text-soft: rgba(255, 255, 255, 0.8);
    --text-on-light: var(--c-jonas-navy);
    --accent: var(--c-jonas-yellow);
    --line: rgba(246, 231, 161, 0.14);
    --line-strong: rgba(246, 231, 161, 0.28);
    --focus-ring: var(--c-jonas-yellow);
    --glass-bg: linear-gradient(
      180deg,
      rgba(20, 27, 58, 0.52),
      rgba(20, 27, 58, 0.34)
    );
    --glass-bg-solid: linear-gradient(
      180deg,
      rgba(20, 27, 58, 0.78),
      rgba(20, 27, 58, 0.64)
    );
    --glass-blur: blur(14px) saturate(1.15);
    --glass-border: 1px solid var(--line);
    --ff-display: "Italiana", "Times New Roman", serif;
    --ff-serif: "Fraunces", Georgia, serif;
    --ff-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ff-caps: "Cinzel", "Trajan Pro", Georgia, serif;
    --ff-small: "Marcellus", "Cinzel", Georgia, serif;
    --ff-garamond: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --ff-condensed: "Bebas Neue", "Oswald", Impact, sans-serif;
    --tracking-display: 0.16em;
    --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --fs-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
    --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
    --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
    --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
    --lh-tight: 1.1;
    --lh-body: 1.65;
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --gutter: clamp(20px, 5vw, 96px);
    --section-space: clamp(4.5rem, 3rem + 7vw, 9rem);
    --container: 1240px;
    --container-narrow: 760px;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 40px -18px rgba(6, 9, 22, 0.45);
    --shadow-lift: 0 18px 40px -14px rgba(6, 9, 22, 0.55);
    --nav-h: 76px;
    --nav-h-scrolled: 64px;
    --brand-size: 84px;
    --brand-size-scrolled: 72px;
    --wa-size: 56px;
    --wa-gap: 24px;
    --z-veil: 15;
    --z-drawer: 20;
    --z-nav: 30;
    --z-float: 40;
    --z-gate: 50;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-reveal: var(--ease-out);
    --ease-slide: cubic-bezier(0.76, 0, 0.24, 1);
    --dur-fast: 0.25s;
    --dur-base: 0.5s;
    --dur-slow: 0.9s;
    --dur-reveal: 1s;
    --reveal-distance: 28px;
    --stagger-step: 90ms;
  }
  @media (max-width: 760px), (max-aspect-ratio: 4/5) {
    :root {
      --nav-h: 62px;
      --nav-h-scrolled: 58px;
      --brand-size: 66px;
      --brand-size-scrolled: 62px;
      --wa-size: 52px;
      --wa-gap: 16px;
      --reveal-distance: 20px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :root {
      --dur-fast: 0.01ms;
      --dur-base: 0.01ms;
      --dur-slow: 0.01ms;
      --dur-reveal: 0.01ms;
      --reveal-distance: 0px;
      --stagger-step: 0ms;
    }
  }
}
@layer reset {
  *,
  *:before,
  *:after {
    box-sizing: border-box;
  }
  * {
    margin: 0;
    padding: 0;
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    min-height: 100svh;
  }
  img,
  picture,
  svg,
  video,
  canvas {
    display: block;
    max-width: 100%;
  }
  img {
    height: auto;
  }
  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }
  button {
    background: none;
    border: 0;
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  ul[role="list"],
  ol[role="list"] {
    list-style: none;
  }
  h1,
  h2,
  h3,
  h4 {
    text-wrap: balance;
  }
  p {
    text-wrap: pretty;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  html {
    background: var(--bg);
    color-scheme: dark;
    scroll-padding-top: calc(var(--nav-h) + var(--space-md));
  }
  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  html.gate-locked,
  html:has(.drawer[open]) {
    overflow: hidden;
  }
  html.gate-locked body {
    height: 100%;
    overflow: hidden;
    touch-action: none;
  }
  html.js:not(.css-ready) body > :not(.gate) {
    visibility: hidden;
  }
  ::selection {
    background: var(--accent);
    color: var(--c-white);
  }
  :focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 2px;
  }
  .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    z-index: calc(var(--z-gate) + 1);
    translate: -50% -200%;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    background: var(--c-cream);
    color: var(--c-green-ink);
    font-family: var(--ff-display);
    text-transform: uppercase;
    letter-spacing: var(--tracking-display);
    transition: translate var(--dur-base) var(--ease-out);
  }
  .skip-link:focus-visible {
    translate: -50% 0;
  }
}
@layer components {
  .gate {
    display: none;
  }
  html.js .gate {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-gate);
    perspective: 1600px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
  }
  html.gate-skip .gate {
    display: none;
  }
  html.js .gate.is-dragging {
    cursor: grabbing;
  }
  html.js .gate[hidden] {
    display: none;
  }
  .door {
    position: absolute;
    inset: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
  }
  .door--left {
    transform-origin: 0% 50%;
    z-index: 2;
  }
  .door--right {
    transform-origin: 100% 50%;
    z-index: 1;
  }
  .door__img,
  .door__shadow {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }
  .door__shadow {
    opacity: 0;
    will-change: opacity;
  }
  .door--left .door__img {
    background-image: url(../img/leaf-left-1600.webp);
  }
  .door--right .door__img {
    background-image: url(../img/leaf-right-1600.webp);
  }
  .door--left .door__shadow {
    transform: translate(1.2%);
  }
  .door--right .door__shadow {
    transform: translate(-1.2%);
  }
  html.css-ready .door--left .door__shadow {
    background-image: url(../img/leaf-left-shadow.webp);
  }
  html.css-ready .door--right .door__shadow {
    background-image: url(../img/leaf-right-shadow.webp);
  }
  @media (min-width: 1601px) {
    .door--left .door__img {
      background-image: url(../img/leaf-left-2560.webp);
    }
    .door--right .door__img {
      background-image: url(../img/leaf-right-2560.webp);
    }
  }
  @media (max-aspect-ratio: 1/1) {
    .door__img,
    .door__shadow {
      background-position: center bottom;
    }
    .door--left .door__img {
      background-image: url(../img/leaf-left-mobile.webp);
    }
    .door--right .door__img {
      background-image: url(../img/leaf-right-mobile.webp);
    }
    html.css-ready .door--left .door__shadow {
      background-image: url(../img/leaf-left-mobile-shadow.webp);
    }
    html.css-ready .door--right .door__shadow {
      background-image: url(../img/leaf-right-mobile-shadow.webp);
    }
  }
  @media (max-aspect-ratio: 1/1) and (max-width: 430px) and (max-resolution: 2.05dppx) {
    .door--left .door__img {
      background-image: url(../img/leaf-left-mobile-828.webp);
    }
    .door--right .door__img {
      background-image: url(../img/leaf-right-mobile-828.webp);
    }
  }
  .gate__hint {
    position: absolute;
    left: 50%;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 3;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(240, 234, 220, 0.35);
    background: #1d25448c;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--c-cream);
    white-space: nowrap;
    font-family: var(--ff-display);
    font-size: 15px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
  }
  .gate__hint:focus-visible {
    outline: 2px solid var(--c-cream);
    outline-offset: 4px;
  }
  .gate__chev {
    display: inline-block;
    font-family: var(--ff-sans);
    letter-spacing: 0;
    font-size: 18px;
    line-height: 1;
  }
  .gate__chev--l {
    animation: gate-nudge-l 1.8s var(--ease-out) infinite;
  }
  .gate__chev--r {
    animation: gate-nudge-r 1.8s var(--ease-out) infinite;
  }
  @keyframes gate-nudge-l {
    0%,
    to {
      transform: translate(0);
    }
    45% {
      transform: translate(-6px);
    }
  }
  @keyframes gate-nudge-r {
    0%,
    to {
      transform: translate(0);
    }
    45% {
      transform: translate(6px);
    }
  }
  .gate.is-touched .gate__hint {
    opacity: 0;
    pointer-events: none;
  }
  @media (max-width: 760px) {
    .gate__hint {
      font-size: 13px;
      letter-spacing: 0.2em;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .gate__chev {
      animation: none;
    }
  }
}
