/* =============================================================================
   SITE HEADER & NAVIGATION
   - Positioned at top, scrolls with page (matches live Squarespace site)
   ============================================================================= */
.sw-site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

/* 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;
    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%);
}

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

/* Logo */
.sw-logo-link {
    display: block;
    flex-shrink: 0;
}

.sw-logo-img {
    /* FIXED: Increased logo size to match live site (204px max-width) */
    height: auto;
    width: 180px;
    max-width: 204px;
}

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

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

.sw-nav-item>a {
    font-family: 'Roboto Condensed', sans-serif;
    /* FIXED: Match live site - 16px, 600 weight, 1.92px letter-spacing, UPPERCASE */
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.92px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease, opacity 0.3s ease;
    /* 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);
}

.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;
}

/* Dropdown Menus */
.sw-has-dropdown {
    position: relative;
}

.sw-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: rgba(0, 0, 0, 0.88);
    border: none;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.sw-dropdown li a {
    display: block;
    padding: 12px 25px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Mobile Toggle */
.sw-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.sw-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .sw-main-nav {
        display: none;
    }

    .sw-mobile-toggle {
        display: flex;
    }

    /* Mobile: Smaller logo, moved left */
    .sw-header-inner {
        padding: 12px 15px;
    }

    .sw-logo-img {
        width: 120px;
        max-width: 120px;
    }

    /* 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;
    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 center;
}

/* 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 20px;
    color: #fff;
}

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

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

.sw-footer-tagline {
    font-family: 'Roboto Condensed', sans-serif;
    /* FIXED: Match live site - 32px, 400 weight (was 14px, 600) */
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.sw-footer-tagline p {
    margin: 8px 0;
}

.sw-footer-est {
    opacity: 1;
    /* EST. 2015 matches tagline size and color */
    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;
    /* Pushed down as requested */
}

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

.sw-footer-social a {
    color: #000;
    transition: transform 0.3s ease;
}

.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: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.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: 'Roboto Condensed', sans-serif;
    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 to match live site */
@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;
    }

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

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

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

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

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

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

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

.sw-page-content {
    background: #f2f4f6;
    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 {
    min-height: 400px;
    height: 50vh;
    max-height: 500px;
    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: 'Roboto Condensed', sans-serif;
    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: 'Roboto', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.sw-form input:focus,
.sw-form textarea:focus,
.sw-form select:focus {
    outline: none;
    border-color: #ff6a00;
}

.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: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.sw-form button[type="submit"]:hover {
    background: #ff6a00;
}

@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: 'Roboto Condensed', sans-serif;
    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.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    font-family: 'Roboto Condensed', sans-serif;
    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;
}