/* ============================================================
   ASF Tax & Accounting Services — styles
   Palette drawn from the ASF logo: indigo navy + deep green
   ============================================================ */

:root {
  --navy: #2c2f7c;
  --navy-deep: #1b1e52;
  --navy-ink: #14173f;
  --green: #1e5c3a;
  --green-bright: #2e7d4f;
  --paper: #faf9f6;
  --cloud: #f1f2f8;
  --white: #ffffff;
  --ink: #20223a;
  --muted: #5b5e75;
  --line: #e4e5ee;

  --font-display: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 63, 0.06), 0 4px 14px rgba(20, 23, 63, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 23, 63, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 23, 63, 0.18);

  --container: 1140px;
  --header-h: 130px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3.2rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--cloud); color: var(--navy-deep); transform: translateY(-2px); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(20, 23, 63, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand-logo { height: 104px; width: auto; }

.main-nav {
  flex: 1;
  display: flex;
  padding-inline: 1.5rem;
}
.main-nav ul {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-deep);
}
.header-phone svg {
  width: 17px;
  height: 17px;
  fill: var(--green-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6.5rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52rem 34rem at 88% -12%, rgba(46, 125, 79, 0.14), transparent 60%),
    radial-gradient(46rem 30rem at -10% 110%, rgba(44, 47, 124, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-points-lang {
  flex-basis: 100%;
  margin-top: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  max-width: 26rem;
}
.hero-note {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 30rem;
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  flex: none;
}

.hero-media { position: relative; }
.hero-arch {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  aspect-ratio: 0.92;
}
.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge-card {
  position: absolute;
  left: -1.4rem;
  bottom: 2.2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  max-width: 190px;
}
.hero-badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.hero-badge-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding: 2.6rem 0;
}
.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.trust-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logo { height: 62px; width: auto; }
.trust-divider {
  width: 1px;
  height: 54px;
  background: var(--line);
}
.trust-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

/* ---------- Services ---------- */
.services { background: var(--paper); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 125, 79, 0.35);
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(44, 47, 124, 0.1), rgba(46, 125, 79, 0.14));
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.card > p { color: var(--muted); margin-bottom: 1.2rem; }
.card-list {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  font-size: 0.95rem;
}
.card-list li {
  position: relative;
  padding-left: 1.5rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--green-bright);
  border-bottom: 2px solid var(--green-bright);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- How it works ---------- */
.steps {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  position: relative;
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.step:nth-child(2) .step-number { background: var(--green); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- About ---------- */
.about { background: var(--cloud); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 0.92;
  object-fit: cover;
  width: 100%;
}
.about-credentials {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1.1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  width: max-content;
  max-width: 100%;
}
.chip {
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip:nth-child(2) { background: var(--green); }
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.about-copy p { color: var(--muted); }
.lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.lang-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-right: 0.3rem;
}
.lang-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem 2.5rem;
  margin: 2rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about-stats dt {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.about-stats dd {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(40rem 20rem at 110% -20%, rgba(46, 125, 79, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #353a8f);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-inner { text-align: center; max-width: 720px; }
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}
.cta-inner p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }
.cta-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.contact-note {
  margin: 1.8rem auto 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  max-width: 34rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
a.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(44, 47, 124, 0.35);
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(44, 47, 124, 0.1), rgba(46, 125, 79, 0.14));
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--navy);
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; font-family: var(--font-body); font-weight: 700; }
.contact-card p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.contact-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-bright);
}
.contact-hours {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255, 255, 255, 0.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-logo {
  height: 46px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 1.1rem;
}
.footer-brand p { font-size: 0.92rem; max-width: 26rem; }
.footer-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}
.footer-badges img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.94rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 0;
  font-size: 0.84rem;
}
.footer-bar-inner p { margin: 0; }
.footer-cred { color: rgba(255, 255, 255, 0.5); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 430px; margin: 0 auto; }
  .hero-badge-card { left: auto; right: -0.8rem; }
  .card-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 430px; margin: 0 auto 2rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 106px; }
  .brand-logo { height: 84px; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.7rem 0.2rem; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav { margin-left: 0; }
  .header-actions .btn { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-logo { height: 50px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-badge-card { padding: 0.8rem 1rem; }
}
