@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #008080;
    /* Teal */
    --primary-dark: #006666;
    --secondary-color: #FF6A00;
    /* Orange - for urgent CTAs if needed, using as accent for now */
    --accent-color: #F4EBD9;
    /* Sand */
    --text-color: #2B2B2B;
    /* Dark Charcoal */
    --text-light: #555555;
    --bg-color: #FAFAFA;
    /* Off-white */
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mobile-sticky-cta {
    display: none;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    /* Ensure full width on mobile */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--text-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Secondary button updated to match hero style on hover */
/* Secondary button updated to match hero style on hover */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 128, 128, 0.3);
}

.btn-outline {
    border: 1px solid var(--text-light);
    color: var(--text-color);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent */
    backdrop-filter: blur(15px) saturate(180%);
    /* Enhanced glass effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Add Pulse Animation to Primary CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 128, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0);
    }
}

.btn-primary.pulse-effect {
    animation: pulse 2s infinite;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 15px;
    /* Reduced gap slightly */
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    /* Reduced from 90vh */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    background-color: #000;
    padding: 80px 0;
    /* Reduced from 100px */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    /* Reduced from 4rem */
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    /* Reduced from 1.4rem */
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    /* Constrain width for better readability */
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Stats Counter */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-item span:not(.stat-number) {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 2px;
}

.stat-label {
    margin-top: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.bg-light {
    background-color: var(--accent-color);
    /* Sand background */
}


/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns on desktop */
    gap: 30px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    /* Ensures image doesn't overflow rounded corners */
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 15px 0;
    font-size: 1.1rem;
}

/* About */
.about-content {
    display: flex;
    flex-direction: column;
    /* Changed to column to support Title -> Image -> Text flow */
    gap: 40px;
}

@media (min-width: 901px) {
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }

    .about-full-title {
        grid-column: 1 / -1;
        /* Title spans full width */
        margin-bottom: 40px;
    }
}

.about-text {
    flex: 1;
    text-align: left;
    /* Changed from justify to left for better mobile flow */
}

.about-image {
    flex: 1;
}

.trainer-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.trainer-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Card Visual Improvements */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 128, 128, 0.15);
}

.credentials-list {
    margin-top: 20px;
}

.credentials-list li {
    margin-bottom: 15px;
    /* Increased spacing for readability */
    display: flex;
    align-items: flex-start;
    /* Better for multi-line text on mobile */
    gap: 12px;
}

.credentials-list i {
    color: var(--primary-color);
    margin-top: 5px;
    /* Alignment for flex-start */
}


/* FAQs */
.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px 20px;
    color: var(--text-light);
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background: var(--accent-color);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.map-embed .map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 5px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    color: var(--white);
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 15px;
}

.legal {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.legal a {
    color: #888;
    margin: 0 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.logo-footer img {
    height: 60px;
    width: auto;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        /* This will naturally put image first if it's first in HTML */
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .logo img {
        height: 50px;
        /* Slightly smaller logo for tablet/mobile */
    }

    .hero {
        min-height: 500px;
        padding: 120px 0 80px;
        /* Increase top padding for mobile navbar */
        text-align: left;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow);
        display: none;
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Remove Book Consultation button from Navbar on Phone View */
    .nav-links .btn-primary {
        display: none !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        /* Scale down h1 for small phones */
    }

    .hero {
        min-height: 500px;
        padding: 80px 0;
    }

    .hero p {
        font-size: 1.1rem;
        /* Scale down hero subtext */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .trainer-img {
        height: 350px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .contact-wrapper {
        padding: 30px 20px;
        /* Reduce padding on small screens */
    }
}

/* Extra small screen fixes (sub-350px) */
@media (max-width: 350px) {
    h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
        /* Slightly tighter padding for extra small screens */
    }

    .hero-content {
        padding: 0 10px;
    }

    .review-slide {
        height: 180px;
        /* Even smaller for very tight screens */
    }

    .logo img {
        height: 40px;
        /* Smallest logo for extra-small mobiles */
    }

    .service-content {
        padding: 20px;
        /* Reduce padding inside cards on small screens */
    }

    .contact-info ul li {
        gap: 10px;
        font-size: 0.9rem;
    }
}

/* Reviews Slider */
.reviews-slider-container {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.reviews-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.reviews-track {
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
    gap: 30px;
    --move-distance: calc(-50%);
    /* Moves by half the track width (the original set) */
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-slide {
    height: 350px;
    /* Base height for all slides */
    flex-shrink: 0;
}

.review-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* ensures full screenshot is visible */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.review-slide img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--move-distance));
    }
}

@media (max-width: 600px) {
    .review-slide {
        height: 200px;
        /* Smaller height for mobile */
    }

    .reviews-track {
        gap: 15px;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform, filter;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}