:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --card: #ffffff;
}

body.dark-mode {
    --bg: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --card: #1e293b;
}

body.dark-mode .section.alt {
    background: #1e293b;
}

body.dark-mode .card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

body.dark-mode .footer {
    border-top-color: #334155;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: var(--primary);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

/* Modal Box */
.modal-content {
    position: relative;
    background: var(--card);
    width: 90%;
    max-width: 500px;
    margin: 10vh auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: popIn 0.4s ease;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Animation */
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.partners-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.partner-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
}


html {
    scroll-behavior: smooth;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ========== CONTAINERS ========== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 700px;
}

.center {
    text-align: center;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 60px;
    height: 60px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
}

/* ========== BUTTONS ========== */
.btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn.small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.nav-btn {
    margin-left: 30px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 120vh;
    padding-top: 70px; /* fixes header overlap */
    overflow: hidden;
}

/* Background image (HTML img) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: blur(18px);
    transform: scale(1.1);
    z-index: 0;
}

.hero-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    object-fit: cover;
    object-position: center top;
    filter: blur(18px);
    transform: scale(1.1);
    z-index: 0;
}
/* Dark overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.65)
    );
    z-index: 1;
}

/* Hero content layer */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
}

.hero p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

/* Hero box */
.hero-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    color: #fff;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.fade-up.delay {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partner Logos */

.jsraLogo {
    width: 300px;
    margin-bottom: 20px;
}

.crcLogo {
    width: 300px;
    margin-top: 10px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section.alt {
    background: #f1f5f9;
}

.section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

/* ========== CARDS ========== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
}

.card {
    background: var(--card);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
}

.card p {
    color: var(--muted);
}

.price {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 15px 0;
}

.card.featured {
    border: 2px solid var(--primary);
    transform: translateY(-10px);
}

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 30px 0;
    text-align: center;
    color: var(--muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card.featured {
        transform: none;
    }
}

.hidden {
    display: none;
}

.success {
    text-align: center;
    animation: popIn 0.4s ease;
}

.success h2 {
    margin-bottom: 10px;
}

.success p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* ========== TEAM SECTION ========== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    
}

/* Tablet */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 15px;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Reuse your existing modal base styles */

/* Team modal specifics */
.team-modal {
    text-align: center;
    max-width: 480px;
}

/* Modal image */
.team-modal img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Open animation */
.modal.active .modal-content {
    animation: modalIn 0.35s ease forwards;
}

/* Close animation */
.modal.closing .modal-content {
    animation: modalOut 0.25s ease forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.jayHeadshot {
    object-fit: contain;
    width: 73%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.drHeadshot {
    object-fit: contain;
    width: 90%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.mikHeadshot {
    object-fit: contain;
    width: 74%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.dmHeadshot {
    object-fit: contain;
    width: 75%;
    border-radius: 15px;
    margin-bottom: 15px;
}

#teamModal {
  position: fixed;
  inset: 30;
  display: none;
  z-index: 9999;
}

#teamModal.active {
  display: block;
}

.team-modal img {
    width: 100%;
    height: 230px;         /* keep your current height */
    object-fit: contain;   /* 🔥 THIS fixes zoom */
    object-position: center;
    border-radius: 3px;
}
