/* ==========================================
   JUST GATHER WELLNESS - PREMIUM DESIGN SYSTEM
   ========================================== */

@font-face {
    font-family: Apple;
    src: url("Fonts/sf-pro-display_regular.ttf");
}

/* CSS VARIABLES - DESIGN SYSTEM */
:root {
    /* Colors - Navy Wellness Palette */
    --color-navy-deep: #1a2938;
    --color-navy-medium: #243447;
    --color-navy-light: #2f4156;
    --color-bg-primary: #1a2938;
    --color-bg-secondary: #f8f6f3;
    --color-bg-tertiary: #ede9e4;
    --color-text-primary: #f4f5f7;
    --color-text-secondary: #b8c1cc;
    --color-text-tertiary: #8a95a3;
    --color-text-on-light: #1a2938;
    --color-text-on-light-secondary: #4a5866;
    --color-accent: #6b9b87;
    --color-accent-dim: #7fae99;
    --color-navy-overlay: rgba(26, 41, 56, 0.75);
    --color-sage-overlay: rgba(107, 155, 135, 0.12);

    /* Glass Effect - Navy Frosted */
    --glass-bg: rgba(26, 41, 56, 0.65);
    --glass-bg-light: rgba(248, 246, 243, 0.85);
    --glass-border: rgba(107, 155, 135, 0.2);
    --glass-blur: 16px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;
    --text-4xl: 4rem;
    --text-5xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   BASE RESET
   ========================================== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Apple, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(107,155,135,0.01) 2px, rgba(107,155,135,0.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(107,155,135,0.01) 2px, rgba(107,155,135,0.01) 4px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
}

/* ==========================================
   LAYOUT
   ========================================== */
#main {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

#page1 {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--color-bg-primary);
}

/* ==========================================
   NAVIGATION - NAVY GLASS
   ========================================== */
nav {
    height: 110px;
    background: rgba(26, 41, 56, 0.92);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(107, 155, 135, 0.15);
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-primary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transition: var(--transition-base);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.nav-items {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.nav-logo {
    height: 88px;
    width: auto;
    margin-right: var(--space-md);
    opacity: 1;
    transition: var(--transition-base);
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.nav-logo:hover {
    opacity: 1;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
    transform: translateY(-1px);
}

.nav-items a {
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: var(--transition-base);
    position: relative;
}

.nav-items a:hover {
    color: var(--color-text-primary);
}

.nav-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1px;
    background: var(--color-accent);
    transition: transform 0.3s ease;
}

.nav-items a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-items i {
    padding: var(--space-xs);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.nav-items i:hover {
    color: var(--color-text-primary);
}

/* ==========================================
   DROPDOWN NAV (NAV3)
   ========================================== */
.nav3 {
    height: 100vh;
    position: fixed;
    top: -100%;
    width: 100%;
    z-index: 98;
    transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.8s;
    pointer-events: none;
}

.nav-top {
    height: 50vh;
    background-color: rgba(26, 41, 56, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.nav-bottom {
    height: 50vh;
    background: rgba(26, 41, 56, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-top-store {
    display: flex;
    padding: 4rem 8rem;
    gap: 4rem;
}

.nav-top-store a {
    text-decoration: none;
    color: var(--color-text-primary);
    cursor: pointer;
    font-size: var(--text-base);
    transition: var(--transition-base);
}

.nav-top-store a:hover {
    color: var(--color-accent);
}

.nav-top-store h4 {
    color: var(--color-text-tertiary);
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.store1, .store2, .store3 {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ==========================================
   MOBILE SUBNAV
   ========================================== */
.subnav {
    padding: 4rem 2rem;
    height: 100vh;
    width: 100vw;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: -109%;
    z-index: 99;
    background-color: rgba(26, 41, 56, 0.98);
    backdrop-filter: blur(40px);
    transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.8s;
}

.subnav i {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--color-text-primary);
}

.subnav a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.subnav a:hover {
    color: var(--color-accent);
}

/* ==========================================
   HERO SECTIONS - PREMIUM LAYOUT
   ========================================== */
.hero-section {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Navy-tinted overlay for all hero sections */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26,41,56,0.65) 0%, rgba(26,41,56,0.75) 100%);
    z-index: 1;
}

/* Main Hero - Gradient + Background Image */
.hero {
    background-image: url("/Assets/images/places-backgrounds/scenery1.webp");
    background-color: var(--color-bg-primary);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    background: linear-gradient(135deg, rgba(26,41,56,0.7) 0%, rgba(36,52,71,0.65) 50%, rgba(26,41,56,0.75) 100%);
}

.hero .hero-section-p {
    gap: 2.5rem;
    padding: var(--space-2xl) var(--space-xl);
}

/* Section 2 - Kinetic Type with Community */
.hero-section2 {
    background-image: url("/Assets/images/community/community.webp");
    background-color: var(--color-bg-primary);
    margin: 0;
}

.hero-section2::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.7) 0%, rgba(26,41,56,0.8) 100%);
}

/* Section 3 - Product Reveal with Scenery */
.hero-section3 {
    background-image: url("/Assets/images/places-backgrounds/scenery1.webp");
    background-color: var(--color-bg-primary);
}

.hero-section3::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.65) 0%, rgba(26,41,56,0.75) 100%);
}

