/* ===== CLEAN RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui; }
html { scroll-behavior: smooth; }
body { color: #333; line-height: 1.6; overflow-x: hidden; }

/* ===== HEADER - TRANSPARENT TO SOLID ===== */
#main-header.site-header {
    position: fixed;           /* Stays at top */
    top: 0; left: 0;
    width: 100%;
    z-index: 10000;
    background: transparent;   /* Start transparent */
    transition: all 0.4s ease;
    padding: 15px 5%;
}

/* Header layout: Phone | Logo | Button */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.header-left, .header-right { flex: 1; min-width: 200px; }
.header-center { flex: 2; text-align: center; }
.header-right { text-align: right; }

/* Header text - visible on dark background */
.header-left { 
    color: white; 
    font-weight: 600; 
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.site-logo {
    font-size: 2.2em;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Button */
.header-button {
    background: #d4a574;       /* Wood/tan color */
    color: white !important;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}
.header-button:hover { background: #b8935f; }

.header-bottom-row {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center; /* Add this line */
}

/* ===== PRIMARY MENU ===== */
.primary-menu {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    display: inline-flex; /* Changed from 'flex' to 'inline-flex' */
    justify-content: center;
    gap: 40px;
    font-size: 1.1em;
    
    /* Border around entire menu */
    border: 1px solid #55433D;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #ffffff; /* Text color white */
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 18.2px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 17.6px;
    letter-spacing: 0.3px;
    
    /* NO border on individual items */
    border: none;
}

.primary-menu a:hover {
    color: #DFD4C9; /* Hover color */
}

/* Dropdown menu */
.dropdown-menu {
    display: none; /* Add this line */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #836B55;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    z-index: 1000;
    border: 1px solid #55433D;
    border-radius: 4px;
}
.dropdown-menu a {
    border: none;
}

/* ===== HEADER SCROLLED STATE ===== */
#main-header.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
#main-header.site-header.scrolled .header-left,
#main-header.site-header.scrolled .primary-menu a {
    color: #333 !important;
    text-shadow: none;
}
#main-header.site-header.scrolled .site-logo { color: #222; }
#main-header.site-header.scrolled .header-button { background: #e63946; }

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;        /* Space for fixed header */
    margin-top: -120px;        /* Pull up behind header */
}
.hero h1 { font-size: 3.5em; margin-bottom: 20px; }
.hero p { font-size: 1.5em; margin-bottom: 40px; opacity: 0.9; }
.hero-button {
    background: #e63946;
    color: white;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* ===== SERVICES ===== */
.services { padding: 100px 20px; background: #f8f5f0; }
.services h2 { text-align: center; font-size: 2.5em; margin-bottom: 60px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid #d4a574;
    font-size: 1.2em;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer { background: #2a2a2a; color: white; text-align: center; padding: 40px 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top-row { flex-direction: column; gap: 15px; }
    .header-left, .header-center, .header-right { text-align: center; width: 100%; }
    .primary-menu li { display: block; margin: 10px 0; }
    .hero h1 { font-size: 2.5em; }
    .services-grid { grid-template-columns: 1fr; }
}

v/* ===== ENHANCED HEADER ===== */
#main-header.site-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-logo {
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #8a6a4a, #6f5740);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ENHANCED HERO ===== */
.hero {
    min-height: 90vh;
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)),
        url('https://labellamadera.com/uploads/2026/01/Live-Edge-00.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}
.hero h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    font-weight: 800;
}
.hero p {
    font-size: 1.8em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    max-width: 700px;
    line-height: 1.5;
}
.hero-button {
    background: linear-gradient(135deg, #8a6a4a, #6f5740);
    color: white;
    padding: 18px 50px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(138, 106, 74, 0.3);
}
.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 106, 74, 0.4);
    background: linear-gradient(135deg, #9a7a5a, #7f6750);
}

/* ===== ENHANCED SERVICES ===== */
.services {
    padding: 120px 20px;
    background: #f8f5f0;
}
.services h2 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 80px;
    color: #2a2a2a;
    position: relative;
}
.services h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #8a6a4a, #6f5740);
    border-radius: 2px;
}
.service-card {
    background: white;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 1.3em;
    font-weight: 600;
    color: #2a2a2a;
}
.service-card:hover {
    transform: translateY(-15px);
    border-color: #8a6a4a;
    box-shadow: 0 25px 50px rgba(138, 106, 74, 0.15);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #8a6a4a, #6f5740);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 120px 20px;
    background: white;
}
.portfolio h2 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 80px;
    color: #2a2a2a;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.portfolio-item {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s;
}
.portfolio-item:hover {
    transform: scale(1.03);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.4s;
}
.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    padding: 120px 20px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: white;
    text-align: center;
}
.cta-content {
    max-width: 800px;
    margin: 0 auto;
}
.contact-cta h2 {
    font-size: 3em;
    margin-bottom: 30px;
    color: white;
}
.contact-cta p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}
.cta-contact-info {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 500px;
    text-align: left;
    display: inline-block;
}
.cta-contact-info p {
    margin: 15px 0;
    font-size: 1.2em;
}
.cta-button {
    background: #8a6a4a;
    color: white;
    padding: 20px 50px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin-top: 30px;
}
.cta-button:hover {
    background: #9a7a5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 106, 74, 0.3);
}

/* Phone Link - CORRECTED VERSION */
.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #DFD4C9;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 18.2px;
    font-weight: 600;
    line-height: 22.8px;
    transition: color 0.3s ease;
    gap: 5px;
}
.phone-link:hover {
    color: #ffffff;
}
.phone-icon {
    font-size: 16px;
    vertical-align: middle;
    color: #DFD4C9;
    position: relative;
    top: 3px;
}
.phone-link:hover .phone-icon {
    color: #ffffff;
}
/* SVG ICON */
.phone-icon svg {
    width: 18px;
    height: 18px;
    fill: #DFD4C9; /* ADD THIS MISSING LINE */
    transition: fill 0.3s ease;
}
.phone-link:hover .phone-icon svg {
    fill: #ffffff;
}

/* ===== QUOTE BUTTON ===== */
.quote-btn {
    background-color: #836B55;
    color: white;
    padding: 18px 50px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(138, 106, 74, 0.3);
    font-family: 'Saira Condensed', sans-serif;
    text-transform: uppercase;
    line-height: 17.6px;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}
.quote-btn:hover {
    box-shadow: 0 15px 40px rgba(138, 106, 74, 0.4);
    background-color: #996A38;
    color: #ffffff;
}

/* ===== DROPDOWN MENU (HOVER) ===== */
.menu-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #836B55;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    z-index: 1000;
    border: 1px solid #55433D;
    border-radius: 4px;
}

.dropdown-menu a {
    color: #ffffff !important;
    padding: 10px 20px;
    display: block;
    text-transform: none;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 18.2px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #C8B5A5;
    color: #ffffff !important;
}

.menu-dropdown:hover .dropdown-menu {
    display: block;
}