/* ════════════════════════════════════════════════════════════════
   SWIFT ACCOUNTING — PREMIUM POLISH ENHANCEMENT
   Visual refinement for 9.5/10 professional consulting-level design
   ═════════════════════════════════════════════════════════════════ */

/* ── COLOR ENHANCEMENTS ───────────────────────────────────────── */
:root {
    --shadow-premium: 0 8px 24px rgba(15,42,68,.12);
    --shadow-elevated: 0 16px 48px rgba(44,166,164,.15);
    --gradient-soft: linear-gradient(135deg, rgba(44,166,164,.05) 0%, rgba(44,166,164,.02) 100%);
}

/* ── HERO SECTION — PREMIUM ELEVATION ───────────────────────── */
.hero {
    min-height: 680px;
    padding: 120px 0 100px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 28px;
    max-width: 800px;
}

.hero-sub {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.8;
    color: rgba(255,255,255,.8);
    max-width: 650px;
    margin-bottom: 48px;
    font-weight: 500;
}

.hero-badge {
    backdrop-filter: blur(12px);
    background: rgba(44,166,164,.25);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* Enhanced CTA buttons in hero */
.hero .btn-primary {
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(44,166,164,.25);
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.1);
    transition: left 0.3s cubic-bezier(.22,1,.36,1);
    z-index: -1;
}

.hero .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(44,166,164,.35);
    transform: translateY(-2px);
}

.hero .btn-secondary {
    border: 2px solid rgba(255,255,255,.4);
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
}

.hero .btn-secondary:hover {
    border-color: var(--teal);
    background: rgba(44,166,164,.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(44,166,164,.2);
}

/* ── TRUST BAR ENHANCEMENT ──────────────────────────────────── */
.trust-bar {
    background: linear-gradient(135deg, var(--navy) 0%, rgba(15,42,68,.95) 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.trust-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(44,166,164,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(44,166,164,.04) 0%, transparent 50%);
    pointer-events: none;
}

.trust-grid {
    position: relative;
    z-index: 1;
}

.stat-val {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.025em;
}

/* ── SERVICE CARDS — PREMIUM TRANSFORMATION ───────────────── */
.services-grid {
    gap: 28px;
}

.svc-card {
    padding: 36px 32px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(44,166,164,.08);
    box-shadow: 0 4px 16px rgba(15,42,68,.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
}

.svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}

.svc-card > * {
    position: relative;
    z-index: 1;
}

.svc-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(44,166,164,.25);
    background: rgba(255,255,255,.98);
}

.svc-card:hover::after {
    opacity: 1;
}

.svc-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    background: rgba(44,166,164,.15);
    box-shadow: 0 6px 16px rgba(44,166,164,.2);
}

/* Premium card icon styling */
.svc-card .card-icon {
    width: 52px;
    height: 52px;
    background: rgba(44,166,164,.12);
    border: 1.5px solid rgba(44,166,164,.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 2px 8px rgba(44,166,164,.1);
}

.svc-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
    line-height: 1.4;
}

.svc-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-500);
    margin-bottom: 16px;
    flex: 1;
}

.svc-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
}

.svc-link:hover {
    color: var(--navy);
    gap: 14px;
}

/* Dark variant enhancement */
.svc-card-dark {
    background: linear-gradient(135deg, var(--navy) 0%, rgba(15,42,68,.95) 100%);
    border-color: rgba(255,255,255,.1);
}

.svc-card-dark:hover {
    box-shadow: 0 12px 40px rgba(44,166,164,.2);
}

/* ── SECTION BACKGROUNDS — VISUAL RHYTHM ────────────────────── */
section {
    position: relative;
}

section.light {
    background: linear-gradient(180deg,
        var(--gray-50) 0%,
        rgba(255,255,255,.8) 50%,
        rgba(236,244,247,.8) 100%);
}

section.light::before {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(44,166,164,.04) 1px, transparent 1px),
        linear-gradient(45deg, transparent 24%, rgba(44,166,164,.03) 25%, rgba(44,166,164,.03) 26%, transparent 27%),
        linear-gradient(-45deg, transparent 24%, rgba(44,166,164,.03) 25%, rgba(44,164,44,.03) 26%, transparent 27%);
    background-size: 50px 50px, 50px 50px, 50px 50px;
}

/* Alternate section backgrounds */
section:nth-of-type(2n) {
    background: var(--white);
}

