/* --- CSS Variables for Easy Re-branding --- */
:root {
    --primary-color: #007aff;     /* Sleek neon electric blue tint aesthetic */
    --dark-bg: #0b0c10;           /* Ultra dark, glass-like charcoal background */
    --card-bg: #1f2833;           /* Contrast deep gray-blue for interface grids */
    --text-main: #ffffff;         /* Sharp white title elements */
    --text-muted: #a0a0a5;        /* Soft gray-silver for readable body text */
    --header-height: 80px;
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;       /* Keeps layout dimensions exact and responsive across devices */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

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

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(11, 12, 16, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--card-bg);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* --- Reusable CTA Button Styles --- */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.phone-cta {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
}

.phone-cta:hover {
    background-color: var(--primary-color);
}

.primary-cta {
    background-color: var(--primary-color);
    color: #ffffff;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.secondary-cta {
    background-color: var(--card-bg);
    color: var(--text-main);
    margin-left: 1rem;
}

.secondary-cta:hover {
    background-color: #2c3540;
}

/* --- Hero Section Configuration --- */
.hero-section {
    position: relative;        /* Acts as the structural anchor bounding box for absolute child layers */
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 80vh;          /* Maintains the vertical window frame height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;          /* Crops the background video bleed to prevent browser scrollbars */
}

/* --- The Background Video Layer --- */
.hero-bg-video {
    position: absolute;        /* Extracts video from document flow so text snaps directly over it */
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* Crops and fills the browser frame elegantly without stretching */
    transform: translate(-50%, -50%); /* Coordinates the element alignment to true center geometric lines */
    z-index: 1;                /* Forces video layer to rest at the absolute bottom stack level */
}

/* --- Dark Content Contrast Tint Layer --- */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.5) 0%, rgba(11, 12, 16, 0.85) 100%); /* Shading overlay mask */
    z-index: 2;                /* Drops a dimming shield right over the video, but below copy */
}

/* --- Top-Tier Text Layer Container --- */
.hero-content {
    max-width: 800px;
    width: 90%;
    position: relative;        /* Engages the coordinate system layer grid maps */
    z-index: 3;                /* Places the typography onto the highest z-index level above the overlay mask */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Section Global Layout --- */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.services-section, .gallery-section, .quote-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Services Card Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #2c3540;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Uniform Gallery Grid Layout --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: center;       /* Keeps grid items perfectly aligned horizontally */
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;          /* Acts as a strict clipping mask for the image inside */
    height: 230px;             /* Enforces a matching, uniform height across all 3 cards */
    display: block;            /* Cleans up spacing constraints for full-bleed images */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Premium lift and glow effect on hover */
.gallery-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25); /* Sleek electric blue brand glow */
}

/* --- Gallery Image Formatting --- */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* FIXED: Forces images to expand and completely fill the 230px frame */
    object-position: center;   /* Ensures the lens focal point centers perfectly inside the crop mask */
    display: block;
}

/* --- Contact & Lead Capture Form --- */
.quote-section {
    background-color: var(--card-bg);
    border-radius: 16px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    border: 1px solid #2c3540;
}

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

.quote-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quote-container p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input, .quote-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-bg);
    border: 1px solid #2c3540;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;         /* Forces input containers to adopt clean system typography rules */
}

.quote-form input:focus, .quote-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #1f2833;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .nav-menu { display: none; } 
    .hero-title { font-size: 2.5rem; }
    .secondary-cta { 
        margin-left: 0; 
        margin-top: 1rem;        /* Keeps stacked action options cleanly spaced on smaller viewports */
        display: block; 
    }
}