/* ============================================
   CAL'S DOOR COMPANY - MAIN STYLESHEET
   Color Scheme:
   - Blue: #1E3A8A (Navy Blue) / #2563EB (Bright Blue)
   - White: #FFFFFF
   - Red: #DC2626 (Accent Red)
   - Gray: #6B7280 (Footer Gray)
   - Dark Gray: #1F2937
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #1F2937;
    background-color: #FFFFFF;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header Bar */
.top-header {
    background-color: #1E3A8A;
    padding: 20px 0;
    color: #FFFFFF;
    border-bottom: 3px solid #DC2626;
    min-height: 140px;
    display: flex;
    align-items: center;
}

.top-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    font-size: 16px;
}

.top-header .header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.top-header .header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-header .header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #FFFFFF;
}

.top-header .header-logo img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    background-color: #FFFFFF;
    padding: 4px;
    object-fit: contain;
    object-position: center 48%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.top-header .header-logo img[src=""],
.top-header .header-logo img:not([src]) {
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header .header-logo img:not([src])::after {
    content: "Logo";
    color: #9CA3AF;
    font-size: 10px;
}

.top-header .header-logo-text {
    display: flex;
    flex-direction: column;
}

.top-header .header-logo-text .company-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.top-header .header-logo-text .company-slogan {
    font-size: 16px;
    color: #DC2626;
    font-weight: 700;
    font-style: italic;
}

.top-header .header-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-header .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    white-space: nowrap;
}

.top-header .phone a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
}

.top-header .phone a:hover {
    color: #DC2626;
}

.top-header .header-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    line-height: 1.6;
}

.top-header .header-extra .hours-badge {
    background-color: #DC2626;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.top-header .header-extra .emergency-badge {
    color: #FEF3C7;
    font-size: 12px;
    font-weight: 600;
}

.top-header .rotating-cta {
    background-color: #DC2626;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    height: 42px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

/* Main Navigation with Sidebar Layout */
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 200px);
}

/* Hamburger Menu Button (hidden on desktop) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Navigation */
.sidebar {
    width: 220px;
    background-color: #EFF6FF;
    border-right: 2px solid #BFDBFE;
    padding: 25px 15px;
    position: sticky;
    top: 0;
    height: fit-content;
    min-height: calc(100vh - 200px);
}

.sidebar.bible-verse-mobile-hidden .bible-verse {
    display: block;
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 40px;
}

.sidebar-nav li {
    margin-bottom: 12px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 12px;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: #DBEAFE;
    border-left-color: #BFDBFE;
    color: #000000;
}

.sidebar-nav a.active {
    background-color: #DBEAFE;
    border-left-color: #DC2626;
    color: #DC2626;
}

.bible-verse {
    margin-top: 30px;
    padding: 15px;
    background-color: #FFFFFF;
    border: 2px solid #1E3A8A;
    border-radius: 8px;
    text-align: center;
}

.bible-verse .verse-text {
    font-style: italic;
    color: #1E3A8A;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.bible-verse .verse-reference {
    font-size: 12px;
    color: #6B7280;
    font-weight: 600;
}

/* Bible Verse in Footer (hidden on desktop, shown on mobile) */
.footer-bible-verse {
    display: none;
    padding: 20px;
    background-color: #4B5563;
    border-top: 2px solid #6B7280;
    text-align: center;
    margin-top: 20px;
}

.footer-bible-verse .verse-text {
    font-style: italic;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-bible-verse .verse-reference {
    font-size: 12px;
    color: #D1D5DB;
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    background-color: #FFFFFF;
}

/* Logo Section - Prominent on Index */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo-main-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    object-position: center 48%;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
    border: 3px solid #1E3A8A;
    padding: 10px;
    background-color: #FFFFFF;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: #FFFFFF;
    padding: 60px 40px;
    margin-bottom: 50px;
    border-radius: 12px;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section .subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    color: #DC2626;
    font-weight: 600;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Georgia', serif;
}

.btn-primary {
    background-color: #DC2626;
    color: #FFFFFF;
    border-color: #DC2626;
}

.btn-primary:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #1E3A8A;
}

