/* Modern responsive styles */

:root {
    --primary: #0D1B2A;
    --secondary: #F4F4F9;
    --accent: #FF6B35;
    --text: #1B1B1B;
    --link: #3B82F6;
    --max-width: 1200px;
    --transition: 0.3s;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--secondary);
    line-height: 1.6;
    padding-top: 72px; /* adjust if header height changes */
}

.menu-toggle {
    display: none;   /* hidden on desktop */
}


a {
    color: var(--link);
    text-decoration: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary); /* dark blue */
    color: white;                      /* text color */
    padding: 1rem 2rem;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.25rem;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.hero {
    
    background: linear-gradient(
        rgba(13, 27, 42, 0.7),
        rgba(13, 27, 42, 0.7)
    ),
    url('../image/hero-00.jpg') center / cover no-repeat;

    color: white;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/*.hero { border: 2px solid red; }*/
/*.hero p { border: 1px solid blue; }*/
/*.btn { border: 1px solid green; }*/


.btn {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 0rem;
}

.btn:hover {
    background: #e05a2c;
}

button.btn.submitted {
    background-color: #22c55e !important;  /* green*/
    color: #ffffff;
    cursor: default;
}

.btn.submitted:hover {
    background-color: #22c55e;   /* no hover change */
}

section {
    padding: 0rem 2rem;
    max-width: var(--max-width);
    margin: auto;
    /*border: 2px solid red;*/
}


h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    padding-right: 2rem;
    padding-left: 2rem;
    text-align: center;
    /*border: 2px solid black;*/
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    align-items: stretch;
}

.grid > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid > div h3 {
    /*outline: 3px dashed rgba(255,0,0,0.1);*/
}

.grid > div h3 {
    min-height: 4rem; /* to keep the text below level*/
    text-align: center;
    margin-bottom: 0.15rem;
}

.grid > div p {
    margin: 0.1rem;
    text-align: center;
}

.intro p.intro-text {
    text-align: center;    /* paragraph center-aligned */
    max-width: 900px;    /* limits line width for readability */
    margin: 0 auto 2rem auto; /* centers the block while keeping text left-aligned */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Capabilities section */
.capabilities {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
.capabilities h2 {
    margin-bottom: 0rem;
}

.capabilities .capability h3 {
    min-height: auto;      /* disables service-card height logic */
    margin-bottom: 0.25rem;
}

.capability h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    text-align: center; /* headings centered */
}

.capability p {
    font-size: 1rem;
    line-height: 1.6;
}

.about {
    text-align: center;   /* centers all inline content inside this section */
    margin-bottom: 0.1rem;  /* optional spacing below */
}

.about .intro-text {
    font-size: 1.25rem;   /* slightly larger than normal paragraph */
    line-height: 1.6;     /* improves readability */
    font-weight: 500;     /* optional: makes text slightly bolder */
    text-align: center;   /* centers text if not already done */
    margin-top: 2rem;
    margin-bottom: 1rem;
    /*border: 2px solid red;*/
}

/* Product Samples */
.product-samples {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.product-samples h2 {
    margin-bottom: 0.1rem;
}

.product-samples .intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.samples-grid {
    gap: 2rem;
}

.sample-card {
    text-align: center;
}

.sample-card img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.sample-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* change to 3 if needed */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sample-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.sample-desc {
    font-size: 0.9rem;
    line-height: 1.3;
}

.certifications {
    text-align: center;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    padding-right: 2rem;
    padding-left: 2rem;
    /*border: 2px solid red;*/
}

.cert-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;       /* wrap logos to next line on narrow screens */
    gap: 2rem;             /* spacing between logos */
    margin-top: 0.1rem;
    /*border: 2px solid red;*/
}

.cert-logos img {
    max-height: 120px;     /* max height for desktop */
    width: auto;
    flex: 1 1 100px;       /* logos can shrink to 100px min, grow if space allows */
    object-fit: contain;    /* keeps aspect ratio */
    opacity: 0.9;
    transition: transform 0.3s;
}

.cert-logos img:hover {
    transform: scale(1.05); /* subtle zoom effect */
}

/* =========================
   Client Logos Section (Bottom)
   ========================= */
.client-logos-section {
    text-align: center;
    padding: 2rem 2rem;
    background-color: var(--secondary); /* optional subtle background */
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logos img {
    max-height: 80px;      /* standard client logos */
    width: auto;
    flex: 1 1 80px;        /* allows shrinking and growing */
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.3s;
}

.client-logos img:hover {
    transform: scale(1.05); /* subtle zoom on hover */
}

.client-logos img.vinland-logo {
    max-height: 120px;     /* slightly larger for Vinland logo */
    margin: 0 1rem;        /* spacing around center logo */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .client-logos img {
        max-height: 60px;
        flex: 1 1 50px;
    }

    .client-logos img.vinland-logo {
        max-height: 100px;
        margin: 0.5rem 0;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .cert-logos img {
        max-height: 80px;   /* smaller logos on phones */
        flex: 1 1 70px;     /* allow shrinking */
    }
}

/* =====================
   Footer (single source of truth)
   ===================== */

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.25rem 1rem;
    margin-bottom: 0.2rem;
}

footer p {
    margin: 0;
    line-height: 1.4;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--primary);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 1rem 2rem;
        z-index: 2000;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;      /* visible on mobile */
        cursor: pointer;
        font-size: 1.8rem;
        color: white;
    }
}

.contact h1 {
    margin-bottom: 0.3rem;
    text-align: center;
}

.contact-info {
    margin: 0 auto 1.5rem;
    max-width: 500px;
    font-size: 1.05rem;
    text-align: center;
}

.contact-info p {
    margin: 0.1rem 0;
    line-height: 1.3;
}



/* Form layout */
.contact form {
    max-width: 500px;
    margin: 0 auto;
}

.contact label {
    display: block;       /* label on its own line */
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact input,
.contact textarea {
    display: block;       /* input on its own line */
    width: 100%;
    padding: 0.3rem 0.4rem;
    margin-bottom: 0.6rem;  /* spacing between fields */
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact textarea {
    resize: vertical;     /* allow vertical resizing only */
}

.contact button.btn {
    display: block;
    background: #FF6B35;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.75rem auto;
}

.contact button.btn:hover {
    background: #e05a2c;
}

/* =====================
   Contact page ISO layout
   ===================== */

.contact-with-logos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.contact-main {
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.contact-iso {
    max-height: 120px;
    width: auto;
    opacity: 0.9;
    margin-top: 2.5rem;
}

.under-construction {
    text-align: center;
    padding: 1rem 2rem;
}

/* Stack neatly on smaller screens */
@media (max-width: 900px) {
    .contact-with-logos {
        flex-direction: column;
        align-items: center;
    }

    .contact-iso {
        margin-top: 0;
    }
}
