/* ============================================================
   Summit Ridge Group Inc. — Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --navy: #262262;
    --navy-mid: #302c7a;
    --gold: #a8a8a8;
    --gold-light: #c8c8c8;
    --white: #ffffff;
    --off-white: #f5f6f8;
    --light-gray: #e8eaf0;
    --mid-gray: #8a93a2;
    --dark-gray: #333d4b;
    --text: #1a2333;
    --shadow-sm: 0 2px 8px rgba(38, 34, 98, 0.08);
    --shadow-md: 0 6px 24px rgba(38, 34, 98, 0.12);
    --shadow-lg: 0 12px 40px rgba(38, 34, 98, 0.18);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family:
        "Inter",
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-family: "Playfair Display", "Georgia", serif;
    line-height: 1.2;
    color: var(--navy);
}
h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
p {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.75;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section-pad {
    padding: 96px 0;
}
.section-pad-sm {
    padding: 64px 0;
}
.text-center {
    text-align: center;
}
.text-gold {
    color: var(--gold);
}
.text-white {
    color: var(--white);
}
.bg-navy {
    background: var(--navy);
}
.bg-off-white {
    background: var(--off-white);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--mid-gray);
    max-width: 620px;
}
.section-subtitle.centered {
    margin: 0 auto;
}
.divider {
    width: 56px;
    height: 3px;
    background: var(--gold);
    margin: 20px 0 40px;
}
.divider.centered {
    margin: 20px auto 40px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 168, 168, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
    padding: 20px 0;
}
#navbar.scrolled {
    background: rgba(38, 34, 98, 0.97);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: var(--shadow-md);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo-img {
    height: 160px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.nav-links a:hover {
    color: var(--white);
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
.nav-links .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

/* Mobile nav */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 32px 40px;
        transition: right var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        padding: 14px 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links .btn {
        margin-top: 24px;
    }
    .nav-toggle {
        display: flex;
    }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("images/optimized/team-outdoor.jpg");
    background-size: cover;
    background-position: center 72%;
    opacity: 0.55;
    transform: scale(1.05);
    transition: transform 8s ease;
}
#hero.loaded .hero-bg {
    transform: scale(1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Dark at top (covers sky, carries text legibility) → clears at bottom (reveals faces) */
    background: linear-gradient(
        to bottom,
        rgba(38, 34, 98, 0.96) 0%,
        rgba(38, 34, 98, 0.82) 35%,
        rgba(38, 34, 98, 0.45) 65%,
        rgba(38, 34, 98, 0.3) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    max-width: 760px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 168, 168, 0.15);
    border: 1px solid rgba(168, 168, 168, 0.3);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.hero-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}
