/* ============================================================
   global.css
   Salt City Digital — shared styles, tokens, and components
   Import once via BaseLayout.astro. Do not duplicate in pages.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --green:       #3b8927;
  --green-dark:  #2a6219;
  --green-deep:  #1d4712;
  --green-light: #edf6ea;
  --green-mid:   #5faf45;
  --cream:       #faf8f4;
  --cream-dark:  #f0ebe0;
  --sand:        #e2dbd0;
  --sand-light:  #ede8df;
  --ink:         #191917;
  --ink-soft:    #49493f;
  --ink-muted:   #86867a;
  --white:       #ffffff;

  --ff-serif: 'Libre Baskerville', Georgia, serif;
  --ff-sans:  'DM Sans', system-ui, sans-serif;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --t: 0.22s var(--ease);

  --shadow-sm: 0 1px 4px rgba(25,25,23,0.06), 0 1px 2px rgba(25,25,23,0.04);
  --shadow-md: 0 4px 16px rgba(25,25,23,0.09), 0 1px 4px rgba(25,25,23,0.05);
  --shadow-lg: 0 8px 40px rgba(25,25,23,0.13), 0 2px 8px rgba(25,25,23,0.06);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── LAYOUT ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ── UTILITIES ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid rgba(59,137,39,0.22);
  padding: 5px 13px 5px 8px;
  border-radius: var(--r-pill);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans); font-size: 15px; font-weight: 500;
  padding: 12px 24px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t), color var(--t);
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(59,137,39,0.32); }
.btn-outline { background: transparent; border-color: var(--sand); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }
.btn-arrow { position: relative; padding-right: 20px; }
.btn-arrow::after { content: '→'; position: absolute; right: 0; transition: transform var(--t); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,248,244,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--ff-serif); font-size: 19px; font-weight: 400; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; background: var(--green); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.logo-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--ink-soft); padding: 6px 14px; border-radius: var(--r-pill); transition: background var(--t), color var(--t); }
.nav-links a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-cta { font-size: 13.5px !important; padding: 10px 18px !important; }

/* ── FOOTER ── */
.footer { background: var(--ink); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; font-family: var(--ff-serif); font-size: 17px; font-weight: 400; color: var(--white); margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 240px; }
.footer-col-h { font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.45); transition: color var(--t); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.3); }

/* ── SECTION HEADER (reused across pages) ── */
.s-header { margin-bottom: clamp(44px, 5vw, 64px); }
.s-eyebrow { margin-bottom: 0; }
.eyebrow { margin-bottom: 20px; }
.s-title { font-family: var(--ff-serif); font-size: clamp(28px, 2.8vw, 38px); font-weight: 400; line-height: 1.18; letter-spacing: -0.012em; margin-bottom: 14px; }
.s-title em { font-style: italic; color: var(--green); }
.s-sub { font-size: 16.5px; color: var(--ink-soft); line-height: 1.68; max-width: 560px; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE: NAV ── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── CONTACT SUCCESS PAGE ── */
.cs-confirm {
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--sand);
}
.cs-confirm-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cs-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-light); border: 1px solid rgba(59,137,39,0.2);
  display: grid; place-items: center; color: var(--green);
}
.cs-icon svg { width: 24px; height: 24px; }
.cs-h1 {
  font-family: var(--ff-serif); font-size: clamp(24px, 3vw, 36px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 6px;
}
.cs-sub { font-size: 15px; color: var(--ink-muted); }
.cs-while { padding: clamp(48px, 6vw, 72px) 0 clamp(80px, 10vw, 120px); }
.cs-while-label {
  font-family: var(--ff-serif); font-size: 15px; font-style: italic;
  color: var(--ink-muted); margin-bottom: 24px;
}
.cs-while-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.cs-card {
  background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--r-xl); padding: 28px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative; overflow: hidden;
}
.cs-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(59,137,39,0.2); }
.cs-card:hover::before { transform: scaleX(1); }
.cs-card-type {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.cs-card-meta { display: flex; align-items: center; gap: 8px; }
.cs-card-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--green-dark);
  background: var(--green-light); border-radius: var(--r-pill); padding: 2px 9px;
}
.cs-card-sep { color: var(--sand); font-size: 12px; }
.cs-card-read { font-size: 12px; color: var(--ink-muted); }
.cs-card-title {
  font-family: var(--ff-serif); font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400; line-height: 1.35;
}
.cs-card-excerpt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.cs-card-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--sand);
}
.cs-stat-val { font-family: var(--ff-serif); font-size: 28px; color: var(--green); line-height: 1; }
.cs-stat-label { font-size: 12.5px; color: var(--ink-muted); }
.cs-card-cta { font-size: 13.5px; font-weight: 500; color: var(--green-dark); margin-top: auto; }
.cs-while-footer { display: flex; justify-content: flex-start; }

