/* ---------- Global Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ---------- Navigation ---------- */
nav {
    background: #0d1b2a;
    color: #fff;
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #e0e1dd;
}

nav a.active {
    color: #e0e1dd;
    border-bottom: 2px solid #e0e1dd;
    padding-bottom: 3px;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('images/logo.png')
                center/cover no-repeat;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
}

/* ---------- Primary Button ---------- */
.btn-primary {
    display: inline-block;
    background: #e0e1dd;
    color: #0d1b2a;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fff;
    transform: scale(1.05);
}

/* ---------- Sections ---------- */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0d1b2a;
}

/* ---------- Products Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ---------- Contact Form ---------- */
form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

form label {
    font-weight: 500;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form button {
    background: #0d1b2a;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

form button:hover {
    background: #1b263b;
}

/* ---------- Footer ---------- */
footer {
    background: #0d1b2a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* ---------- Carousel ---------- */
.carousel {
    overflow: hidden;
    width: 100%;
    margin: 40px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.8s ease-in-out;
}

.carousel img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ---------- Utility ---------- */
.back-link {
    color: #0d1b2a;
    font-weight: bold;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* ---------- About Page Styles ---------- */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url("images/logo.png") center/cover no-repeat;
    padding: 160px 0;
    text-align: center;
    color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* ---------- Values Section ---------- */
.values-grid-outer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.values-left h2 {
    margin-bottom: 20px;
}

/* Clean modern list (Option C) */
.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.values-list li strong {
    color: #0d1b2a;
}

.values-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.about-page-wrapper {
    min-height: calc(100vh - 120px);
}

/* ========================================================= */
/* ---------- PRODUCT PAGE TWO-COLUMN LAYOUT ---------- */
/* ========================================================= */

.product-section {
    padding: 80px 0;
}

.product-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.product-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.product-details h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #0d1b2a;
}

.product-details p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.features-list {
    margin: 15px 0 25px 20px;
}

.features-list li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* Intro section layout */
.intro-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 380px;
}

.feature-card {
    background: #fff;
    padding: 28px 26px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0d1b2a;
    border-radius: 4px 0 0 4px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

.feature-card p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
}

.reveal.active {
    transform: translateY(0px);
    opacity: 1;
    visibility: visible;
}

/* ========================================================= */
/* ---------- MOBILE RESPONSIVE RULES ---------- */
/* ========================================================= */

@media (max-width: 1024px) {
    .about-grid,
    .values-grid-outer {
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .container {
        width: 92%;
    }

    /* Navigation */
    nav .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    nav a {
        margin-left: 0;
        margin: 6px 10px;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Two-column → One-column */
    .about-grid,
    .values-grid-outer,
    .intro-flex {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        text-align: center;
    }

    .values-left,
    .intro-text {
        align-items: center;
    }

    .product-flex {
        flex-direction: column;
        text-align: center;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Section spacing */
    section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {

    nav h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }
}

/* ========================================================= */
/* ---------- ABOUT PAGE FULL MOBILE FIX ---------- */
/* ========================================================= */

@media (max-width: 768px) {

    /* --- FIX NAV BAR (same on all pages) --- */
    nav .container {
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    nav a {
        margin: 6px 10px !important;
    }

    /* --- FIX ABOUT PAGE GRID COLLAPSE --- */
    .about-grid,
    .values-grid-outer {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    /* --- FIX IMAGE HEIGHTS --- */
    .about-image img,
    .values-image img {
        width: 100%;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover;
        border-radius: 8px;
    }

    /* --- CENTER TEXT BLOCKS --- */
    .about-text,
    .values-left {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 90%;
    }

    /* --- FIX VALUES LIST ALIGNMENT --- */
    .values-list {
        list-style: none;
        padding-left: 0 !important;
        margin: 0 auto !important;
        text-align: left !important;
        max-width: 320px;
    }

    .values-list li {
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* --- FIX SECTION SPACING --- */
    section {
        padding: 45px 0 !important;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {

    .about-image img,
    .values-image img {
        max-height: 240px !important;
    }

    .values-list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}

/* ========================================================= */
/* ---------- HOME PAGE FEATURE CARDS FIX ---------- */
/* ========================================================= */

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 28px; /* more breathing room between cards */
    max-width: 380px;
}

.feature-card {
    background: #fff;
    padding: 28px 26px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
    min-height: 110px; /* taller, more premium */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0d1b2a;
    border-radius: 4px 0 0 4px;
}

.feature-card strong {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: #0d1b2a;
}

.feature-card p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .intro-flex {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .features-grid {
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
    }

    .feature-card {
        min-height: 100px;
    }
}

/* ========================================================= */
/* ---------- ABOUT PAGE MOBILE ORDER + SPACING FIX ---------- */
/* ========================================================= */

@media (max-width: 768px) {

    /* Force consistent stacking: image ALWAYS first */
    .about-grid,
    .values-grid-outer {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure images appear above text */
    .about-image,
    .values-image {
        order: 1;
    }

    .about-text,
    .values-left {
        order: 2;
    }

    /* Reduce the big gap between sections */
    section {
        padding: 35px 0 !important;
    }

    /* Tighten spacing inside sections */
    .about-text p,
    .values-left p {
        margin-bottom: 14px;
    }

    /* Fix image sizing */
    .about-image img,
    .values-image img {
        width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* Even smaller phones */
@media (max-width: 480px) {
    section {
        padding: 28px 0 !important;
    }

    .about-image img,
    .values-image img {
        max-height: 220px;
    }
}

nav h1 a {
    color: inherit;
    text-decoration: none;
}

nav h1 a:hover {
    opacity: 0.8;
}
