/* Main Banner */
.banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.banner p {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.btn-banner {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.btn-banner:hover {
    background-color: #ff9900;
}

/* Main Banner */
@media (max-width: 1024px) {
    .banner {
        height: 50vh; /* Reduce height on tablets */
    }

    .banner h1 {
        font-size: 36px; /* Adjust text size */
    }

    .banner p {
        font-size: 20px;
    }

    .btn-banner {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 50vh; /* Reduce height on mobile */
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .btn-banner {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


/* Our Story Section */
.story {
    padding: 50px 20px;
    background-color: var(--background);
    color: white;
    text-align: center;
}

.story h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.story p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Our Team Section */
.team {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--grey);
    text-align: center;
    scroll-margin-top: 80px;
    font-family: 'Montserrat', Arial, sans-serif;
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.team h2 {
    font-size: 3rem;
    margin-bottom: 12px;
    color: #000;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.team .section-intro {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Grid Layout for Team Members - 4-3 Staggered Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 32px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* First 4 members - top row, each takes 2 columns */
.team-member:nth-child(1) { grid-column: 1 / 3; }
.team-member:nth-child(2) { grid-column: 3 / 5; }
.team-member:nth-child(3) { grid-column: 5 / 7; }
.team-member:nth-child(4) { grid-column: 7 / 9; }

/* Last 3 members - bottom row centered, offset by 1 column, each takes 2 columns */
.team-member:nth-child(5) { grid-column: 2 / 4; }
.team-member:nth-child(6) { grid-column: 4 / 6; }
.team-member:nth-child(7) { grid-column: 6 / 8; }

.team-member {
    background: #fff;
    border: 1px solid rgba(17,24,39,.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17,24,39,.08);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    transform: scaleX(0);
    transition: transform .3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(17,24,39,.15);
    border-color: rgba(255, 204, 0, 0.2);
}

/* Card media */
.team-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.team-member .team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.08);
}

/* Card body */
.team-body {
    padding: 24px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 10px;
    flex-grow: 1;
    align-content: start;
}

.team-member h3 {
    margin: 0;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    font-weight: 700;
    line-height: 1.3;
    min-height: 2.7rem;
}

.role-chip {
    font-size: .7rem;
    line-height: 1;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: #000;
    border-radius: 8px;
    padding: .35rem .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 204, 0, 0.3);
    white-space: nowrap;
}

.position {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    min-height: 1.5rem;
}

.position span {
    font-weight: 500;
    color: #495057;
}

/* Skill badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 2rem;
    align-items: flex-start;
}

.badge {
    font-size: .75rem;
    line-height: 1;
    padding: .4rem .7rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    font-weight: 600;
    transition: all .2s ease;
}

.badge:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: #000;
    border-color: #ffcc00;
    transform: translateY(-1px);
}

/* Bio text */
.bio {
    color: #495057;
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    align-self: start;
}

/* Our Story Section */
@media (max-width: 1024px) {
    .story h2 {
        font-size: 2rem;
    }

    .story p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .story h2 {
        font-size: 1.8rem;
    }

    .story p {
        font-size: 0.9rem;
    }
}

/* Our Team Section */
@media (max-width: 1024px) {
    .team {
        padding: 60px 20px;
    }

    .team h2 {
        font-size: 2.5rem;
    }

    .team .section-intro {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 28px;
    }

    /* 3 columns for tablet - top row */
    .team-member:nth-child(1) { grid-column: 1 / 3; }
    .team-member:nth-child(2) { grid-column: 3 / 5; }
    .team-member:nth-child(3) { grid-column: 5 / 7; }
    
    /* Bottom row */
    .team-member:nth-child(4) { grid-column: 1 / 3; }
    .team-member:nth-child(5) { grid-column: 3 / 5; }
    .team-member:nth-child(6) { grid-column: 5 / 7; }
    .team-member:nth-child(7) { grid-column: 2 / 5; }

    .team-member h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 50px 15px;
    }

    .team h2 {
        font-size: 2rem;
    }

    .team .section-intro {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 10px;
    }

    /* 2 columns for mobile - reset grid positioning */
    .team-member:nth-child(1) { grid-column: 1 / 2; }
    .team-member:nth-child(2) { grid-column: 2 / 3; }
    .team-member:nth-child(3) { grid-column: 1 / 2; }
    .team-member:nth-child(4) { grid-column: 2 / 3; }
    .team-member:nth-child(5) { grid-column: 1 / 2; }
    .team-member:nth-child(6) { grid-column: 2 / 3; }
    .team-member:nth-child(7) { grid-column: 1 / 3; }

    .team-member h3 {
        font-size: 1.2rem;
    }

    .position {
        font-size: .95rem;
    }

    .team-body {
        padding: 20px;
    }

    .badge {
        font-size: .72rem;
        padding: .35rem .6rem;
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Single column for small mobile */
    .team-member:nth-child(1),
    .team-member:nth-child(2),
    .team-member:nth-child(3),
    .team-member:nth-child(4),
    .team-member:nth-child(5),
    .team-member:nth-child(6),
    .team-member:nth-child(7) {
        grid-column: 1 / 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Footer parity with main page */
:root { 
  /* ensure CTA vars exist if not defined globally */
  --cta: white;
  --cta-strong: white;
  --cta-ink: #0f0f10;
}

/* Note: We intentionally do not reset the generic footer element to avoid breaking layout.
    The .site-footer styles below override any earlier generic footer rules. */

/* Main footer styles copied to match index page exactly */
.site-footer {
  background: linear-gradient(180deg, #0b0b0b 0%, #090909 40%, #070707 100%);
  border-top: none;
  color: #cfd2d6;
  padding: 60px 0 34px;
}
.site-footer .container {
  width: min(92%, 1200px);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  column-gap: 48px;
  row-gap: 28px;
  align-items: start;
}
.footer-col .footer-title { 
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--cta);
  font-size: 20px;
  margin-bottom: 12px;
}
.brand .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.brand .brand-logo { width: 36px; height: 36px; }
.brand .brand-name { font-size: 20px; font-weight: 700; color: #fff; }
.brand .brand-text { color: #b9bdc3; margin-bottom: 14px; text-align: left; line-height: 1.6; }

/* Footer Links */
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: grey; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: #ffcc00; outline: none; }

/* Newsletter */
.newsletter-text { color: #b9bdc3; margin-bottom: 10px; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.newsletter-input { width: 100%; padding: 12px 14px; border-radius: 999px; border: 1px solid #ffcc00; background: rgba(255,255,255,0.04); color: #e9ecef; }
.newsletter-input::placeholder { color: #9aa0a6; }
.newsletter-btn { padding: 12px 22px; border-radius: 999px; border: 1.5px solid #ffcc00; background: transparent; color: #ffcc00; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.newsletter-btn:hover, .newsletter-btn:focus-visible { background:#ffcc00; color: black; outline: none; transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }

/* Socials */
.footer-social { margin-top: 20px; display: flex; gap: 15px; justify-content: center; }
.social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: grey; transition: all 0.3s ease; }
.social-link img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0.95); }
.social-link:hover { background: #ffcc00; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.social-link:hover img { filter: brightness(0.2); }

.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; color: #9aa0a6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 40px; }
  .brand .brand-text { font-size: 14px; line-height: 1.5; }
  .footer-col .footer-title { font-size: 18px; }
  .newsletter-input { padding: 10px 14px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 40px 0 25px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 15px; }
  .brand .brand-row { justify-content: center; margin-bottom: 15px; }
  .brand .brand-text { text-align: center; font-size: 14px; line-height: 1.5; margin: 0 auto 10px; max-width: 290px; color: #b9bdc3; }
  .footer-col { margin-bottom: 0; padding-bottom: 5px; }
  .footer-col .footer-title { font-size: 17px; margin-bottom: 12px; color: white !important; }
  .footer-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 0 auto 10px; }
  .footer-links li { display: inline-block; }
  .footer-links a { font-size: 14px; padding: 5px 10px; color: #aaa !important; display: inline-block; }
  .footer-links a:hover, .footer-links a:focus-visible { color: white !important; }
  .newsletter-text { font-size: 14px; max-width: 250px; margin: 0 auto 12px; }
  .newsletter-form { max-width: 280px; margin: 0 auto; grid-template-columns: 1fr; gap: 10px; }
  .newsletter-input { width: 100%; padding: 12px 15px; text-align: center; font-size: 14px; }
  .newsletter-btn { width: 100%; padding: 12px; font-size: 14px; margin-bottom: 15px; }
  .footer-social { margin: 5px auto 0; display: flex; justify-content: center; gap: 16px; }
  .social-link { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); }
  .social-link img { width: 20px; height: 20px; }
  .footer-bottom { margin-top: 25px; padding-top: 15px; }
  .copyright { font-size: 13px; color: #777; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .newsletter-form { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .site-footer .container { width: 100%; padding: 0 10px; }
  .brand .brand-text { font-size: 13px; max-width: 260px; }
  .footer-links { gap: 8px; }
  .footer-links a { font-size: 13px; padding: 4px 8px; }
  .newsletter-form { max-width: 250px; }
  .newsletter-input { padding: 10px 15px; }
  .newsletter-btn { padding: 10px; }
  .social-link { width: 36px; height: 36px; }
  .social-link img { width: 18px; height: 18px; }
}

/* Mobile layout parity with main page: put Explore and Policies side-by-side */
@media (max-width: 767px) {
    /* Safety: prevent any transforms/positioning from causing overlays */
    .site-footer { overflow: visible; }
    .site-footer .container { width: min(94%, 640px); margin: 0 auto; }

    /* Use a 2-col grid for the two link groups; keep Brand/Newsletter full width */
    .footer-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 22px !important; padding: 0 16px !important; grid-auto-flow: row; align-items: start; }

    /* Reset any positioning/transforms that could cause stacking */
    .footer-col,
    .footer-col * { position: static !important; transform: none !important; z-index: auto !important; }

    .footer-col.brand,
    .footer-col.newsletter { grid-column: 1 / -1 !important; }

    /* Ensure visual order: Brand -> Explore & Policies -> Newsletter */
    .footer-col.brand { order: 0 !important; }
    .footer-col[aria-label="Explore"] { order: 1 !important; }
    .footer-col[aria-label="Policies"] { order: 1 !important; }
    .footer-col.newsletter { order: 2 !important; }

    /* Center titles and links inside the two columns */
    .footer-col[aria-label="Explore"],
    .footer-col[aria-label="Policies"] { text-align: center; }

    /* Restore vertical list inside each column (override earlier flex on .footer-links) */
        .footer-col[aria-label="Explore"] .footer-links,
        .footer-col[aria-label="Policies"] .footer-links { display: grid !important; gap: 10px !important; justify-items: center !important; margin: 0 auto !important; width: 100% !important; }

    .footer-col[aria-label="Explore"] .footer-links a,
        .footer-col[aria-label="Policies"] .footer-links a { display: inline-block !important; padding: 6px 0 !important; white-space: nowrap; }

            /* Newsletter form full-width stack and centered (match main page) */
            .newsletter-form { grid-template-columns: 1fr !important; max-width: 280px !important; margin: 0 auto !important; gap: 10px !important; }
        .newsletter-input, .newsletter-btn { width: 100% !important; }

            /* Fine-tune spacing to mirror main page */
            .newsletter-text { font-size: 14px !important; max-width: 250px !important; margin: 0 auto 12px !important; }
            .newsletter-input { padding: 12px 15px !important; }
            .newsletter-btn { padding: 12px !important; font-size: 14px !important; margin-bottom: 15px !important; }
}

/* Very small devices: allow wrapping for long link labels */
@media (max-width: 380px) {
    .footer-col[aria-label="Explore"] .footer-links a,
    .footer-col[aria-label="Policies"] .footer-links a { white-space: normal; }
}