/* ==========================================================================
   Accurate Business & Tax Services — Design System
   Modern, professional styling for an accounting & tax firm.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand palette */
  --navy-900: #0a1f3c;
  --navy-800: #0f2a4a;
  --navy-700: #13315c;
  --navy-600: #1d4474;
  --blue-500: #2563eb;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --gold-500: #d4a72c;

  /* Neutrals */
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --text: var(--slate-700);
  --heading: var(--navy-800);
  --accent: var(--teal-600);
  --accent-ink: var(--teal-500);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06), 0 1px 3px rgba(15, 42, 74, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 42, 74, 0.08), 0 2px 6px rgba(15, 42, 74, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 42, 74, 0.14), 0 6px 14px rgba(15, 42, 74, 0.08);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  color: var(--heading);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.1em;
}

ul {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--slate-200);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 660px;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: 1.18rem;
  color: var(--slate-600);
}

.section--navy .lead {
  color: var(--slate-300);
}

.text-muted {
  color: var(--slate-500);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition),
    border-color var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.btn--primary:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.38);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--slate-200);
}

.btn--secondary:hover {
  border-color: var(--teal-600);
  color: var(--teal-600);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.08rem;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--navy-800);
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name strong {
  font-size: 1.12rem;
}

.brand__name span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--slate-700);
}

.nav__links a:hover {
  color: var(--navy-800);
  background: var(--slate-100);
}

.nav__links a.is-active {
  color: var(--teal-600);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__phone {
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.97rem;
}

.nav__phone:hover {
  color: var(--teal-600);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy-800);
}

.nav__toggle svg {
  width: 28px;
  height: 28px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 60%, #07182f 100%);
  color: var(--slate-200);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.22), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--slate-300);
  font-size: 1.22rem;
  margin-bottom: 1.8rem;
  max-width: 36ch;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-400);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--slate-400);
}

.hero__trust span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  color: var(--teal-400);
  flex: none;
}

/* Hero card */
.hero__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.hero__card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
}

.hero__stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.hero__stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.hero__stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--teal-400);
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--slate-400);
}

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
  color: var(--slate-300);
  padding-block: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 620px;
  margin-inline: auto;
  font-size: 1.15rem;
  color: var(--slate-300);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: var(--teal-400);
}

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.card--hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  margin-bottom: 1.3rem;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--slate-600);
  margin-bottom: 0.9rem;
}

.card__link {
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card__link:hover svg {
  transform: translateX(3px);
}

/* ---- Feature list ---- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
}

.feature-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--teal-600);
  margin-top: 0.15rem;
}

/* ---- Split content ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  min-height: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.split__media svg {
  width: 100%;
  height: auto;
}

/* ---- Stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--teal-400);
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--slate-300);
  font-size: 0.95rem;
}

/* ---- Service detail rows ---- */
.service-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--slate-100);
  color: var(--teal-600);
  display: grid;
  place-items: center;
}

.service-block__icon svg {
  width: 32px;
  height: 32px;
}

.service-block h3 {
  margin-bottom: 0.4rem;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-inline: auto;
  font-size: 1.12rem;
}

.cta-band .hero__actions {
  justify-content: center;
  margin-bottom: 0;
  margin-top: 1.8rem;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--teal-600);
  display: grid;
  place-items: center;
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h4 {
  margin: 0 0 0.15rem;
  color: var(--navy-800);
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  font-size: 0.98rem;
}

/* Form */
.form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--slate-50);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form__note {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.8rem;
}

/* ---- Map / embed ---- */
.map-embed {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---- Accordion (FAQ / resources) ---- */
.accordion {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.accordion + .accordion {
  margin-top: 1rem;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal-600);
  transition: transform var(--transition);
}

.accordion[open] summary::after {
  transform: rotate(45deg);
}

.accordion__body {
  padding: 0 1.5rem 1.3rem;
  color: var(--slate-600);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer .brand:hover {
  color: var(--white);
}

.footer-about {
  max-width: 32ch;
  color: var(--slate-400);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--slate-400);
}

.footer-col a:hover {
  color: var(--teal-400);
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--teal-400);
  margin-top: 0.2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.86rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--slate-400);
}

/* ---- Utilities ---- */
.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__card {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split__media {
    min-height: 260px;
    order: -1;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__phone {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links a {
    padding: 0.85rem 1rem;
  }
  .grid--3,
  .grid--2,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .service-block {
    grid-template-columns: 1fr;
  }
}
