/* ═══════════════════════════════════════════════════════════════════
   Pathology Nucleus — Main Stylesheet
   Neutral professional aesthetic — near-black with muted green accent
   Compatible with all modern browsers, no build tools required
═══════════════════════════════════════════════════════════════════ */


/* ─── RESET & BASE ──────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #24292f;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

:focus-visible {
    outline: 2px solid #238636;
    outline-offset: 3px;
    border-radius: 3px;
}


/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────────── */

:root {
    /* Near-neutral dark sections — matching the brand's own black logo bg */
    --dark:         #0d1117;
    --dark-mid:     #161b22;
    --dark-light:   #1f2937;

    /* Muted professional green — used sparingly for accents only */
    --accent:       #238636;
    --accent-light: #3fb950;
    --accent-dark:  #196a2c;
    --accent-bg:    #f0fdf4;

    --white:        #ffffff;
    --grey-50:      #f6f8fa;
    --grey-100:     #eaeef2;
    --grey-200:     #d0d7de;
    --grey-400:     #848d97;
    --grey-600:     #57606a;
    --grey-800:     #24292f;
    --text:         #24292f;
    --text-muted:   #57606a;

    --radius:       12px;
    --radius-lg:    20px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:    0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
    --shadow-lg:    0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --shadow-accent:0 8px 28px rgba(35,134,54,.22);
    --transition:   0.22s ease;
    --nav-height:   68px;
}


/* ─── LAYOUT HELPERS ────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 104px 0; }

.section-light { background: var(--grey-50); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-label--light { color: var(--accent-light); }
.section-label--light::before { background: var(--accent-light); }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0d1117;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-title--light { color: var(--white); }

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

.section-subtitle--light { color: rgba(255,255,255,0.62); }


/* ─── BUTTONS ───────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    transition: all var(--transition);
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent-dark);
    box-shadow: 0 10px 32px rgba(35,134,54,.32);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.42);
}

.btn-full { width: 100%; justify-content: center; }

.btn-full .btn-icon { transition: transform var(--transition); }
.btn-full:hover .btn-icon { transform: translateX(3px); }


/* ─── GRADIENT TEXT ─────────────────────────────────────────────── */

/* Subtle white-to-silver gradient — matches the monochrome brand */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a8b3c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ─── NAVBAR ────────────────────────────────────────────────────── */

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--transition), box-shadow var(--transition);
}

#navbar:not(.scrolled) { background: transparent; }

#navbar.scrolled {
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Logo lockup ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--white);
    text-decoration: none;
}

/* Two-line stacked wordmark matching brand typography */
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-line1 {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--white);
    text-transform: uppercase;
}

.logo-line2 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: rgba(255,255,255,0.58);
    text-transform: uppercase;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.68);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}

.nav-link.nav-cta {
    background: var(--accent);
    color: var(--white);
    padding: 9px 18px;
}

.nav-link.nav-cta:hover { background: var(--accent-dark); }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 12px 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open { display: flex; max-height: 300px; }

.mobile-link {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition), background var(--transition);
}

.mobile-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}


/* ─── HERO ──────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
    padding: 0;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Very subtle glow — not distracting */
.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: -200px; right: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(35,134,54,.10) 0%, transparent 65%);
    border-radius: 50%;
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -100px;
    width: 450px; height: 450px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.03) 0%, transparent 70%);
    border-radius: 50%;
}

/* Subtle dot grid */
.hex-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(35,134,54,.12);
    border: 1px solid rgba(63,185,80,.28);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    max-width: 860px;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    color: rgba(255,255,255,0.72);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 28px;
    max-width: 860px;
}

.hero-subtitle {
    font-size: clamp(0.88rem, 1.15vw, 0.96rem);
    color: rgba(255,255,255,0.65);
    max-width: 900px;
    margin-bottom: 36px;
    line-height: 1.65;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-subtitle { white-space: normal; font-size: 0.92rem; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.46);
    font-weight: 500;
}