.hero-section-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-section-p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--color-text-primary);
    gap: 2rem;
    padding: var(--space-xl) var(--space-lg);
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.hero-section-p h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin: 0;
    color: var(--color-text-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-section-p h3 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.015em;
    color: var(--color-text-secondary);
    max-width: 800px;
}

.hero-section-p p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    letter-spacing: 0.015em;
}

/* CTA Logo - Brand Seal */
.cta-logo {
    width: clamp(80px, 12vw, 120px);
    height: auto;
    opacity: 0.75;
    margin-bottom: var(--space-lg);
    filter: grayscale(0.2);
    transition: var(--transition-smooth);
}

/* Text Color Variants */
.text0 {
    color: var(--color-text-primary);
}

.text1 {
    color: var(--color-text-primary);
}

.text3 {
    color: var(--color-text-primary);
}

.text4 {
    color: var(--color-text-primary);
}

.text5 {
    color: var(--color-text-primary);
}

.text6 {
    color: var(--color-text-primary);
}

/* ==========================================
   LINKS & BUTTONS - PREMIUM STYLE
   ========================================== */
.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(107, 155, 135, 0.3);
    background: rgba(107, 155, 135, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.links a:hover {
    background: rgba(107, 155, 135, 0.25);
    border-color: rgba(107, 155, 135, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.links a i {
    font-size: 1rem;
}

.links2 {
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================
   CARD GRID SECTIONS (HERO-SECTION4)
   ========================================== */
.hero-section4 {
    width: 100%;
    display: flex;
    gap: 8px;
    padding: 4px;
}

/* Card Section 4 - Reset & Gather */
.section4-1 {
    width: 50%;
    background-image: url("/Assets/images/places-backgrounds/place1.jpg");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.section4-1::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.6) 0%, rgba(26,41,56,0.75) 100%);
}

.section4-2 {
    width: 50%;
    background-image: url("/Assets/images/people-group.webp");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.section4-2::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.6) 0%, rgba(26,41,56,0.75) 100%);
}

/* Card Section 5 - Reflect & Create */
.section5-1 {
    width: 50%;
    background-image: url("/Assets/images/art.webp");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.section5-1::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.65) 0%, rgba(26,41,56,0.8) 100%);
}

.section5-2 {
    width: 50%;
    background-image: url("/Assets/images/community/people4.jpg");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.section5-2::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.65) 0%, rgba(26,41,56,0.8) 100%);
}

/* Card Section 6 - Impact & CTA */
.section6-1 {
    width: 50%;
    background-image: url("/Assets/images/gallery-1.webp");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.section6-1::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.7) 0%, rgba(26,41,56,0.85) 100%);
}

.section6-2 {
    width: 50%;
    background-image: url("/Assets/images/community/people5.jpg");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
}

.section6-2::before {
    background: linear-gradient(180deg, rgba(26,41,56,0.6) 0%, rgba(26,41,56,0.75) 100%);
}

