/* ============================================================
   CORNERSTONE TAX CONSULTING — styles.css
   Design: Structured Clarity
   Fonts: Fraunces (serif display) + Plus Jakarta Sans (body)
   Accent: Terracotta #C4614A
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --terra: #C4614A;
  --terra-dark: #b05540;
  --black: #111111;
  --dark: #0D0D0D;
  --gray: #555555;
  --light-gray: #888888;
  --border: #EBEBEB;
  --off-white: #FAFAF8;
  --white: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px)  { .container { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, gap 0.2s;
  border-radius: 0;
  text-decoration: none;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); gap: 12px; }
.btn-ghost {
  background: transparent;
  color: var(--black);
  padding: 14px 0;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--terra); }

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow-border {
  border: 1px solid rgba(196,97,74,0.3);
  padding: 6px 12px;
}

/* ── Accent underline ── */
.u {
  position: relative;
  display: inline;
}
.u::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terra);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ── Ghost numeral ── */
.ghost-num {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 700;
  color: rgba(196,97,74,0.05);
  position: absolute;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; }
.nav-logo-icon { width: 36px; height: 36px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }
.nav-logo .logo-top {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}
.nav-logo .logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #555;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--terra);
  color: #fff;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}
.nav-cta:hover { background: var(--terra-dark); }
@media (max-width: 767px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663515404662/VbTk2kyG9GTJZyVovnjvjT/hero-bg-M5B7htQCdVtZnvLD6gu8sv.webp');
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.hero-ghost { top: 8%; right: 2%; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
  width: 100%;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 420px; gap: 64px; padding: 100px 0; }
}
@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr 480px; gap: 80px; }
}

.hero-text { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.hero-h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
}
.hero-h1 .accent { color: var(--terra); font-style: italic; }
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 500px;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray);
}
.hero-trust-item svg { color: var(--terra); flex-shrink: 0; }

/* Hero image */
.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) { .hero-img-wrap { justify-content: flex-end; } }
.hero-img-frame {
  position: relative;
  display: inline-block;
}
.hero-img-frame::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 1px solid rgba(196,97,74,0.2);
  z-index: 0;
}
.hero-img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 900px) { .hero-img-frame img { max-width: 100%; } }
.hero-stat-card {
  position: absolute;
  bottom: -20px; left: -24px;
  z-index: 2;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 16px 20px;
  border-left: 3px solid var(--terra);
}
.hero-stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  display: block;
}
.hero-stat-card .stat-label {
  font-size: 12px;
  color: var(--light-gray);
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--black);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    divide-x: 1px solid rgba(255,255,255,0.1);
  }
  .stats-grid .stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 40px;
  }
  .stats-grid .stat-item:first-child { padding-left: 0; }
}
.stat-item { display: flex; flex-direction: column; }
.stat-item .s-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: #fff;
}
.stat-item .s-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 96px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.services .ghost-num { top: -5%; right: 2%; }
.section-header { margin-bottom: 64px; max-width: 520px; }
.section-header h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-top: 12px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #E0DDD8;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: #fff;
  padding: 40px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.service-card:hover { background: #FDFCFB; }
.service-card-ghost {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: rgba(196,97,74,0.05);
  position: absolute;
  top: 12px; right: 20px;
  line-height: 1;
  pointer-events: none;
}
.service-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.service-icon {
  width: 40px; height: 40px;
  background: rgba(196,97,74,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--terra);
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  padding-top: 6px;
}
.service-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
}
.service-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.service-link:hover { color: var(--terra-dark); gap: 10px; }

/* ============================================================
   STRATEGIES
   ============================================================ */
.strategies {
  padding: 96px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.strategies .ghost-num { bottom: -5%; left: 1%; }
.strategies-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 900px) {
  .strategies-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
  .strategies-sticky { position: sticky; top: 100px; }
}
.strategies-sticky p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 400px;
}
.strategy-list { border-top: 1px solid var(--border); }
.strategy-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.strategy-item:hover .strategy-title { color: var(--terra); }
.strategy-item:hover .strategy-arrow { color: var(--terra); }
.strategy-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
  margin-bottom: 6px;
}
.strategy-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  transition: color 0.2s;
}
.strategy-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin-top: 6px;
}
.strategy-arrow { color: #ccc; flex-shrink: 0; margin-top: 4px; transition: color 0.2s; }

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison {
  padding: 96px 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.comparison .ghost-num { top: -5%; right: 2%; color: rgba(255,255,255,0.03); }
.comparison h2 { color: #fff; margin-top: 12px; }
.comparison h2 em { color: var(--terra); font-style: italic; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 48px; }
.compare-table thead th {
  text-align: left;
  padding-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.compare-table thead th:first-child { color: rgba(255,255,255,0.35); width: 45%; }
.compare-table thead th:nth-child(2) { color: var(--terra); width: 10%; text-align: center; }
.compare-table thead th:last-child { color: #fff; width: 45%; }
.compare-table tbody tr { border-top: 1px solid rgba(255,255,255,0.06); }
.compare-table tbody tr:hover td { opacity: 0.9; }
.compare-table tbody td { padding: 14px 0; font-size: 14px; vertical-align: middle; }
.compare-table tbody td:first-child { color: rgba(255,255,255,0.38); padding-right: 24px; }
.compare-table tbody td:nth-child(2) { text-align: center; }
.compare-table tbody td:nth-child(2) span { display: block; width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 auto; }
.compare-table tbody td:last-child { color: #fff; font-weight: 500; padding-left: 16px; }
.check-icon { color: var(--terra); margin-right: 8px; display: inline-block; vertical-align: middle; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  background: var(--terra);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 32px;
}
.marquee-dot { opacity: 0.5; margin: 0 16px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 96px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.testimonials .ghost-num { top: -5%; right: 2%; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.tcard {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.2s;
}
.tcard:hover { border-color: rgba(196,97,74,0.3); }
.tcard-stars { display: flex; gap: 4px; margin-bottom: 20px; }
.tcard-stars svg { fill: var(--terra); color: var(--terra); }
.tcard-quote {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.tcard-divider { width: 32px; height: 1px; background: rgba(196,97,74,0.4); margin-bottom: 20px; }
.tcard-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tcard-name { font-size: 14px; font-weight: 600; color: var(--black); }
.tcard-role { font-size: 12px; color: var(--light-gray); margin-top: 2px; }
.tcard-savings { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--terra); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 96px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .about-inner { grid-template-columns: 460px 1fr; gap: 72px; } }
.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid rgba(196,97,74,0.15);
  z-index: 0;
}
.about-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 4/5;
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text h2 {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-top: 12px;
}
.about-text p { font-size: 16px; color: var(--gray); line-height: 1.75; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 8px;
}
.about-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  display: block;
}
.about-stat-label { font-size: 13px; color: var(--light-gray); margin-top: 2px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 96px 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663515404662/VbTk2kyG9GTJZyVovnjvjT/services-bg-AxDXx3WGv24FgdQv9zuvu8.webp');
  background-size: cover;
  opacity: 0.05;
}
.final-cta-inner { position: relative; max-width: 700px; }
.final-cta h2 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 20px;
}
.final-cta h2 em { color: var(--terra); font-style: italic; }
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 520px;
}
.final-cta-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.final-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.final-cta-trust-item svg { color: var(--terra); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr auto auto; } }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.6; margin-top: 12px; max-width: 260px; }
.footer-logo-top {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  display: block;
}
.footer-logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.22); }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
