/* =========================================================
   ASTREAM
   Embedded Design & Manufacturing
   ========================================================= */

:root {
    --navy: #071a2b;
    --navy-light: #0d2b43;
    --blue: #1596e8;
    --blue-dark: #0878bd;
    --cyan: #32c5f4;
    --white: #ffffff;
    --light: #f4f8fb;
    --grey: #647585;
    --dark-grey: #263746;
    --border: #dce6ed;
    --shadow: 0 15px 45px rgba(7, 26, 43, 0.12);
    --radius: 16px;
}

/* -------------------------
   RESET
   ------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark-grey);
    background: var(--white);
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* -------------------------
   HEADER
   ------------------------- */

header {
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.12);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.logo span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
}

.nav-cta {
    background: var(--blue);
    padding: 11px 20px;
    border-radius: 8px;
    color: white !important;
}

.nav-cta:hover {
    background: var(--blue-dark);
}

/* -------------------------
   HERO
   ------------------------- */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    color: white;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 18, 30, 0.96) 0%,
            rgba(4, 18, 30, 0.86) 35%,
            rgba(4, 18, 30, 0.48) 68%,
            rgba(4, 18, 30, 0.20) 100%
        ),
        url("hero_image.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 720px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-block;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -2px;
    margin-bottom: 25px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.hero p {
    max-width: 650px;
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
    margin-bottom: 35px;
}

/* -------------------------
   BUTTONS
   ------------------------- */

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.55);
    color: white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
}

/* -------------------------
   SECTIONS
   ------------------------- */

section {
    padding: 90px 0;
}

section.light {
    background: var(--light);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading h2,
.two-column h2 {
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.section-heading p {
    color: var(--grey);
    font-size: 18px;
}

/* -------------------------
   TWO COLUMN
   ------------------------- */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.two-column p {
    color: var(--grey);
    margin-bottom: 18px;
}

/* -------------------------
   PAGE HERO
   ------------------------- */

.page-hero {
    background:
        linear-gradient(
            135deg,
            rgba(7,26,43,0.98),
            rgba(13,61,91,0.96)
        );
    color: white;
    padding: 100px 0;
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 720px;
    font-size: 19px;
    color: rgba(255,255,255,0.82);
}

/* -------------------------
   IMAGE STYLES
   ------------------------- */

.about-image,
.design-image,
.manufacturing-image,
.capabilities-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-image img,
.design-image img,
.manufacturing-image img,
.capabilities-image img {
    width: 100%;
    height: 440px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.about-image:hover img,
.design-image:hover img,
.manufacturing-image:hover img,
.capabilities-image:hover img {
    transform: scale(1.03);
}

/* -------------------------
   CARDS
   ------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(21,150,232,0.35);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(21,150,232,0.10);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 12px;
}

.card p {
    color: var(--grey);
}

/* -------------------------
   FEATURE BOX
   ------------------------- */

.feature-box {
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    padding: 42px;
    box-shadow: var(--shadow);
}

.feature-box h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.feature-box p {
    color: rgba(255,255,255,0.75);
}

/* -------------------------
   STATS
   ------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 45px;
}

.stat {
    padding: 30px;
    border-left: 3px solid var(--blue);
    background: var(--light);
}

.stat strong {
    display: block;
    color: var(--navy);
    font-size: 30px;
    margin-bottom: 5px;
}

.stat span {
    color: var(--grey);
}

/* -------------------------
   CTA
   ------------------------- */

.cta {
    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-light)
        );
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 18px;
}

.cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.75);
}

/* -------------------------
   CONTACT
   ------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-card {
    background: var(--light);
    padding: 35px;
    border-radius: var(--radius);
}

.contact-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--grey);
    margin-bottom: 10px;
}

.contact-email {
    color: var(--blue);
    font-weight: 700;
    font-size: 18px;
}

/* -------------------------
   FOOTER
   ------------------------- */

footer {
    background: #04121e;
    color: white;
    padding: 55px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

footer h3 {
    margin-bottom: 15px;
}

footer p {
    color: rgba(255,255,255,0.62);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: rgba(255,255,255,0.68);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 900px) {

    .nav-links {
        gap: 15px;
    }

    .two-column,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {

    .navbar {
        min-height: 70px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 65px 0;
    }

    .hero {
        min-height: 620px;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 17px;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }

    .card-grid,
    .stats,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-image img,
    .design-image img,
    .manufacturing-image img,
    .capabilities-image img {
        height: 300px;
    }

    .page-hero {
        padding: 70px 0;
    }
}