/* =============================================================================
   SITE HEADER & NAVIGATION
   - Fixed at top on desktop (≥1101px) with frosted glass on scroll
   - Absolute on mobile (burger menu handles mobile nav separately)
   ============================================================================= */
.sw-site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--sw-z-nav-mobile);
    background: transparent;
    transition: background 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Desktop: fixed sticky header */
@media (min-width: 1101px) {
    .sw-site-header {
        position: fixed;
    }
}

/* Frosted glass when user scrolls past 50px (class toggled by inline script) */
.sw-site-header.scrolled {
    background: rgba(10, 10, 14, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Subtle radial gradients behind logo and nav for readability over video/photos */
/* Thumbprint behind logo, finger-width strip under nav */
.sw-site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-image:
        /* Thumbprint behind logo - moved down, larger to allow smooth fade */
        radial-gradient(circle 150px at 120px 55px, rgba(0, 0, 0, 0.65) 0%, transparent 70%),
        /* Finger-width strip under nav - taller, extends further left past HOME */
        radial-gradient(ellipse 700px 120px at calc(100% - 280px) 50px, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
}

/* Hide radial gradients when frosted glass is active */
.sw-site-header.scrolled::before {
    opacity: 0;
}

.sw-header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    transition: padding 0.3s ease;
}

/* Compact header when scrolled */
.sw-site-header.scrolled .sw-header-inner {
    padding: 8px 25px;
}

/* Logo */
.sw-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 25px;
    padding-right: 5px; /* Added 5px right padding to container */
}

.sw-logo-img {
    /* FIXED: Increased logo size to match live site (204px max-width) */
    height: auto;
    width: 150px; /* Est. 2015 boxed logo (2.61:1) — sized so the box matches nav height */
    max-width: 204px;
    transition: width 0.3s ease, margin-top 0.3s ease;
}

/* Shrink logo when scrolled — flex parent centers it vertically */
.sw-site-header.scrolled .sw-logo-img {
    width: 100px;
}

/* Main Navigation */
.sw-main-nav {
    display: flex;
    align-items: stretch;
}

.sw-nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.sw-nav-item {
    display: flex;
    align-items: stretch;
}

.sw-nav-item>a {
    font-family: var(--sw-font-display);
    /* Navigation styling - 16px, 400 weight, 1.92px letter-spacing, UPPERCASE */
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.92px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Soft dark edge glow for readability over light video/bg */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.sw-nav-item>a:hover {
    color: #fff;
}

/* Nav hover effect: other items fade out */
.sw-nav-list:hover .sw-nav-item>a {
    opacity: 0.4;
}

.sw-nav-list .sw-nav-item:hover>a {
    opacity: 1;
}

/* =============================================================================
   LIGHTHOUSE NAV HIGHLIGHT — Established Soundwave Orange-to-Amber SW Shimmer
   ============================================================================= */
@keyframes sw-nav-shimmer {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.sw-nav-item>a[href="/lighthouse"],
.sw-mobile-nav-item>a[href="/lighthouse"],
.sw-nav-lighthouse {
    font-weight: 600 !important;
    background: linear-gradient(
        90deg,
        #ea580c 0%,
        #f97316 25%,
        #fb923c 50%,
        #f97316 75%,
        #ea580c 100%
    ) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
    animation: sw-nav-shimmer 4s linear infinite !important;
    transition: filter 0.3s ease, opacity 0.3s ease !important;
}

.sw-nav-item>a[href="/lighthouse"]:hover,
.sw-mobile-nav-item>a[href="/lighthouse"]:hover,
.sw-nav-lighthouse:hover {
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.75)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) !important;
    opacity: 1 !important;
}

.sw-nav-list:hover .sw-nav-item>a[href="/lighthouse"] {
    opacity: 0.7;
}

.sw-nav-list .sw-nav-item:hover>a[href="/lighthouse"] {
    opacity: 1;
}

/* Dropdown Menus */
.sw-has-dropdown {
    position: relative;
    padding-bottom: 5px;
    margin-bottom: -5px;
}

.sw-dropdown {
    position: absolute;
    top: 100%;
    left: -15px;
    min-width: 320px;
    max-width: calc(100vw - 40px);
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 4px 0 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.sw-has-dropdown:hover .sw-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sw-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-family: var(--sw-font-display);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-dropdown li a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Toggle */
.sw-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.sw-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1101px) and (max-width: 1350px) {
    .sw-nav-list {
        gap: 15px;
    }
    .sw-nav-item>a {
        font-size: 14px;
        letter-spacing: 1px;
    }
}

