/**
 * Mr. Windows of Houston - Main Stylesheet
 * Tesla-inspired minimalist design
 */

/* ======================
   CSS VARIABLES
   ====================== */
:root {
    --black: #171a20;
    --gray-dark: #393c41;
    --gray: #5c5e62;
    --gray-light: #f4f4f4;
    --white: #ffffff;
    --green: #5d6e42; /* Darker sage for AA compliance */
    --green-bright: #7a8a4b; 
    --green-dark: #4a5835; 
    --promo-red: #c0262d; /* High-contrast red */
    --max-width: 1800px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ======================
   NAVIGATION
   ====================== */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

#main-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO STYLES */
.logo {
    display: block;
    max-width: 220px; /* Limits large logo size */
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}


/* MOBILE LOGO SIZE */
@media (max-width: 768px) {
    .logo {
        max-width: 160px;
    }
    .nav-container {
        padding: 0.5rem 1.25rem;
    }
}

.nav-links {
    display: none;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--black);
    transition: all 0.2s ease;
    border-radius: 4px;
    display: block;
}

.nav-link:hover {
    background: var(--gray-light);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--black);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dropdown a:hover {
    background: var(--gray-light);
}

/* Highlighted dropdown link (e.g., Compare All Materials) */
.dropdown a.dropdown-feature{
    background: rgba(139, 154, 91, 0.10);
    color: var(--green);
    font-weight: 600;
    border-left: 3px solid var(--green);
}

.dropdown a.dropdown-feature:hover{
    background: rgba(139, 154, 91, 0.16);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-phone {
    display: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-dark);
}

@media (min-width: 768px) {
    .nav-phone {
        display: block;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ======================
   BUTTONS
   ====================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--gray-dark);
}

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

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

/* UPDATED FOR CONVERSION: Bolder, shadow, better hover state */
.btn-green {
    background: var(--green);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(139, 154, 91, 0.3);
}

.btn-green:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(139, 154, 91, 0.4);
}

.btn-promo {
    background: var(--green);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-promo:hover {
    background: var(--green-dark);
}

/* ======================
   PROMO BANNER
   ====================== */
.promo-banner {
    padding: 0 2.5rem 3rem;
    background: transparent;
}

.promo-container {
    max-width: 1100px;
    margin: -3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.promo-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.promo-main h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.promo-discount {
    color: var(--green);
    margin-right: 0.5rem;
}

.promo-description {
    color: var(--gray-dark);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.promo-expires {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ======================
   MAIN CONTENT
   ====================== */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 400px);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: 6rem 0;
}

.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ======================
   FORMS
   ====================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}

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

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ======================
   FOOTER - PREMIUM DARK BLACK
   ====================== */



/* ======================
   FOOTER - HIGH CONTRAST DARK
   ====================== */
.site-footer {
    /* Change from green gradient to matte black */
    background: #121212; 
    color: #d1d5db; /* Light gray base text */
    padding: 5rem 0 0 0;
    margin-top: 4rem;
    position: relative;
    border-top: 1px solid #27272a; /* Subtle top border */
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* Brand Section */
.footer-brand {
    padding-right: 2rem;
}

/* Contact Details */
.footer-contact p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #a1a1aa; /* Slightly darker gray for labels */
}

.footer-contact strong {
    color: #ffffff; /* White for labels like 'Phone:' */
}

.footer-contact a {
    /* Keeps your gold phone number */
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: #27272a; /* Dark gray circle/box */
    border-radius: 50%; /* Circle looks cleaner */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #fbbf24; /* Gold on hover */
    color: #000000;
}

/* Column Headings - Updated from H4 to H3 for Accessibility */
.footer-section h3 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.5rem 0;
    /* Optional: Small accent line under heading */
    border-bottom: 1px solid #fbbf24; 
    display: inline-block;
    padding-bottom: 5px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    /* The Light Gray Link Color */
    color: #9ca3af; 
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    /* Bright White on Hover */
    color: #ffffff;
    padding-left: 5px; /* Subtle movement */
}

