/* ============================================================
   Tax Resolution Center LLC — Design System
   ============================================================ */

:root {
  /* Brand colors (derived from existing navy + orange logo) */
  --navy-900: #0e2a47;
  --navy-800: #143358;
  --navy-700: #1d4977;
  --navy-50:  #eef3f9;
  --orange:   #e85a1a;
  --orange-dark: #c44a12;
  --accent-gold: #d4a017;
  --success: #1f8a4c;

  /* Neutrals */
  --ink:      #0f172a;
  --ink-soft: #334155;
  --muted:    #64748b;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f8fafc;
  --bg-cream: #fbf7f1;

  /* Type */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px;

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 8px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 24px rgba(15,23,42,.08), 0 24px 48px rgba(15,23,42,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; margin: 0 0 var(--s-4); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 var(--s-4); color: var(--ink-soft); }
a  { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--orange); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: .8rem;
  color: var(--orange); font-weight: 700; margin-bottom: var(--s-3);
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.section   { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-cream { background: var(--bg-cream); }
.section-navy  { background: var(--navy-900); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.85); }
.section-soft  { background: var(--bg-soft); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--navy-900); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) 0; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 1.15rem; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 8px;
  background-color: var(--navy-900);
  background-image: url('../images/logo.png');
  background-size: cover;
  background-position: center;
  /* Hide the fallback "TR" text when the image loads */
  font-size: 0; color: transparent;
  flex-shrink: 0;
}
/* Logo already has a navy background, so it blends with the dark footer naturally */
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: var(--s-3); }
.header-phone { color: var(--navy-900); font-weight: 700; }
.header-phone span { color: var(--orange); margin-right: 4px; }

.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy-900); cursor: pointer; }
@media (max-width: 900px) {
  .nav-links, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line); padding: var(--s-5); gap: var(--s-4);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: var(--s-9) 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover; background-position: center;
  opacity: .18; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-7); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 .highlight { color: var(--accent-gold); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: var(--s-5); }
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.hero-trust { display: flex; gap: var(--s-5); flex-wrap: wrap; color: rgba(255,255,255,.8); font-size: .9rem; }
.hero-trust span::before { content: '✓ '; color: var(--accent-gold); font-weight: 700; }

/* Hero image slot */
.hero-image-slot {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center;
  text-align: center; padding: var(--s-5);
  /* contain (not cover) so the whole image shows — no faces cropped off */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Hide the documentation placeholder text — image fills the slot */
  font-size: 0; color: transparent;
}

/* ---------- Proof bar ---------- */
.proof-bar {
  background: var(--accent-gold);
  color: var(--navy-900);
  padding: var(--s-5) 0;
}
.proof-bar .container { display: flex; align-items: center; justify-content: space-around; gap: var(--s-5); flex-wrap: wrap; text-align: center; }
.proof-stat { font-family: var(--font-display); }
.proof-stat strong { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.proof-stat span   { font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--navy-700); }
.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--navy-50); color: var(--orange);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
  margin-bottom: var(--s-4);
}
.card-icon .icon { width: 28px; height: 28px; }

/* SVG icon system (Lucide-style) */
.icon {
  display: inline-block;
  vertical-align: -0.15em;
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  flex-shrink: 0;
}
/* Phone/email icons that sit beside text */
.header-phone .icon,
.floating-cta .icon,
.btn .icon { width: 1.1em; height: 1.1em; margin-right: .3em; vertical-align: -0.2em; }
/* Big "check" on thank-you page */
.thank-icon { color: var(--success); }
/* Contact strip card-icons want larger SVGs */
.card-icon[style*="margin-inline"] .icon { width: 32px; height: 32px; }
/* Footer phone line */
.site-footer .icon { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: .3em; }
.card h3 { margin-bottom: var(--s-3); }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange); margin-top: var(--s-3); }
.card .card-link:hover { color: var(--orange-dark); }

