/* Overhead Door Company of Orange County - Stylesheet */

:root {
    --primary-red: #E00034;
    --body-text: #000000;
    --bg-white: #FFFFFF;
    --gray-text: #666666;
    --gray-bg: #F2F2F2;
    --dark-gray: #4A4A4A;
    --font-family: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--body-text);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Emergency Bar */
.emergency-bar {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.emergency-bar a {
    color: white;
    text-decoration: none;
}

/* Phone Bar */
.phone-bar {
    background-color: var(--dark-gray);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Header */
header {
    background-color: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

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

.tagline {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-style: italic;
    font-weight: 300;
    margin-top: -2px;
}

.logo-location {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-gray);
    letter-spacing: 0.5px;
    margin-top: 0;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 15px 18px;
    text-decoration: none;
    color: var(--body-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

nav a:hover, nav a:focus-visible {
    color: var(--primary-red);
}

/* Contact button in nav */
.contact-btn {
    background-color: var(--primary-red);
    color: white !important;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    margin-left: 5px;
}

.contact-btn:hover {
    background-color: #c00029;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-red);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
}

.dropdown-menu a:hover {
    background-color: var(--gray-bg);
    color: var(--primary-red);
}

/* Hero/Page Banner */
.page-banner {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-banner h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.page-banner p {
    color: #ddd;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background-color: var(--dark-gray);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

/* Video Hero Background */
.hero.hero-video {
    position: relative;
    overflow: hidden;
    padding: 120px 20px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

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

.hero-video-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover, .btn:focus-visible {
    background-color: #c00029;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 60px 0;
}

section.alt-bg {
    background-color: var(--gray-bg);
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 250px;
    background-color: #ddd;
    overflow: hidden;
}

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

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.card .btn {
    width: 100%;
    text-align: center;
}

/* Product Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 25px;
    background-color: var(--gray-bg);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: var(--primary-red);
    color: white;
}

.tab-button:hover {
    background-color: var(--primary-red);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* FAQ Accordion */
.accordion {
    border: 1px solid #e0e0e0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    background-color: var(--gray-bg);
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e8e8e8;
}

.accordion-header.active {
    background-color: var(--primary-red);
    color: white;
}

.accordion-content {
    display: none;
    padding: 20px;
    background-color: white;
}

.accordion-content.active {
    display: block;
}

/* Forms */
form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: var(--font-family);
    font-size: 1rem;
    border-radius: 0;
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.footer-services {
    padding: 40px 0;
    background-color: var(--gray-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/footer-service-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: var(--primary-red);
    text-decoration: none;
}

.footer-info {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--primary-red);
    text-decoration: none;
}

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

.footer-copyright {
    background-color: var(--dark-gray);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* Utility Classes */
.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;
}

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

.text-red {
    color: var(--primary-red);
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--body-text);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        border-bottom: 1px solid #e0e0e0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo-section {
        flex: 1;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero.hero-video {
        min-height: 50vh;
        padding: 80px 20px;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    header, .emergency-bar, .phone-bar, footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Hero Split Section */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.hero-split-image {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: 0;
}

.hero-split-content h2 {
    margin-bottom: 20px;
}

.hero-split-content p {
    color: var(--gray-text);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-split-image {
        height: 250px;
    }
}

/* City Teaser Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.city-card {
    background-color: var(--gray-bg);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--body-text);
    transition: all 0.3s ease;
    border-radius: 0;
}

.city-card:hover {
    background-color: var(--primary-red);
    color: white;
}

/* Offer Cards */
.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.offer-card {
    background: white;
    border: 2px solid var(--primary-red);
    padding: 30px;
    text-align: center;
    border-radius: 0;
}

.offer-card h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

.offer-card .discount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 20px 0;
}

.offer-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    padding: 40px 0;
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Lists */
ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    color: var(--gray-text);
}

/* City Section Links */
.city-section {
    scroll-margin-top: 100px;
    padding-top: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.city-section h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

.city-section p {
    color: var(--gray-text);
}


/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-split-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

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

/* Partnership Badge Styles */
.partnership-badge {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.partnership-badge:hover {
    transform: scale(1.05);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.partner-logo svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .card-image {
        height: 200px;
    }

    .hero-split-image {
        height: 300px;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }

    .partner-logo {
        min-height: 80px;
    }
}
