/* style.css */

:root {
    --primary-color: #0f172a; /* Deep slate blue */
    --accent-color: #ea580c;  /* High-visibility orange for buttons */
    --text-color: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* Buttons */
.btn-primary, .btn-large {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover, .btn-large:hover {
    background-color: #c2410c;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #cbd5e1;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- Main Content Layout --- */

h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Reusable Card Grid Component */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.card-grid {
    display: grid;
    /* Automatically responsive grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.card img {
    width: 100%;
    height: 250px;       /* Gives the image a more substantial, prominent feel */
    object-fit: cover;   /* The secret sauce: crops the image perfectly without stretching it */
    object-position: center;
    border-radius: 6px 6px 0 0; /* Rounds the top corners to match the card */
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Trust Section */
.trust-content {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.trust-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #94a3b8;
    border-top: 1px solid #334155;
    padding-top: 20px;
}

/* --- Global Image Handling --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Keeps the slick modern look consistent */
    object-fit: cover;
}

/* --- Mobile Responsiveness (iPhone Fixes) --- */
@media (max-width: 768px) {
    .flex-nav {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .site-header {
        padding: 15px 0;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* --- Lead Capture Form --- */
.lead-form-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-wrapper p {
    margin-bottom: 30px;
    color: #cbd5e1;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    gap: 15px;
}

.quote-form input, 
.quote-form select, 
.quote-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
}

/* Desktop: Keep the nice grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Mobile: Switch to a horizontal swipeable gallery */
@media (max-width: 768px) {
    .card-grid {
        display: flex;       /* Switch to flex for side-by-side */
        overflow-x: auto;    /* Enable horizontal scrolling */
        scroll-snap-type: x mandatory; /* The magic 'swipe' feel */
        gap: 15px;
        padding-bottom: 20px;
    }

    .card {
        min-width: 280px;    /* Each card takes up most of the phone screen */
        scroll-snap-align: center;
    }
}