/* ═══════════════════════════════════════════════════════════
   IMPERA MED – base, layout, header, buttons, hero
   ═══════════════════════════════════════════════════════════ */
:root {
  --ink: #0B1A2A;
  --ink-2: #13283d;
  --ink-3: #1f3b52;
  --ivory: #F6F1E7;
  --paper: #FBF8F2;
  --gold: #B8955A;
  --gold-light: #D8BE8A;
  --gold-deep: #8d6f3e;
  --text: #2a3643;
  --muted: #667383;
  --line: rgba(11, 26, 42, .12);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 4px;
  --shadow: 0 24px 60px -24px rgba(11, 26, 42, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #fff; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 8px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; }
.mt-lg { margin-top: 3.5rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ── Typography ───────────────────────────────────────────── */
.display, .h2, .h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.display--xl { font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: 1.02; }
.display em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h3 { font-size: 1.5rem; line-height: 1.2; }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.eyebrow::before { content: ''; width: 2.4rem; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold-light); }
.center .eyebrow::after, .section-head.center .eyebrow::after { content: ''; width: 2.4rem; height: 1px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; font-weight: 300; }
.lead--light { color: rgba(255, 255, 255, .86); }
.mini-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-top: 1.5rem; font-weight: 500; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: 2.5rem 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(184, 149, 90, .16), transparent 60%), var(--ink); color: rgba(255, 255, 255, .8); }
.section--dark .h2, .section--dark .h3 { color: #fff; }
.section--dark .eyebrow { color: var(--gold-light); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.on-dark .h2 { color: #fff; }
.section-head.on-dark .eyebrow { color: var(--gold-light); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .95rem 1.8rem; font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); white-space: nowrap; }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .65rem 1.2rem; font-size: .72rem; }
.btn-lg { padding: 1.1rem 2.2rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 12px 28px -14px rgba(184, 149, 90, .9); }
.btn-gold:hover { box-shadow: 0 18px 34px -14px rgba(184, 149, 90, 1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { border-color: var(--gold); color: #fff; }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178c46; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--gold-deep); margin-top: auto; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(5px); }

/* ── Header ───────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease); }
.site-header.is-solid, body.menu-open .site-header { background: rgba(11, 26, 42, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.brand-mark { width: 34px; height: 34px; color: var(--gold-light); }
.brand-word { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .28em; display: inline-flex; gap: .5em; line-height: 1; }
.brand-word em { font-style: normal; color: var(--gold-light); font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.main-nav a { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; position: relative; padding: .4rem 0; opacity: .88; transition: opacity .3s; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold-light); transition: right .35s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current] { opacity: 1; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { right: 0; }
.nav-contact-mobile, .lang-switch--mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.lang-switch { display: flex; gap: .15rem; font-size: .72rem; letter-spacing: .12em; font-weight: 500; }
.lang-switch a { padding: .3rem .5rem; opacity: .6; border-radius: 3px; transition: opacity .3s, background .3s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; color: var(--gold-light); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { animation: kenburns 24s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(11, 26, 42, .92) 0%, rgba(11, 26, 42, .62) 48%, rgba(11, 26, 42, .25) 100%), linear-gradient(0deg, rgba(11, 26, 42, .65), transparent 40%); }
.hero-inner { position: relative; padding: calc(var(--header-h) + 3rem) 0 6rem; }
.hero-inner .display { color: #fff; max-width: 15ch; }
.hero-inner .lead { margin-top: 1.8rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 3rem; font-size: .85rem; letter-spacing: .06em; color: rgba(255, 255, 255, .8); }
.hero-badges li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-badges .ic { color: var(--gold-light); width: 1.1em; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.8rem; width: 22px; height: 38px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold-light); border-radius: 2px; animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Inner page hero ──────────────────────────────────────── */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(4rem, 8vw, 6.5rem); }
.page-hero-bg, .page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 26, 42, .94), rgba(11, 26, 42, .6)); }
.page-hero-inner { position: relative; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .display { color: #fff; max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, .84); margin-top: 1.4rem; }

/* ── Reveal on scroll ─────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .scroll-cue span { animation: none; }
}