/* Case study card */
.case-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.case-image {
  aspect-ratio: 16/9; background: var(--navy-50);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  /* Hide documentation placeholder text */
  font-size: 0; color: transparent;
}
.case-body { padding: var(--s-5); }
.case-tag { display: inline-block; background: var(--navy-50); color: var(--navy-700); padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--s-3); }
.case-savings { font-family: var(--font-display); font-size: 2.2rem; color: var(--success); font-weight: 700; line-height: 1; margin: var(--s-3) 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: var(--s-7); box-shadow: var(--shadow-md);
  border-top: 4px solid var(--orange);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-3); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--s-3); }
.form-field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,90,26,.15);
}
.form-helper { font-size: .8rem; color: var(--muted); margin-top: var(--s-2); }

/* ---------- Testimonial ---------- */
.quote {
  background: #fff; padding: var(--s-7); border-radius: var(--radius-lg);
  border-left: 4px solid var(--orange);
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.6; color: var(--ink);
  position: relative;
}
.quote::before {
  content: '"'; position: absolute; top: -10px; left: 20px; font-size: 5rem; color: var(--orange); opacity: .25; line-height: 1;
}
.quote-author { display: block; margin-top: var(--s-5); font-size: .95rem; font-family: var(--font-sans); color: var(--muted); font-weight: 700; }

/* ---------- Attorney card ---------- */
.attorney {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); align-items: start;
  padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
@media (max-width: 700px) { .attorney { grid-template-columns: 1fr; } }
.attorney-photo {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--navy-50);
  background-size: cover; background-position: center;
  display: grid; place-items: center; text-align: center; padding: var(--s-3);
  /* Hide documentation placeholder text */
  font-size: 0; color: transparent;
}
.attorney-credentials { color: var(--orange); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: 1px; margin-bottom: var(--s-2); }

/* ---------- Floating mobile CTA ---------- */
.floating-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--navy-900); padding: var(--s-3) var(--s-4);
  box-shadow: 0 -4px 12px rgba(0,0,0,.2);
}
.floating-cta a {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  background: var(--orange); color: #fff; padding: 14px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
}
@media (max-width: 900px) {
  .floating-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--orange); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq details p { margin-top: var(--s-3); }

/* ---------- Timeline (vertical process) ---------- */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.timeline-pill {
  display: inline-block;
  background: var(--navy-50);
  color: var(--navy-700);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 99px;
}
.timeline-list {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  position: relative;
}
.timeline-item {
  position: relative;
  padding-left: 68px;
  padding-bottom: var(--s-6);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy-700);
  color: var(--navy-700);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  z-index: 1;
}
/* Connecting line behind the numbers, gradient from navy → success-green */
.timeline-list::before {
  content: '';
  position: absolute;
  left: 22px; top: 22px; bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--navy-700) 0%, var(--navy-700) 40%, var(--success) 100%);
  z-index: 0;
}
/* Style the last circle green to match the resolution moment */
.timeline-item:last-child .timeline-num {
  border-color: var(--success);
  color: var(--success);
}
.timeline-item h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem; font-weight: 700;
  margin: 6px 0 6px;
  color: var(--navy-900);
}
.timeline-item p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Process steps (horizontal — still used on About) ---------- */
.steps { display: grid; gap: var(--s-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  margin-bottom: var(--s-4);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding: var(--s-8) 0 var(--s-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--s-6); margin-bottom: var(--s-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: var(--s-4); }
.footer-grid a { color: rgba(255,255,255,.75); display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: var(--s-3); line-height: 1.5; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--s-5); } .mt-7 { margin-top: var(--s-7); }
.max-prose { max-width: 720px; }
.max-prose-center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Rotating message ---------- */
.rotator {
  display: grid;
  position: relative;
}
.rotator-slide {
  grid-area: 1 / 1;          /* stack all slides in same grid cell */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s ease-in-out, transform .7s ease-in-out;
  pointer-events: none;
}
.rotator-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.rotator-dots {
  grid-area: 2 / 1;
  display: flex; justify-content: center; gap: var(--s-2);
  margin-top: var(--s-6);
}
.rotator-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: 0; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.rotator-dot:hover { background: var(--muted); }
.rotator-dot.is-active { background: var(--orange); transform: scale(1.3); }

/* Image placeholder utility */
.img-slot {
  background: var(--navy-50);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  color: var(--muted); font-size: .8rem; text-align: center; padding: var(--s-4);
  border-radius: var(--radius);
}
