/* --- GEM RED THEME --- */
:root {
    --primary-red: #cc0000;       /* Your Company Red */
    --dark-red: #8a0000;          /* Darker red for hover effects */
    --text-dark: #222222;
    --text-light: #555555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --max-width: 1200px;
    --nav-height: 95px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: var(--nav-height); /* Prevent content hiding behind fixed header */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

main {
    flex: 1;
    display: block;
}

body.nav-open {
    overflow: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-weight: 700; margin-bottom: 1rem; color: #111; }
h2.section-title { text-align: center; font-size: 2.2rem; color: var(--primary-red); margin-bottom: 40px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }
.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;
}

/* --- UTILITIES --- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section-padding { padding: 40px 0; }
.section-tight {
    padding: 20px 0;
}

.section-tight .section-title {
    margin-bottom: 20px;
}

.section-tight .section-subtitle {
    margin-bottom: 10px;
}
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.red-text { color: var(--primary-red); }
.section-subtitle {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
}
.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.link-cta,
a[href^="tel:"]:not(.btn) {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: underline;
}
.link-cta:hover,
a[href^="tel:"]:not(.btn):hover {
    color: var(--dark-red);
}

/* --- HEADER & NAV --- */
.site-header {
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 4px 0;
}

.header-layout {
    display: flex;
    flex-direction: column;
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo img {
    height: 54px;
    width: auto;
}

.header-cta .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cta {
    margin-left: 1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.main-nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
    padding: 0.15rem 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 66px;
}

.main-nav a span {
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
}

body.nav-open .menu-toggle span {
    background: var(--primary-red);
}

.desktop-only {
    display: block;
}

.has-dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.has-dropdown > a::after {
    content: '▾';
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.has-dropdown.is-active > a::after,
.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    padding: 0.75rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    text-transform: none;
    font-size: 0.9rem;
}

.dropdown a:hover,
.dropdown a.active {
    background: var(--bg-light);
    color: var(--primary-red);
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
.btn-primary { background: var(--primary-red); color: var(--white); border: 2px solid var(--primary-red); }
.btn-primary:hover { background: var(--dark-red); border-color: var(--dark-red); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-red); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('images/garage-door-hero.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 0 100px;
    text-align: center;
    margin-top: calc(var(--nav-height) * -1);
    padding-top: var(--nav-height);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #f2d7d7;
}

.hero-subtext {
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    max-width: 680px;
    color: #f8f8f8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero {
    padding: 100px 0 40px;
    background: #fff;
    text-align: center;
}
.page-hero .hero-kicker {
    color: var(--dark-red);
}
.page-hero .btn-outline {
    color: var(--primary-red);
    border-color: var(--primary-red);
}
.page-hero .btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    display: block;
    background: var(--white);
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    color: inherit;
}
.service-card:hover { transform: translateY(-5px); border-bottom: 5px solid var(--primary-red); }
.service-icon { font-size: 3rem; margin-bottom: 15px; display: block; }

/* Add this to styles.css */
.service-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--primary-red); /* This makes them Red */
    margin-bottom: 15px;
}

.cta-row {
    margin-top: 40px;
}

.split-section {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
    min-width: 280px;
}

