/* ============================================================
   HILA ATLAN — BRAND SYSTEM v1.0
   Light editorial luxury. Every page inherits this file.
   Palette: warm white / ivory / sand / champagne gold / charcoal
            / palm green / restrained black.
   Type:    Cormorant Garamond (display serif) + Inter (sans).
   ============================================================ */

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

:root {
  /* -- color tokens -- */
  --white:      #FDFBF7;   /* primary page background */
  --ivory:      #FBF8F1;   /* alternating sections, cards */
  --sand:       #F5EFE3;   /* quiet panels, footers */
  --sand-deep:  #EDE4D2;   /* borders on sand */
  --gold:       #C9A84C;   /* champagne — rules, hovers, small labels */
  --gold-deep:  #9B7A2F;   /* antique — text-safe gold on light bg */
  --green:      #3E5C45;   /* palm — secondary accent, tags, links */
  --char:       #2B2B2B;   /* body text */
  --char-soft:  #5A564E;   /* secondary text */
  --char-faint: #8B857A;   /* captions, meta */
  --black:      #0B0B0B;   /* rare — photographic moments only */
  --line:       rgba(43,43,43,0.12);
  --line-gold:  rgba(155,122,47,0.35);

  /* -- type -- */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* -- rhythm -- */
  --pad-x: clamp(24px, 6vw, 96px);
  --sec-y: clamp(72px, 10vw, 140px);
  --max:   1280px;
  --max-text: 680px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--char);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(201,168,76,0.25); }

