/* ==========================================================================
   SHARED STYLES — WebMax Digital
   Nav, footer, buttons, shared components — loaded on ALL pages
   ========================================================================== */

/* ── Shared Components ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.overline {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.overline::before {
    content: '— ';
    color: var(--color-orange);
}

.heading-2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.heading-3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--color-text);
}

.heading-4 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--color-text);
}

.subheading {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 580px;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
}

.btn--primary {
    background: var(--color-orange);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
    background: var(--color-orange-hover);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn--pill {
    border-radius: 50px;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 72px;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav.is-scrolled {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__logo a {
    color: var(--color-text);
    text-decoration: none;
}

.nav__menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__links a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast) var(--ease-default);
}

.nav__links a:hover {
    color: var(--color-orange);
}

.nav__links .current-menu-item a {
    color: var(--color-orange);
    font-weight: var(--font-semibold);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav__theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.nav__theme-toggle:hover {
    background: var(--color-orange-light);
    color: var(--color-orange);
}

.nav__theme-icon--dark {
    display: none;
}

.nav__cta {
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: var(--radius-full);
}

.nav__cta:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-bg);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--duration-normal) var(--ease-default);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav {
        padding: 0.875rem 1.25rem;
        height: 60px;
    }

    .nav__logo {
        font-size: 0.9375rem;
        white-space: nowrap;
    }

    .nav__menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        border-top: 1px solid var(--color-border);
        padding: 1.5rem;
        flex-direction: column;
        z-index: 199;
        overflow-y: auto;
    }

    .nav__menu.active {
        display: flex;
    }

    .nav__links {
        flex-direction: column;
        gap: 0;
    }

    .nav__links li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav__links li:last-child {
        border-bottom: none;
    }

    .nav__links a {
        padding: 1rem 0.5rem;
        font-size: 1.0625rem;
        display: block;
    }

    /* Hide CTA + theme toggle on mobile — hamburger only */
    .nav__actions {
        display: none;
    }

    .nav__toggle {
        display: flex;
        position: relative;
        z-index: 201;
    }

    /* Hamburger → X animation */
    .nav__toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

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

    .nav__toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Mobile CTA at bottom of menu */
    .nav__mobile-cta {
        display: block;
        margin-top: auto;
        padding: 1rem 2rem;
        background: var(--color-orange);
        color: #fff;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border-radius: var(--radius-full);
        transition: background 0.2s ease;
    }

    .nav__mobile-cta:hover {
        background: var(--color-orange-hover);
        color: #fff;
    }
}

/* Hide mobile CTA on desktop */
.nav__mobile-cta {
    display: none;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-16) var(--space-8);
}

.footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: var(--space-12);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    max-width: 260px;
    margin-bottom: var(--space-5);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) var(--ease-default);
}

.footer__social a:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-2px);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-4);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.footer__links a:hover {
    color: var(--color-text);
}

.footer__cta-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.footer__cta-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: var(--color-orange);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-default);
}

.footer__cta-btn:hover {
    background: var(--color-orange-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.footer__divider {
    height: 1px;
    background: var(--color-border);
    margin-block: var(--space-10);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-4);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.footer__legal a:hover {
    color: var(--color-text);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════
   DARK MODE — Navigation & Footer
   ═══════════════════════════════════════════════ */

[data-theme="dark"] .nav {
    background: rgba(10, 10, 10, 0.8);
}

[data-theme="dark"] .nav.is-scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav__theme-icon--light {
    display: none;
}

[data-theme="dark"] .nav__theme-icon--dark {
    display: block;
}

[data-theme="dark"] .nav__cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Mobile nav dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .nav__menu {
        background: #0a0a0a;
    }

    [data-theme="dark"] .nav__mobile-cta {
        background: var(--color-orange);
        color: #fff;
    }
}

/* ==========================================================================
   CONTACT MODAL
   ========================================================================== */
.wm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.wm-modal[hidden] { display: none; }

.wm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.wm-modal__card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: modalIn 0.25s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.wm-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.wm-modal__close:hover { color: var(--color-text); background: var(--color-surface-raised); }

.wm-modal__badge {
    display: inline-block;
    background: var(--color-orange-light);
    color: var(--color-orange);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.wm-modal__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: var(--leading-snug);
}

.wm-modal__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: var(--leading-relaxed);
}

.wm-modal__form input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.2s;
    outline: none;
}
.wm-modal__form input:focus { border-color: var(--color-teal); }
.wm-modal__form input::placeholder { color: var(--color-text-muted); }
.wm-modal__form .btn { margin-top: 0.25rem; }

.wm-modal__trust {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .wm-modal__card { padding: 2rem 1.25rem; }
}
