/* ==============================
   HEADER
   ============================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e0d7cf50;
    background: linear-gradient(180deg, #f5deb3, #faf8f6);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text strong {
    font-size: 18px;
}

/* NAV */


.main-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: .25s ease;
}

.main-nav a:hover {
    color: var(--gold-dark);
}

/* 1. Position the parent item for relative positioning */

.main-nav .has-submenu 

{
    position: relative; 
}

/* 2. Hide the submenu by default and set its basic styling */

.main-nav .submenu

{

    display: none;

/* Crucial: Keeps the sub-menu hidden */
    
/* Desktop/Tablet Positioning */

    position: absolute; 
    top: 100%; 
    left: 0;
    
    z-index: 1001; 
    min-width: 250px; 
    
    background: linear-gradient(180deg,#f5deb3,#faf8f6);
    border: 1px transparent;
    border-top: none; 
    border-radius: 0 0 8px 8px; 
    
    padding: 8px 0;
    margin: 0;
    list-style: none; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
}

/* 3. Show sub-menu on HOVER (for Desktop/Tablet) */

@media (min-width: 641px) 
{ 
    
/* Adjust based on where your main menu hides */

.main-nav .has-submenu:hover > .submenu {
    display: block; 
}
}

/* 4. Sub-menu Links Styling */

.main-nav .submenu li a {
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
    color: #333; 
    font-weight: 500; 
    transition: background-color .2s ease, color .2s ease;
}

.main-nav .submenu li a:hover {
    background-color: #f0f0f0; 
    color: var(--gold-dark); 
}


/* ==============================
   HERO
   ============================== */

.hero {
    width: 100%;
    height: 100vh;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.bg-video,
.landing-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
}

.hero-left {
    max-width: 900px;
    margin: 0 auto;
}

.hero-copy h1 {
    font-size: 34px;
    margin: 0 0 12px;
}

.hero-copy p {
    color: var(--muted);
    margin: 0 0 20px;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.lead {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   GRIDS
   ============================== */

.services-grid {
    display: grid;
    gap: 25px;
    margin-top: 12px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.container.center {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #fff;
}

@media (max-width: 640px) {
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   FOOTER
   ============================== */

.site-footer {
    background: linear-gradient(180deg, #faf8f6, #f5deb3);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 5px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* LEFT */
.footer-left a {
    color: var(--black);
    text-decoration: none;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-contact {
    margin-top: 10px;
    line-height: 1.6;
}

/* CENTER */
.footer-center iframe {
    width: 100%;
    max-width: 420px;
    height: 150px;
    border-radius: 10px;
    margin: 10px auto;
    display: block;
}

.footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.7);
    transition: .25s ease;
}

.footer-social a:hover img {
    filter: brightness(1);
    transform: scale(1.15);
}

/* RIGHT */
.hours-section {
    font-size: 14px;
}

.hours-title {
    margin: 6px 0 8px;
    font-size: 16px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 4px 0;
    vertical-align: top;
}

.status-row {
    margin-bottom: 6px;
}

/* OPEN / CLOSED STATUS */
#status .open {
    color: green;
    font-weight: bold;
}

#status .closed {
    color: red;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-center iframe {
        max-width: 100%;
    }
    
    .hours-section {
        text-align: left;
    }
}

/* ==============================
   QUICK NAVIGATION
   ============================== */

.quick-nav-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px 0;
    border-bottom: 10px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: sticky;
    top: 80px;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.quick-nav-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--black);
    text-align: center;
}

.quick-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav-links li {
    margin: 0;
}

.quick-nav-links a {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-nav-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.1);
}

.quick-nav-links a.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .quick-nav-section {
        top: 100px;
        padding: 15px 0;
        position: static; /* Don't stick on mobile */
    }
    
    .quick-nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .quick-nav-links a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ==============================
   ANCHOR TARGET STYLES
   ============================== */

/* Add scroll margin for sticky header */
.service-card h3[id] {
    scroll-margin-top: 100px;
}

/* Highlight animation for anchor targets */
@keyframes highlightFlash {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(184, 134, 11, 0.15);
    }
}

.anchor-highlight {
    animation: highlightFlash 1.5s ease 2;
}
/* ==============================
   HAMBURGER MENU
   ============================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .main-nav ul {
        display: none;
        position: fixed;
        top: 10;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, #f5deb3, #faf8f6);
        flex-direction: column;
        padding: 80px 20px 20px;
        z-index: 99;
        overflow-y: auto;
    }
    
    .main-nav ul.nav-open {
        display: flex;
    }
    
    .main-nav ul li {
        width: 100%;
        margin: 5px 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 18px;
    }
    
    .main-nav .submenu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.5);
        padding-left: 20px;
        display: none;
    }
    
    .main-nav .has-submenu.menu-open .submenu {
        display: block;
    }
    
    /* Close button for mobile menu */
    .mobile-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--black);
    }
}