/* ============================================================
   Smart Accounting Solutions — Individual Tax Website
   Design tokens & styles (per design handoff)
   ============================================================ */

:root {
  /* Surfaces */
  --surface-page: #faf7f0;      /* Warm White (page bg) */
  --surface-page-alt: #f5f1e8;  /* Warm White 2 (alt bg) */
  --surface-linen: #efe9dc;     /* Natural Linen */
  --surface-card: #ffffff;      /* Card surface */

  /* Brand */
  --sh-navy: #1e3a5f;
  --sh-navy-deep: #16293f;
  --sh-navy-soft: #35547c;
  --sh-charcoal: #3d4043;
  --sh-charcoal-deep: #2c2e30;

  /* Gold */
  --sh-gold: #c2a15a;
  --sh-gold-deep: #a8863f;
  --sh-gold-soft: #d9c48c;
  --sh-gold-wash: #f3ebd8;

  /* Lines & text */
  --border-subtle: #d8d4cb;
  --text-body: #3d4043;
  --text-muted: #6f7174;
  --text-gold: #a8863f;
  --text-on-dark: #faf7f0;
  --text-on-dark-muted: #b4b3ab;

  /* Shadows — soft, warm-tinted, low contrast */
  --shadow-sm: 0 1px 2px rgba(44, 46, 48, 0.06), 0 2px 8px rgba(44, 46, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(44, 46, 48, 0.09), 0 2px 6px rgba(44, 46, 48, 0.06);
  --shadow-lg: 0 18px 44px rgba(44, 46, 48, 0.13), 0 6px 16px rgba(44, 46, 48, 0.08);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--sh-navy); text-decoration: none; }
a:hover { color: var(--sh-navy-deep); }
::selection { background: var(--sh-gold-soft); }

img { max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Shared bits */
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-gold);
}
.eyebrow--dark { color: var(--sh-gold-soft); }

.divider {
  width: 56px;
  height: 2px;
  background: var(--sh-gold);
  border: 0;
  border-radius: 999px;
  margin: 18px 0 24px;
}
.divider--center { margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--sh-navy);
  margin: 0 0 18px;
}
.section-head p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, transform 120ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.35);
}

.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--md { padding: 12px 24px; font-size: 15px; }
.btn--lg { padding: 16px 32px; font-size: 16.5px; }

.btn--primary { background: var(--sh-navy); color: var(--text-on-dark); border-color: var(--sh-navy); }
.btn--primary:hover { background: var(--sh-navy-deep); border-color: var(--sh-navy-deep); color: var(--text-on-dark); }

.btn--secondary { background: transparent; color: var(--sh-navy); border-color: var(--sh-navy); }
.btn--secondary:hover { background: var(--sh-navy); color: var(--text-on-dark); }

.btn--gold { background: var(--sh-gold); color: var(--sh-charcoal-deep); border-color: var(--sh-gold); }
.btn--gold:hover { background: var(--sh-gold-deep); border-color: var(--sh-gold-deep); color: var(--sh-charcoal-deep); }
.btn--gold:focus-visible { box-shadow: 0 0 0 3px rgba(194, 161, 90, 0.5); }

/* ---------- Icons (Lucide) ---------- */
.icon { display: inline-flex; }
.icon svg { display: block; }

.icon-well {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 60px; width: auto; display: block; }
.brand__tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-gold);
  border-left: 1px solid var(--border-subtle);
  padding-left: 14px;
  line-height: 1.5;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--sh-charcoal);
}
.nav__link:hover { color: var(--sh-navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--sh-navy);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 32px 84px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--sh-navy);
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero__lead {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 16px;
  max-width: 520px;
}
.hero__sub {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 34px;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media-backing {
  position: absolute;
  inset: -14px -14px 22px 26px;
  background: var(--sh-gold-wash);
  border-radius: 20px;
  z-index: 0;
}
.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Warm fallback if the photo is missing */
  background: linear-gradient(150deg, #ece3d0 0%, #e3d6bd 45%, #d9c9a8 100%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__chip {
  position: relative;
  z-index: 2;
  margin-top: -52px;
  margin-left: auto;
  width: max-content;
  max-width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__chip-well {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--sh-gold-wash);
}
.hero__chip-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--sh-navy);
  line-height: 1.3;
}
.hero__chip-sub { font-size: 13px; color: var(--text-muted); line-height: 1.3; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  background: var(--sh-navy);
  color: var(--text-on-dark);
}
.trust__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 12px;
}
.trust__item { display: flex; align-items: center; gap: 11px; }
.trust__item span { font-size: 14.5px; font-weight: 500; }
.trust__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.16); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 92px 0; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sh-gold-wash);
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--sh-navy);
  margin: 0 0 8px;
}
.card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ============================================================
   BUSINESS BRIDGE
   ============================================================ */