/* Section Headings */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid #DC2626;
}

.section-title h2 {
    font-size: 36px;
    color: #1E3A8A;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title .subtitle {
    font-size: 18px;
    color: #6B7280;
    font-style: italic;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

.content-section h3 {
    font-size: 28px;
    color: #1E3A8A;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-section p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #374151;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: #EFF6FF;
    border: 2px solid #BFDBFE;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: #DBEAFE;
    border-color: #DC2626;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: #1E3A8A;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: #F9FAFB;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .gallery-item img {
        height: 300px;
    }
}

/* Form Styles */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #F9FAFB;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1E3A8A;
    font-weight: 600;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .file-upload {
    padding: 10px;
    background-color: #FFFFFF;
    border: 2px dashed #D1D5DB;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group .file-upload:hover {
    border-color: #2563EB;
    background-color: #EFF6FF;
}

.form-group .file-upload input[type="file"] {
    display: none;
}

.file-list {
    margin-top: 10px;
    font-size: 14px;
    color: #6B7280;
}

.disclaimer {
    background-color: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 15px;
    color: #92400E;
}

/* Map Section */
.map-container {
    margin: 40px 0;
    border: 3px solid #1E3A8A;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.map-note {
    background-color: #EFF6FF;
    padding: 15px;
    border-left: 4px solid #2563EB;
    margin-bottom: 20px;
    font-size: 15px;
    color: #1E3A8A;
}

/* Footer */
.main-footer {
    background-color: #6B7280;
    color: #FFFFFF;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: #E5E7EB;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #DC2626;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

/* Flags Section in Footer */
.flags-section {
    text-align: center;
    padding: 25px 0;
    border-top: 2px solid #9CA3AF;
    margin-top: 30px;
    width: 100%;
}

.flags-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: clamp(10px, 2vw, 25px);
    flex-wrap: wrap;
    margin-bottom: 15px;
    max-width: 100%;
    padding: 0 20px;
}

.flag-icon {
    width: clamp(60px, 8vw, 80px);
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flag-icon-round {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    object-fit: cover;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flag-icon:hover,
.flag-icon-round:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .flags-row {
        justify-content: center;
        gap: 12px;
    }
    
    .flag-icon {
        width: 55px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #9CA3AF;
    font-size: 14px;
    color: #D1D5DB;
}

.footer-bottom a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #DC2626;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.social-links a {
    color: #E5E7EB;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #DC2626;
}

/* Hours Section */
.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #9CA3AF;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 25px;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 20px;
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question::before {
    content: "▶";
    color: #DC2626;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-question.active::before {
    transform: rotate(90deg);
}

.faq-answer {
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
    padding-left: 24px;
}

/* About Placeholder */
.about-placeholder {
    background-color: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #6B7280;
    font-size: 18px;
}

.about-image-container {
    margin: 30px 0;
    text-align: center;
    width: 100%;
}

.about-owner-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 968px) {
    .top-header .container {
        grid-template-columns: auto 1fr auto;
        gap: 15px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .top-header .header-left,
    .top-header .header-center,
    .top-header .header-right {
        justify-content: center;
    }
    
    .top-header .header-logo {
        justify-content: center;
    }
    
    .top-header .rotating-cta {
        width: 100%;
        max-width: 320px;
    }
    
    .main-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        background-color: #EFF6FF;
        border-right: 2px solid #BFDBFE;
        padding: 60px 20px 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        min-height: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-nav {
        display: block;
        margin-bottom: 20px;
    }
    
    .sidebar-nav li {
        margin-bottom: 8px;
    }
    
    .sidebar-nav a {
        border-left: 4px solid transparent;
        border-bottom: none;
        padding: 12px 15px;
    }
    
    .sidebar-nav a:hover,
    .sidebar-nav a.active {
        border-left-color: #DC2626;
        border-bottom: none;
    }
    
    /* Hide Bible verse in sidebar on mobile */
    .sidebar .bible-verse {
        display: none;
    }
    
    /* Show Bible verse in footer on mobile */
    .footer-bible-verse {
        display: block;
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .logo-main-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .form-container {
        padding: 25px;
    }
}