@media (max-width: 1100px) {
    /* Prevent backdrop-filter from trapping the fixed mobile toggle button */
    .sw-site-header.scrolled {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-bottom: 1px solid transparent;
        box-shadow: none;
    }

    .sw-main-nav {
        display: none;
    }

    .sw-mobile-toggle {
        display: flex;
        position: fixed; /* Make sticky */
        top: 12px;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 24px;
        right: calc(24px + env(safe-area-inset-right, 0px));
        z-index: calc(var(--sw-z-nav-mobile) + 1);
        transform: translateZ(0); /* Hardware acceleration */
        backface-visibility: hidden;
        background: rgba(10, 10, 14, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Mobile: Smaller logo, aligned with 24px content grid */
    .sw-header-inner {
        padding: 12px 24px;
    }

    .sw-site-header.scrolled .sw-header-inner {
        padding: 8px 24px;
    }

    .sw-logo-link {
        margin-left: 0;
    }

    .sw-logo-img {
        width: 120px;
        max-width: 120px;
        /* Dark glow for legibility over bright hero media (radial gradient is hidden on mobile) */
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.55));
    }

    /* Frosted glass header provides its own contrast once scrolled */
    .sw-site-header.scrolled .sw-logo-img {
        filter: none;
    }

    /* Hide the radial gradient behind logo on mobile */
    .sw-site-header::before {
        display: none;
    }
}

/* =============================================================================
   PAGE HERO SECTION (Inner pages - header overlays this)
   Goes to ABSOLUTE top of viewport, sits behind fixed nav
   ============================================================================= */
.sw-page-hero {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 350px;
    min-height: 250px;
    overflow: hidden;
    background: #000;
    /* Push to absolute top of viewport, under fixed header */
    margin-top: 0;
    margin-bottom: 0;
}

/* Mobile: Match live site hero height (207px) */
@media (max-width: 768px) {
    .sw-page-hero {
        height: 207px;
        min-height: 180px;
    }
}

.sw-page-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

/* When hero exists before main, main doesn't need padding-top */
.sw-page-hero+.sw-page-content {
    padding-top: 0 !important;
}

/* Hero Card - content must be LEFT-ALIGNED (matching live site) */
.sw-hero-card {
    text-align: left !important;
    justify-content: flex-start !important;
}

.sw-hero-card .sw-hero-content {
    text-align: left !important;
}

/* =============================================================================
   HERO SECTION (Per-page header images)
   ============================================================================= */
.sw-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sw-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

/* ========== HERO READABILITY GRADIENTS (Live Site Parity) ========== */
/* Radial gradient overlay - creates soft dark spots under logo and nav */
/* Note: Removed from .sw-video-hero to keep homepage video bright */
.sw-page-hero::before,
.sw-case-intro::before {
    content: "";
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 130%;
    pointer-events: none;
    z-index: 2;
    background-image:
        radial-gradient(circle 950px at 15% -20%, rgba(0, 0, 0, 0.9) 20%, transparent 50%),
        radial-gradient(circle 870px at 85% -20%, rgba(0, 0, 0, 0.9) 20%, transparent 50%);
    filter: blur(60px);
    opacity: 0.7;
}

/* Linear gradient overlay - top-to-transparent for readability */
/* Note: Removed from .sw-video-hero to keep homepage video bright */
.sw-page-hero::after,
.sw-case-intro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.8) 15%, transparent 60%);
    opacity: 0.8;
}

.sw-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

/* =============================================================================
   SITE FOOTER (Squarespace Parity)
   - Orange gradient background
   - 2-column layout: taglines left, button/social right
   - Black outlined button (not white)
   ============================================================================= */
.sw-site-footer {
    background: linear-gradient(135deg, #ff6a00 0%, #eb6e00 40%, #c85a00 100%);
    padding: 40px 30px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    color: #fff;
}

.sw-footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
}

.sw-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.sw-footer-tagline {
    font-family: var(--sw-font-heading);
    /* FIXED: Match live site - 32px, 400 weight (was 14px, 600) */
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding-top: 10px; /* Added tiny bit of padding above */
}

.sw-footer-tagline p {
    margin: 8px 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.sw-footer-est {
    opacity: 1;
    /* EST. 2015 matches tagline size and color */
    font-family: inherit;
    font-size: 32px;
    margin-top: 15px;
    color: #fff;
}

/* Right column: CTA button above, social icons below */
.sw-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.sw-footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 10px 0;
}

