/* --- CSS VARIABLES & RESET --- */
:root {
    /* Color Palette: Deep Blue & Clean Teal */
    --primary-color: #0a2342;
    /* Deep professional blue */
    --secondary-color: #1c3f6e;
    /* Lighter blue for hover states */
    --accent-color: #00d4ff;
    /* Bright, clean cyan/teal */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --off-white: #f8f9fa;
    --white: #ffffff;

    --section-spacing: 80px;
    --border-radius: 4px;
    --box-shadow: 0 10px 30px -15px rgba(10, 35, 66, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Responsive font sizing */
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

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

.bg-light {
    background-color: var(--off-white);
}

.section-pad {
    padding: var(--section-spacing) 0;
}

.margin-top {
    margin-top: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    /* Sleek rounded buttons */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #00bce3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
    background: transparent;
    /* Nav starts transparent over hero */
    transition: background 0.3s ease;
}

/* Javascript will add this class when scrolling */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: none;
    /* Hidden on small mobile */
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    background-color: var(--accent-color);
    border-radius: 4px;
    color: var(--primary-color) !important;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    /* Not full screen, but tall */
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sleek dark blue gradient overlay */
    background: linear-gradient(90deg, rgba(10, 35, 66, 0.9) 0%, rgba(10, 35, 66, 0.4) 100%);
    z-index: -1;
}

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

.hero h1 {
    color: var(--white);
}

.hero-sub {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- HOOK / FEATURES --- */
.section-header {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--box-shadow);
}

.icon-box {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- PROCESS --- */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e9ecef;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

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

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- TRUST & SPLIT SECTION --- */
.align-center {
    align-items: center;
}

.trust-image-wrapper {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.trust-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Simple cyan bullet points */
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* --- FOOTER --- */
.dark-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-info p {
    color: #a0aec0;
}

.footer-contact h3 {
    color: var(--white);
}

.contact-link {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.highlight-phone {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.copyright p {
    font-size: 0.8rem;
}

/* --- SIMPLE ANIMATIONS (Used by JS) --- */
/* Initial state: hidden and slightly down */
.fade-in,
.fade-up {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up {
    transform: translateY(30px);
}

/* Final state: visible and in place */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* --- CERTIFICATE THUMBNAIL --- */
.cert-thumbnail-container {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin-top: 2rem;
}

.cert-thumbnail-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
    /* Cyan glow */
    border-color: var(--accent-color);
}

.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
}

.cert-details {
    display: flex;
    flex-direction: column;
}

.cert-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cert-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(10, 35, 66, 0.9);
    /* Deep blue overlay */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    color: #fff;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.pdf-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* --- NEW: GRID-3 --- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- NEW HERO (light) --- */
.hero.hero-lite {
    position: relative;
    min-height: 72vh;
    padding-top: 110px;
    /* account for nav */
    padding-bottom: 40px;
    background: radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.18), transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(10, 35, 66, 0.10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--off-white) 100%);
}

.hero.hero-lite h1 {
    color: var(--primary-color);
}

.hero.hero-lite .hero-sub {
    color: var(--text-light);
}

.hero-inner {
    gap: 3rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(10, 35, 66, 0.06);
    color: var(--primary-color);
    border: 1px solid rgba(10, 35, 66, 0.08);
}

.h1-sub {
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 520px;
    height: auto;
}

/* Hide legacy hero background elements (kept in CSS for compatibility) */
.hero-bg,
.overlay {
    display: none;
}

/* --- WHEN TO TEST SECTION --- */
.testing-grid .callout-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 8px 20px -16px rgba(10, 35, 66, 0.25);
}

.bullets {
    margin: 1rem 0 0 0;
    padding-left: 1.2rem;
    color: var(--text-light);
}

.bullets li {
    margin-bottom: 0.6rem;
}

.bullets-lg li {
    margin-bottom: 0.75rem;
}

.small-note {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.sources {
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--text-light);
}

.sources a {
    color: var(--secondary-color);
}

/* --- PROCESS: icons --- */
.process-grid-media .process-step {
    border-radius: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.14);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- REPORT PREVIEW --- */
.report-preview {
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.report-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fbfbfb;
}

.report-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(10, 35, 66, 0.20);
}

.report-title {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.report-body {
    padding: 1rem 1.25rem;
}

.report-body p {
    margin-bottom: 0.75rem;
}

/* --- MAP CARD --- */
.map-card {
    margin: 1.25rem 0 0 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 10px 26px -18px rgba(10, 35, 66, 0.25);
    background: var(--white);
}

.service-map {
    width: 100%;
    height: auto;
    display: block;
}

/* --- PHOTO PLACEHOLDER --- */
.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: var(--border-radius);
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.16), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(10, 35, 66, 0.10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--off-white) 100%);
    border: 1px dashed rgba(10, 35, 66, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.photo-placeholder-inner strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.photo-placeholder-inner span {
    display: block;
    color: var(--text-light);
}

/* --- ACCESSIBILITY UTILS --- */
.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;
}

/* --- CALLBACK FORM --- */
.callback-form {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.7rem;
    max-width: 420px;
}

.callback-form input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    outline: none;
}

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

.btn-full {
    width: 100%;
    text-align: center;
}

.form-note {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.small-note-invert {
    color: rgba(255, 255, 255, 0.75);
}

/* Make the footer inputs readable on very small devices */
@media (max-width: 420px) {
    .callback-form {
        max-width: 100%;
    }
}

/* --- Mobile hero spacing fix (prevents navbar overlap + improves H1 line breaks) --- */
@media (max-width: 520px) {
    .hero.hero-lite {
        padding-top: 140px;
        /* extra room for logo on iOS Safari */
        min-height: auto;
        height: auto;
    }

    .hero.hero-lite h1 {
        font-size: clamp(2.05rem, 8.5vw, 2.8rem);
        line-height: 1.12;
        margin-top: 0.25rem;
    }

    .pill-row {
        margin-bottom: 0.75rem;
    }

    .hero-sub {
        font-size: 1.02rem;
        line-height: 1.45;
    }

    .hero-illustration {
        max-width: 460px;
    }

    .btn-secondary {
        background-color: transparent;
        border: 2px solid var(--accent-color);
        color: var(--accent-color);
    }
}