﻿/* tax-landing-page.css */
/* Refactor goals:
   - predictable tokens (spacing scale, colors, radii)
   - cascade layers (@layer) for maintainable overrides
   - accessible focus styles (:focus-visible)
   - responsive nav that works on mobile without JS (details/summary)
*/

@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { height: 100%; }
  html, body { overflow-x: hidden; }
  body { margin: 0; }
  img { max-width: 100%; height: auto; display: block; }
  input, select, textarea, button { font: inherit; }
}

@layer base {
  :root {
    /* colors */
    --ink: #0b1b2a;
    --muted: #577085;
    --bg: #ffffff;
    --panel: #f3f6fb;
    --line: rgba(13, 35, 56, 0.12);

    --primary: #1f6feb;
    --accent: #28a745;

    /* spacing scale */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.5rem;
    --s6: 2rem;
    --s7: 3rem;
    --s8: 4rem;

    /* radii + shadows */
    --r1: 14px;
    --r2: 22px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.10);

    --max: 1120px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
  }

  a { color: inherit; text-decoration: none; }
  a:hover { text-decoration: underline; }

  .container {
    width: min(var(--max), calc(100% - 2 * var(--s5)));
    margin-inline: auto;
  }

  .muted { color: var(--muted); }

  /* Skip link (keyboard / bypass blocks) */
  .skip-link {
    position: absolute;
    z-index: 100;
    left: var(--s4);
    top: var(--s4);
    padding: var(--s2) var(--s3);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-200%);
  }
  .skip-link:focus-visible { transform: translateY(0); }

  /* Focus */
  :focus-visible {
    outline: 3px solid rgba(31, 111, 235, 0.55);
    outline-offset: 2px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@layer layout {
  .section { padding: var(--s8) 0; }
  .section-muted { background: linear-gradient(180deg, #f7f9ff, #ffffff); }

  .section-head { text-align: center; margin-bottom: var(--s6); }
  .section-head--left { text-align: left; }
  .section-head h2 { margin: 0 0 var(--s2); font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
  .section-head p { margin: 0; color: var(--muted); }

  .grid { display: grid; gap: var(--s4); }
}

@layer components {
  /* buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 0.85rem 1.1rem;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow .15s ease;
  }
  .btn:hover { transform: translateY(-1px); filter: brightness(1.02); box-shadow: var(--shadow-soft); }
  .btn:active { transform: translateY(0); }

  .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 111, 235, 0.25);
  }

  .btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.22);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(8px);
  }

  .btn-ghost-dark {
    background: rgba(11, 27, 42, 0.06);
    border-color: rgba(11, 27, 42, 0.12);
    color: var(--ink);
  }

  .btn-full { width: 100%; border-radius: var(--r1); }

  /* topbar */
  .topbar {
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 20;
    background: rgba(10, 28, 45, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: var(--s3) 0;
    gap: var(--s4);
  }

  .brand { display: flex; align-items: center; }
  .brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
  }

  /* details/summary nav */
  .nav-disclosure { position: relative; }

  .nav-toggle {
    list-style: none;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(8px);
  }

  .nav-toggle::-webkit-details-marker { display: none; }

  .nav-links {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.5rem 0.35rem;
    border-bottom: 2px solid transparent;
  }
  .nav-links a:not(.btn):hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
  }

  .nav-link-btn {
    padding: 0.48rem 0.8rem;
    border-color: rgba(255, 255, 255, 0.28);
    font-size: 0.86rem;
  }

  /* hero */
  .hero{
  overflow: hidden;

    position: relative;
    width: 100%;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: visible;
    background: #0a1c2d; /* fallback */
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("/image/website-portfolio-2-images/background-photo-1.jpg");
    background-image: image-set(
      url("/image/website-portfolio-2-images/background-photo-1.jpg") 1x,
      url("/image/website-portfolio-2-images/background-photo-1.jpg") 1.5x,
      url("/image/website-portfolio-2-images/background-photo-1.jpg") 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: none;
    clip-path: inset(0);
    z-index: 0;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0) 100%),
      radial-gradient(900px 500px at 25% 30%, rgba(31, 111, 235, 0.30), transparent 60%),
      radial-gradient(900px 500px at 80% 30%, rgba(40, 167, 69, 0.25), transparent 60%);
    clip-path: inset(0);
    z-index: 1;
  }

  .hero-person{
  position:absolute;
  right: 0;
  bottom: 0;
  height: clamp(260px, 62vh, 520px);
  width: auto;
  max-width: min(520px, 78vw);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.35));
}

  .hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: var(--s7);
    padding: var(--s8) 0 var(--s7);
    align-items: center;
  }

  .eyebrow {
    margin: 0 0 var(--s2);
    color: rgba(255,255,255,.85);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
  }

  .hero-left h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 var(--s3);
    letter-spacing: -0.6px;
  }

  .hero-subtitle {
    color: rgba(255, 255, 255, 0.84);
    max-width: 52ch;
    margin: 0 0 var(--s5);
    font-size: 1.05rem;
  }

  .hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }

  .hero-badges {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
    padding: 0;
    margin: var(--s4) 0 0;
    list-style: none;
  }

  .badge {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
    backdrop-filter: blur(8px);
  }

  .hero-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r2);
    padding: var(--s5);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
  }

  .hero-card-title { font-weight: 900; font-size: 1.2rem; margin: 0 0 var(--s2); }
  .hero-card-body { color: rgba(255, 255, 255, 0.86); margin: 0 0 var(--s4); }

  .hero-card-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
  .pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
  }

  .hero-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
    margin-top: var(--s3);
    padding-top: var(--s3);
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .hero-mini__label { display: block; font-size: 0.82rem; color: rgba(255,255,255,.78); font-weight: 800; }
  .hero-mini__value { display: block; font-size: 1.05rem; font-weight: 900; }

  /* about */
  .about {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--s7);
    align-items: center;
  }

  .about-media img {
    border-radius: var(--r2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .about-copy h2 { margin: 0 0 var(--s2); font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
  .about-copy p { margin: 0 0 var(--s4); color: var(--muted); max-width: 62ch; }

  .checklist { margin: 0; padding-left: 1.1rem; font-weight: 800; }
  .checklist li { margin: 0.45rem 0; }

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

  .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r1);
    padding: var(--s5);
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

  .card-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: var(--s3);
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.10));
  }

  .card h3 { margin: 0 0 var(--s2); font-size: 1.15rem; }
  .card p { margin: 0 0 var(--s3); color: var(--muted); }
  .meta { margin: 0; font-weight: 900; color: rgba(11, 27, 42, 0.78); font-size: 0.92rem; }

  .section-cta {
    margin-top: var(--s6);
    display: flex;
    justify-content: center;
    gap: var(--s3);
    flex-wrap: wrap;
  }

  /* testimonials */
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .testimonial {
    margin: 0;
    padding: var(--s5);
    border-radius: var(--r2);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }
  .testimonial blockquote {
    margin: 0 0 var(--s4);
    font-size: 1.02rem;
    color: rgba(11,27,42,.92);
  }
  .who { font-weight: 900; }
  .what { color: var(--muted); }

  /* contact */
  .contact {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--s7);
    align-items: start;
  }

  .contact-left h2 { margin: 0 0 var(--s2); font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
  .contact-left p { margin: 0 0 var(--s5); color: var(--muted); max-width: 60ch; }

  .contact-list { display: grid; gap: var(--s3); }

  .contact-item {
    border: 1px solid var(--line);
    border-radius: var(--r1);
    padding: var(--s4);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .contact-label { display: block; font-weight: 900; margin-bottom: var(--s1); }

  .contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: var(--s5);
    box-shadow: var(--shadow-soft);
  }

  .form-title { margin: 0 0 var(--s4); font-weight: 900; font-size: 1.15rem; }

  .contact-form label {
    display: block;
    font-weight: 900;
    margin-bottom: var(--s4);
    color: rgba(11, 27, 42, 0.92);
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    margin-top: var(--s2);
    padding: 0.85rem 0.9rem;
    border-radius: var(--r1);
    border: 1px solid rgba(11, 27, 42, 0.18);
    outline: none;
    background: #fff;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: rgba(31, 111, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
  }

  .fineprint { margin: var(--s4) 0 0; font-size: 0.88rem; color: rgba(11, 27, 42, 0.65); }

  /* footer */
  .footer {
    background: #0a1c2d;
    color: rgba(255, 255, 255, 0.86);
    padding: var(--s7) 0 var(--s5);
    margin-top: var(--s5);
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--s6);
  }

  .footer-brand { margin: 0 0 var(--s2); font-weight: 900; font-size: 1.05rem; }
  .footer-muted { margin: 0; color: rgba(255, 255, 255, 0.72); max-width: 52ch; }

  .footer-right { display: flex; gap: var(--s6); }
  .footer-title { margin: 0 0 var(--s2); font-weight: 900; }

  .footer a { color: rgba(255,255,255,.90); }
  .footer a:hover { text-decoration: underline; }

  .footer-bottom {
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.75);
  }

  /* responsive */
  @media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-person{
  position:absolute;
  right: 0;
  bottom: 0;
  height: clamp(260px, 62vh, 520px);
  width: auto;
  max-width: min(520px, 78vw);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.35));
}
    .about, .contact { grid-template-columns: 1fr; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .hero {
      min-height: auto;
    }
    .hero-inner {
      gap: var(--s5);
      padding: var(--s7) 0 var(--s6);
    }
  }

  @media (max-width: 760px) {
    /* nav becomes a dropdown panel */
    .container {
      width: min(var(--max), calc(100% - 2 * var(--s4)));
    }
    .topbar {
      position: static;
    }
    .nav {
      justify-content: center;
      align-items: center;
      gap: var(--s3);
    }
    .brand {
      width: 100%;
      justify-content: center;
    }
    .nav-links {
      justify-content: center;
      width: 100%;
      gap: var(--s2);
    }
    .topbar .btn {
      width: auto;
      white-space: nowrap;
    }
    .nav-links .btn {
      padding: 0.45rem 0.7rem;
      font-size: 0.82rem;
      min-height: 44px;
    }
    .nav > .btn-accent {
      width: min(340px, 100%);
    }

    .services { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero-cta { width: 100%; }
    .hero {
      min-height: auto;
    }
    .hero-inner {
      padding: var(--s6) 0 var(--s5);
      gap: var(--s4);
    }
    .hero-left h1 {
      font-size: clamp(1.8rem, 8.8vw, 2.4rem);
    }
    .hero-subtitle {
      font-size: 0.98rem;
    }
    .hero-card {
      width: 100%;
      padding: var(--s4);
    }
    .section {
      padding: var(--s7) 0;
    }
    .hero-person{
  position:absolute;
  right: 0;
  bottom: 0;
  height: clamp(260px, 62vh, 520px);
  width: auto;
  max-width: min(520px, 78vw);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.35));
}
    .footer-right { flex-direction: column; }
  }

  @media (max-width: 520px) {
    .container {
      width: min(var(--max), calc(100% - 1.2rem));
    }
    .hero-cta .btn,
    .section-cta .btn {
      width: 100%;
    }
    .nav-links a:not(.btn) {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.55rem 0.5rem;
    }
    .card,
    .contact-form,
    .testimonial {
      padding: var(--s4);
    }
    .footer {
      padding: var(--s6) 0 var(--s4);
    }
  }

  @media (max-width: 380px) {
    .brand-logo {
      height: 36px;
    }
    .hero-left h1 {
      font-size: clamp(1.55rem, 9vw, 2rem);
    }
    .hero-subtitle {
      font-size: 0.92rem;
    }
    .badge,
    .pill {
      font-size: 0.76rem;
    }
  }

  @media (max-width: 820px) and (orientation: landscape) {
    .hero {
      min-height: auto;
    }
    .hero-inner {
      padding: var(--s5) 0 var(--s4);
    }
    .hero-person{
  position:absolute;
  right: 0;
  bottom: 0;
  height: clamp(260px, 62vh, 520px);
  width: auto;
  max-width: min(520px, 78vw);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.35));
}
    .hero-card {
      max-width: 520px;
    }
  }

}

@layer utilities {
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}


/* Mobile: stack nav and prevent button overflow */
@media (max-width: 900px) {
  .nav { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; flex-wrap: wrap; }
  .nav > .btn, .btn { width: 100%; }
}

/* Mobile: collapse grids */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr !important; }
  .testimonials { grid-template-columns: 1fr !important; }
  .about, .contact { grid-template-columns: 1fr !important; }
}

/* Small phones: hide the person image */
@media (max-width: 600px) {
  .hero-person { display: none; }
}