.sw-footer-social a {
    color: #000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px;
    margin: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-footer-social a:hover {
    transform: scale(1.2);
}

/* BLACK outlined button to match live site */
.sw-footer-cta {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #000;
    color: #000;
    font-family: var(--sw-font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-footer-cta:hover {
    background: #000;
    color: #fff;
}

/* Privacy Policy link - right-aligned under social icons */
.sw-footer-privacy {
    display: block;
    margin-top: 5px;
    /* Reduced margin since it's now inside the flex gap */
    font-family: var(--sw-font-heading);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #000;
    opacity: 0.7;
    text-decoration: none;
    text-align: right;
}

.sw-footer-privacy:hover {
    opacity: 1;
}

/* Footer bottom - no border-top to match live site */
.sw-footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 12px;
}

.sw-footer-bottom a {
    color: #000;
    opacity: 0.8;
    text-decoration: none;
}

/* Mobile footer - left-aligned, smaller text */
@media (max-width: 768px) {
    .sw-site-footer {
        text-align: left !important;
    }

    .sw-site-footer p {
        text-align: left !important;
    }

    .sw-footer-tagline {
        text-align: left !important;
        font-size: clamp(16px, 4.5vw, 24px);
    }

    .sw-footer-tagline p {
        text-align: left !important;
        white-space: nowrap;
    }

    .sw-footer-est {
        font-size: clamp(16px, 4.5vw, 24px);
        white-space: nowrap;
    }

    .sw-footer-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .sw-footer-right {
        align-items: flex-end !important;
        width: 100% !important;
    }

    .sw-footer-cta {
        align-self: flex-end !important;
    }

    .sw-footer-social {
        width: 100% !important;
        justify-content: flex-end !important;
    }

    .sw-footer-privacy {
        text-align: right !important;
    }
}

/* =============================================================================
   PAGE BACKGROUNDS (White content areas)
   ============================================================================= */
body {
    background: var(--sw-bg-light);
    color: #111;
    /* Prevent horizontal scroll from 100vw elements */
    overflow-x: hidden;
}

.sw-page-content {
    background: var(--sw-bg-light);
    padding-top: 80px;
    /* Account for fixed header */
}

/* Pages with hero sections - hero extends under nav */
.has-hero .sw-page-content {
    padding-top: 0;
}

/* Dark sections override */
.sw-dark-section {
    background: #000;
    color: #fff;
}

/* Analytics page - floating card effect with rounded corners */
.analytics-page {
    background: #fff !important;
}

.analytics-page .sw-page-hero {
    height: 350px;
    min-height: 250px;
    overflow: hidden;
    /* Contain the gradient pseudo-elements */
}

/* Prevent hero gradients from extending past the hero section */
.analytics-page .sw-page-hero::before,
.analytics-page .sw-page-hero::after {
    height: 100% !important;
    max-height: 100% !important;
}

.analytics-page .sw-page-content {
    background: #fff;
    position: relative;
    z-index: 10;
    /* Higher z-index to sit above hero gradients */
}

/* Remove the dark gradient overlay from the .sw-hero inside analytics page */
.analytics-page .sw-hero::before {
    display: none !important;
}

/* Make the content card SOLID WHITE - no transparency */
.analytics-page .sw-hero-grid {
    background: rgb(255, 255, 255) !important;
    background-color: #fff !important;
}

/* Content wrapper inside analytics page */
.analytics-page #sw-landing-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =============================================================================
   FORMSPREE FORMS (Replacing Squarespace Forms)
   ============================================================================= */
.sw-form {
    max-width: 600px;
    margin: 0 auto;
}

.sw-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.sw-form-row>div {
    flex: 1;
}

.sw-form label {
    display: block;
    font-family: var(--sw-font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.sw-form label span {
    color: #999;
    font-weight: 400;
}

.sw-form input,
.sw-form textarea,
.sw-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: var(--sw-font-body);
    font-size: 16px;
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-form input:focus,
.sw-form textarea:focus,
.sw-form select:focus {
    outline: none;
    border-color: var(--sw-primary);
}

.sw-form textarea {
    min-height: 150px;
    resize: vertical;
}

.sw-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    font-family: var(--sw-font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 20px;
}

.sw-form button[type="submit"]:hover {
    background: var(--sw-primary);
}

@media (max-width: 600px) {
    .sw-form-row {
        flex-direction: column;
    }
}

/* =============================================================================
   SERVICES PAGE - Pillar Cards Fix (Override for white page)
   ============================================================================= */
.sw-pillar-card {
    background: #080808 !important;
    color: #fff;
    border-radius: 25px;
    min-width: 160px;
    height: 400px;
    flex: 0 1 180px;
    /* Critical flexbox properties for content visibility */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.sw-verticals-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.sw-pillar-title {
    color: #fff !important;
    font-family: var(--sw-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.sw-pillar-icon {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    margin-bottom: 2rem;
    margin-top: auto;
    transition: 0.4s;
    opacity: 0.8;
    position: relative;
    z-index: 5;
}

.sw-deck-btn {
    display: inline-block;
    background: #000;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    font-family: var(--sw-font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 15px;
    z-index: 10;
    position: relative;
    transition: all 0.4s;
    margin-bottom: auto;
}

/* Pillar Cards — Mobile Stacking */
@media (max-width: 768px) {
    .sw-pillar-card {
        height: auto;
        min-height: 250px;
        flex: 0 0 100%;
    }

    .sw-pillar-title {
        font-size: 1rem;
    }
}

/* Temporary override: Hide careers link globally */
a[href*="careers.html"], a[href*="careers"] {
    display: none !important;
}