/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #fff;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/landing.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.company-name {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fff; /* keep same border as secondary */
    background-color: #fff; /* solid white */
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a; /* dark text for contrast */
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta-primary:hover {
    background-color: #e6e6e6; /* slightly darker white */
    color: #1a1a1a; /* keep text same */
}



.hero-cta:hover {
    background: #fff;
    color: #1a1a1a;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
    scroll-margin-top: 70px;
}

#contact {
    scroll-margin-top: 0;
}

#process {
    scroll-margin-top: 70px;
}

.section-light {
    background: #f5f5f5;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* ===== Overview ===== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.overview-text .section-title {
    margin-bottom: 1rem;
}

.country-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    margin-top: 1rem;
}

.overview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: grayscale(100%);
}

/* ===== Our Role ===== */
.our-role-intro {
    max-width: 70ch;
    margin-bottom: 2rem;
}

.our-role-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
}

/* ===== Products ===== */
.section-dark {
    background: #1a1a1a;
    color: #fff;
}

.section-title-light {
    color: #fff !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 100px;
}

.product-code {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.product-spec-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-spec-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.product-spec-coming {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.checkmark {
    color: #fff;
}

.cta-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cta-link:hover {
    opacity: 0.8;
}

/* ===== Supply & Process ===== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.supply-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supply-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.supply-label {
    font-size: 0.95rem;
    color: #666;
}

.supply-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.process-steps {
    padding-left: 1.25rem;
}

.process-steps li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom));
}

.footer .section-title-light {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-item:hover {
    opacity: 0.9;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.contact-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Specs Lightbox Modal ===== */
.spec-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spec-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.spec-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.spec-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #333;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spec-modal-close:hover {
    background: #000;
}

.spec-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.spec-modal-image-wrap {
    width: 100%;
    max-width: 90vw;
    height: 65vh;
    max-height: 65vh;
    margin-bottom: 0.75rem;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.spec-modal-image-wrap:active {
    cursor: grabbing;
}

.spec-modal-image-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

.spec-modal-image-inner img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

.spec-modal-zoom-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-zoom-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spec-zoom-btn:hover {
    background: #f0f0f0;
}

.spec-modal-download {
    font-size: 0.9rem;
    color: #1a1a1a;
    text-decoration: underline;
}

.spec-modal-download:hover {
    opacity: 0.8;
}

/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
    }

    .nav-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.97);
        padding: 1rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .header-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-nav .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-nav .nav-link:last-child {
        border-bottom: none;
    }

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

    .section {
        padding: 2.5rem 0;
        scroll-margin-top: 56px;
    }

    #process {
        scroll-margin-top: 56px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-grid {
        gap: 0.625rem;
        margin-bottom: 1.25rem;
    }

    .product-card {
        padding: 0.875rem;
        min-height: 90px;
    }

    .product-features li {
        font-size: 0.9rem;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .contact-item {
        min-height: 44px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Spec modal mobile */
@media (max-width: 768px) {
    .spec-modal {
        padding: 1rem;
        align-items: flex-start;
    }

    .spec-modal-content {
        max-height: 95vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .spec-modal-image-wrap {
        height: 50vh;
        max-height: 50vh;
    }

    .spec-modal-image-inner img {
        max-height: 50vh;
    }

    .spec-modal-zoom-controls {
        flex-wrap: wrap;
    }

    .spec-zoom-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

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