/* ============================================================
   JALIL LEWIS — shared.css
   Shared variables, nav, footer, utilities across all pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --sage-deep:    #2C3E2D;
  --sage-mid:     #4A6741;
  --sage-soft:    #6B8F62;
  --sage-light:   #A8C5A0;
  --sage-pale:    #D6E8D2;
  --sage-mist:    #EEF5EC;
  --bark:         #3D2B1F;
  --bark2:        #5C4033;
  --cream:        #F7F3EC;
  --cream2:       #EFE9DF;
  --cream3:       #E3D9CC;
  --warm-white:   #FDFAF6;
  --ink:          #2E2218;
  --muted:        #7A6B5D;
  --muted2:       #9E8E80;
  --blush:        #C9897A;
  --blush-light:  #d9c4a8;
  --gold:         #b8962e;
  --gold-light:   #d4b05a;
  --divider:      rgba(106,143,98,0.18);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1200px;
  --section-pad:  100px 64px;
  --nav-h:        65px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── SCROLL PROGRESS ─────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sage-deep), var(--sage-light));
  z-index: 600; width: 0%;
  transition: width 0.1s linear;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 64px;
  background: rgba(247,243,236,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
/* ── LOGO MARK ───────────────────────────────────── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Monogram: italic J + bold L */
.logo-mono {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.logo-mono-j {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  font-style: italic;
  color: var(--sage-deep);
  line-height: 1;
  margin-right: -3px;
  transition: color 0.35s ease;
}
.logo-mono-l {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  font-style: normal;
  color: var(--sage-mid);
  line-height: 1;
  transition: color 0.35s ease;
}

/* Thin vertical divider */
.logo-divider {
  width: 1px;
  height: 24px;
  background: var(--sage-light);
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.35s ease;
}

/* Stacked wordmark */
.logo-words {
  display: flex;
  flex-direction: column;
  gap: 0px;
  line-height: 1;
}
.logo-first {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sage-deep);
  line-height: 1.1;
  transition: color 0.35s ease;
}
.logo-last {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 4px;
  color: var(--sage-mid);
  line-height: 1.1;
  transition: color 0.35s ease;
}

/* ── LOGO HOVER ANIMATION ────────────────────────── */
.nav-logo:hover .logo-mono-j { color: var(--sage-mid); }
.nav-logo:hover .logo-mono-l { color: var(--sage-deep); }
.nav-logo:hover .logo-divider { opacity: 0.9; }
.nav-logo:hover .logo-first   { color: var(--sage-mid); }
.nav-logo:hover .logo-last    { color: var(--sage-deep); }

