/* style.css - simple, clean, responsive. Brand color: blue. */
:root {
    --blue: #0b66d1;
    /* brand blue - tweak if you want */
    --blue-dark: #0a58b3;
    --muted: #6b7280;
    --bg: #f7fbff;
    --max-width: 1500px;
    --radius: 10px;
    --container-pad: 40px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color-scheme: light;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: #0b1a2a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-pad);
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(11, 102, 209, 0.06);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 46px;
    width: auto;
    display: block
}

/* Nav */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
    align-items: center
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--blue)
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 50;
    position: relative;
    /* Ensure z-index works so it stays above the nav */
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Side Navigation state */
body.nav-open .main-nav {
    transform: translateX(0);
}

body.nav-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 39;
    /* Behind nav (40) but above content */
}


/* Hero */
.hero {
    padding: 80px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 0;
    margin-top: 0;
    width: 100%;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darkened for better readability */
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.hero .container {
    position: relative;
    z-index: 3;
    /* Ensure text shadow helps readability if video is bright */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0 0 12px;
    color: #fff;
}

.lead {
    color: #e2e8f0;
    margin-bottom: 24px;
    font-size: 1.1rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    background: var(--blue-dark)
}

/* Cards */
.services .cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-top: 18px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(8, 22, 40, 0.06);
}

.card-img {
    width: 100%;
    height: 300px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    max-height: 400px;
}

.card h3,
p {
    padding: 0 18px;
}

.card h3 {
    margin-top: 0;
}

/* Equipment / industries */
.equipment,
.industries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 28px;
    padding: 18px;
}

.equipment div img,
.industries div img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 18px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    max-height: 400px;
}

/* About page */
.about-page section {
    margin-top: 18px
}

.about-page h2 {
    margin-bottom: 8px
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 18px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    max-height: 400px;
}

/* Contact form */
.contact-page form {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(8, 22, 40, 0.04);
    max-width: 720px;
}

.form-row {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column
}

.form-row label {
    font-weight: 600;
    margin-bottom: 6px
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6edf8;
    font-size: 0.95rem;
    outline: none;
}

.form-row textarea {
    resize: vertical
}

/* Notices */
.notice {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px
}

.notice.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.12);
    color: #064e22
}

.notice.error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
    color: #7f1d1d
}

/* Footer */
.site-footer {
    padding: 20px 0;
    text-align: center;
    color: var(--muted)
}

.site-footer a {
    color: inherit;
    text-decoration: underline
}



/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    margin: 40px auto;
    padding: 0;
    /* Arrows will handle spacing if needed, or overlay */
}

/* Add padding to container to ensure arrows don't verify overlap content too much if outside? 
   Actually, let's keep arrows inside or adjust. 
   Let's put arrows on sides. 
*/
.carousel {
    padding: 0 50px;
    /* Space for arrows */
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.carousel-slide {
    /* Mobile first: 1 slide visible */
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}


/* Desktop: 3 slides */
@media only screen and (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.carousel-button:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.carousel-button--left {
    left: 0;
}

.carousel-button--right {
    right: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.carousel-indicator {
    border: none;
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-indicator.current-slide {
    background: var(--blue);
    transform: scale(1.2);
}

.carousel-slide .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-slide .card p {
    flex-grow: 1;
}

/* Tablet: 2 slides */
@media only screen and (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media only screen and (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 40;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    /* Animation for burger menu transformation */
    body.nav-open .burger-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    body.nav-open .burger-bar:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .burger-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .equipment,
    .industries {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .equipment>div,
    .industries>div {
        padding: 0;
    }

    /* Reorder to ensure Text appears above Image on mobile for consistency */
    .industries {
        display: flex;
        flex-direction: column-reverse;
    }

    .carousel-button {
        display: none;
    }

    /* Increase card width by reducing container padding */
    .carousel {
        padding: 0 10px;
    }

}

/* Responsive Nav */

@media only screen and (max-width:720px) {
    .header-inner {
        flex-direction: row;
        align-items: center
    }

    .hero {
        text-align: left
    }
}