.hero-title {
    color: var(--white);
    margin-bottom: 12px;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
}
.hero-title .gold-line {
    display: block;
    color: var(--gold);
}
.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-bottom: 28px;
    font-family: "Playfair Display", serif;
}
.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 580px;
    margin-bottom: 44px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    animation: scroll-bounce 0.9s ease-in-out infinite alternate;
}
@keyframes scroll-bounce {
    from {
        transform: rotate(45deg) translateY(-4px);
    }
    to {
        transform: rotate(45deg) translateY(4px);
    }
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats-bar {
    background: var(--gold);
    padding: 32px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-item {
}
.stat-number {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(38, 34, 98, 0.7);
    margin-top: 6px;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
    padding: 96px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-images {
    position: relative;
    height: 520px;
}
.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 85%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: ken-burns 12s ease-in-out infinite alternate;
}
@keyframes ken-burns {
    from {
        transform: scale(1) translateX(0) translateY(0);
    }
    to {
        transform: scale(1.06) translateX(-12px) translateY(-8px);
    }
}
.about-img-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    height: 52%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.about-badge {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    z-index: 2;
    text-align: center;
}
.about-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}
.about-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.about-point-icon {
    width: 44px;
    height: 44px;
    background: rgba(168, 168, 168, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.about-point-text strong {
    display: block;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.about-point-text p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--mid-gray);
    line-height: 1.5;
}

/* ============================================================
   MISSION
   ============================================================ */
#mission {
    padding: 96px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
#mission::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(168, 168, 168, 0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.mission-content .section-title {
    color: var(--white);
}
.mission-content p {
    color: rgba(255, 255, 255, 0.75);
}
.mission-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.mission-value {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all var(--transition);
}
.mission-value:hover {
    background: rgba(168, 168, 168, 0.1);
    border-color: rgba(168, 168, 168, 0.3);
    transform: translateY(-3px);
}
.mission-value-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.mission-value h4 {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.mission-value p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}
.mission-quote {
    position: relative;
    background: rgba(168, 168, 168, 0.08);
    border: 1px solid rgba(168, 168, 168, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}
.mission-quote-mark {
    font-family: "Playfair Display", serif;
    font-size: 8rem;
    line-height: 0.7;
    color: var(--gold);
    opacity: 0.25;
    position: absolute;
    top: 20px;
    left: 28px;
    pointer-events: none;
}
.mission-quote blockquote {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--white);
    line-height: 1.65;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.mission-cta-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mission-cta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}
.mission-cta-item::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   CAREERS
   ============================================================ */
#careers {
    padding: 96px 0;
    background: var(--off-white);
}
.careers-intro {
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
}
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}
.career-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}
.career-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.career-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.career-card:hover::before {
    transform: scaleX(1);
}
.career-icon {
    width: 56px;
    height: 56px;
    background: rgba(168, 168, 168, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.career-card h3 {
    color: var(--navy);
    margin-bottom: 12px;
}
.career-card p {
    font-size: 0.95rem;
    color: var(--mid-gray);
    margin: 0;
}
.career-card .card-tag {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 14px;
    background: rgba(168, 168, 168, 0.1);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
}
.careers-cta {
    text-align: center;
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    max-width: 700px;
    margin: 0 auto;
}
.careers-cta h3 {
    color: var(--white);
    margin-bottom: 12px;
}
.careers-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

/* ============================================================
   TEAM
   ============================================================ */
#team {
    padding: 96px 0;
    background: var(--white);
}
.team-intro {
    max-width: 620px;
    margin: 0 auto 64px;
    text-align: center;
}
.team-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}
/* Left column: single tall portrait photo */
.team-photo-tall {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-md);
}
.team-photo-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}
.team-photo-tall:hover img {
    transform: scale(1.04);
}

/* Right column: two stacked photos */
.team-photo-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.team-photo-inner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 1;
    min-height: 200px;
    box-shadow: var(--shadow-md);
}
.team-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.6s ease;
}
.team-photo-inner:hover img {
    transform: scale(1.04);
}

/* Overlay on both types */
.team-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(38, 34, 98, 0.7) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity var(--transition);
}
.team-photo-tall:hover .team-photo-overlay,
.team-photo-inner:hover .team-photo-overlay {
    opacity: 1;
}
.team-culture {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.team-culture h3 {
    color: var(--navy);
    margin-bottom: 16px;
}
.culture-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pillar {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pillar-num {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pillar-text {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
    padding: 96px 0;
    background: var(--navy);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
    align-items: start;
}
.contact-info .section-title {
    color: var(--white);
}
.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.contact-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 168, 168, 0.15);
    border: 1px solid rgba(168, 168, 168, 0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item-text strong {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contact-item-text span,
.contact-item-text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: none;
}
.contact-item-text a:hover {
    color: var(--gold);
}
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}
.contact-form-wrap h3 {
    color: var(--white);
    margin-bottom: 8px;
}
.contact-form-wrap > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition:
        border-color var(--transition),
        background var(--transition);
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.09);
}
.form-group textarea {
    resize: vertical;
    min-height: 110px;
}
.form-group select {
    appearance: none;
    cursor: pointer;
}
.form-group select option {
    background: var(--navy);
    color: var(--white);
}

/* ============================================================
   APPLY PAGE
   ============================================================ */
.page-hero {
    background: var(--navy);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Heavy overlay at top for text, lightens toward bottom to reveal faces */
    background: linear-gradient(
        to bottom,
        rgba(38, 34, 98, 0.92) 0%,
        rgba(38, 34, 98, 0.72) 40%,
        rgba(38, 34, 98, 0.5) 70%,
        rgba(38, 34, 98, 0.4) 100%
    );
    pointer-events: none;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/optimized/team-group1.jpg");
    background-size: cover;
    background-position: center 10%;
    opacity: 0.22;
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}
.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto;
}