/* ── LOGO PAGE-LOAD ANIMATION ───────────────────── */
@keyframes logoJ {
  0%   { opacity: 0; transform: translateX(-10px) rotate(-4deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}
@keyframes logoL {
  0%   { opacity: 0; transform: translateX(8px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes logoDivider {
  0%   { opacity: 0; transform: scaleY(0); }
  100% { opacity: 0.55; transform: scaleY(1); }
}
@keyframes logoWords {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.logo-mono-j  { animation: logoJ        0.55s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.logo-mono-l  { animation: logoL        0.55s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.logo-divider { animation: logoDivider  0.45s cubic-bezier(0.22,1,0.36,1) 0.28s both; transform-origin: center; }
.logo-words   { animation: logoWords    0.5s  cubic-bezier(0.22,1,0.36,1) 0.32s both; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s; font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--sage-mid); }
.nav-pill {
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  transition: background 0.2s, color 0.2s !important;
  white-space: nowrap;
}
.nav-pill-txc {
  background: transparent;
  border: 1px solid var(--sage-mid);
  color: var(--sage-mid) !important;
}
.nav-pill-txc:hover { background: var(--sage-mid); color: var(--cream) !important; }
.nav-pill-consult {
  background: var(--sage-deep);
  border: 1px solid var(--sage-deep);
  color: var(--cream) !important;
}
.nav-pill-consult:hover { background: var(--sage-mid); border-color: var(--sage-mid); }
.nav-book {
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  background: var(--blush) !important;
  color: var(--cream) !important;
  border: none;
  white-space: nowrap;
  transition: background 0.2s !important;
}
.nav-book:hover { background: var(--bark) !important; color: var(--cream) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--bark); border-radius: 1px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--warm-white); border-bottom: 1px solid var(--divider);
  padding: 0 32px; z-index: 499; flex-direction: column;
  box-shadow: 0 8px 24px rgba(44,34,24,0.08);
  pointer-events: none;
}
.mobile-nav a {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--divider);
  font-weight: 400; transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--sage-mid); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav-book {
  display: block; margin: 16px 0;
  padding: 14px; text-align: center;
  background: var(--blush); color: var(--cream) !important;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; border: none; border-bottom: none !important;
  transition: background 0.2s;
}
.mobile-nav-book:hover { background: var(--bark) !important; }

/* ── STICKY MOBILE CTA ───────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 490;
  background: var(--sage-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  gap: 10px;
}
.mobile-cta-bar a {
  flex: 1; text-align: center;
  padding: 13px 10px;
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 2px; transition: background 0.2s;
}
.mobile-cta-bar .mcta-book {
  background: var(--blush); color: var(--cream);
}
.mobile-cta-bar .mcta-book:hover { background: var(--bark); }
.mobile-cta-bar .mcta-call {
  background: rgba(255,255,255,0.08); color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ── SECTION COMMONS ─────────────────────────────── */
.section-wrap { padding: var(--section-pad); max-width: var(--max-w); margin: 0 auto; }
.eyebrow {
  font-size: 9px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--sage-mid); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--sage-mid); }
.eyebrow-light { color: var(--sage-light); }
.eyebrow-light::before { background: var(--sage-light); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--bark); margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--sage-mid); }
.section-title-light { color: var(--cream); }
.section-title-light em { color: var(--sage-light); }
.section-rule { width: 48px; height: 1px; background: var(--blush); margin-bottom: 48px; }
.section-sub {
  font-size: 15px; color: var(--muted); line-height: 1.85; max-width: 600px; margin-bottom: 52px;
}
.section-sub-light { color: rgba(245,240,232,0.6); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; transition: all 0.25s;
}
.btn-primary {
  background: var(--sage-deep); color: var(--cream);
  padding: 14px 28px; border: 1px solid var(--sage-deep);
}
.btn-primary:hover { background: var(--sage-mid); border-color: var(--sage-mid); }
.btn-outline {
  background: transparent; color: var(--muted);
  padding: 13px 26px; border: 1px solid var(--cream3);
}
.btn-outline:hover { border-color: var(--sage-mid); color: var(--sage-mid); }
.btn-outline-light {
  background: transparent; color: rgba(245,240,232,0.7);
  padding: 13px 26px; border: 1px solid rgba(245,240,232,0.25);
}
.btn-outline-light:hover { border-color: var(--sage-light); color: var(--cream); }
.btn-txc {
  background: transparent; color: var(--sage-mid);
  padding: 14px 28px; border: 1.5px solid var(--sage-mid);
}
.btn-txc:hover { background: var(--sage-mid); color: var(--cream); }

/* ── PULLQUOTE ───────────────────────────────────── */
.pullquote-wrap { padding: 72px 64px; text-align: center; }
.pullquote-wrap.dark { background: var(--sage-deep); }
.pullquote-wrap.light { background: var(--warm-white); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.pullquote { max-width: 760px; margin: 0 auto; }
.pullquote-mark {
  font-family: var(--font-display); font-size: 5rem;
  color: var(--sage-mid); line-height: 0.5; display: block;
  margin-bottom: 16px; opacity: 0.35;
}
.pullquote-wrap.dark .pullquote-mark { color: var(--sage-light); }
.pullquote-text {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-style: italic; line-height: 1.6; color: var(--bark); font-weight: 400;
}
.pullquote-wrap.dark .pullquote-text { color: var(--cream); }
.pullquote-attr {
  margin-top: 20px; font-size: 9px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--sage-mid);
}
.pullquote-wrap.dark .pullquote-attr { color: var(--sage-light); opacity: 0.65; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--bark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 64px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  /* leave room for mobile sticky bar */
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo .logo-mono-j {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 300; font-style: italic;
  color: rgba(245,240,232,0.35);
  line-height: 1; margin-right: -2px;
  animation: none;
}
.footer-logo .logo-mono-l {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: rgba(168,197,160,0.35);
  line-height: 1;
  animation: none;
}
.footer-logo .logo-divider {
  height: 20px;
  opacity: 0.2;
  animation: none;
}
.footer-logo .logo-words { animation: none; }
.footer-logo .logo-first {
  font-size: 10px; letter-spacing: 4px;
  color: rgba(245,240,232,0.3);
  animation: none;
}
.footer-logo .logo-last {
  font-size: 10px; letter-spacing: 3px;
  color: rgba(168,197,160,0.3);
  animation: none;
}
.footer-logo:hover .logo-mono-j { color: rgba(245,240,232,0.6); }
.footer-logo:hover .logo-mono-l { color: rgba(168,197,160,0.6); }
.footer-logo:hover .logo-first  { color: rgba(245,240,232,0.5); }
.footer-logo:hover .logo-last   { color: rgba(168,197,160,0.5); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245,240,232,0.25); transition: color 0.2s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-note { font-size: 9px; color: rgba(245,240,232,0.18); letter-spacing: 0.5px; }

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.4;transform:scale(0.85);}
}
/* ── NAV SCROLL STATE ────────────────────────────── */
nav.scrolled {
  box-shadow: 0 2px 24px rgba(44,34,24,0.09);
  background: rgba(247,243,236,0.99);
}
nav { transition: box-shadow 0.3s ease, background 0.3s ease; }
.nav-logo { transition: opacity 0.2s; }
.nav-pill { transition: background 0.2s, color 0.2s, transform 0.18s !important; }
.nav-pill:hover { transform: translateY(-1px); }
.nav-book { transition: background 0.2s, transform 0.18s !important; }
.nav-book:hover { transform: translateY(-1px); }