.bridge {
  background: var(--sh-charcoal);
  position: relative;
  overflow: hidden;
}
.bridge__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sh-gold);
}
.bridge__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.bridge__logo {
  height: 96px;
  width: auto;
  border-radius: 10px;
  flex-shrink: 0;
}
.bridge__body { flex: 1; min-width: 300px; }
.bridge__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 6px 0 6px;
}
.bridge__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 680px;
}
.bridge__cta { flex-shrink: 0; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--surface-page-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 92px 0;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step { text-align: center; padding: 0 8px; }
.step__well {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--sh-navy);
  color: var(--text-on-dark);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.step__no {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: 6px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--sh-navy);
  margin: 0 0 8px;
}
.step p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.step p strong { color: var(--text-body); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why { padding: 92px 0; }
.why-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 38px 32px;
  text-align: center;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sh-gold);
}
.why-card__well {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--sh-gold-wash);
  margin-bottom: 20px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--sh-navy);
  margin: 0 0 10px;
}
.why-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  background: var(--surface-page-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 92px 0;
}
.review-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.review-card__stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--sh-gold); }
.review-card__quote {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
  flex: 1;
}
.review-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.review-card__name { font-weight: 600; font-size: 14.5px; color: var(--sh-navy); }
.review-card__role { font-size: 12.5px; color: var(--text-muted); }

.reviews__note {
  text-align: center;
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { padding: 96px 0; text-align: center; }
.final-cta__inner { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.02em;
  color: var(--sh-navy);
  margin: 0 0 18px;
}
.final-cta p {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 34px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--sh-navy);
  color: var(--text-on-dark);
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}
.footer-brand__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sh-gold-soft);
  margin-bottom: 18px;
}
.footer-brand__blurb {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  max-width: 320px;
}
.footer-col__head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sh-gold-soft);
  margin-bottom: 16px;
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-on-dark-muted);
}
.footer-col__list a { color: var(--text-on-dark-muted); }
.footer-col__list a:hover { color: var(--text-on-dark); }
.footer-contact-item { display: flex; align-items: center; gap: 9px; }
.footer-contact-item--top { align-items: flex-start; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
}
.footer-bottom span { font-size: 13px; color: var(--text-on-dark-muted); }
.footer-bottom .footer-cta { font-size: 13.5px; }
.footer-bottom .footer-cta a { color: var(--sh-gold-soft); font-weight: 600; }
.footer-bottom .footer-cta a:hover { color: var(--text-on-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero { gap: 48px; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 900px) {
  /* Header → drawer */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 32px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 10px 0; font-size: 16px; }
  .nav .btn { width: 100%; margin-top: 4px; }

  /* Hero → single column */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }

  /* Grids collapse */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }

  /* Bridge stacks */
  .bridge__inner { justify-content: center; text-align: left; }
  .bridge__cta .btn { width: 100%; }
}

@media (max-width: 620px) {
  .container,
  .header-inner,
  .hero,
  .trust__inner,
  .bridge__inner { padding-left: 22px; padding-right: 22px; }

  .hero { padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .hero__lead, .hero__sub { font-size: 17px; }

  .section-head h2 { font-size: 32px; }
  .final-cta h2 { font-size: 36px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  /* Trust bar: hide the vertical rules once wrapped, center */
  .trust__inner { justify-content: center; gap: 16px 22px; }
  .trust__divider { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }

  .hero__actions .btn,
  .final-cta .btn { width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
