/* ============================================================
   ZACH HATTA – STATIC SITE  |  global.css  (v2 — matches live)
   ============================================================ */

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/WorkSans-Variable.woff2') format('woff2'),
       url('../fonts/WorkSans-Variable.woff')  format('woff'),
       url('../fonts/WorkSans-Variable.ttf')   format('truetype');
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Cardo-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cardo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Cardo-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Cardo-Bold.woff2') format('woff2');
}

/* === Design Tokens — matched to live site === */
:root {
  --accent:        #c2410c;      /* orange-red */
  --accent-gold:   #d4a843;      /* gold/amber used on live site */
  --text:          #1a1a2e;      /* deep navy body text */
  --text-light:    #4a5568;
  --muted:         #64748b;
  --bg:            #faf8f5;      /* warm cream — matches live site bg */
  --bg-dark:       #1a1a2e;      /* dark navy — hero, header bg */
  --bg-section:    #f5f0e8;      /* warm section bg */
  --surface:       #ffffff;
  --border:        #e2d9cc;      /* warm border */
  --shadow:        rgba(26,26,46,0.10);
  --btn-bg:        #1a1a2e;
  --btn-hover:     #c2410c;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Cardo', Georgia, serif; line-height: 1.1; margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: transparent; cursor: pointer; font: inherit; }
::selection { background: #fcd34d; color: #92400e; }

/* === SVG — hard size cap === */
svg {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

/* === Header — dark navy bar matching live site === */
#zh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  padding: 0;
  background: var(--bg-dark);
  transition: box-shadow 0.3s ease;
}
#zh-header.zh-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.zh-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.zh-logo {
  font-size: 1.4rem;
  font-family: 'Cardo', serif;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.zh-logo span { color: var(--accent-gold); font-style: normal; }

.zh-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.zh-nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.zh-nav-link:hover { color: #ffffff; }

.zh-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-radius: 0.2rem;
  transition: background 0.2s, transform 0.2s;
}
.zh-cta-link:hover { background: #e8b84b; transform: translateY(-1px); }

.zh-wa-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #25d366;
  transition: opacity 0.2s;
}
.zh-wa-icon:hover { opacity: 0.85; }
.zh-wa-icon svg { width: 1rem; height: 1rem; }

/* Mobile toggle */
.zh-mobile-toggle {
  display: none;
  color: #ffffff;
  padding: 0.5rem;
}
.zh-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--bg-dark);
}
.zh-mobile-menu.active { display: flex; }
.zh-mobile-link {
  font-size: 2rem;
  font-family: 'Cardo', serif;
  color: #ffffff;
}
.zh-mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

/* === Main === */
.zh-main { padding-top: 4rem; }

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--btn-bg);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0.2rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0.2rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0.2rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-gold:hover { background: #e8b84b; transform: translateY(-1px); }

/* === Section utilities === */
.zh-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.zh-container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.zh-section { padding: 5rem 0; }
.zh-section--warm { background: var(--bg-section); }
.zh-section--dark { background: var(--bg-dark); color: #fff; }
.zh-section--white { background: #ffffff; }

.zh-section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.zh-section-title {
  font-family: 'Cardo', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.05;
}
.zh-section-header { text-align: center; margin-bottom: 3rem; }
.zh-section-header .zh-section-label { display: block; }

/* === Image containers — strict object-fit === */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-frame {
  overflow: hidden;
  background: #e8e0d8;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.img-frame:hover img { transform: scale(1.03); }

/* === Cards — shared === */
.zh-card {
  background: var(--surface);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow);
}
.zh-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8e0d8;
}
.zh-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.zh-card:hover .zh-card-img img { transform: scale(1.04); }
.zh-card-body { padding: 1.5rem; }

/* === Footer === */
.zh-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 5rem 0 2.5rem;
}
.zh-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.zh-footer-cta { margin-bottom: 3rem; }
.zh-footer-title {
  font-family: 'Cardo', serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 1.25rem;
  color: #ffffff;
}
.zh-footer-title .zh-accent { font-style: italic; color: var(--accent-gold); }
.zh-footer-text { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }

.zh-footer-button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0.2rem;
  transition: background 0.2s;
  margin: 0 0.4rem 0.5rem;
}
.zh-footer-button:hover { background: rgba(255,255,255,0.18); }
.zh-footer-button.zh-wa-btn {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.zh-footer-button.zh-wa-btn svg { width: 1rem; height: 1rem; }
.zh-footer-button.zh-wa-btn:hover { background: #1db954; }

.zh-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.zh-footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.zh-footer-nav a:hover { color: #ffffff; }

.zh-footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.zh-footer-social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: border-color 0.2s, color 0.2s;
}
.zh-footer-social a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.zh-footer-social svg { width: 1rem; height: 1rem; }
.zh-footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* === WhatsApp float === */
.zh-wa-float {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  z-index: 99;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.25s ease;
}
.zh-wa-float:hover { transform: scale(1.1); }
.zh-wa-float svg { width: 1.6rem; height: 1.6rem; }

/* === Reveal animations === */
.reveal, .zh-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.is-visible, .zh-reveal.is-visible { opacity: 1; transform: none; }

/* Safety: if JS hasn't run after 2s, show everything anyway */
@keyframes zh-fallback-show {
  to { opacity: 1; transform: none; }
}
.reveal, .zh-reveal {
  animation: zh-fallback-show 0s 2s both;
}

/* === Misc === */
.zh-section-label-gold {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .zh-header-inner { padding: 0 1rem; }
  .zh-mobile-toggle { display: inline-flex; }
  .zh-nav { display: none; }
  .zh-section { padding: 3.5rem 0; }
  .zh-container { padding: 0 1.25rem; }
  .zh-wa-float { bottom: 1.25rem; right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
