/* Alpha Rooter & Plumbing Lafayette - Stylesheet */
/* Color Scheme: E-Amber Gold (#B45309) */
/* Fonts: Montserrat (headings), Lato (body) */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #B45309;
    --primary-dark: #92400E;
    --primary-light: #D97706;
    --secondary-color: #1F2937;
    --accent-color: #F59E0B;
    --text-dark: #111827;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #FEF3C7;
    --bg-cream: #FFFBEB;
    --border-color: #E5E7EB;
    --gradient-start: #B45309;
    --gradient-mid1: #D97706;
    --gradient-mid2: #F59E0B;
    --gradient-mid3: #FBBF24;
    --gradient-mid4: #FCD34D;
    --gradient-mid5: #FDE68A;
    --gradient-end: #FEF3C7;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-medium);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}

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

.nav-link:hover {
    color: var(--primary-color);
}

.header-cta {
    display: none;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-medium);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--gradient-start) 0%,
        var(--gradient-mid1) 15%,
        var(--gradient-mid2) 30%,
        var(--gradient-mid3) 45%,
        var(--gradient-mid4) 60%,
        var(--gradient-mid5) 75%,
        var(--gradient-end) 100%
    );
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--bg-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--bg-white);
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.hero-buttons .btn {
    min-width: 280px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* ===== Emergency Banner ===== */
.emergency-banner {
    background-color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
}

.emergency-content h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.emergency-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* ===== Services Section - Masonry Layout ===== */
.services {
    background-color: var(--bg-cream);
}

.services-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link:hover {
    gap: 0.5rem;
}

/* ===== About Section ===== */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Problems Section ===== */
.problems {
    background-color: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.problem-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.problem-card:hover {
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ===== Locations Section ===== */
.locations {
    background-color: var(--bg-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.location-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-card h3 {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.location-card p {
    padding: 0 1.25rem 1.5rem;
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.cta-item {
    color: var(--bg-white);
    font-size: 1rem;
}

.cta-item strong {
    color: var(--accent-color);
}

.cta-item a {
    color: var(--bg-white);
    text-decoration: underline;
}

/* ===== FAQ Section ===== */
.faq {
    background-color: var(--bg-cream);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    color: var(--text-dark);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--bg-cream);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--accent-color);
}

.footer h4 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

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

.footer-services ul li,
.footer-areas ul li {
    color: rgba(255, 255, 255, 0.7);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Fade In Up Animation ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Styles ===== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .main-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .header-cta {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        min-width: auto;
    }
    
    .hero-features {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .services-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card.tall {
        grid-row: span 2;
    }
    
    .service-card.wide {
        grid-column: span 2;
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-info {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    section {
        padding: 6rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .services-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .locations-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .locations-grid .location-card:nth-child(9),
    .locations-grid .location-card:nth-child(10) {
        grid-column: span 1;
    }
}

/* Mobile Menu Open */
.main-nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.main-nav.mobile-open .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.main-nav.mobile-open .nav-link {
    display: block;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .hero-buttons,
    .emergency-banner,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}