/* ==========================================================================
   Homepage styles — loaded only by index.html (body.home).
   Scoped so the shared styles.css and other pages are unaffected.
   ========================================================================== */

.home {
    --ink: #0f2747;
    --ink-soft: #3d5170;
    --muted: #5f6f86;
    --brand: #2c6ecb;
    --brand-dark: #1f56a3;
    --brand-tint: #eaf2fd;
    --accent: #ff8a5c;
    --accent-tint: #fff1ea;
    --surface: #ffffff;
    --surface-alt: #f5f8fc;
    --line: #e3e9f2;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 39, 71, 0.06), 0 2px 8px rgba(15, 39, 71, 0.05);
    --shadow-md: 0 8px 30px rgba(15, 39, 71, 0.08);

    color: var(--ink-soft);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

.home h1, .home h2, .home h3, .home h4 { color: var(--ink); letter-spacing: -0.01em; }
.home section { padding: 5.5rem 0; }

/* Accessibility helpers */
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }
.home a:focus-visible, .home button:focus-visible, .home input:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* Section headings */
.home .section-header { max-width: 720px; margin: 0 auto 3.5rem; }
.home .section-header h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.home .section-header p { color: var(--muted); }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem;
}

/* Buttons */
.home .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
    line-height: 1.2; border: 2px solid transparent;
}
.home .primary-btn { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(44, 110, 203, 0.28); }
.home .primary-btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.home .secondary-btn { background: var(--surface); border-color: var(--line); color: var(--ink); }
.home .secondary-btn:hover { border-color: var(--brand); background: var(--surface); color: var(--brand); }
.home .btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.home .btn .arrow-icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.home .btn:hover .arrow-icon { transform: translateX(3px); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Header */
.home header { background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(12px); box-shadow: none; border-bottom: 1px solid var(--line); }
.home header .container { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.logo-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.logo-link:hover { color: var(--ink); }
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), #5aa0f2); color: #fff; font-size: 0.85rem; font-weight: 700;
}
.home .nav-menu li { margin-left: 1.75rem; }
.home .nav-menu a:not(.btn) { color: var(--ink-soft); font-size: 0.95rem; position: relative; }
.home .nav-menu a:not(.btn).active, .home .nav-menu a:not(.btn):hover { color: var(--brand); }
.home .nav-menu a:not(.btn).active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand);
}
.home .nav-menu .btn { padding: 0.6rem 1.15rem; font-size: 0.92rem; box-shadow: none; }

/* Hero */
.hero-home {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(90, 160, 242, 0.22), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(255, 138, 92, 0.14), transparent 60%),
        var(--surface-alt);
}
.home section.hero-home { padding: 5.5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
    margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.hero-home h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.12; margin-bottom: 1.25rem; font-weight: 700; }
.hero-home h1 .highlight { color: var(--brand); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.25rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.hero-checks li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.93rem; font-weight: 500; color: var(--ink); }
.hero-checks .icon { width: 18px; height: 18px; color: #16a34a; stroke-width: 2.5; }

.hero-card {
    background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--line); position: relative;
}
.hero-card::before {
    content: ""; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px; border-radius: 24px;
    background: var(--accent-tint); z-index: -1;
}
.hero-card h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.hero-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.path-list { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.path-option {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius);
    border: 1px solid var(--line); color: var(--ink); background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.path-option:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.path-option .path-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; }
.path-option.alt .path-icon { background: var(--accent-tint); color: #d9622f; }
.path-option strong { display: block; font-size: 0.98rem; font-weight: 600; }
.path-option span { display: block; font-size: 0.85rem; color: var(--muted); }
.path-option .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.hero-card-foot { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); padding-top: 1.25rem; border-top: 1px dashed var(--line); margin: 0; }
.hero-card-foot a { font-weight: 600; }

/* Trust strip */
.home section.trust-strip { padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 0.85rem; padding: 1.6rem 1.25rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon { color: var(--brand); width: 26px; height: 26px; }
.trust-item strong { display: block; color: var(--ink); font-size: 0.95rem; }
.trust-item span { font-size: 0.83rem; color: var(--muted); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.intro-grid h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.intro-body p { font-size: 1.04rem; }
.intro-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Services */
.home .services { background: var(--surface-alt); }
.home .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home .service-card {
    display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface);
}
.home .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.home .service-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); position: relative; }
.badge {
    position: absolute; top: -12px; left: 2rem; background: var(--brand); color: #fff; font-size: 0.75rem;
    font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px;
}
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 1.25rem; }
.home .service-card h3 { text-align: left; font-size: 1.2rem; margin-bottom: 0.75rem; }
.home .service-card p { color: var(--muted); font-size: 0.97rem; }
.card-list { margin: 0.25rem 0 1.5rem; display: grid; gap: 0.5rem; }
.card-list li { display: flex; gap: 0.5rem; font-size: 0.93rem; color: var(--ink-soft); }
.card-list .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; stroke-width: 2.5; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.card-link .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.card-link:hover .icon { transform: translateX(3px); }

/* Steps */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.step { position: relative; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface-alt); }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
    background: var(--surface); color: var(--brand); border: 2px solid var(--brand-tint); margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0; }
.step a { font-weight: 600; }