/* Footer Bottom */
.footer-bottom {
    background: #000000; /* Pure black for bottom bar */
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #27272a;
}

.footer-bottom p {
    color: #a1a1aa; /* Brightened for WCAG AA compliance */
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: #a1a1aa; /* Brightened for WCAG AA compliance */
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Responsive adjustments (Keep existing media queries) */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}



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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
/* ========================================
   PREMIUM LINK STYLING - LEVEL 1
   Clean, professional, high-end agency quality
   ======================================== */

/* Content area links - Premium clean style */
.content-block a:not(.btn):not(.nav-link),
.guide-content a:not(.btn):not(.nav-link),
.content-section a:not(.btn):not(.nav-link),
p a:not(.btn):not(.nav-link),
li a:not(.btn):not(.nav-link) {
    color: #8b9a5b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.content-block a:not(.btn):not(.nav-link):hover,
.guide-content a:not(.btn):not(.nav-link):hover,
.content-section a:not(.btn):not(.nav-link):hover,
p a:not(.btn):not(.nav-link):hover,
li a:not(.btn):not(.nav-link):hover {
    color: #6b7a3b;
}

/* Visited links - slightly muted to show they've been clicked */
.content-block a:not(.btn):not(.nav-link):visited,
.guide-content a:not(.btn):not(.nav-link):visited,
.content-section a:not(.btn):not(.nav-link):visited,
p a:not(.btn):not(.nav-link):visited,
li a:not(.btn):not(.nav-link):visited {
    color: #7a8a4b;
}

/* Make sure navigation links aren't affected by content-area link colors.
   .btn and .button are intentionally excluded — they own their own colors
   via .btn-primary/.btn-secondary/etc. Including them here forces inherit
   and breaks dark-bg buttons (e.g. .btn-primary becomes black-on-black). */
nav a,
.nav-link,
header a,
footer a {
    color: inherit;
}

/* Calculator results section links */
.calculator-result a:not(.btn),
.result-breakdown a:not(.btn) {
    color: #8b9a5b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.calculator-result a:not(.btn):hover,
.result-breakdown a:not(.btn):hover {
    color: #6b7a3b;
}

/* Red flags and special sections */
.red-flags a:not(.btn),
.common-mistake a:not(.btn),
.by-numbers a:not(.btn) {
    color: #8b9a5b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.red-flags a:not(.btn):hover,
.common-mistake a:not(.btn):hover,
.by-numbers a:not(.btn):hover {
    color: #6b7a3b;
}

/* Premium card sections - if links are inside */
.rating-card a:not(.btn),
.question-card a:not(.btn) {
    color: #8b9a5b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rating-card a:not(.btn):hover,
.question-card a:not(.btn):hover {
    color: #6b7a3b;
}

/* Footer links - High Contrast Dark Mode Updates */
footer a:not(.btn):not(.nav-link) {
    color: #9ca3af; /* <--- CHANGED TO GRAY */
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

footer a:not(.btn):not(.nav-link):hover {
    color: #ffffff;
}

/* Reviews Page Grid */
.reviews-section {
    max-width: 100% !important;
    width: 100% !important;
    padding: 5rem 4rem !important;
}

.reviews-section .container {
    max-width: 100% !important;
    padding: 0 !important;
}

.reviews-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto 4rem !important;
}

.review-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Accessibility: Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100px; /* Hide off-screen by default */
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24; /* Your brand gold for high visibility */
    color: #0b0f14;
    padding: 12px 24px;
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0; /* Pop into view when focused via Tab key */
    outline: 3px solid #0b0f14;
}

/* ======================
   ACCESSIBILITY UTILITIES
   ====================== */

/* Hides text visually but keeps it for screen readers/bots */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Pricing note block (routes pricing intent to the calculator) */
.pricing-note { padding: 18px 0; background: #f7f9f7; }
.pricing-note .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.pricing-note p { margin: 0; font-size: 15px; line-height: 1.5; }
.pricing-note a { text-decoration: underline; }