@media (max-width: 640px) {
  .cs-while-grid { grid-template-columns: 1fr; }
}

/* ── CONTACT PAGE ── */
.contact-header {
  padding: clamp(64px, 8vw, 108px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--sand);
}
.contact-h1 {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.025em; margin: 0 0 20px;
}
.contact-h1 em { font-style: italic; color: var(--green); }
.contact-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-soft); line-height: 1.75; max-width: 520px;
}
.contact-body { padding: clamp(56px, 7vw, 96px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  margin-bottom: 32px;
  align-items: start;
}
.contact-col { align-self: start; }
.contact-col:last-of-type {
  position: sticky; top: 90px;
  align-self: start; height: fit-content;
}
.cal-inline-wrap { overflow: hidden; }
.contact-col-header {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 28px;
}
.col-icon {
  width: 44px; height: 44px; background: var(--green-light);
  border-radius: var(--r-md); display: grid; place-items: center;
  color: var(--green-dark); flex-shrink: 0;
}
.col-icon svg { width: 20px; height: 20px; }
.col-title {
  font-family: var(--ff-serif); font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400; line-height: 1.25; margin-bottom: 6px;
}
.col-sub { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
.contact-divider {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding-top: 72px;
}
.divider-line { width: 1px; flex: 1; background: var(--sand); }
.divider-or {
  font-size: 12px; font-weight: 500; color: var(--ink-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-input {
  font-family: var(--ff-sans); font-size: 15px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--sand);
  border-radius: var(--r-md); padding: 11px 14px;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-input::placeholder { color: var(--ink-muted); }
.form-input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(59,137,39,0.12);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-submit { align-self: flex-start; }
.hidden { display: none; }
.direct-email {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0; border-top: 1px solid var(--sand);
  flex-wrap: wrap;
}
.de-label { font-size: 14px; color: var(--ink-muted); }
.de-link {
  font-size: 15px; font-weight: 500; color: var(--green-dark);
  transition: color var(--t);
}
.de-link:hover { color: var(--green); }
.expect-section {
  padding: clamp(56px, 7vw, 80px) 0 clamp(80px, 10vw, 120px);
  border-top: 1px solid var(--sand);
  background: var(--cream-dark);
}
.expect-inner { max-width: 720px; }
.expect-title {
  font-family: var(--ff-serif); font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400; margin-bottom: clamp(28px, 4vw, 40px);
}
.expect-steps { display: flex; flex-direction: column; gap: 24px; }
.expect-step { display: flex; gap: 20px; align-items: flex-start; }
.es-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-family: var(--ff-serif); font-size: 15px;
  display: grid; place-items: center; flex-shrink: 0;
}
.es-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; margin-top: 6px; }
.es-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-divider {
    flex-direction: row; padding: 0;
    height: 40px; margin: 8px 0;
  }
  .divider-line { flex: 1; width: auto; height: 1px; }
  .form-row { grid-template-columns: 1fr; }
}