/* Preserve dark section backgrounds regardless of nth-of-type rule */
section.dark {
    background: linear-gradient(135deg, #0f2a44 0%, rgba(15,42,68,.95) 100%) !important;
}

section:nth-of-type(2n+1).light {
    background: linear-gradient(180deg,
        rgba(244,249,251,.6) 0%,
        rgba(255,255,255,.8) 100%);
}

/* ── CARDS & CONTAINERS — DEPTH ENHANCEMENT ────────────────── */
.card {
    border-radius: 14px;
    padding: 32px;
    border: 1px solid rgba(44,166,164,.08);
    background: var(--white);
    box-shadow: 0 2px 12px rgba(15,42,68,.04);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    box-shadow: var(--shadow-premium);
    border-color: rgba(44,166,164,.2);
    transform: translateY(-6px);
}

.card:hover::before {
    opacity: 1;
}

/* ── WHY CHOOSE US SECTION — PREMIUM STYLING ──────────────── */
.why-card {
    border-radius: 14px;
    padding: 36px;
    background: var(--white);
    border: 1px solid rgba(44,166,164,.08);
    box-shadow: 0 4px 16px rgba(15,42,68,.06);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.why-card > * {
    position: relative;
    z-index: 1;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(44,166,164,.3);
}

.why-card:hover::before {
    opacity: 1;
}

.why-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(44,166,164,.2) 0%, rgba(44,166,164,.08) 100%);
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(44,166,164,.15);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    margin-bottom: 18px;
}

.why-card:hover .why-num {
    transform: scale(1.2) rotate(-8deg);
    box-shadow: 0 8px 24px rgba(44,166,164,.25);
    background: linear-gradient(135deg, rgba(44,166,164,.3) 0%, rgba(44,166,164,.15) 100%);
}

.why-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
}

.why-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-500);
}

/* ── BUTTONS — PREMIUM ENHANCEMENT ──────────────────────────── */
.btn {
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    padding: 13px 28px;
}

.btn-primary:hover {
    background: var(--teal-dark);
    box-shadow: 0 8px 24px rgba(44,166,164,.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--gray-200);
    padding: 12px 27px;
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 6px 20px rgba(44,166,164,.15);
    background: rgba(44,166,164,.02);
}

/* ── TYPOGRAPHY ENHANCEMENTS ──────────────────────────────── */
h1 {
    letter-spacing: -.03em;
}

h2 {
    letter-spacing: -.015em;
    margin-bottom: 18px;
}

h3 {
    letter-spacing: -.01em;
}

p {
    letter-spacing: -.005em;
}

strong {
    font-weight: 700;
}

/* ── CALLOUT SECTIONS ────────────────────────────────────── */
.callout-band {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(236,244,247,.8) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.callout-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(44,166,164,.08) 0%, transparent 50%);
    pointer-events: none;
}

.callout-inner {
    position: relative;
    z-index: 1;
    background: var(--white);
    border: 1px solid rgba(44,166,164,.1);
    border-radius: 14px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15,42,68,.06);
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
}

.callout-inner:hover {
    box-shadow: var(--shadow-premium);
    border-color: rgba(44,166,164,.25);
    transform: translateY(-2px);
}

.callout-icon {
    font-size: 32px;
    opacity: 0.9;
}

.callout-text h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.callout-text p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ── MICRO ANIMATIONS ───────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(44,166,164,.4); }
    50% { box-shadow: 0 0 0 10px rgba(44,166,164,0); }
}

.fade-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ENHANCEMENTS ────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        min-height: 600px;
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: clamp(32px, 5vw, 52px);
        margin-bottom: 24px;
    }

    .svc-card {
        padding: 32px 28px;
    }

    .svc-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .callout-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px;
    }

    .callout-icon {
        text-align: center;
    }
}

@media (max-width: 580px) {
    .hero {
        min-height: 520px;
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: clamp(28px, 4vw, 44px);
        margin-bottom: 20px;
    }

    .hero-sub {
        font-size: clamp(15px, 2vw, 18px);
        margin-bottom: 36px;
    }

    .svc-card {
        padding: 28px 24px;
    }

    .svc-card .card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .svc-card h3 {
        font-size: 16px;
    }

    .svc-card p {
        font-size: 13px;
    }

    .why-card {
        padding: 28px 24px;
    }

    .why-num {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .callout-inner {
        padding: 28px 20px;
    }
}

/* ── ACCESSIBILITY ENHANCEMENTS ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode support later */
}