/* Features (why choose us) */
.home .features { background: var(--ink); }
.home .features .section-header h2 { color: #fff; }
.home .features .section-header p { color: #b8c5da; }
.home .features .eyebrow { color: #8ec0ff; }
.home .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.home .feature-card {
    display: flex; gap: 1.25rem; padding: 1.75rem; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
}
.home .feature-card:hover { box-shadow: none; background: rgba(255, 255, 255, 0.08); }
.home .feature-card .card-icon { background: rgba(142, 192, 255, 0.14); color: #8ec0ff; margin-bottom: 0; }
.home .feature-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.home .feature-card p { color: #b8c5da; font-size: 0.95rem; margin-bottom: 0; }

/* About */
.home .about-content { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
.home .about-text h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.home .about-text h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.about-panel {
    border-radius: var(--radius-lg); padding: 2.25rem; color: #fff;
    background: linear-gradient(150deg, var(--brand) 0%, #1b4f97 100%); box-shadow: var(--shadow-md);
}
.about-panel h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.25rem; }
.team-roles { display: grid; gap: 0.9rem; margin-bottom: 1.75rem; }
.team-roles li { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.1); font-weight: 500; }
.team-roles .icon { color: #cfe3ff; }
.about-panel blockquote { font-size: 0.98rem; line-height: 1.6; color: #e1ecfb; border-left: 3px solid var(--accent); padding-left: 1rem; margin: 0; }

/* Blog */
.home .blog-preview { background: var(--surface-alt); }
.home .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.home .blog-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.home .blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
    height: 150px; display: flex; align-items: flex-end; padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #dceafd, #f2f7ff);
}
.blog-thumb.t2 { background: linear-gradient(135deg, #ffe5d8, #fff5ef); }
.blog-thumb.t3 { background: linear-gradient(135deg, #dcf5e8, #f1fbf5); }
.blog-tag { background: var(--surface); color: var(--ink); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.home .blog-content { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.home .blog-content h3 { font-size: 1.1rem; line-height: 1.4; }
.home .blog-content h3 a { color: var(--ink); }
.home .blog-content h3 a:hover { color: var(--brand); }
.home .blog-date { margin-bottom: 0.6rem; }
.home .blog-content p:not(.blog-date) { font-size: 0.93rem; color: var(--muted); }
.home .read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; }
.home .blog-cta { margin-top: 2.5rem; }

/* Sister sites */
.home section.sister-sites { padding: 4.5rem 0; }
.sister-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.sister-card {
    display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border-radius: var(--radius-lg);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.sister-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink-soft); }
.sister-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.sister-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 0.75rem; }
.sister-card .card-link { color: var(--brand); }
.sister-card .card-icon { margin-bottom: 0; }
.sister-card.alt .card-icon { background: var(--accent-tint); color: #d9622f; }

/* CTA */
.home section.cta { padding: 0 0 5.5rem; background: var(--surface); color: inherit; }
.cta-box {
    border-radius: 28px; padding: 3.5rem 2rem; text-align: center; color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, #1b4f97 100%);
    box-shadow: 0 20px 50px rgba(31, 86, 163, 0.3);
}
.home .cta h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.home .cta p { color: #e1ecfb; font-size: 1.08rem; }
.home .cta .cta-buttons { flex-wrap: wrap; margin-bottom: 1.5rem; }
.home .cta .primary-btn { background: #fff; color: var(--brand-dark); box-shadow: none; }
.home .cta .primary-btn:hover { background: #f0f6ff; color: var(--brand-dark); }
.home .cta .secondary-btn { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.home .cta .secondary-btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-email { font-size: 0.95rem !important; margin: 0 auto !important; }
.cta-email a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.home footer { background: #0b1d36; }
.home .footer-content { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.home .footer-logo p, .home .footer-contact p { color: #9fb0c8; font-size: 0.93rem; }
.home .footer-links a, .home .footer-contact a { color: #c3d0e2; font-size: 0.93rem; }
.home .footer-links a:hover, .home .footer-contact a:hover { color: #fff; }
.home .footer-links h4, .home .footer-contact h4, .home .footer-subscribe h4 { font-size: 0.95rem; margin-bottom: 1rem; }
.home .footer-subscribe { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); }
.home .footer-subscribe h4 { margin-bottom: 0; }
.home .subscribe-form { flex: 1; max-width: 460px; }
.home .subscribe-form input { border-radius: 999px; padding: 0.8rem 1.1rem; font-family: inherit; min-width: 0; }
.home .subscribe-form .btn { box-shadow: none; }
.home .footer-bottom p { color: #8496b0; font-size: 0.88rem; margin: 0; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
    .home *, .home *::before, .home *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .intro-grid, .home .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-card { max-width: 560px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-left: none; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .home .services-grid, .home .blog-grid { grid-template-columns: 1fr 1fr; }
    .home .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .home section { padding: 4rem 0; }
    .home section.hero-home { padding: 3rem 0 3rem; }
    .home .container { padding-left: 1rem; padding-right: 1rem; }
    .home .nav-menu.mobile li { margin: 0.75rem 0; }
    .home .nav-menu.mobile a:not(.btn).active::after { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-card { padding: 1.5rem; }
    .hero-card::before { display: none; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item { padding: 1.1rem 0.5rem; gap: 0.6rem; }
    .trust-item .icon { width: 22px; height: 22px; }
    .steps-grid, .home .services-grid, .home .blog-grid, .home .features-grid, .sister-grid { grid-template-columns: 1fr; }
    .home .feature-card, .sister-card { flex-direction: column; gap: 1rem; }
    .home .section-header { margin-bottom: 2.25rem; }
    .home .cta-buttons .btn { flex: 1 1 100%; }
    .cta-box { padding: 2.5rem 1.25rem; border-radius: 22px; }
    .home .footer-content { grid-template-columns: 1fr; gap: 1.75rem; }
    .home .subscribe-form { flex-direction: column; max-width: none; width: 100%; }
    .home .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Utilities */
.icon-sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home footer h3, .home footer h4 { color: #fff; }

/* 404 page */
.not-found { max-width: 680px; text-align: center; padding-top: 2rem; padding-bottom: 2rem; }
.not-found .hero-lead { margin: 0 auto 2rem; }
.not-found .hero-actions, .not-found .hero-checks { justify-content: center; }
