/* ==========================================================================
   1. Design Tokens & Core Resets
   ========================================================================== */
:root {
    /* 
       The 4th number controls transparency. 
       0.0 is invisible, 1.0 is solid. 
    */
    --color-bg: rgba(18, 18, 18, 0.6);            /* 60% solid - overall background */
    --color-surface: rgba(30, 30, 30, 0.75);      /* 75% solid - cards and forms */
    --color-matte-black: rgba(26, 26, 26, 0.85);  /* 85% solid - headers, footers, buttons */
    --color-gunmetal: rgba(45, 49, 52, 0.9);      /* 90% solid - borders and inputs */
    
    --color-text: #e0e0e0;
    --color-text-dark: #333333;
    --color-wood-amber: #d4a373;  
    --color-wood-hover: #b98a5c;
    
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition-smooth: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    
    /* Fallback color */
    background-color: var(--color-bg); 
    
    /* The universal background with a dark overlay for readability */
    background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.95)), url('../images/ui/universal-bg.jpg');
    background-size: cover;
    background-position: center;
    
    /* This locks the image in place so only the content scrolls over it */
    background-attachment: fixed; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. Header & Navigation Layout
   ========================================================================== */
.main-header {
    background-color: var(--color-matte-black);
    border-bottom: 2px solid var(--color-gunmetal);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: var(--color-wood-amber);
}

/* Nav Button Accent */
.nav-menu a.btn-nav {
    background-color: var(--color-wood-amber);
    color: var(--color-matte-black);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.nav-menu a.btn-nav:hover {
    background-color: var(--color-wood-hover);
    color: #fff;
}

/* Mobile Toggle Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
}

/* ==========================================================================
   3. Hero Section (The Hook)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)), url('../images/ui/hero-placeholder.jpg') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    /* If you added a background box directly to the text, we make it highly transparent here */
    background-color: rgba(30, 30, 30, 0.3); 
    padding: 30px;
    border-radius: 8px;
    /* Optional: Add a slight glass blur so the text stays readable over the lighter box */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content .highlight {
    color: var(--color-wood-amber);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-right: 15px;
}

.btn-primary {
    background-color: var(--color-wood-amber);
    color: var(--color-matte-black);
}

.btn-primary:hover {
    background-color: var(--color-wood-hover);
    color: #fff;
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-matte-black);
}

/* ==========================================================================
   4. Global Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-matte-black);
    border-top: 2px solid var(--color-gunmetal);
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-gunmetal);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* We will use JS to toggle this class later */
    .menu-toggle { display: flex; }
    .hero-content h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   5. Quick Process Overview
   ========================================================================== */
.process-section {
    padding: 80px 0;
    background-color: var(--color-surface);
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.process-step {
    background-color: var(--color-matte-black);
    padding: 40px 20px;
    border-radius: 8px;
    /* Industrial accent border at the bottom */
    border-bottom: 3px solid var(--color-wood-amber);
    transition: var(--transition-smooth);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-wood-amber);
    color: var(--color-matte-black);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.process-step p {
    color: #b3b3b3;
    font-size: 0.95rem;
}

/* ==========================================================================
   6. Universal Glassmorphism (Premium Transparency)
   ========================================================================== */
.main-header,
.main-footer,
.process-step,
.estimator-controls,
.estimator-result,
.contact-info,
.contact-form-wrapper,
.about-hero,
.about-cta {
    /* Adds a sleek blur to the background image directly behind these elements */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari compatibility */
}

/* Ensure inputs remain dark enough to read user text easily */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    background-color: rgba(18, 18, 18, 0.9) !important;
}

.about-header {
    /* Lower the 0.3 to 0.15 or 0.1 if it is still too dark */
    background-color: rgba(30, 30, 30, 0.3); 
    
    /* Adds spacing around the text so it breathes */
    padding: 60px 0; 
    text-align: center;
    
    /* Keeps the text crisp over the transparent background */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}