.apply-section {
    padding: 80px 0;
    background: var(--off-white);
}
.apply-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.apply-header {
    background: var(--navy);
    padding: 40px 48px;
}
.apply-header h2 {
    color: var(--white);
    margin-bottom: 8px;
}
.apply-header p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}
.apply-body {
    padding: 48px;
}
.apply-form .form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 32px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}
.apply-form .form-section-title:first-child {
    margin-top: 0;
}
.apply-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.apply-form .form-group {
    margin-bottom: 20px;
}
.apply-form .form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--dark-gray);
    margin-bottom: 7px;
}
.apply-form .form-group label .req {
    color: var(--gold);
    margin-left: 3px;
}
.apply-form .form-group input,
.apply-form .form-group select,
.apply-form .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    outline: none;
}
.apply-form .form-group input:focus,
.apply-form .form-group select:focus,
.apply-form .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(168, 168, 168, 0.15);
}
.apply-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.apply-form .form-group select {
    cursor: pointer;
}
.apply-form .form-group .field-hint {
    font-size: 0.8rem;
    color: var(--mid-gray);
    margin-top: 5px;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gold);
    flex-shrink: 0;
}
.checkbox-group label {
    font-size: 0.9rem !important;
    color: var(--mid-gray) !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    line-height: 1.5;
}
.apply-footer {
    background: var(--off-white);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--light-gray);
}
.apply-footer-note {
    font-size: 0.82rem;
    color: var(--mid-gray);
}
.apply-footer .btn {
    min-width: 180px;
    justify-content: center;
}

/* Success notification */
.success-banner {
    display: none;
    background: linear-gradient(135deg, #1a6b3a, #218c4a);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: slide-in 0.4s ease;
}
.success-banner.hidden {
    display: none;
}
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.success-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.success-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.success-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

/* Error notification */
.error-banner {
    background: linear-gradient(135deg, #8b1a1a, #a52020);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: slide-in 0.4s ease;
}
.error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ============================================================
   LEGAL PAGES (Terms & Privacy)
   ============================================================ */
.legal-section {
    padding: 80px 0 100px;
}
.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}
.legal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 60px 64px;
}
.legal-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light-gray);
    flex-wrap: wrap;
}
.legal-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 168, 168, 0.1);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.legal-date {
    font-size: 0.85rem;
    color: var(--mid-gray);
}
.legal-toc {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 48px;
}
.legal-toc h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid-gray);
    margin-bottom: 14px;
}
.legal-toc ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-toc ol li a {
    font-size: 0.9rem;
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}
.legal-toc ol li a:hover {
    color: var(--gold);
}
.legal-body h2 {
    font-size: 1.35rem;
    color: var(--navy);
    margin: 48px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}
.legal-body h2:first-child {
    margin-top: 0;
    border-top: none;
}
.legal-body h3 {
    font-size: 1.05rem;
    color: var(--dark-gray);
    margin: 24px 0 10px;
}
.legal-body p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.legal-body ul,
.legal-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-body ul {
    list-style: disc;
}
.legal-body ol {
    list-style: decimal;
}
.legal-body li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.7;
}
.legal-body strong {
    color: var(--navy);
}
.legal-body a {
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #16154a;
    color: rgba(255, 255, 255, 0.65);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.footer-logo-img {
    height: 160px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.footer-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 280px;
}
.footer-col h4 {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer-col ul li a:hover {
    color: var(--gold);
}
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact-item .icon {
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-contact-item a,
.footer-contact-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
    line-height: 1.5;
}
.footer-contact-item a:hover {
    color: var(--gold);
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}
.footer-legal-links {
    display: flex;
    gap: 24px;
}
.footer-legal-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}
.footer-legal-links a:hover {
    color: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-images {
        height: 380px;
    }
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .team-gallery {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .section-pad {
        padding: 72px 0;
    }
    .about-images {
        height: 320px;
    }
    .about-img-main {
        width: 80%;
        height: 82%;
    }
    .about-img-accent {
        width: 55%;
        height: 48%;
    }
    .mission-values {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .team-culture {
        grid-template-columns: 1fr;
    }
    .apply-body {
        padding: 32px 24px;
    }
    .apply-header {
        padding: 32px 24px;
    }
    .apply-footer {
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
    }
    .apply-form .form-row {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .legal-card {
        padding: 36px 28px;
    }
    .team-gallery {
        grid-template-columns: 1fr;
    }
    .team-photo-tall {
        aspect-ratio: 4/3;
    }
    .team-photo-inner {
        min-height: 220px;
    }
}
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .careers-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================
   LOADING / ANIMATION
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up-delay-1 {
    transition-delay: 0.1s;
}
.fade-up-delay-2 {
    transition-delay: 0.2s;
}
.fade-up-delay-3 {
    transition-delay: 0.3s;
}
.fade-up-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--navy);
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