/* ==========================================
   MINIMAL FOOTER - PREMIUM
   ========================================== */
.minimal-footer {
    background: var(--color-navy-deep);
    border-top: 1px solid rgba(107, 155, 135, 0.2);
    padding: var(--space-lg) var(--space-md);
    color: var(--color-text-secondary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-left p {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.footer-center {
    display: flex;
    gap: var(--space-lg);
}

.footer-center a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.footer-center a:hover {
    color: var(--color-text-primary);
}

.footer-right {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.social-link:hover {
    color: var(--color-accent);
}

/* ==========================================
   OLD FOOTER (HIDDEN)
   ========================================== */
footer:not(.minimal-footer) {
    display: none;
}

/* ==========================================
   INFINITE PORTRAIT SHOWCASE
   ========================================== */

/* Keyframe animation for infinite scroll */
@keyframes jg-showcase-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.jg-showcase {
    position: relative;
    width: 100%;
    padding: 64px 0;
    background: var(--color-bg-primary);
    overflow: hidden;
}

.jg-showcase__viewport {
    width: 100%;
    overflow: hidden;
}

.jg-showcase__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: stretch;
    width: max-content;
    animation: jg-showcase-scroll 120s linear infinite;
    will-change: transform;
}

.jg-showcase__track:hover {
    animation-play-state: paused;
}

.jg-showcase__set {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
}

.jg-showcase__item {
    position: relative;
    flex: 0 0 auto;
    width: clamp(180px, 18vw, 260px);
    height: clamp(270px, 32vw, 380px);
    border-radius: 18px;
    overflow: hidden;
    background: var(--color-navy-medium);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jg-showcase__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.jg-showcase__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    visibility: visible;
    z-index: 0;
    user-select: none;
    -webkit-user-drag: none;
}

/* Edge fade overlays */
.jg-showcase__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 3;
    pointer-events: none;
}

.jg-showcase__fade--left {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary) 0%, transparent 100%);
}

.jg-showcase__fade--right {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary) 0%, transparent 100%);
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
.ri-menu-line {
    display: none;
}

/* Tablet Breakpoint - Logo Scaling */
@media (max-width: 1024px) {
    .nav-logo {
        height: 70px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    nav {
        height: 80px;
        justify-content: space-between;
        padding: 0 var(--space-sm);
    }

    .nav-items {
        width: 100%;
        justify-content: space-between;
    }

    .nav-logo {
        height: 56px;
        margin-right: auto;
    }

    .nav-items a {
        display: none;
    }

    .nav-items i:not(.ri-menu-line) {
        display: none;
    }

    .ri-menu-line {
        display: block;
        color: var(--color-text-primary);
    }

    .cta-logo {
        width: clamp(60px, 15vw, 100px);
        margin-bottom: var(--space-md);
    }

    .hero {
        padding-top: 60px;
    }

    .hero .hero-section-p {
        gap: 2rem;
        padding: var(--space-xl) var(--space-md);
    }

    .hero-section-p {
        padding: var(--space-md);
    }

    .hero-section-p h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-section-p h3 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .links a {
        width: 100%;
        justify-content: center;
    }

    .hero-section4 {
        flex-direction: column;
        gap: 8px;
    }

    .section4-1,
    .section4-2,
    .section5-1,
    .section5-2,
    .section6-1,
    .section6-2 {
        width: 100%;
        min-height: 60vh;
    }

    .nav-top-store {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .footer-center {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .jg-showcase {
        padding: 48px 0;
    }

    .jg-showcase__item {
        width: clamp(160px, 22vw, 220px);
        height: clamp(240px, 36vw, 340px);
    }

    .jg-showcase__fade {
        width: 80px;
    }

    .jg-showcase__track,
    .jg-showcase__set {
        gap: 18px;
    }
}

@media (max-width: 500px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero {
        min-height: 100vh;
    }

    .jg-showcase {
        padding: 32px 0;
    }

    .jg-showcase__item {
        width: clamp(140px, 28vw, 180px);
        height: clamp(210px, 42vw, 280px);
    }

    .jg-showcase__fade {
        width: 40px;
    }

    .jg-showcase__track,
    .jg-showcase__set {
        gap: 14px;
    }

    .jg-showcase__track {
        animation-duration: 80s;
    }
}

/* ==========================================
   GRID CTA SECTION
   ========================================== */
.grid-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--color-bg-primary);
}

.grid-cta-button {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 500;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(107, 155, 135, 0.3);
    background: rgba(107, 155, 135, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.grid-cta-button:hover {
    background: rgba(107, 155, 135, 0.25);
    border-color: rgba(107, 155, 135, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================
   BOTTOM TILES ALIGNMENT
   ========================================== */
.bottom-tiles .hero-section-p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.bottom-tiles .links {
    margin-top: auto;
    padding-top: var(--space-md);
}

/* Ensure consistent CTA spacing across all sections */
.hero-section-p .links {
    margin-top: var(--space-md);
}

/* ==========================================
   TEAM PAGE STYLES
   ========================================== */

/* Team Page Body */
.team-page {
    background-color: var(--color-bg-primary);
}

/* Team Hero Section */
.team-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px;
}

.team-hero__bg {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background-image: url('/Assets/images/community/community.webp');
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.team-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26, 41, 56, 0.75) 0%,
        rgba(26, 41, 56, 0.85) 50%,
        rgba(26, 41, 56, 0.95) 100%);
    z-index: 1;
}

.team-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl);
    max-width: 900px;
}

