/* ============================================================
   LATITUDE — Static site stylesheet
   Design system: Baskervville (display) + Inter (body), warm
   Mediterranean neutrals, hairline borders, restrained motion.
   Fonts are loaded from index.html (<link> with preconnect).
   ============================================================ */

:root {
  --porcelain-light:  #FFFCF2;
  --light-cashmere:   #CCC5BA;
  --warm-greige:      #847C76;
  --genuine-leather:  #4E3F3B;
  --dark-espresso:    #252221;

  --perennial-gold:   #A37F33;
  --gold-soft:        #C8A861;
  --gold-deep:        #876728;

  --porcelain-deep:   #F4EFE2;

  --surface-page:     var(--porcelain-light);
  --surface-sunken:   var(--porcelain-deep);

  --text-primary:     var(--dark-espresso);
  --text-secondary:   var(--warm-greige);
  --text-on-dark:     var(--porcelain-light);
  --text-on-dark-dim: #B7AEA3;

  --accent:           var(--perennial-gold);
  --accent-hover:     var(--gold-soft);
  --accent-pressed:   var(--gold-deep);

  --border-hairline:  var(--light-cashmere);
  --border-strong:    var(--warm-greige);

  --shadow-xs: 0 1px 2px rgba(37, 34, 33, 0.05);

  --font-display: 'Baskervville', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--porcelain-light); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

@keyframes latFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lat-reveal { animation: latFade .9s cubic-bezier(0.16,1,0.3,1) both; }

/* —— Nav —— */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 74px;
  display: flex; align-items: center; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-standard), border-color .4s var(--ease-standard), box-shadow .4s var(--ease-standard);
}
.site-nav.scrolled { background: var(--surface-page); border-bottom-color: var(--border-hairline); box-shadow: var(--shadow-xs); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .wordmark { height: 16px; }
.logo-dark, .wordmark-dark { display: none; }
.site-nav.scrolled .logo-light, .site-nav.scrolled .wordmark-light { display: none; }
.site-nav.scrolled .logo-dark, .site-nav.scrolled .wordmark-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 32px); }
.nav-link {
  color: var(--text-on-dark); font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 500; white-space: nowrap; transition: color .4s var(--ease-standard);
}
.site-nav.scrolled .nav-link { color: var(--text-primary); }
.nav-cta {
  color: var(--text-on-dark); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  border: 1px solid rgba(255,252,241,.45); padding: 11px 20px; white-space: nowrap;
  transition: color .4s var(--ease-standard), border-color .4s var(--ease-standard);
}
.site-nav.scrolled .nav-cta { color: var(--text-primary); border-color: var(--border-strong); }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 24px; height: 1px; background: var(--porcelain-light); position: relative;
  box-shadow: 0 -7px 0 var(--porcelain-light), 0 7px 0 var(--porcelain-light);
}
.site-nav.scrolled .burger span { background: var(--text-primary); box-shadow: 0 -7px 0 var(--text-primary), 0 7px 0 var(--text-primary); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 61; background: var(--dark-espresso);
  display: none; flex-direction: column; justify-content: center; padding: 0 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; color: var(--porcelain-light);
  padding: 8px 0; border-bottom: 1px solid rgba(255,252,241,.12); display: block;
}
.mobile-menu a.contact-link { color: var(--perennial-gold); border-bottom: none; }
.mobile-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; background: transparent;
  border: none; color: var(--porcelain-light); font-size: 30px; cursor: pointer; line-height: 1;
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; padding: 0 28px; height: 54px; border: 1px solid transparent;
  cursor: pointer; transition: background .3s var(--ease-standard), color .3s var(--ease-standard), border-color .3s var(--ease-standard);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--porcelain-light); }
.btn-primary:hover { background: var(--accent-hover); color: var(--porcelain-light); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--dark-espresso); color: var(--porcelain-light); border-color: var(--dark-espresso); }
.btn-ondark { background: transparent; color: var(--porcelain-light); border-color: rgba(255,252,241,.45); }
.btn-ondark:hover { background: var(--porcelain-light); color: var(--dark-espresso); }

@media (max-width: 480px) {
  .btn { white-space: normal; height: auto; min-height: 54px; padding: 15px 24px; text-align: center; max-width: 100%; }
}

/* —— Sections / typography helpers —— */
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; }
.eyebrow-ondark { color: var(--porcelain-light); opacity: .85; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.section-pad { padding: clamp(80px, 12vh, 140px) 0; }
.section-pad-sm { padding: clamp(64px, 9vh, 110px) 0; }
.hairline-top { border-top: 1px solid var(--border-hairline); }
.hairline-bottom { border-bottom: 1px solid var(--border-hairline); }
.lede { color: var(--text-secondary); font-weight: 300; line-height: 1.6; }

/* —— Grids —— */
.grid-lines { display: grid; gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); }
.grid-lines > * { background: var(--surface-page); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-8 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-check { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px 28px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-hairline); }
.check-dot { width: 6px; height: 6px; margin-top: 7px; background: var(--accent); flex: none; transform: rotate(45deg); }
.num-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-hairline); }
.num-item.ondark { border-bottom-color: rgba(255,252,241,.14); }
.num-item .num { font-family: var(--font-display); font-size: 13px; color: var(--accent); flex: none; min-width: 26px; }

.pill { border: 1px solid var(--border-strong); padding: 12px 22px; font-size: .92rem; letter-spacing: .02em; color: var(--text-primary); background: var(--surface-page); }

.quote { font-family: var(--font-display); font-style: italic; color: var(--text-primary); line-height: 1.4; }

.img-cover { background-size: cover; background-position: center; border: 1px solid var(--border-hairline); }

.footer-link { color: var(--text-on-dark); font-size: .95rem; }
.footer-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--warm-greige); margin-bottom: 4px; }