.split-visual {
    flex: 1;
    min-height: 260px;
    border-radius: 16px;
    color: #fff;
    font-weight: 600;
    padding: 25px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.split-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

.split-visual > * {
    z-index: 1;
    position: relative;
}

.placeholder-springs {
    background-image: linear-gradient(120deg, rgba(204,0,0,0.85), rgba(26,26,26,0.85));
}

.placeholder-openers {
    background-image: linear-gradient(120deg, rgba(34,34,34,0.9), rgba(136,0,0,0.85));
}

.styled-list {
    margin: 20px 0 0 20px;
    padding-left: 15px;
}

.styled-list li {
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cta-panel {
    background: #1f1f1f;
    color: #fff;
}

.cta-panel .split-text {
    color: #fff;
}

.container.narrow {
    max-width: 900px;
}

.page-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    padding: 0;
}

.pill-list li {
    background: var(--bg-light);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card strong {
    font-size: 1.8rem;
    color: var(--primary-red);
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.gallery-card div {
    background: #e5e5e5;
    height: 180px;
}

.gallery-card p {
    padding: 15px;
    font-weight: 600;
    color: #111;
    text-shadow: 0 0 6px rgba(255,255,255,0.8);
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.image-grid figure {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    max-width: 90%;
}
.image-grid img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    object-position: center;
    display: block;
}
.image-grid figcaption {
    padding: 16px;
    font-size: 0.95rem;
    color: var(--text-light);
    border-top: 1px solid #f1f1f1;
    background: #fafafa;
}

.checklist {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.checklist li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.cta-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    align-items: start;
}

.contact-card,
.map-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.map-card {
    padding: 0;
}

.map-card iframe {
    display: block;
    width: 100%;
    border: 0;
}

.notice-card {
    margin-top: 30px;
    background: #f9f0f0;
    border-left: 5px solid var(--primary-red);
    padding: 20px;
    border-radius: 10px;
}

.contact-details p {
    margin-bottom: 10px;
}


/* --- REVIEWS SECTION --- */
.reviews {
    background-color: #fcfcfc;
    padding-top: 10px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-red); /* Branding touch */
    position: relative;
}

.stars {
    color: #ffc107; /* Standard Gold for stars */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.review-author {
    font-weight: bold;
    color: #222;
}

.review-location {
    font-size: 0.9rem;
    color: #1a1a1a;
    display: block; /* Forces new line */
}


.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.buttons-container svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #4285F4; /* Google Blue */
    border: 2px solid #5e72c9;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.google-btn:hover {
    background: #f1f1f1;
    color: #3367d6;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877F2; /* Facebook Blue */
    color: white;
    border: 1px solid #1877F2;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fb-btn:hover {
    background: #145dbf;
    border-color: #145dbf;
    color: white;
}




/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: auto; /* Pushes footer to bottom if page is short */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    align-items: start; /* Aligns content to top */
}

footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-red); 
    display: inline-block;
    padding-bottom: 5px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px; /* Slight movement on hover */
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.footer-phone {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.payment-note {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #aaa;
}

.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-red);
    color: #fff;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 15px 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 1100;
}

.mobile-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: center;
}

.mobile-cta-headline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-cta-subline {
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-cta-bar .btn {
    flex: 0 0 auto;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: #fff;
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    body {
        padding-bottom: 90px;
    }

    .mobile-cta-bar {
        display: flex;
    }

    .header-cta {
        margin-left: auto;
        margin-right: auto;
    }

    .header-top {
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        z-index: 1200;
        pointer-events: none;
        opacity: 0;
        flex: none;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 0;
        align-items: stretch;
    }

    .main-nav li {
        width: 100%;
        border-top: 1px solid #f2f2f2;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        display: flex;
        flex-direction: row;
        gap: 6px;
        width: 100%;
        padding: 0.85rem 1.25rem;
        text-align: left;
        min-width: 0;
    }

    .main-nav a span {
        display: inline;
    }

    .main-nav.open {
        max-height: 1200px;
        pointer-events: auto;
        opacity: 1;
    }

    .dropdown {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 0.5rem;
        background: transparent;
        width: 100%;
    }

    .dropdown li {
        border: 0;
    }

    .dropdown a {
        padding: 0.5rem 2.75rem;
        font-size: 0.9rem;
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 90px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtext {
        font-size: 1.05rem;
    }

    .split-section,
    .split-section.reverse {
        flex-direction: column;
    }

    .split-visual,
    .split-text {
        width: 100%;
    }

    .contact-grid {
        gap: 30px;
        font-weight: 500;
    }
}

@media (max-width: 640px) {
    .header-cta {
        width: 100%;
        text-align: center;
    }

    .header-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-cta {
        display: none;
    }
}