/* ============================================================
   EscapeWork - Shared Stylesheet
   All shared styles: reset, header, nav, side menu, buttons,
   tabs, FAQ, page header, footer, base responsive.
   Page-specific styles live in each HTML file's <style> block.
   ============================================================ */

/* FONTS — loaded via <link> in each HTML file for non-blocking performance */

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

:root {
    --primary: #4F46E5;
    --dark: #09090E;
    --light: #F8F8F6;
    --border: #E0E0E0;
    --text-secondary: #888780;
    --font-serif: 'DM Serif Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
}
.nav-tabs {
    display: flex;
    gap: 40px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-tabs a {
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-tabs a:hover,
.nav-tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* HAMBURGER */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    position: relative;
    z-index: 1;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
    display: block;
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border);
}

.side-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.menu-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.menu-content {
    padding: 20px 0;
}

.menu-item {
    padding: 16px 30px;
    border-bottom: 1px solid var(--border);
}

.menu-item > a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.submenu {
    display: none;
    padding: 12px 24px 12px 36px;
    background: var(--light);
}

.submenu.active {
    display: block;
}

.submenu a {
    text-decoration: none;
    color: var(--text-secondary);
    display: block;
    padding: 8px 0;
    font-size: 13px;
    transition: color 0.3s;
}

.submenu a:hover {
    color: var(--primary);
}

.submenu-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px 0 8px 0;
    margin-top: 8px;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 150;
}

.side-menu-overlay.active {
    display: block;
}

/* BUTTONS */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #3C3489;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* PAGE HEADER (standard inner-page banner) */
.page-header {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #F8F8F6 0%, white 100%);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--dark);
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* TABS (shared across features, portfolio, privacy) */
.tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 40px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

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

/* FAQ (shared across index, buy, support, thank-you) */
.faq-item {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
    cursor: pointer;
}

.faq-question {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    display: none;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 8% 30px;
    margin-top: 60px;
}

/* TOP */
.footer-top {
    text-align: center;
    margin-bottom: 50px;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-cta {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    background: var(--primary);
    color: white;
}

.footer-cta:hover {
    background: #3C3489;
}

/* MIDDLE */
.footer-content {
    max-width: 1000px;   /* 🔥 reduce from 1200px */
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;           /* 🔥 increase gap for balance */
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    opacity: 0.8;
}

.footer-link {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #B4B2A9;
}

.footer-link:hover {
    color: white;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-inner {
    max-width: 1000px;   /* match above */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 12px;
    color: #B4B2A9;
}

.footer-trust {
    margin-bottom: 6px;
}

.footer-right {
    display: flex;
    gap: 16px;
}

.footer-right a {
    font-size: 12px;
    color: #B4B2A9;
    text-decoration: none;
}

.footer-right a:hover {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* COMING SOON OVERLAY */
.coming-soon-shell {
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coming-soon-label {
    font-family: var(--font-serif);
    font-size: 56px;
    color: var(--dark);
    margin-bottom: 16px;
}

.coming-soon-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.8;
}

/* RESPONSIVE - BASE */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .nav-tabs {
        display: none;
    }

    .side-menu {
        width: 100%;
        right: -100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}