.team-hero__content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.team-hero__content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.team-hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: teamScrollBounce 2s ease-in-out infinite;
}

.team-hero__scroll i {
    font-size: 1.5rem;
}

@keyframes teamScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Team Sections */
.team-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-primary);
}

.team-section:first-of-type {
    padding-top: var(--space-2xl);
}

.team-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.team-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ===================
   UNIFIED TEAM GRID
   =================== */
.team-page .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================
   UNIFIED TEAM CARD
   =================== */
.team-page .team-card {
    position: relative;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(
        165deg,
        rgba(36, 52, 71, 0.7) 0%,
        rgba(26, 41, 56, 0.85) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 155, 135, 0.12);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s ease;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    will-change: transform;
    transform-style: preserve-3d;
}

.team-card:hover {
    border-color: rgba(107, 155, 135, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* CEO Card - Subtle emphasis with accent border */
.team-card--ceo {
    border-color: rgba(107, 155, 135, 0.3);
    background: linear-gradient(
        165deg,
        rgba(46, 62, 81, 0.75) 0%,
        rgba(26, 41, 56, 0.9) 100%
    );
}

.team-card--ceo .team-card__role {
    color: var(--color-accent);
}

/* ===================
   CARD PORTRAIT
   =================== */
.team-card__portrait {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(107, 155, 135, 0.15) 0%,
        rgba(26, 41, 56, 0.3) 100%);
}

.team-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
    padding: 20%;
}

.team-card__placeholder svg {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.team-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: var(--color-navy-medium);
}

/* Broken image fallback - prevent layout collapse */
img {
    min-height: 1px;
}

img[src=""],
img:not([src]) {
    visibility: hidden;
}

.subpage-hero__bg,
.team-hero__bg {
    background-color: var(--color-navy-deep);
}

/* ===================
   CARD INFO
   =================== */
.team-card__info {
    padding-top: var(--space-xs);
}

.team-card__name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.team-card__role {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.45;
}

/* ===================
   LINKEDIN ICON BUTTON (TOP RIGHT)
   =================== */
.team-card__linkedin {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-tertiary);
    background: rgba(26, 41, 56, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(107, 155, 135, 0.15);
    border-radius: 8px;
    transition: all 0.25s ease;
    z-index: 2;
    text-decoration: none;
}

.team-card__linkedin svg {
    width: 15px;
    height: 15px;
}

.team-card__linkedin:hover {
    color: var(--color-text-primary);
    background: rgba(107, 155, 135, 0.25);
    border-color: rgba(107, 155, 135, 0.35);
    transform: translateY(-2px);
}

/* ===================
   SUBTLE TILT EFFECT
   =================== */