/* ============ TYPE SCALE ============ */
.display-1 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.01em;
  color: var(--char);
}
.display-2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 300; line-height: 1.12;
  color: var(--char);
}
.display-3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400; line-height: 1.2;
  color: var(--char);
}
.display-1 em, .display-2 em, .display-3 em {
  font-style: italic; color: var(--gold-deep); font-weight: 300;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--gold-deep);
  display: flex; align-items: center; gap: 16px;
}
.eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after { content: ''; width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 400; font-style: italic; line-height: 1.7;
  color: var(--char-soft);
}
.body-lg { font-size: 1.02rem; line-height: 1.9; color: var(--char-soft); }
.meta {
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--char-faint);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  padding: 17px 42px; cursor: pointer; border: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-primary { background: var(--char); color: var(--white); }
.btn-primary:hover { background: var(--gold-deep); color: #fff; letter-spacing: 0.3em; }
.btn-outline { background: transparent; color: var(--char); border: 1px solid rgba(43,43,43,0.35); }
.btn-outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-quiet {
  background: none; padding: 0 0 4px; color: var(--char);
  border-bottom: 1px solid var(--line-gold);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; transition: all 0.3s;
}
.btn-quiet:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-on-dark { background: rgba(253,251,247,0.96); color: var(--char); }
.btn-on-dark:hover { background: var(--gold); color: var(--black); }
.btn-ghost-dark { background: transparent; color: rgba(253,251,247,0.92); border: 1px solid rgba(253,251,247,0.5); }
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad-x);
  transition: all 0.45s ease;
}
.nav.on-light { color: var(--char); }
.nav.scrolled {
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(16px);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 40px; width: auto; }
.nav-brand-name {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--char);
  line-height: 1.2; transition: color 0.4s;
}
.nav-brand-sub {
  font-size: 0.56rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-deep); margin-top: 2px;
}
/* over dark hero imagery */
.nav.over-image:not(.scrolled) .nav-brand-name { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.nav.over-image:not(.scrolled) .nav-brand-sub { color: var(--gold); }
.nav.over-image:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.nav.over-image:not(.scrolled) .nav-cta { border-color: rgba(255,255,255,0.6); color: #fff; }
.nav.over-image:not(.scrolled) .nav-burger span { background: #fff; }

.nav-right { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 0.66rem; font-weight: 450; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--char-soft);
  text-decoration: none; transition: color 0.3s; white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-cta {
  padding: 10px 24px; border: 1px solid rgba(43,43,43,0.4); color: var(--char);
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; transition: all 0.3s; white-space: nowrap;
}
.nav-cta:hover { background: var(--char); color: var(--white); border-color: var(--char); }
.nav-burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span { width: 26px; height: 1px; background: var(--char); transition: background 0.3s; }

/* full-screen menu (light) */
.menu {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--white);
  display: none; flex-direction: column;
  padding: 32px var(--pad-x);
}
.menu.open { display: flex; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  background: none; border: none; color: var(--char-soft); cursor: pointer; padding: 8px;
}
.menu-close:hover { color: var(--gold-deep); }
.menu-body {
  flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-content: center; max-width: var(--max); width: 100%; margin: 0 auto;
}
.menu-primary { list-style: none; }
.menu-primary a {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 300; line-height: 1.55; color: var(--char);
  text-decoration: none; transition: color 0.3s, padding-left 0.3s;
}
.menu-primary a:hover { color: var(--gold-deep); padding-left: 10px; }
.menu-side { border-left: 1px solid var(--line); padding-left: 60px; align-self: center; }
.menu-side .meta { margin-bottom: 18px; color: var(--gold-deep); }
.menu-side ul { list-style: none; margin-bottom: 36px; }
.menu-side ul a {
  font-size: 0.92rem; color: var(--char-soft); text-decoration: none;
  line-height: 2.3; transition: color 0.3s;
}
.menu-side ul a:hover { color: var(--gold-deep); }

/* ============ SECTIONS ============ */
.section { padding: var(--sec-y) var(--pad-x); }
.section-ivory { background: var(--ivory); }
.section-sand  { background: var(--sand); }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap-text { max-width: var(--max-text); margin: 0 auto; }

.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.rule-gold { width: 64px; height: 1px; background: var(--gold); }

/* ============ CARDS ============ */
/* Image card — communities, journeys, journal */
.card {
  display: block; text-decoration: none; position: relative; overflow: hidden;
  background: var(--ivory);
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img, .card-media .card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover .card-media img, .card:hover .card-media .card-bg { transform: scale(1.045); }
.card-body { padding: 26px 4px 8px; background: transparent; }
.card-tag {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 10px;
}
.card-title {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 400;
  line-height: 1.25; color: var(--char); margin-bottom: 8px;
  transition: color 0.3s;
}
.card:hover .card-title { color: var(--gold-deep); }
.card-desc { font-size: 0.88rem; line-height: 1.75; color: var(--char-soft); }
.card-cue {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--char-faint); transition: all 0.3s;
}
.card:hover .card-cue { color: var(--gold-deep); gap: 16px; }

/* Tall editorial card (journey paths) */
.card-tall .card-media { aspect-ratio: 3 / 4; }

/* Panel card — guides, products (no image) */
.panel {
  background: var(--white); border: 1px solid var(--sand-deep);
  padding: 44px 38px; display: flex; flex-direction: column;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.panel:hover {
  border-color: var(--line-gold); transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(43,43,43,0.07);
}
a.panel { text-decoration: none; color: inherit; }
.panel .card-tag { margin-bottom: 14px; }
.panel-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
  line-height: 1.25; margin-bottom: 12px; color: var(--char);
}
.panel-desc { font-size: 0.9rem; line-height: 1.8; color: var(--char-soft); flex: 1; }
.panel .btn-quiet { margin-top: 26px; align-self: flex-start; }

/* ============ GRIDS ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }

/* ============ FORMS ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--char-soft);
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300; color: var(--char);
  background: var(--white); border: 1px solid var(--line);
  padding: 14px 16px; outline: none; transition: border-color 0.3s;
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); }
.field textarea { min-height: 120px; resize: vertical; }
.inline-form { display: flex; gap: 0; max-width: 460px; }
.inline-form input {
  flex: 1; font-family: var(--sans); font-size: 0.92rem; font-weight: 300;
  padding: 15px 18px; border: 1px solid var(--line); border-right: none;
  background: var(--white); outline: none; border-radius: 0; -webkit-appearance: none;
}
.inline-form input:focus { border-color: var(--gold-deep); }
.inline-form .btn { padding: 15px 28px; }

/* ============ FOOTER ============ */
.footer { background: var(--sand); border-top: 1px solid var(--sand-deep); }
.footer-main {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--pad-x) 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.9; color: var(--char-soft); max-width: 320px; }
.footer h4 {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul a {
  font-size: 0.85rem; color: var(--char-soft); text-decoration: none;
  line-height: 2.4; transition: color 0.3s;
}
.footer ul a:hover { color: var(--gold-deep); }
.footer-legal {
  border-top: 1px solid var(--sand-deep);
  padding: 28px var(--pad-x) 36px;
  max-width: var(--max); margin: 0 auto;
  text-align: center;
}
.footer-legal p { font-size: 0.7rem; line-height: 1.9; color: var(--char-faint); }
.footer-legal a { color: var(--char-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-deep); }
.eho { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--char-faint); font-size: 0.7rem; }

/* ============ MOTION ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.12s; } .rd2 { transition-delay: 0.24s; }
.rd3 { transition-delay: 0.36s; } .rd4 { transition-delay: 0.48s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .menu-body { grid-template-columns: 1fr; gap: 40px; }
  .menu-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-cta { display: none; }
  .inline-form { flex-direction: column; }
  .inline-form input { border-right: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
