/* VHVTECH — Corporate Website
   Full-bleed photographic carousel.
   Keep the existing index.php slide markup and image filenames.
*/

:root {
    --navy: #10243A;
    --blue: #1677C8;
    --cyan: #48C6D9;
    --soft: #F4F7FA;
    --ink: #263442;
    --muted: #617181;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.65 Inter, Arial, sans-serif;
    background: #fff;
}

/* Header */
.header {
    min-height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9eef3;
    background: #fff;
    position: relative;
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .04em;
}
.mark {
    height: 44px;
    min-width: 54px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    border-radius: 9px;
    font-size: 14px;
    letter-spacing: -.04em;
}
.wordmark { font-size: 24px; }
.wordmark span { color: var(--blue); }
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}
.nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }

/* Full-width hero carousel */
.hero-carousel {
    width: 100%;
    height: clamp(560px, 48vw, 760px);
    min-height: 560px;
    max-height: 760px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy);
}
.slides,
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.slide {
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    background-color: var(--navy);
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity .7s ease, visibility .7s ease;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Readability overlay across the full photo, stronger behind text */
.slide-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(5, 20, 36, .94) 0%,
            rgba(5, 20, 36, .82) 29%,
            rgba(5, 20, 36, .48) 52%,
            rgba(5, 20, 36, .12) 78%,
            rgba(5, 20, 36, .08) 100%
        );
}
.slide-content {
    position: relative;
    z-index: 2;
    width: min(700px, 54%);
    margin-left: 7.5%;
    padding: 42px 0 92px;
    color: #fff;
}
.eyebrow {
    margin: 0 0 22px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
}
.hero-carousel h1,
.hero-carousel h2 {
    max-width: 700px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.hero-carousel h1 span,
.hero-carousel h2 span { color: #69d9e7; }
.intro {
    max-width: 540px;
    margin: 0;
    color: #edf4fa;
    font-size: 17px;
    line-height: 1.75;
}
.cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}
.cta:hover {
    background: #0f65aa;
    transform: translateY(-2px);
}

/* Carousel controls */
.carousel-controls {
    position: absolute;
    z-index: 5;
    left: 7.5%;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 30px;
    background: rgba(8,24,40,.42);
    backdrop-filter: blur(8px);
}
.carousel-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(16,36,58,.5);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}
.carousel-arrow:hover { background: var(--blue); }
.carousel-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.dot.active {
    width: 26px;
    background: var(--cyan);
}

/* Main sections */
.section { padding: 85px 8%; }
.section h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -.035em;
}
.about h2 span { color: var(--blue); }
.about > p:last-child,
.contact > p:last-child,
.education > p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}
.capabilities { background: var(--soft); }
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 34px;
}
.cards article {
    padding: 25px 22px;
    border: 1px solid #e4ebf1;
    border-radius: 12px;
    background: #fff;
}
.cards b { color: var(--blue); font-size: 12px; }
.cards h3 {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.3;
}
.cards p { color: var(--muted); font-size: 14px; }
.product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.product-links span {
    padding: 12px 17px;
    border: 1px solid #dce6ee;
    border-radius: 7px;
    background: #f7fafc;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}
.contact { background: #fff; }
footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 7%;
    background: var(--navy);
    color: #dce8f3;
    font-size: 13px;
}

/* Tablet */
@media (max-width: 900px) {
    .hero-carousel {
        height: 620px;
        min-height: 620px;
        max-height: none;
    }
    .slide { background-position: 60% center; }
    .slide-shade {
        background: linear-gradient(
            90deg,
            rgba(5,20,36,.93) 0%,
            rgba(5,20,36,.78) 42%,
            rgba(5,20,36,.34) 75%,
            rgba(5,20,36,.16) 100%
        );
    }
    .slide-content {
        width: 68%;
        margin-left: 6%;
        padding-bottom: 92px;
    }
    .hero-carousel h1,
    .hero-carousel h2 {
        font-size: clamp(38px, 5.2vw, 56px);
    }
    .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 560px) {
    .header {
        min-height: 75px;
        padding: 15px 5%;
        flex-direction: row;
        align-items: center;
    }
    .wordmark { font-size: 21px; }
    .menu-toggle {
        display: block;
        padding: 5px 10px;
        border: 1px solid #dce5ed;
        border-radius: 6px;
        background: #fff;
        color: var(--navy);
        font-size: 20px;
        cursor: pointer;
    }
    .nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        padding: 18px 6%;
        border-bottom: 1px solid #e9eef3;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .nav.open { display: flex; }
    .hero-carousel {
        height: 650px;
        min-height: 650px;
        max-height: none;
    }
    .slide { background-position: 64% center; }
    .slide-shade {
        background: linear-gradient(
            90deg,
            rgba(5,20,36,.92) 0%,
            rgba(5,20,36,.80) 60%,
            rgba(5,20,36,.48) 100%
        );
    }
    .slide-content {
        width: 88%;
        max-width: 440px;
        margin-left: 6%;
        padding: 28px 0 100px;
    }
    .eyebrow { margin-bottom: 18px; font-size: 10px; }
    .hero-carousel h1,
    .hero-carousel h2 {
        margin-bottom: 18px;
        font-size: clamp(34px, 8.5vw, 43px);
        line-height: 1.12;
    }
    .intro { max-width: 100%; font-size: 15px; line-height: 1.65; }
    .cta { margin-top: 22px; padding: 13px 16px; font-size: 14px; }
    .carousel-controls {
        left: 50%;
        bottom: 18px;
        gap: 12px;
        padding: 6px 9px;
        transform: translateX(-50%);
    }
    .carousel-arrow { width: 34px; height: 34px; }
    .carousel-dots { gap: 6px; }
    .dot { width: 6px; height: 6px; }
    .dot.active { width: 19px; }
    .section { padding: 65px 6%; }
    .cards { grid-template-columns: 1fr; }
    footer { padding: 22px 6%; flex-direction: column; }
}

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