.trust-separator {
    width: 1px; height: 20px;
    background: rgba(255,255,255,0.12);
}


/* ─── PARTNERS / TRUSTED BY ──────────────────────────────────────── */

.partners {
    background: var(--white);
    padding: 64px 0;
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.partners-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--grey-400);
    margin-bottom: 44px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    gap: 0 28px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0.82;
    transition: opacity var(--transition);
    cursor: default;
}

.partner-item:hover { opacity: 1; }

.partner-mark { flex-shrink: 0; color: var(--grey-800); }

.partner-wordmark { line-height: 1.25; }

.partner-name {
    display: block;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--grey-800);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.partner-sub {
    display: block;
    font-size: 0.62rem;
    color: var(--grey-600);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

@media (max-width: 1100px) {
    .partners-grid { grid-template-columns: repeat(5, 1fr); gap: 32px 24px; }
}

@media (max-width: 640px) {
    .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
    .partner-logo-img { height: 24px; }
}

.partner-logo-img {
    width: auto;
    height: 32px;
    max-width: 110px;
    object-fit: contain;
    display: block;
    filter: none;
    margin: 0 auto;
}


/* ─── TRUST CREDENTIAL BANNER ───────────────────────────────────── */

.trust-banner {
    background: var(--dark-light);
    padding: 84px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.trust-block:hover {
    transform: translateY(-2px);
    border-color: rgba(63,185,80,0.28);
    box-shadow: 0 6px 20px rgba(0,0,0,0.26);
}

.trust-block-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: rgba(35,134,54,0.14);
    border: 1px solid rgba(63,185,80,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    flex-shrink: 0;
}

.trust-block-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.trust-block-desc {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .trust-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .trust-banner { padding: 48px 0; }
    .trust-banner-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* ─── ABOUT ─────────────────────────────────────────────────────── */

.about-grid {
    display: block;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 1.05rem;
    font-weight: 500;
}

.about-lead {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--grey-200);
}

.credential { display: flex; align-items: flex-start; gap: 16px; }

.credential-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.credential strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.credential p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* Stats grid */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card--accent {
    background: var(--accent);
    border-color: var(--accent);
}

.stat-card--accent .stat-number,
.stat-card--accent .stat-label { color: var(--white); }

.stat-card--dark {
    background: var(--dark);
    border-color: var(--dark);
}

.stat-card--dark .stat-number,
.stat-card--dark .stat-label { color: var(--white); }

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card--accent .stat-label,
.stat-card--dark .stat-label { color: rgba(255,255,255,0.65); }


/* ─── SERVICES ──────────────────────────────────────────────────── */

.services {
    background: var(--dark-mid);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(35,134,54,.07) 0%, transparent 65%);
    pointer-events: none;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(35,134,54,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-4px);
}

.service-card-badge {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(35,134,54,.16);
    border: 1px solid rgba(63,185,80,.28);
    padding: 4px 10px;
    border-radius: 100px;
}

.service-icon {
    width: 52px; height: 52px;
    background: rgba(35,134,54,.10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 22px;
    transition: background var(--transition);
}

.service-card:hover .service-icon { background: rgba(35,134,54,.18); }

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-subheading {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 20px;
}

.service-features { display: flex; flex-direction: column; gap: 10px; }

.service-features li {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.service-features__accent {
    color: var(--accent) !important;
    font-weight: 600 !important;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--grey-200);
}

.service-features__accent::before {
    background: var(--accent) !important;
}


/* Services credibility strip */
.services-credstrip {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.18);
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0 28px;
}

.services-credstrip--single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.services-credstrip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    color: rgba(255,255,255,0.86);
    line-height: 1.5;
}

.services-credstrip-item--center {
    justify-content: center;
    text-align: center;
}

.services-credstrip-item--right {
    justify-content: flex-end;
    text-align: right;
}

.services-credstrip-item--right .credstrip-icon {
    order: 2;
    flex-shrink: 0;
}

