/* ==========================================
   COLOR PALETTE & VARIABLES
   ========================================== */

:root {
    --navy: #0F1C2E;
    --brown: #8B5E3C;
    --gold: #D4A017;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --dark-text: #1a1a1a;
    --light-text: #666;
    
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c49214;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.3);
}

.btn-secondary {
    background-color: var(--navy);
    color: var(--gold);
}

.btn-secondary:hover {
    background-color: #1a2a3e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 28, 46, 0.3);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: #c49214;
}

.btn-white {
    background-color: var(--white);
    color: var(--navy);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
}

.cta-button-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--gold) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 4px;
}

.nav-cta:hover::after {
    width: 0 !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* ==========================================
   STICKY MOBILE CTA
   ========================================== */

.sticky-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sticky-cta a {
    background-color: var(--gold);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.4);
    transition: var(--transition);
}

.sticky-cta a:hover {
    background-color: #c49214;
    transform: scale(1.05);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--navy);
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a3e 0%, #0F1C2E 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 28, 46, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badges {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.badge {
    background-color: rgba(212, 160, 23, 0.2);
    color: var(--gold);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--gold);
}

/* ==========================================
   TRUST STRIP
   ========================================== */

.trust-strip {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trust-item p {
    font-weight: 600;
    color: var(--navy);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--light-gray);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 160, 23, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.8;
}

/* ==========================================
   WHY CHOOSE US SECTION
   ========================================== */

.why-choose {
    background-color: var(--navy);
    color: var(--white);
    padding: 80px 0;
}

.why-choose .section-title {
    color: var(--gold);
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-card {
    text-align: center;
    padding: 30px;
    background-color: rgba(212, 160, 23, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    transition: var(--transition);
}

.why-card:hover {
    background-color: rgba(212, 160, 23, 0.2);
    border-color: var(--gold);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.why-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* ==========================================
   FEATURED PROJECTS SECTION
   ========================================== */

.projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--light-gray);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #8B5E3C 0%, #D4A017 100%);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.project-image.bathroom {
    background: linear-gradient(135deg, #6b4c3d 0%, #a8744a 100%);
}

.project-image.kitchen {
    background: linear-gradient(135deg, #8B5E3C 0%, #d9a856 100%);
}

.project-image.stairs {
    background: linear-gradient(135deg, #5f4a3a 0%, #9d7d63 100%);
}

.project-image.flooring {
    background: linear-gradient(135deg, #7a5333 0%, #c29a5f 100%);
}

.project-info {
    padding: 30px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-result {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */

.reviews {
    background-color: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.review-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--gold);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.review-stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

/* ==========================================
   SERVICE AREA SECTION
   ========================================== */

.service-area {
    background: linear-gradient(135deg, #0F1C2E 0%, #1a2a3e 100%);
    color: var(--white);
    padding: 80px 0;
}

.service-area-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.service-area-content .section-title {
    color: var(--gold);
    margin-bottom: 30px;
}

.service-area-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.service-area-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    margin-top: 30px;
}

.service-areas-list {
    list-style: none;
    margin-bottom: 40px;
}

.service-areas-list li {
    padding: 12px 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

.service-areas-list li:last-child {
    border-bottom: none;
}

.service-area-cta {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 30px;
    font-size: 1rem;
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */

.final-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2f47 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 50px;
    font-weight: 600;
}

.final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   ESTIMATE FORM MODAL
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 50px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    color: var(--light-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--navy);
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.modal-content > p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.estimate-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .hero-subheadline {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn, .btn-large {
        width: 100%;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .final-cta h2 {
        font-size: 1.8rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
    }
    
    .sticky-cta {
        display: flex;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-headline {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .service-card,
    .review-card,
    .why-card {
        padding: 25px 20px;
    }
    
    .trust-grid {
        gap: 20px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print styles */
@media print {
    .navbar,
    .sticky-cta,
    .final-cta-buttons,
    .btn {
        display: none;
    }
}
