/* ================================================================
   TAXEASE PRO — style.css
   Pixel-Perfect · Responsive · Clean Architecture
   ================================================================ */

/* ----------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,600&display=swap');

/* ----------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Brand colours — pulled from Figma assets */
  --blue:          #2B2CF5;
  --blue-dark:     #1A1BCE;
  --blue-deeper:   #0F10A8;
  --blue-tint:     #EEEEFF;
  --blue-tint2:    #D8D9FF;
  --navy:          #0B0C2A;
  --navy-mid:      #1C1E45;
  --white:         #FFFFFF;
  --off-white:     #F5F6FF;
  --text-body:     #4A4C6F;
  --text-muted:    #7E80A3;
  --border:        rgba(43,44,245,0.12);

  /* Typography */
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;

  /* Spacing system (8-pt grid) */
  --sp-2:  4px;
  --sp-4:  8px;
  --sp-6:  12px;
  --sp-8:  16px;
  --sp-10: 20px;
  --sp-12: 24px;
  --sp-16: 32px;
  --sp-20: 40px;
  --sp-24: 48px;
  --sp-32: 64px;
  --sp-40: 80px;
  --sp-48: 96px;

  /* Layout */
  --nav-h:    80px;
  --max-w:    1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl:32px;

  /* Shadows */
  --shadow-s:  0 2px 12px rgba(43,44,245,0.10);
  --shadow-m:  0 8px 32px rgba(43,44,245,0.14);
  --shadow-l:  0 20px 60px rgba(43,44,245,0.18);
  --shadow-card: 0 4px 24px rgba(11,12,42,0.08);

  /* Easing */
  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ----------------------------------------------------------------
   3. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                    { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ----------------------------------------------------------------
   4. LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-12);
}

/* ----------------------------------------------------------------
   5. SCROLL REVEAL SYSTEM
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.70s var(--ease), transform 0.70s var(--ease);
}
.reveal.in-view         { opacity: 1; transform: translateY(0); }
.reveal-d1              { transition-delay: 0.10s; }
.reveal-d2              { transition-delay: 0.20s; }
.reveal-d3              { transition-delay: 0.30s; }
.reveal-d4              { transition-delay: 0.40s; }
.reveal-left            { opacity: 0; transform: translateX(-40px);
                          transition: opacity 0.70s var(--ease), transform 0.70s var(--ease); }
.reveal-left.in-view    { opacity: 1; transform: translateX(0); }
.reveal-right           { opacity: 0; transform: translateX(40px);
                          transition: opacity 0.70s var(--ease), transform 0.70s var(--ease); }
.reveal-right.in-view   { opacity: 1; transform: translateX(0); }

/* ----------------------------------------------------------------
   6. NAVBAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-m); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Nav list */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.navbar__nav li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-mid);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.navbar__nav li a img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar__nav li a:hover,
.navbar__nav li a.active {
  background: var(--blue-tint);
  color: var(--blue);
}

/* Contact CTA button in nav */
.navbar__nav .nav-cta a {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  box-shadow: var(--shadow-s);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.navbar__nav .nav-cta a:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}
.navbar__nav .nav-cta a img {
  filter: brightness(0) invert(1);
}

/* Mobile hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-s);
}
.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.navbar__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ----------------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(145deg, #F0F0FF 0%, #FAFAFF 50%, #EBF0FF 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(43,44,245,0.09) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(43,44,245,0.06) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-32);
  padding: var(--sp-40) 0;
  position: relative;
  z-index: 1;
}

/* ── Hero: Left (text) ── */
.hero__text { max-width: 560px; }

/* Eyebrow badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 6px 16px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint2);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
  animation: fadeUp 0.6s var(--ease) both;
}
.hero__badge-pulse {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Heading — more height, less sprawling width */
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.18;           /* tall lines */
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: var(--sp-8);
  max-width: 480px;            /* constrain width */
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}
.hero__h1 .accent {
  color: var(--blue);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero__h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 7px;
  background: url('assets/underline-Vector.png') center/100% 100% no-repeat;
  pointer-events: none;
}

/* Sub-text */
.hero__sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 440px;
  margin-bottom: var(--sp-12);
  animation: fadeUp 0.7s var(--ease) 0.16s both;
}

/* CTA Row */
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
  animation: fadeUp 0.7s var(--ease) 0.24s both;
}

/* Stats row */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.32s both;
}
.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.hero__stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-sep {
  width: 1px; height: 36px;
  background: var(--border);
}

/* ── Hero: Right (visual) ── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease) 0.12s both;
}
.hero__img-shell {
  position: relative;
  max-width: 500px;
  width: 100%;
}
.hero__img-shell img.hero__main {
  width: 100%;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 28px 56px rgba(43,44,245,0.16));
}

/* Decorative vectors */
.hero__vec1 {
  position: absolute;
  top: 12px; left: -28px;
  width: 52px;
  opacity: 0.55;
  pointer-events: none;
}
.hero__vec2 {
  position: absolute;
  bottom: 50px; right: -16px;
  width: 84px;
  opacity: 0.50;
  pointer-events: none;
}

