/*
  File: styles.css
  Version: 1.6.1
  Author: LesterDirect AI
  Date: 2025-08-18
  Description: Forced services grid to a max of 3 columns on desktop.
*/

/* Basic Reset and Body Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 140px;
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}

.logo-text h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #f97316;
    margin: 0;
    line-height: 1;
}


.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #f97316;
}

/* Buttons */
.button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-primary {
    background-color: #f97316;
    color: #ffffff;
}

.button-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}

.button-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background-color: #1e293b;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    background-image: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)), url('assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* General Section Styling */
.services-section, .equipment-section, .gallery-section, .about-section, .contact-section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e293b;
}

/* --- v1.6.1 FIX: Services Section Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile default: 1 column */
    gap: 30px;
}

.service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.service-item h3 {
    margin-top: 0;
    color: #f97316;
}

/* Equipment Section Styles */
.equipment-section {
    background-color: #ffffff;
}
.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 30px;
    text-align: center;
}
.equipment-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}
.equipment-item h3 {
    margin-bottom: 5px;
    color: #1e293b;
}

/* Gallery Section */
.gallery-section {
    background-color: #e2e8f0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    background-color: #ffffff;
}


/* About Us Section */
.about-section .container {
    max-width: 800px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: #e2e8f0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo-text h1 {
        font-size: 2rem;
    }
    .logo-text h2 {
        font-size: 1rem;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* --- v1.6.1 FIX: Add new breakpoints for controlled services grid layout --- */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for desktops */
    }
}
