/* ==================================
   BROMBOROUGH BUILDERS - MAIN STYLESHEET
   Brand Palette: Heritage Slate #334155 + Warm Copper #D97706
   ================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary-heritage-slate: #334155;
    --secondary-warm-copper: #D97706;
    --accent-deep-charcoal: #1F2937;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    
    /* Backgrounds */
    --background: #F9FAFB;
    --white: #FFFFFF;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    
    /* Spacing */
    --section-padding: 80px;
    --container-max-width: 1200px;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-heritage-slate);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    min-width: 200px;
}

.btn-primary {
    background-color: var(--secondary-warm-copper);
    color: var(--white);
    border-color: var(--secondary-warm-copper);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-heritage-slate);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
    min-height: 56px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('/static/images/hero-primary.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

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

/* ===== TRUST BAR ===== */
.trust-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.trust-bar-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-heritage-slate);
    font-weight: 600;
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--secondary-warm-copper);
    font-size: 1.2rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.credentials-badges {
    background-color: var(--background);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-warm-copper);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item i {
    color: var(--secondary-warm-copper);
    font-size: 1rem;
}

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-heritage-slate);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.05) 0%, rgba(249, 250, 251, 1) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(51, 65, 85, 0.15);
}

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

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-heritage-slate);
}

.service-card p {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-list {
    text-align: left;
}

.service-list h4 {
    color: var(--secondary-warm-copper);
    margin-bottom: 10px;
    font-size: 1rem;
}

.service-list ul {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-warm-copper);
    font-weight: bold;
}

/* ===== WHY CHOOSE US / TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.why-card:hover {
    border-color: var(--secondary-warm-copper);
    transform: translateY(-5px);
}

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

.why-card h3 {
    margin-bottom: 15px;
    color: var(--primary-heritage-slate);
    font-size: 1.25rem;
}

.why-card p {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== SERVICE AREA MAP SECTION ===== */
.service-area-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.05) 0%, rgba(249, 250, 251, 1) 100%);
}

.service-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-area-map h2 {
    margin-bottom: 25px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-area-list h3 {
    margin-bottom: 25px;
    color: var(--primary-heritage-slate);
}

.areas-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.areas-columns ul {
    list-style: none;
    padding: 0;
}

.areas-columns li {
    padding: 10px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.areas-columns li i {
    color: var(--secondary-warm-copper);
    font-size: 0.9rem;
}

.service-note {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--background);
    border-left: 4px solid var(--secondary-warm-copper);
    border-radius: 8px;
}

.service-note a {
    color: var(--secondary-warm-copper);
    font-weight: 600;
}

.service-note a:hover {
    text-decoration: underline;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-heritage-slate) 0%, var(--accent-deep-charcoal) 100%);
    color: var(--white);
    text-align: center;
}

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

.cta-subtitle {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

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

.cta-reassurance {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--accent-deep-charcoal);
    color: #D1D5DB;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-address {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact {
    line-height: 1.8;
}

.footer-contact a {
    color: var(--secondary-warm-copper);
}

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

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background-color: var(--secondary-warm-copper);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #D1D5DB;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--secondary-warm-copper);
    padding-left: 5px;
}

.footer-credentials {
    list-style: none;
    padding: 0;
}

.footer-credentials li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-credentials i {
    color: var(--secondary-warm-copper);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-warm-copper);
}

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

/* ==================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ================================== */

/* TABLET (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-area-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* MOBILE (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 40px;
    }
    
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Trust Bar Mobile */
    .trust-bar {
        padding: 12px 0;
    }
    
    .trust-bar-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .trust-item {
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .trust-item i {
        font-size: 1.5rem;
    }
    
    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Why Choose Us Mobile */
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    /* Service Areas Mobile */
    .areas-columns {
        grid-template-columns: 1fr;
    }
    
    /* Final CTA Mobile */
    .final-cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--secondary-warm-copper);
    outline-offset: 3px;
}
