/* --- CSS Variables (Color Palette from Logo) --- */
:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --text-main: #F4F1EA;
    --text-muted: #B3B3B3;
    --brand-orange: #D46A25; 
    --brand-orange-hover: #E87A35;
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn-primary, .btn-outline, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: var(--text-main);
    border: 2px solid var(--brand-orange);
}

.btn-primary:hover {
    background-color: var(--brand-orange-hover);
    border-color: var(--brand-orange-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
}

.btn-outline:hover {
    background-color: var(--brand-orange);
    color: var(--text-main);
}

.btn-outline i {
    margin-right: 8px; /* Spaces out the phone icon from the numbers */
}

.full-width {
    width: 100%;
}

/* --- Header --- */
header {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 70px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-orange);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: url('hero-bg.jpg') center/cover no-repeat; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accent-line {
    height: 4px;
    width: 60px;
    background-color: var(--brand-orange);
    margin: 15px auto 0;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 10px;
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 4px solid var(--brand-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-orange); /* Colors the Font Awesome icons orange */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 80px 0;
    background-color: #0a0a0a; 
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
}

.label.before {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.label.after {
    background-color: var(--brand-orange);
    color: white;
}

/* --- Quote Section (Form) --- */
.quote-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 12px;
}

.form-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.form-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
footer {
    background-color: #050505;
    padding: 50px 0 20px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 60px;
    filter: grayscale(100%) opacity(0.7); 
}

.footer-info {
    text-align: right;
    color: var(--text-muted);
}

.footer-info i {
    margin-right: 5px;
    color: var(--brand-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* --- Reviews Section --- */
.reviews-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.review-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #FFD700; /* Gold border to match stars */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.stars {
    color: #FFD700; /* Standard gold star color */
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.review-author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-orange);
}

.review-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.review-cta p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.review-cta .fa-google {
    margin-right: 8px;
}

/* --- Auto-Scrolling Carousel Section --- */
.carousel-section {
    padding: 60px 0;
    background-color: #0f0f0f; /* Slightly darker to separate from the gallery */
    overflow: hidden; /* Prevents the page from stretching sideways */
}

.carousel-wrapper {
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    scroll-behavior: auto; /* Let JS handle smooth scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iPhones */
}

/* Hide the scrollbar for a cleaner look */
.carousel-track::-webkit-scrollbar {
    display: none; 
}
.carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-image {
    height: 300px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid var(--bg-card);
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevents images from squeezing together */
}

.carousel-image:hover {
    transform: scale(1.02);
    border-color: var(--brand-orange);
}

/* --- HERO SECTION UPDATES --- */
.hero {
    position: relative;
    height: 85vh; /* Makes the section taller so the logo has room above the text */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes the text curtain to the absolute bottom */
    background: url('hero-bg.jpg') center/cover no-repeat; 
    background-color: var(--bg-dark); /* Fallback color */
    overflow: hidden; 
}

.hero {
    position: relative;
    height: 95vh; /* CHANGED: Was 85vh. This makes the section taller, pushing the text curtain further down. */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    background: url('hero-bg.jpg') center/cover no-repeat; 
    background-color: var(--bg-dark); 
    overflow: hidden; 
}

/* ... keep hero-overlay as is ... */

.parallax-logo {
    position: absolute;
    top: 4%; /* CHANGED: Dropped it down slightly so it clears the top nav bar */
    left: 50%;
    transform: translateX(-50%); 
    width: 75%; /* CHANGED: Reduced from 85% to make it slightly smaller on mobile */
    max-width: 450px; /* CHANGED: Reduced from 550px to make it smaller on desktop */
    opacity: 1.0; 
    z-index: 2; 
    pointer-events: none; 
}

/* THIS IS THE MAGIC WALL */
.hero-text-curtain {
    position: relative;
    z-index: 3; /* Highest z-index so it sits IN FRONT of the logo */
    width: 100%;
    background-color: var(--bg-dark); /* Solid color matching your website background */
    padding: 40px 0 60px 0; /* The very top edge of this padding is your "disappear line" */
    border-top: 1px solid rgba(255, 255, 255, 0.03); /* Tiny subtle line at the cut-off point */
}

.hero-content {
    margin: 0 auto;
    text-align: center;
    max-width: 700px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .form-wrapper { grid-template-columns: 1fr; padding: 30px; }
    .form-text { text-align: center; }
}

@media (max-width: 768px) {
    /* 1. Shrink the logo and push it down below the navbar */
    .parallax-logo {
        width: 55%; 
        top: 8%; 
    }

    /* 2. Give the hero section a bit more vertical breathing room on phones. 
       Notice we are NOT overriding the flex layout or height here anymore. */
    .hero {
        min-height: 680px; 
    }
    
    /* 3. Make the curtain padding a bit tighter so it doesn't swallow the logo too fast */
    .hero-text-curtain {
        padding: 30px 0 40px 0;
    }

    /* 4. Keep your other mobile layout adjustments */
    .nav-links { display: none; } 
    .hero-content { margin: 0 auto; }
    .hero-buttons { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-info { text-align: center; }
}