/* ── MOBILE NAV SLIDE ────────────────────────────── */
.mobile-nav {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.28s ease;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a { transition: color 0.2s, padding-left 0.2s; }
.mobile-nav a:hover { color: var(--sage-mid); padding-left: 6px; }
.mobile-nav-book:hover { padding-left: 0 !important; }

/* ── STICKY BAR SLIDE UP ─────────────────────────── */
.mobile-cta-bar {
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.mobile-cta-bar.bar-visible { transform: translateY(0); }
.mobile-cta-bar a { transition: background 0.2s, transform 0.15s; }
.mobile-cta-bar a:active { transform: scale(0.97); }

/* ── BUTTON LIFT ─────────────────────────────────── */
.btn { transition: all 0.22s cubic-bezier(0.22,1,0.36,1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44,62,45,0.15); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* ── SECTION RULE DRAW ───────────────────────────── */
.section-rule {
  width: 0; height: 1px; background: var(--blush); margin-bottom: 48px;
  transition: width 0.9s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.section-rule.visible { width: 48px; }
.page-rule {
  width: 0;
  transition: width 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s;
}
.page-rule.visible { width: 48px; }
/* cta-rule is decorative — always visible */
.cta-rule { width: 36px; height: 1px; background: var(--blush); margin-bottom: 20px; }
@media (max-width: 640px) {
  /* On mobile, show rules immediately if JS hasn't fired yet */
  .section-rule { width: 48px; }
  .page-rule { width: 48px; }
}

/* ── REVEAL VARIANTS ─────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.22,1,0.36,1),
              transform 0.72s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.72s cubic-bezier(0.22,1,0.36,1),
              transform 0.72s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.72s cubic-bezier(0.22,1,0.36,1),
              transform 0.72s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.reveal-d1 { transition-delay: 0.06s !important; }
.reveal-d2 { transition-delay: 0.14s !important; }
.reveal-d3 { transition-delay: 0.22s !important; }
.reveal-d4 { transition-delay: 0.30s !important; }
.reveal-d5 { transition-delay: 0.38s !important; }
.reveal-d6 { transition-delay: 0.46s !important; }

/* ── CARD HOVER LIFT ─────────────────────────────── */
.hover-lift {
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), box-shadow 0.24s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(44,34,24,0.1);
}

/* ── IMAGE FADE IN ───────────────────────────────── */
img {
  transition: opacity 0.5s ease;
}

/* ── PULLQUOTE FADE ──────────────────────────────── */
.pullquote-wrap .pullquote { transition: opacity 0.6s ease; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
  .section-rule, .page-rule { width: 48px; }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  :root { --nav-h: 62px; }
  nav { padding: 18px 32px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  :root { --section-pad: 80px 32px; }
  footer { padding: 32px; flex-direction: column; text-align: center; gap: 20px; }
  .footer-links { justify-content: center; }
  .pullquote-wrap { padding: 56px 32px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; --section-pad: 60px 20px; }
  nav { padding: 14px 20px; }
  .mobile-nav { padding: 0 20px; top: var(--nav-h); }
  footer { padding: 24px 20px 90px; } /* extra bottom pad for sticky CTA bar */
  .pullquote-wrap { padding: 48px 20px; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 0; }
}
