/* Cactus City Wallcovering Pros - Federal Monumental Theme */
/* Color Palette: Slate Blue (#334155), Marble White (#f8fafc), Brick Red (#b91c1c) */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    --slate-blue: #334155;
    --slate-blue-dark: #1e293b;
    --slate-blue-light: #475569;
    --marble-white: #f8fafc;
    --brick-red: #b91c1c;
    --brick-red-dark: #991b1b;
    --brick-red-light: #dc2626;
    --gold-accent: #d4a574;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--marble-white);
    padding-top: 80px; /* Fixed header offset */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--slate-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

a {
    color: var(--brick-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--slate-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--marble-white);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gold-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--marble-white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--marble-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--slate-blue) 0%, var(--slate-blue-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--marble-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--brick-red);
    color: var(--marble-white);
}

.btn-primary:hover {
    background: var(--brick-red-dark);
    color: var(--marble-white);
}

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

.btn-secondary:hover {
    background: var(--marble-white);
    color: var(--slate-blue);
}

/* Lead Form Container */
.feedback-form-container {
    background: var(--marble-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feedback-form-container h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--slate-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--slate-blue);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 1rem;
}

.form-submit {
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--brick-red);
    color: var(--marble-white);
    border: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--brick-red-dark);
}

#form-success {
    text-align: center;
    padding: 1rem;
    background: #dcfce7;
    border-radius: 4px;
    margin-top: 1rem;
}

#form-success p {
    color: #166534;
    margin: 0;
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
}

.section-light {
    background: var(--marble-white);
}

.section-dark {
    background: var(--slate-blue);
}

.section-alt {
    background: #f1f5f9;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-header h2 {
    margin-top: 0;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--marble-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.area-card {
    background: var(--marble-white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.area-card:hover {
    border-color: var(--brick-red);
    transform: translateY(-3px);
}

.area-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.area-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--brick-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--marble-white);
}

.feature-content h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--marble-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--brick-red);
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.testimonial-card cite {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-facade {
    position: relative;
    height: 400px;
    background: var(--slate-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-facade:hover {
    background: var(--slate-blue);
}

.map-facade-content {
    text-align: center;
    color: var(--marble-white);
}

.map-facade-content svg {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    fill: var(--marble-white);
}

.map-facade-content p {
    color: var(--marble-white);
    font-size: 1.1rem;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--slate-blue) 0%, var(--slate-blue-dark) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.page-header h1 {
    color: var(--marble-white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 4rem 1.5rem;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.two-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--marble-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--slate-blue);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brick-red);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

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

/* Footer */
.footer {
    background: var(--slate-blue-dark);
    color: var(--marble-white);
    padding: 4rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--marble-white);
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

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

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-resources {
    margin-top: 1rem;
}

.footer-resources a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 1rem;
    font-size: 0.85rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--brick-red);
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-banner h2 {
    color: var(--marble-white);
    margin-top: 0;
}

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

.cta-banner .btn-secondary {
    border-color: var(--marble-white);
}

.cta-banner .btn-secondary:hover {
    background: var(--marble-white);
    color: var(--brick-red);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
}

.breadcrumbs-container {
    max-width: 1280px;
    margin: 0 auto;
}

.breadcrumbs a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.breadcrumbs .current {
    color: var(--slate-blue);
}

/* Location-specific accent colors */
.accent-urban { --accent-color: #0284c7; }
.accent-luxury { --accent-color: #7c3aed; }
.accent-historic { --accent-color: #b45309; }
.accent-residential { --accent-color: #059669; }
.accent-mountain { --accent-color: #6366f1; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .two-column.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header-container {
        height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--slate-blue);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* 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: 0;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--brick-red);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brick-red);
    color: var(--marble-white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}
