:root {
    --teal: #0e4c57;
    --teal-dark: #053038;
    --amber: #f8c347;
    --cloud: #f4f7f8;
    --steel: #5f6b78;
    --card: #ffffff;
    --shadow: 0 20px 35px rgba(4, 32, 38, 0.16);
    --grid-gap: 18px;
}

* {
    box-sizing: border-box;
}

/* ================================
   HAMBURGER BUTTON
   ================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 4px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    background: #fdfdfd;
    color: #133138;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: relative;
    min-height: 90vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    background: #000;
    overflow: hidden;
    padding: 120px clamp(20px, 6vw, 80px) 80px;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("company.png") right bottom/cover no-repeat;
    opacity: 0.80;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background:linear-gradient(120deg, rgba(170, 146, 193, 0.85) , rgb(191, 210, 216, 0.65)); */

}

nav {
    padding: 10px 0;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(rgba(170, 147, 252, 0.85));
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(16px, 6vw, 72px);
    height: 36px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.92rem;
}

ul.nav-links li {
    cursor: pointer;
    transition: color .2s;
}

ul.nav-links li:hover {
    color: var(--amber);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px clamp(20px, 6vw, 80px) 120px;
    max-width: 720px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-copy {
    max-width: 520px;
    text-align: right;
    margin-left: auto;
    background: rgba(7, 21, 29, 0.45);
    padding: 20px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
}

.hero-copy h1 {
    margin: 6px 0 12px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.15;
}

.hero-copy .lede {
    margin: 0 0 18px;
    color: #e5eef1;
    font-size: 1rem;
}

.hero-copy .eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
    color: #ffd67a;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

/* Animations */
.animatable {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.anim-slide-left {
    transform: translateX(30px);
}

.anim-slide-right {
    transform: translateX(-30px);
}

.anim-slide-up {
    transform: translateY(34px);
}

.anim-zoom {
    transform: scale(0.96);
}

.anim-fade {
    transform: translateY(16px);
}

.in-view {
    opacity: 1;
    transform: none;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--amber);
    color: #020f2b;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow);
    font-size: 1.25rem;
}

main {
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

section {
    padding: 80px clamp(20px, 6vw, 90px);
}

.section-title {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 12px;
}

.stats-grid,
.card-grid,
.gallery {
    display: grid;
    gap: 22px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--card);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13, 62, 74, 0.08);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin: 0;
}

.stat-label {
    color: var(--steel);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.duo {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.img-panel {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.img-panel img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    background: rgba(248, 195, 71, 0.18);
    color: #7a4b00;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.facility-card h3 {
    margin-top: 0;
    color: var(--teal);
}

.facility-card ul {
    padding-left: 18px;
    margin: 8px 0 0;
    color: var(--steel);
}

.certificate-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.certificate-card img {
    width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.product-card img,
.client-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

.client-card {
    text-align: center;
    padding: 16px;
}

.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.locations div {
    background: #535353;
    padding: 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--teal);
}

footer {
    background: var(--teal-dark);
    color: #d5e6ea;
    text-align: center;
    padding: 40px 16px;
}


/* Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns desktop */
    gap: var(--grid-gap);
    align-items: center;
    justify-items: center;
}

/* Single logo card */
.logo-item {
    width: 100%;
    height: 84px;
    /* fixed area for logos */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    border: 1px solid rgba(16, 24, 32, 0.06);
    box-shadow: 0 6px 14px rgba(16, 24, 32, 0.05);
    transition: transform .22s cubic-bezier(.2, .9, .2, 1), box-shadow .22s, border-color .22s;
    overflow: hidden;
}

/* logo image */
.logo-item img {
    max-width: 90%;
    max-height: 60px;
    object-fit: contain;
    display: block;
    /* filter: grayscale(100%) contrast(.95) opacity(.75); */
    transition: filter .32s ease, transform .32s ease, opacity .32s ease;
}

/* Hover / focus effect — colorize logo and slightly lift */
.logo-item:hover,
.logo-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(16, 24, 32, 0.12);
    border-color: rgba(198, 40, 40, 0.12);
}

.logo-item:hover img,
.logo-item:focus-within img {
    filter: none;
    opacity: 1;
    transform: scale(1.02);
}

/* Keyboard accessibility: make items focusable */
.logo-item {
    outline: none;
}

.logo-item:focus {
    box-shadow: 0 10px 22px rgba(16, 24, 32, 0.12);
    transform: translateY(-6px);
}

/* Responsive breakpoints */
@media (max-width: 1000px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 2 columns tablet */
    .logo-item {
        height: 76px;
    }

    .logo-item img {
        max-height: 56px;
    }
}

@media (max-width: 520px) {
    .logo-grid {
        grid-template-columns: 1fr;
    }

    /* 1 column mobile */
    .logo-item {
        height: 72px;
        padding: 10px;
    }

    .logo-item img {
        max-height: 52px;
    }
}

/* =========================================================
   FULL MOBILE VIEW (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
   header {
        min-height: auto;
        height: auto;
        padding-top: 70px; /* space for nav */
    }

    header::before {
        background-image: url(company.png);
        background-size: contain;
        background-position: center top;
        background-repeat: no-repeat;
        background-color: #ffffff; /* prevents black block */
    }
    
    /* Nav */
    .nav-inner {
        padding: 10px 14px;
        height: 48px;
    }

    .logo img {
        height: 36px;
    }

    .nav-links {
        width: 100%;
        border-radius: 0;
        padding: 24px 16px;
    }

    .hero-content {
        padding: 100px 16px 60px;
        text-align: center;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 70vh;
    }

    .hero {
        justify-content: center;
    }

    .hero-copy {
        text-align: left;
        margin-left: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin: 0 0 16px 0;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .cta {
        font-size: 0.95rem;
        padding: 12px 20px;
        margin: 0 auto;
    }

    /* Sections */
    section {
        padding: 45px 18px;
    }

    .section-title {
        font-size: 1.4rem;
        text-align: center;
    }

    /* All grids → 1 column */
    .stats-grid,
    .card-grid,
    .gallery,
    .duo,
    .locations {
        grid-template-columns: 1fr !important;
    }

    /* Images */
    .img-panel img {
        height: 220px;
    }

    .product-card img,
    .client-card img {
        height: 140px;
    }

    /* Certificate */
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }

    .certificate-card img {
        width: 70px;
    }

    /* Footer */
    footer {
        padding: 25px 12px;
        font-size: 0.85rem;
    }
}


/* =========================================================
   TABLET VIEW (600px – 900px)
   ========================================================= */
@media (max-width: 900px) {

    /* Show hamburger button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        z-index: 2000;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
        background: #fff;
        border-radius: 3px;
    }

    /* Hide nav bar by default */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 240px;
        background: rgba(0, 0, 0, 0.92);
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        border-radius: 0 0 0 10px;
        z-index: 1500;
    }

    /* When toggle opens */
    .nav-links.show {
        display: flex !important;
    }

    /* Tablet grids */
    .stats-grid,
    .card-grid,
    .gallery,
    .duo,
    .locations {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        min-height: 80vh;
        padding: 110px 20px 70px;
        align-items: flex-start;
    }

    .hero-content {
        padding: 100px 20px 60px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}