/* ==========================================================================
   AI Superpowers — Shared Styles
   Used across all pages for consistent branding, layout, and navigation.
   ========================================================================== */

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: break-word;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

/* ---------- Variables ---------- */
:root {
    --orange: #F97316;
    --deep-orange: #EA580C;
    --burnt-orange: #C2410C;
    --peach: #FED7AA;
    --light-peach: #FFF7ED;
    --cream: #FFFBEB;
    --navy: #1E293B;
    --dark-navy: #0F172A;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --light-gray: #F8FAFC;
    --white: #FFFFFF;
    --card-bg: #1a1f2e;
    --border: rgba(255,255,255,0.1);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

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

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--orange);
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--deep-orange) !important;
}

/* ---------- Hamburger Menu ---------- */
.nav-hamburger {
    display: none;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
    position: absolute;
    left: 12px;
}

.nav-hamburger span:nth-child(1) { top: 14px; }
.nav-hamburger span:nth-child(2) { top: 23px; }
.nav-hamburger span:nth-child(3) { top: 32px; }

.nav-hamburger.active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--dark-navy);
    z-index: 999;
    padding: 100px 32px 40px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

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

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    display: block;
    color: #E2E8F0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--white);
}

.mobile-menu .mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px 24px;
    background: var(--orange);
    color: var(--white);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-bottom: none;
}

.mobile-menu .mobile-menu-cta:hover {
    background: var(--deep-orange);
}

/* ---------- Footer ---------- */
footer {
    background: var(--dark-navy);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-contact {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
}

.footer-tagline {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-light);
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--deep-orange);
    transform: translateY(-3px);
}

/* ---------- Responsive — Mobile (768px) ---------- */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Nav: hide links, show hamburger */
    nav {
        padding: 14px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-cta {
        padding: 10px 18px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    nav .container {
        padding: 0 16px;
    }

    .logo svg {
        width: 180px;
        height: 36px;
    }

    .container {
        padding: 0 16px;
    }

    .footer-tagline {
        font-size: 0.95rem;
        margin-top: 24px;
        padding-top: 24px;
    }
}

/* ---------- Responsive — Small phones (400px) ---------- */
@media (max-width: 400px) {
    .logo svg {
        width: 160px;
        height: 32px;
    }

    .nav-cta {
        padding: 10px 16px !important;
        font-size: 0.75rem !important;
        min-height: 44px;
    }
}
