/* ==========================================================================
   JR Taxes & Services — Homepage
   Design system: white + true black text, brand blue #06063D reserved for the
   header bar, buttons, stat band, and accents — same structural role Liebert
   gives green. Zilla Slab / Public Sans / IBM Plex Mono.
   ========================================================================== */

:root {
  /* palette — light (default) */
  --paper: #FFFFFF;
  --surface: #FAFAFC;
  --ink: #121212;
  --ink-soft: #55565F;
  --line: #E6E6EA;
  --white: #FFFFFF;

  --accent: #06063D;
  --accent-dark: #030321;
  --accent-ink: #06063D;
  --accent-soft: #E8E8ED;

  --shadow-soft: 0 1px 2px rgba(18, 18, 18, 0.06);
  --shadow-lift: 0 16px 36px rgba(18, 18, 18, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Single committed light identity — matches Liebert's and JR's own real sites,
   neither of which invert to dark mode. Do not add a prefers-color-scheme override here. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

html, body { overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section {
  padding-block: 88px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.15; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-on-band {
  background: var(--white);
  color: var(--accent-dark);
}
.btn-on-band:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,0.25); }

/* ---------- seal icon (recurring motif) ---------- */
.seal {
  --seal-size: 40px;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seal svg { width: 55%; height: 55%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--accent);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  flex-shrink: 0;
}
.brand-logo { height: 34px; width: auto; flex-shrink: 0; }
.brand > span { white-space: nowrap; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand small { color: var(--ink-soft); }

.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav ul { display: flex; gap: 18px; }
.primary-nav a {
  font-weight: 600;
  font-size: 0.86rem;
  position: relative;
  padding-block: 4px;
  color: var(--white);
  white-space: nowrap;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.lang-switch .is-current { color: var(--white); }
.lang-switch .lang-sep { color: rgba(255, 255, 255, 0.4); }
.lang-switch a { color: rgba(255, 255, 255, 0.65); }
.lang-switch a:hover { color: var(--white); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone svg { width: 15px; height: 15px; color: var(--white); flex-shrink: 0; }

.site-header .btn-primary {
  background: var(--white);
  color: var(--accent);
  padding: 12px 20px;
  font-size: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-label-short { display: none; }
.site-header .btn-primary:hover { background: var(--accent-soft); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--white);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--accent);
  padding: 20px 24px 28px;
}
.mobile-panel ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.25); color: var(--white); }
.mobile-panel .btn { margin-top: 16px; width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding-block: 72px 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem);
  line-height: 1.08;
  margin-block: 18px 20px;
  color: var(--ink);
}
.hero-copy > p {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.hero-badge .seal { --seal-size: 26px; color: var(--line); }
.hero-badge .seal svg { color: var(--accent); }

/* hero visual: founders photo */
.hero-visual { position: relative; height: 460px; }
.hero-photo {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* ---------- band (stats) ---------- */
.band {
  background: var(--accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.band-texture {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 52px;
}
.stat {
  padding-inline: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22ch;
  margin-inline: auto;
}

/* ---------- value prop ---------- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.value-copy p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 18px; }
.value-checklist { display: flex; flex-direction: column; gap: 20px; }
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.value-item .seal { --seal-size: 30px; color: var(--accent); border-style: solid; }
.value-item .seal svg { color: var(--accent); }
.value-item p { font-weight: 600; font-size: 0.98rem; color: var(--ink); }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.2s ease;
}
.service-card:hover { background: var(--surface); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; color: var(--accent); }
.service-card h3 { font-size: 1.18rem; color: var(--ink); }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.service-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link svg { width: 13px; height: 13px; transition: transform 0.15s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 2px dashed var(--line);
}
.step { position: relative; padding-right: 30px; }
.step .step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--accent);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.avatar-cluster { position: relative; height: 280px; }
.avatar-badge {
  position: absolute;
  width: 188px; height: 188px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-lift);
}
.avatar-badge img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.avatar-badge.a1 { left: 0; top: 6px; z-index: 2; }
.avatar-badge.a2 { right: 0; bottom: 0; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; margin: 16px 0 26px; }
.credential-list { display: flex; flex-direction: column; gap: 14px; }
.credential-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.credential-list .seal { --seal-size: 26px; color: var(--line); flex-shrink: 0; margin-top: 1px; }
.credential-list .seal svg { color: var(--accent); }

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { width: 16px; height: 16px; }
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink);
}
.testimonial-attr {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.faq-q .plus::before { width: 11px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 11px; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .plus::after { transform: rotate(90deg) scaleY(0); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 4px 22px; color: var(--ink-soft); max-width: 68ch; font-size: 0.98rem; }

/* ---------- final CTA ---------- */
.cta-band {
  background: var(--accent);
  background-image: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  text-align: center;
  padding-block: 88px;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem); }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 16px auto 30px; max-width: 48ch; font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); color: var(--ink-soft); padding-block: 64px 28px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand small { color: var(--ink-soft); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 34ch; }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.social-row svg { width: 15px; height: 15px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-ink); }
.contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.footer-bottom a:hover { color: var(--accent-ink); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; margin-top: 20px; }
  .value-grid, .about-grid { grid-template-columns: 1fr; }
  .avatar-cluster { margin-bottom: 10px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 720px) {
  .primary-nav, .header-phone, .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .section { padding-block: 60px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding-block: 44px 60px; }
  .wrap { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 0.92rem; gap: 8px; }
  .brand-logo { height: 28px; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
  .site-header .btn-primary { padding: 10px 14px; font-size: 0.8rem; }
  .nav-toggle { width: 34px; height: 34px; }
}