.team-card[data-tilt] {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

/* Disable tilt for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card[data-tilt] {
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        transform: none !important;
    }

    .team-card:hover {
        transform: none !important;
    }
}

/* ===================
   TEAM PAGE RESPONSIVE
   =================== */

/* Tablet: 2 columns (768px - 1199px) */
@media (max-width: 1199px) {
    .team-page .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 1.5rem;
    }
}

/* Mobile: 1 column (<768px) */
@media (max-width: 767px) {
    .team-page .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }

    .team-page .team-card__portrait {
        height: 240px;
    }

    .team-page .team-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .team-page .team-section__title {
        font-size: 1.1rem;
    }
}

/* ==========================================
   SUBPAGE STYLES
   ========================================== */

/* Subpage Body */
.subpage {
    background-color: var(--color-bg-primary);
}

/* Subpage Hero */
.subpage-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px;
}

.subpage-hero--short {
    min-height: 50vh;
}

.subpage-hero__bg {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.subpage-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26, 41, 56, 0.75) 0%,
        rgba(26, 41, 56, 0.85) 50%,
        rgba(26, 41, 56, 0.95) 100%);
    z-index: 1;
}

.subpage-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl);
    max-width: 900px;
}

.subpage-hero__content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.subpage-hero__content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Content Sections */
.content-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg-primary);
}

.content-section__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.content-section__inner--centered {
    align-items: center;
    text-align: center;
}

/* Program Cards */
.program-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(26, 41, 56, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(107, 155, 135, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.program-card:hover {
    border-color: rgba(107, 155, 135, 0.3);
    transform: translateY(-4px);
}

.program-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 155, 135, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-size: 1.75rem;
}

.program-card__content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.program-card__content p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* News Cards */
.news-card {
    display: block;
    padding: var(--space-lg);
    background: rgba(26, 41, 56, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(107, 155, 135, 0.15);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.news-card:hover {
    border-color: rgba(107, 155, 135, 0.3);
    transform: translateY(-4px);
}

.news-card__meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.news-card__source {
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: 500;
}

.news-card__date {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.news-card__title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.news-card__excerpt {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.news-card__link {
    font-size: var(--text-sm);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Placeholder Message */
.placeholder-message {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    max-width: 500px;
}

.placeholder-message i {
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.placeholder-message h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.placeholder-message p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 400px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-align: left;
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-accent);
    width: 50px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-item a {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-item a:hover {
    color: var(--color-accent);
}

/* About Blocks */
.about-block {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(107, 155, 135, 0.1);
}

.about-block:last-child {
    border-bottom: none;
}

.about-block h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.about-block p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Impact Strip */
.impact-strip {
    background: rgba(107, 155, 135, 0.1);
    padding: var(--space-xl) var(--space-md);
}

.impact-strip__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.impact-stat {
    text-align: center;
}

.impact-stat__number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.impact-stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CTA Section */
.cta-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg-primary);
    text-align: center;
}

.cta-section__inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__inner h2 {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.cta-section__inner p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* CTA Section with Background Image */
.cta-section--with-bg {
    position: relative;
    background: transparent;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,41,56,0.75) 0%, rgba(26,41,56,0.85) 100%);
    z-index: 1;
}

.cta-section--with-bg .cta-section__inner {
    position: relative;
    z-index: 2;
}

.cta-section--with-bg .cta-section__inner h2,
.cta-section--with-bg .cta-section__inner p {
    color: var(--color-text-primary);
}

/* Subpage Responsive */
@media (max-width: 768px) {
    .subpage-hero {
        min-height: 60vh;
        padding-top: 80px;
    }

    .subpage-hero--short {
        min-height: 45vh;
    }

    .subpage-hero__content {
        padding: var(--space-lg);
    }

    .program-card {
        flex-direction: column;
        text-align: center;
    }

    .program-card__icon {
        margin: 0 auto;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        width: auto;
    }

    .impact-strip__inner {
        gap: var(--space-xl);
    }

    .impact-stat__number {
        font-size: var(--text-3xl);
    }
}

/* Nav active state */
.nav-items a.active {
    color: var(--color-text-primary);
}

.nav-items a.active::after {
    transform: translateX(-50%) scaleX(1);
}
