/* ==========================================
   Global Styles
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1B4332;
    /*--secondary-color: #FFB703;*/
    --secondary-color: #D4914A;
    --action-hover: #FFB703;
    --dark-color: #1a1a1a;
    --light-color: #f1f1f1;
    --text-color: #212529;
    --gray-color: #708D81;
    --accent-color: #708D81;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 70dvh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 67, 50, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    /* allow the hero content to grow wider so headings don't wrap too early */
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 310;
    opacity: 0.95;
    background: rgba(0, 0, 0, 0.2); /* Very light dark plate for legibility */
    border-radius: 8px;

    /*line-height: 1.8;
    color: #ffffff;
    padding: 20px;
    display: inline-block;*/
    
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 13px 35px;
    border: none;
    border-radius: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--action-hover);
    opacity: 1;
}

.cta-button:focus {
    outline: 2px solid #D4914A;
    outline-offset: 2px;
}

.cta-button.primary:hover {
    background-color: var(--action-hover);
}

.cta-button.primary {
    background-color: #D4914A;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ==========================================
   Trust Strip Section
   ========================================== */

.trust-strip {
    background-color: var(--light-color);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);    
    gap: 15px;
    list-style: none;
    text-align: center;
    padding: 5px 10px;
}

.trust-metrics li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-color);
}

.trust-metrics i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.trust-metrics strong {
    font-size: 1.5rem; /* controls text of trust metric value */
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.trust-metrics li {
    font-size: 0.9rem; /* controls text of trust metric description */
}

/* ==========================================
   About/Why Choose Section
   ========================================== */

.about {
    padding: 40px 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.about h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-intro {
    max-width: 1000px;
    border-left: 5px solid var(--secondary-color);
    background: #f9f9f9;
    padding: 30px 40px;
    text-align: left;
    margin: 40px auto;
}

.about-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: transparent; 
    overflow-x: visible;
}

.feature-card {
    background: transparent;
    padding: 1.5rem 1rem;
    border: 1px solid #eee;
    border-bottom: 3px solid transparent;
    text-align: center;
    transition: all 0.3s ease;
    scroll-snap-align: start; /* snap to the start of each card */
}

.feature-card:hover {
    border-bottom-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-card i {
    font-size: 1.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ==========================================
   Featured Products Section
   ========================================== */

.featured-products {
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.featured-products h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.product-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    padding: 0;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 2rem;
}

.product-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f4;
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--primary-color);
}

.cta-link:hover {
    color: var(--secondary-color);
}

.cta-link::after {
    content: '\2192'; /* Unicode arrow */
    transition: transform 0.3s;
}

.cta-link:hover::after {
    transform: translateX(5px);
}

.featured-products .cta-button, .services .cta-button {
    display: block;
    margin: 2.5rem auto 0;
    text-align: center;
    max-width: 300px;
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    position: relative;
    text-transform: none;
    letter-spacing: 0;
}

.featured-products .cta-button::after, .services .cta-button::after {
    content: ' →';
    display: inline;
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.featured-products .cta-button:hover, .services .cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.featured-products .cta-button:hover::after, .services .cta-button:hover::after {
    margin-left: 1rem;
}

.featured-products .cta-button.secondary {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
}

.featured-products .cta-button.secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* ==========================================
   Services Section
   ========================================== */

.services {
    padding: 40px 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.services h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.section-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: white;
    padding: 1.7rem 2rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ==========================================
   Final CTA Section
   ========================================== */

.final-cta {
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2818 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
}

.final-cta p {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.75rem;
    font-weight: 400;
    opacity: 0.95;
}

.final-cta .cta-button.primary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 16px 40px; /* Slightly larger for the final push */
    transition: all 0.3s ease;
}

.final-cta .cta-button.primary:hover {
    background-color: var(--action-hover);
    transform: translateY(-2px); /* Subtle "lift" effect */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Added safety margin for mobile */
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }
    
    /* Section Headings */
    .about h2,
    .featured-products h2,
    .services h2 {
        text-align: center;
        font-size: 1.7rem;
    }

    .final-cta-panel {
        padding: 34px 22px;
    }

    .final-cta h2 {
        font-size: clamp(1.45rem, 5vw, 1.5rem);
        text-align: center;
    }

    .final-cta .cta-button { 
        width: auto; 
        min-width: 250px; 
        display: inline-block;
    }

    .trust-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    body { 
        font-size: 0.95rem; 
        line-height: 1.5; 
    }

    /* Services Grid Fix */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        display: flex; /* Added to enable row direction */
        flex-direction: row; 
        align-items: center; /* Vertical center icon with text */
        text-align: left; /* Switch from desktop center to mobile row-align */
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 512px) {
    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.8rem;
    }

    .about,
    .featured-products,
    .services,
    .contact {
        padding: 20px 15px;
    }

    .about-intro { 
        padding: 20px; 
        margin: 20px auto; 
    }

    .feature-card,
    .service-item {
        padding: 1.5rem 1rem;
    }

    .product-card img {
        height: 220px; 
        object-fit: cover;
    }

    .about h2, 
    .featured-products h2, 
    .services h2 { 
        font-size: 1.5rem; 
    }
    h3 { font-size: 1rem !important; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .trust-metrics { 
        grid-template-columns: 1fr; 
        text-align: left; 
    }

    .trust-metrics li { 
        flex-direction: row; 
        justify-content: flex-start; 
        gap: 15px; 
        padding-left: 15%; /* Keeps metrics visually grouped but left-aligned */
    }
}