/* Floating info cards */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  box-shadow: 0 10px 40px rgba(11,12,42,0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 4s ease-in-out infinite;
}
.float-card--trust {
  bottom: 18%;
  left: -48px;
  animation-delay: 0s;
}
.float-card--rating {
  top: 12%;
  right: -36px;
  animation-delay: 2s;
}
.float-card__icon {
  width: 42px; height: 42px;
  background: var(--blue-tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-card__icon img { width: 24px; }
.float-card__body {}
.float-card__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.float-card__lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.float-card__stars { display: flex; gap: 1px; margin-top: 3px; }
.float-card__stars span { color: #F5A623; font-size: 13px; }

/* ----------------------------------------------------------------
   8. SECTION SHARED STYLES
   ---------------------------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-6);
}
.section-eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

/* Section heading — constrained width for good line breaks */
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.20;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 440px;
  margin-bottom: var(--sp-8);
}
.section-h2 .accent { color: var(--blue); font-style: italic; }

.section-p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-body);
  max-width: 460px;
}

/* ----------------------------------------------------------------
   9. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(43,44,245,0.28);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 32px rgba(43,44,245,0.38);
}

.btn-ghost {
  border: 1.5px solid rgba(43,44,245,0.28);
  color: var(--blue);
}
.btn-ghost:hover { background: var(--blue-tint); }

.btn svg, .btn img {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.btn-primary svg, .btn-primary img { filter: brightness(0) invert(1); }

/* ----------------------------------------------------------------
   10. ABOUT SECTION (Section 2)
   ---------------------------------------------------------------- */
.about {
  padding: var(--sp-48) 0;
  background: var(--white);
  overflow: hidden;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-32);
}

/* Visual side */
.about__visual {
  position: relative;
  padding: 20px;
}
.about__img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-tint) 0%, transparent 55%);
  border-radius: var(--radius-xl);
}
.about__img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  z-index: 1;
}
.about__chevrons {
  position: absolute;
  top: -20px; left: -20px;
  width: 90px;
  opacity: 0.45;
  z-index: 2;
}

/* Text side */
.about__text {}

/* Feature checklist */
.about__features {
  margin: var(--sp-10) 0 var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about__feature img {
  width: 26px; height: 26px;
  flex-shrink: 0;
  margin-top: 1px;
  object-fit: contain;
}
.about__feature-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.about__feature-body span {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ----------------------------------------------------------------
   11. SERVICES SECTION
   ---------------------------------------------------------------- */
.services {
  padding: var(--sp-48) 0;
  background: var(--off-white);
  overflow: hidden;
}
.services__head {
  text-align: center;
  margin-bottom: var(--sp-20);
}
.services__head .section-h2 {
  max-width: 420px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}
.services__head .section-p {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* Cards grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 36px 28px 30px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-tint2));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-l);
  border-color: var(--border);
}
.svc-card:hover::after { opacity: 1; }

.svc-card__icon {
  width: 60px; height: 60px;
  background: var(--blue-tint);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.svc-card__icon img { width: 30px; height: 30px; object-fit: contain; }

.svc-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 220px;       /* keeps titles from stretching too wide */
}

.svc-card__desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-body);
  margin-bottom: 22px;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s var(--ease);
}
.svc-card__link:hover { gap: 10px; }
.svc-card__link-arr { font-size: 15px; display: inline-block; }
.svc-card:hover .svc-card__link-arr { transform: translateX(3px); transition: transform 0.2s; }

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: var(--sp-32) 0 var(--sp-12);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-24);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-10);
}
.footer__brand img {
  height: 38px;
  margin-bottom: var(--sp-6);
  filter: brightness(0) invert(1);
}
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 250px; }

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 9px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* ----------------------------------------------------------------
   13. KEYFRAME ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.55; transform:scale(0.78); }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ----------------------------------------------------------------
   14. RESPONSIVE — Tablet (≤1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Hero */
  .hero__grid         { grid-template-columns: 1fr; gap: var(--sp-20); text-align: center; }
  .hero__text         { max-width: 100%; }
  .hero__h1           { max-width: 100%; font-size: clamp(32px, 5vw, 46px); }
  .hero__sub          { max-width: 100%; }
  .hero__actions      { justify-content: center; }
  .hero__stats        { justify-content: center; }
  .hero__visual       { order: -1; }
  .hero__img-shell    { max-width: 400px; margin: 0 auto; }
  .float-card--trust  { left: 0; }
  .float-card--rating { right: 0; }
  .section-eyebrow    { justify-content: center; }

  /* About */
  .about__grid        { grid-template-columns: 1fr; }
  .about__text        { text-align: center; }
  .about__text .section-h2 { max-width: 100%; }
  .about__text .section-p  { max-width: 100%; }
  .about__feature     { flex-direction: column; align-items: center; text-align: center; }

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

  /* Footer */
  .footer__grid       { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------------
   15. RESPONSIVE — Mobile (≤768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  /* Navbar */
  .navbar__nav { display: none; flex-direction: column; gap: 4px; }
  .navbar__nav.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    padding: var(--sp-8) var(--sp-12) var(--sp-10);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-m);
    z-index: 899;
  }
  .navbar__nav.open li { width: 100%; }
  .navbar__nav.open li a { width: 100%; justify-content: flex-start; }
  .navbar__burger { display: flex; }

  /* Hero */
  .hero__grid         { padding: var(--sp-16) 0; }
  .hero__h1           { font-size: clamp(28px, 7vw, 38px); }
  .float-card         { display: none; }

  /* Services */
  .services__grid     { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid       { grid-template-columns: 1fr; }
  .footer__bottom     { flex-direction: column; text-align: center; }
}

/* ----------------------------------------------------------------
   16. RESPONSIVE — Small Mobile (≤480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__actions      { flex-direction: column; align-items: stretch; }
  .btn                { justify-content: center; }
  .hero__stats        { flex-direction: column; align-items: center; gap: 12px; }
  .stat-sep           { display: none; }
  .hero__h1           { font-size: clamp(26px, 8vw, 34px); }
}