/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --cream: #F4F6FA;
    --white: #FFFFFF;

    /* Dark sections */
    --navy: #0B1F3A;
    --navy-mid: #122645;

    /* TaxDome blue palette */
    --blue: #1A5FB4;
    --blue-light: #2272D0;
    --blue-bright: #3A8EEA;
    --blue-pale: #E8F0FB;

    /* Warm accent */
    --amber: #E89A3C;
    --amber-light: #F0B05A;
    --amber-pale: #FDF3E3;

    /* Neutrals */
    --border: #C5D3E8;
    --text: #0F1E32;
    --text-muted: #4A5F7A;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    line-height: 1.25;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFade {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 72px;
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(11, 31, 58, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-accent {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--blue); }

.nav-links .nav-cta {
    background: var(--blue);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--blue-light); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.1);
    z-index: 999;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
    background: var(--blue);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    margin-top: 12px;
    padding: 14px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 140px 0 80px;
    background: var(--cream);
}

.hero-content { max-width: 700px; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 0.6s ease 0.2s forwards;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 0.6s ease 0.35s forwards;
}

.hero h1 em {
    color: var(--amber);
    font-style: italic;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 0.6s ease 0.5s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 0.6s ease 0.65s forwards;
}

.hero-cta:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.hero-cta svg { width: 18px; height: 18px; transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(3px); }

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 64px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 0.6s ease 0.8s forwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--blue-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg { width: 22px; height: 22px; color: var(--blue); }

.trust-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--navy);
    padding: 96px 0;
    color: var(--white);
}

.about-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}

.about h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 28px;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.taxdome-badge {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.taxdome-badge-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taxdome-badge-icon svg { width: 28px; height: 28px; color: white; }

.taxdome-badge-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.taxdome-badge-text span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--navy-mid);
    padding: 28px 24px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
    background: var(--white);
    padding: 96px 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 560px;
    line-height: 1.8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--white);
}

.step-number span {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.step-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-pale);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* ============================================
   WHAT YOU GET
   ============================================ */
.services {
    background: var(--cream);
    padding: 96px 0;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
}

.service-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-pale);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--navy);
    margin-bottom: 16px;
}

.service-card > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 36px;
    line-height: 1.8;
}

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

.service-item {
    background: var(--cream);
    border-radius: 12px;
    padding: 24px;
}

.service-item-icon {
    width: 40px;
    height: 40px;
    background: var(--blue-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.service-item-icon svg { width: 20px; height: 20px; color: var(--blue); }

.service-item h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
    background: var(--blue);
    padding: 72px 0;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-band h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    color: var(--white);
    font-weight: 700;
    max-width: 540px;
}

.cta-band h2 em {
    font-style: italic;
    color: var(--amber-light);
}

.cta-band-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--blue);
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.cta-band-btn:hover {
    background: var(--amber-pale);
    transform: translateY(-2px);
}

.cta-band-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.cta-band-btn:hover svg { transform: translateX(3px); }

/* ============================================
   PRICING
   ============================================ */
.pricing {
    background: var(--navy);
    padding: 96px 0;
    color: var(--white);
}

.pricing .section-eyebrow { color: var(--amber); }
.pricing .section-title { color: var(--white); }
.pricing .section-subtitle { color: rgba(255,255,255,0.7); }

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 56px 52px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.pricing-card > p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 440px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--blue-bright);
    margin-top: 3px;
}

.pricing-cta {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.2s;
}

.pricing-cta:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 96px 0;
    background: var(--cream);
}

.faq .section-header { text-align: center; }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
}

.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--blue);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }

.faq-answer { display: none; padding-bottom: 20px; }
.faq-answer.open { display: block; }

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 96px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text);
}

.contact-detail svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-form {
    background: var(--cream);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-pale);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
    background: var(--blue-light);
    transform: translateY(-1px);
}

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }

.form-success svg {
    width: 56px;
    height: 56px;
    color: var(--blue);
    margin: 0 auto 16px;
}

.form-success h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-success p { color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    padding: 48px 0 32px;
    color: rgba(255,255,255,0.7);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-accent {
    color: var(--blue-bright);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-copy a:hover { color: rgba(255,255,255,0.9); }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 120px 0 60px; }
    .trust-strip { grid-template-columns: 1fr 1fr; gap: 16px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-steps { grid-template-columns: 1fr; gap: 36px; }
    .process-steps::before { display: none; }
    .service-grid { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .pricing-card { padding: 44px 32px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 480px) {
    .trust-strip { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }
    .hero h1 { font-size: 1.9rem; }
    .service-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .hero-eyebrow, .hero h1, .hero p, .hero-cta, .trust-strip {
        opacity: 1; transform: none; animation: none;
    }
    .hero-cta:hover, .cta-band-btn:hover, .pricing-cta:hover, .form-submit:hover {
        transform: none;
    }
    .faq-question svg { transition: none; }
}
