/*
 * main.css - Travel Inn of Buford
 * Extracted from header.php for caching and performance
 *
 * :root variables (--primary, --accent, --header-h, --slate) are set
 * inline in header.php because they come from the database via PHP.
 * Everything else lives here.
 */

/* === BASE === */
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; padding-top: var(--header-h); background: #fff; overflow-x: hidden; }
body.lock-scroll { overflow: hidden; height: 100%; position: fixed; width: 100%; }

/* === ADA: SCREEN READER ONLY === */
.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;
}

/* === ADA: SKIP NAVIGATION === */
.skip-nav {
    position: absolute; top: -100px; left: 0;
    background: var(--primary); color: #fff;
    padding: 10px 20px; font-weight: 700; font-size: 0.9rem;
    text-decoration: none; z-index: 10002;
    transition: top 0.2s;
}
.skip-nav:focus { top: 0; outline: 3px solid var(--accent); outline-offset: 2px; }

/* === ADA: FOCUS INDICATORS === */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}
.nav-item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    color: var(--accent) !important;
}

/* === HEADER BAR === */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
    background: #ffffff !important; display: flex; align-items: center; justify-content: space-between;
    padding: 0 25px; box-sizing: border-box; z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-left, .header-center, .header-right { flex: 1; display: flex; align-items: center; }
.header-center { justify-content: center; }
.header-right  { justify-content: flex-end; }
.header-left img { max-height: 45px; width: auto; }

/* === DESKTOP OVERLAY NAV === */
.desktop-nav-container {
    position: fixed; left: 0; top: var(--header-h); width: 100%; height: 70px;
    background: var(--slate); border-bottom: 2px solid var(--accent); z-index: 9995;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform 0.4s ease-in, opacity 0.3s ease;
}
body.menu-open .desktop-nav-container {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
}
.nav-item {
    text-decoration: none; color: #ffffff !important;
    font-weight: 800; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1.5px; padding: 10px 20px; transition: color 0.3s;
}
.nav-item:hover { color: var(--accent) !important; }

/* === MOBILE MENU OVERLAY === */
#mobile-menu-overlay {
    position: fixed; left: 0; top: 0;
    width: 100%; height: 100%;
    background: var(--slate); z-index: 9990;
    padding-top: var(--header-h);
    box-sizing: border-box;
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform 0.4s ease-in, opacity 0.3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#mobile-menu-overlay.active {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
}

/* === MOBILE DASHBOARD GRID === */
.dashboard-container {
    background: #fff; padding: 18px; border-radius: 20px;
    width: calc(100% - 40px); max-width: 340px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin: 20px auto;
}
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-btn { background: var(--primary); border-radius: 14px; padding: 18px 10px; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: #fff; transition: transform 0.2s; }
.dash-btn:active { transform: scale(0.95); }
.dash-btn i { font-size: 1.3rem; }
.dash-btn span { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; margin-top: 8px; letter-spacing: 0.5px; }

/* === CAPSULE & BUTTONS === */
.capsule { display: flex; align-items: center; background: #fff; padding: 4px 18px; border-radius: 50px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.sep { width: 1px; height: 18px; background: #e2e8f0; margin: 0 15px; }
.action-icon {
    background: none; border: none; padding: 6px;
    color: var(--primary); cursor: pointer; display: flex; align-items: center; font-size: 0.9rem;
    border-radius: 4px;
}
.action-icon:hover { color: var(--accent); }
.menu-trigger {
    background: none; border: none; padding: 6px 2px;
    cursor: pointer; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; gap: 10px; font-size: 0.75rem;
    border-radius: 4px;
}
.menu-trigger:hover { color: var(--accent); }
.btn-book { background: var(--accent); color: white; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }

.mobile-only-menu { display: none !important; background: none; border: none; cursor: pointer; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .header-center .capsule { display: none !important; }
    .mobile-only-menu {
        display: flex !important; flex-direction: column; align-items: center;
        color: var(--primary); font-weight: 800; font-size: 0.65rem; gap: 2px;
    }
    .mobile-only-menu i { font-size: 1.4rem; }
}

/* ============================================
   INNER PAGE SHARED STYLES
   ============================================ */

/* Standard content wrapper used on about, faq, etc */
.page-content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px) 20px;
}

/* White card container */
.page-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    padding: clamp(24px, 4vw, 50px);
    line-height: 1.8;
    color: #334155;
}

/* Section heading pattern used across inner pages */
.inner-page-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.inner-page-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 20px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* === STANDARDIZED BUTTONS === */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: #fff; border: none;
    padding: 14px 32px; border-radius: 8px;
    font-weight: 800; font-size: 0.9rem; letter-spacing: 0.5px;
    cursor: pointer; text-decoration: none;
    transition: filter 0.2s, transform 0.2s;
    min-height: 48px; /* Touch target minimum */
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    padding: 12px 28px; border-radius: 8px;
    font-weight: 700; font-size: 0.9rem;
    cursor: pointer; text-decoration: none;
    transition: background 0.2s, color 0.2s;
    min-height: 48px;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

.btn-sm {
    padding: 10px 20px; font-size: 0.82rem; min-height: 44px;
}

/* === TOUCH TARGET IMPROVEMENTS === */
@media (max-width: 768px) {
    /* Ensure all interactive elements meet 44px minimum */
    a, button, [role="button"], select, input[type="checkbox"], input[type="radio"] {
        min-height: 44px;
    }
    select, input[type="text"], input[type="email"], input[type="tel"], textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* === MODAL SCROLL CONTAINMENT === */
.modal-popup, [role="dialog"] {
    overscroll-behavior: contain;
}