/* ==========================================================================
   header.css — Athena Land Buyers
   Shared: :root variables, reset, typography, layout helpers, skip-nav,
   navbar, mobile drawer, scroll-reveal utility.
   Footer + sticky CTA styles live in footer.css.
   Home-page section styles live in home.css. Legal pages in legal.css.
   ========================================================================== */

:root {
  --color-forest: #1B4332;
  --color-forest-mid: #2d5a44;
  --color-gold: #C9A227;
  --color-cream: #F5F0E8;
  --color-stone: #EDE8DF;
  --color-ink: #1a1a18;
  --color-ink-soft: #4a4a46;
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "DM Sans", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; font-style: italic; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: var(--font-sans); padding: 0; background: transparent; }
input, select, textarea { font-family: var(--font-sans); box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Layout helpers */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* <main> carries the bottom padding that clears the fixed mobile CTA bar */
main { padding-bottom: 72px; }
@media (min-width: 768px) { main { padding-bottom: 0; } }

/* AODA skip link — first focusable element, visually hidden until focused */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background-color: var(--color-forest);
  color: var(--color-cream);
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.skip-nav:focus { left: 0; }

/* Nav */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; transition: all 0.3s; background-color: var(--color-cream); min-height: 90px; display: flex; align-items: center; }
.navbar.scrolled { padding: 8px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); min-height: auto; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0 auto; max-width: 1400px; padding: 0 24px; }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 85px; width: auto; object-fit: contain; mix-blend-mode: darken; transition: all 0.3s; }
.navbar.scrolled .logo-img { height: 65px; }
@media (min-width: 768px) { .logo-img { height: 100px; } }
.nav-links { display: none; align-items: center; gap: 32px; }
.nav-link { font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(26,26,24,0.8); transition: color 0.2s; }
.nav-link:hover { color: var(--color-forest); }
.mobile-toggle { display: block; color: var(--color-forest); }
@media (min-width: 768px) { .nav-links { display: flex; } .mobile-toggle { display: none; } }

/* Mobile Drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 60; background-color: var(--color-forest); color: var(--color-cream); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.mobile-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; min-height: 90px; background-color: var(--color-cream); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.drawer-logo { height: 70px; }
.drawer-close { color: var(--color-forest); }
.drawer-body { padding: 24px; display: flex; flex-direction: column; gap: 32px; flex-grow: 1; }
.drawer-phone { background-color: var(--color-cream); color: var(--color-forest); padding: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 1.125rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.drawer-links-wrap { display: flex; flex-direction: column; gap: 24px; }
.drawer-link { font-size: 1.25rem; font-weight: 300; font-family: var(--font-serif); font-style: italic; display: flex; justify-content: space-between; align-items: center; }
.drawer-link svg { color: var(--color-gold); }
.drawer-footer { padding: 24px; border-top: 1px solid rgba(255,255,255,0.1); background-color: rgba(45,90,68,0.5); }
.drawer-footer-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gold); margin-bottom: 8px; }
.drawer-footer-text { font-size: 0.875rem; opacity: 0.7; margin: 0; }
@media (min-width: 768px) { .mobile-drawer { display: none; } }

/* Scroll-reveal utility — JS adds this to elements, then removes on intersection */
.scroll-hidden { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

/* Custom logo (the_custom_logo) — sized to match the design's logo slot.
   Client uploads via Appearance > Customize > Site Identity. The wordmark
   text fallback shows until a logo is uploaded. */
.logo-link, .logo-link .custom-logo-link { display: flex; align-items: center; }
.logo-link .custom-logo { height: 85px; width: auto; object-fit: contain; mix-blend-mode: darken; transition: all 0.3s; }
.navbar.scrolled .logo-link .custom-logo { height: 65px; }
@media (min-width: 768px) { .logo-link .custom-logo { height: 100px; } }
.drawer-logo .custom-logo { height: 70px; }
.logo-wordmark { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 1.6rem; color: var(--color-forest); white-space: nowrap; }
@media (min-width: 768px) { .logo-wordmark { font-size: 2rem; } }
