/* --- Root Setup & Palette --- */
:root {
    --primary: #2b3990;       /* Royal Blue */
    --accent: #662d91;        /* Purple */
    --dark: #1e2022;          /* Slate Dark */
    --muted: #5a6065;         /* Subtle Gray */
    --light: #f4f6f9;         /* Soft BG */
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light);
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
}

.section-title h2 {
    font-size: 2.4rem;
    margin-top: 5px;
}

.section-title .line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --- Header & Nav Alignment --- */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.site-logo {
    height: 55px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-logo-container {
    margin-bottom: 18px;
}

.hero-main-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.hero-section {
    position: relative;
    height: 80vh;
    min-height: 520px;
    background: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43, 57, 144, 0.85), rgba(102, 45, 145, 0.8));
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: #e2d1f9;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
    margin: 15px 0 15px;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-note {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 6px;
    padding: 12px 20px;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-note p {
    font-size: 0.95rem;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    padding: 12px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #4d216d;
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* --- Programs Grid Layout --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.program-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card-img-wrap {
    height: 180px;
    width: 100%;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex: 1;
}

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--muted);
}

.full-width-card {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.full-width-card .card-img-wrap {
    width: 40%;
    height: 220px;
}

.full-width-card .card-body {
    width: 60%;
    padding: 30px;
}

/* --- Trainer Section --- */
.trainer-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-items: center;
}

.trainer-img-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
}

.trainer-content h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.trainer-lead {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.trainer-content p {
    margin-bottom: 15px;
    color: var(--muted);
}

.trainer-list,
.styled-list,
.styled-numbered-list {
    margin: 10px 0 0 20px;
    color: var(--muted);
    line-height: 1.8;
}

.trainer-list li,
.styled-list li,
.styled-numbered-list li {
    margin-bottom: 8px;
}

/* --- About Section Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.about-box {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-box.highlight {
    background: #f0ebf8;
    border-left: 4px solid var(--accent);
}

.about-box h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.about-box p {
    margin-bottom: 10px;
    color: var(--muted);
}

.vision-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.vision-box h3 {
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    height: 45px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* --- Mobile Responsiveness --- */
/* ==========================================
   Mobile & Tablet Responsive Adjustments
   ========================================== */

@media (max-width: 768px) {

    /* --- General Layout & Spacing --- */
    .section {
        padding: 50px 0; /* Reduces excess white space on phone screens */
    }

    .container {
        padding: 0 16px;
    }

    /* --- Header & Navigation --- */
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 16px;
    }

    .site-logo {
        height: 45px; /* Keeps logo proportionate */
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px; /* Clean spacing for mobile tap targets */
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    /* --- Hero Section --- */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 60px 15px 40px;
    }

    .hero-main-logo {
        width: 85px;
        height: 85px;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem; /* Scales heading down so it fits nicely on 5-inch to 6.7-inch screens */
        line-height: 1.3;
        margin: 10px 0;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .hero-note {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column; /* Stacks hero buttons vertically for easy thumb clicking */
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    /* --- Section Headings --- */
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title span {
        font-size: 0.75rem;
    }

    /* --- Programs Grid --- */
    .programs-grid {
        grid-template-columns: 1fr; /* Stacks all cards into a single column */
        gap: 20px;
    }

    .card-img-wrap {
        height: 200px;
    }

    .full-width-card {
        grid-column: span 1 !important;
        flex-direction: column !important;
    }

    .full-width-card .card-img-wrap,
    .full-width-card .card-body {
        width: 100% !important;
        padding: 20px !important;
    }

    /* --- Trainer Section (About Me) --- */
    .trainer-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .trainer-img-wrap img {
        height: 280px;
    }

    .trainer-content h3 {
        font-size: 1.5rem;
    }

    /* --- About Center & Vision --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-box {
        padding: 22px;
    }

    .vision-box {
        padding: 20px;
    }

    /* --- Lists Padding on Mobile --- */
    .trainer-list, 
    .styled-list, 
    .styled-numbered-list {
        padding-left: 16px;
    }
}