.credstrip-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-light);
    opacity: 0.9;
}

.services-credstrip-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.16);
    flex-shrink: 0;
    justify-self: center;
}

@media (max-width: 900px) {
    .services-credstrip {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        row-gap: 24px;
    }
    .services-credstrip-item--center {
        grid-column: 1 / -1;
        justify-content: flex-start;
        text-align: left;
    }
    /* hide the second divider on tablet — first divider separates col1 and col2 */
    .services-credstrip-divider:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
    .services-credstrip {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }
    .services-credstrip-divider { display: none; }
    .services-credstrip-item--center,
    .services-credstrip-item--right {
        justify-content: flex-start;
        text-align: left;
    }
    .services-credstrip-item--right .credstrip-icon { order: 0; }
}


/* ─── WHY US ────────────────────────────────────────────────────── */

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

.why-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(35,134,54,.22);
}

.why-card--accent {
    background: var(--accent-bg);
    border-color: rgba(35,134,54,.16);
}

.why-icon {
    width: 48px; height: 48px;
    background: var(--accent-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.why-card--accent .why-icon { background: rgba(35,134,54,.12); }

.why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ─── CONTACT ───────────────────────────────────────────────────── */

.contact {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 280px;
    background: linear-gradient(to top, rgba(0,0,0,.18) 0%, transparent 100%);
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(ellipse, rgba(35,134,54,.08) 0%, transparent 62%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-intro {
    color: rgba(255,255,255,0.58);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 440px;
}

.contact-details { display: flex; flex-direction: column; gap: 24px; }

.contact-detail { display: flex; align-items: flex-start; gap: 16px; }

.contact-detail-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(35,134,54,.16);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-top: 2px;
}

.contact-detail-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
}

a.contact-detail-value:hover { color: var(--accent-light); }

/* Form */
.contact-form-wrap {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.68);
    letter-spacing: 0.01em;
}

.required { color: #f87171; }

.form-input {
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--white);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    width: 100%;
    outline: none;
}

.form-input::placeholder { color: rgba(255,255,255,0.2); }

.form-input:focus {
    border-color: var(--accent);
    background: rgba(35,134,54,.07);
    box-shadow: 0 0 0 3px rgba(35,134,54,.16);
}

.form-input.input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248,113,113,.12);
}

.form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.32)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-select option { background: var(--dark); color: var(--white); }

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

.form-error {
    font-size: 0.78rem;
    color: #f87171;
    min-height: 1.1rem;
    display: block;
}

.form-feedback {
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background: rgba(35,134,54,.14);
    border: 1px solid rgba(35,134,54,.3);
    color: var(--accent-light);
}

.form-feedback.error {
    display: block;
    background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.25);
    color: #fca5a5;
}


/* ─── FOOTER ────────────────────────────────────────────────────── */

.footer {
    background: #080d13;
    border-top: 1px solid rgba(255,255,255,.06);
}

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

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.28);
    max-width: 260px;
}

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }

.footer-nav a {
    color: rgba(255,255,255,0.38);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,.05);
}

.footer-email {
    font-size: 0.88rem;
    color: var(--accent-light);
    font-weight: 500;
    transition: color var(--transition);
}

.footer-email:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 16px 0; }

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,.2);
    text-align: center;
}


/* ─── SCROLL ANIMATION ──────────────────────────────────────────── */

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-visible { opacity: 1; transform: translateY(0); }


/* ─── RESPONSIVE — TABLET (≤ 900px) ─────────────────────────────── */

@media (max-width: 900px) {
    section { padding: 72px 0; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ─── RESPONSIVE — MOBILE (≤ 640px) ─────────────────────────────── */

@media (max-width: 640px) {
    section { padding: 56px 0; }

    .nav-links  { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu.open { display: flex; }

    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; align-items: flex-start; gap: 14px; }
    .trust-separator { display: none; }


    .services-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.7rem; }
    .why-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px 20px; }
    .footer-inner { gap: 20px; }
}

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