/* ===================================
   VitalSport - Optimized Design
   =================================== */

:root {
    /* Colors - Vibrant Blue & Sporty */
    --primary: #0288d1;
    --primary-dark: #01579b;
    --primary-light: #4fc3f7;
    --primary-glow: rgba(2, 136, 209, 0.4);

    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #29b6f6;
    --accent-glow: rgba(41, 182, 246, 0.4);

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 6rem;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px var(--primary-glow);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
}

/* ===================================
   Reset & Base
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Accessibility
   =================================== */
.skip-to-content {
    position: absolute;
    top: -200px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
    opacity: 0;
}

.skip-to-content:focus {
    top: 0;
    opacity: 1;
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Enhanced focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================================
   Typography
   =================================== */
.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-tag--light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__title--left {
    text-align: left;
}

.section__title--light {
    color: var(--white);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section__subtitle {
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #81d4fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.gradient-text-light {
    background: linear-gradient(135deg, var(--primary-light), #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), #29b6f6);
    color: var(--white);
    box-shadow: 0 4px 15px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow);
    color: var(--secondary);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px var(--primary-glow);
    }

    50% {
        box-shadow: 0 4px 30px var(--primary-glow);
    }
}

.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header--scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-symbol {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s ease;
}

.header--scrolled .logo-text {
    color: var(--secondary);
}

.logo-accent {
    color: var(--primary);
}

.header--scrolled .logo-symbol {
    height: 32px;
}

.nav__logo:hover .logo-symbol {
    transform: scale(1.1) rotate(5deg);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.header--scrolled .nav__link {
    color: var(--gray-600);
}

.nav__link:hover {
    color: var(--primary-light);
}

.header--scrolled .nav__link:hover {
    color: var(--primary);
}

.nav__cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
}

.nav__cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header--scrolled .nav__toggle span {
    background: var(--secondary);
}

.nav__close {
    display: none;
}

/* ===================================
   Hero Section - Centered
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    background-image: url('hero-image.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
    background: radial-gradient(circle at top right, rgba(2, 136, 209, 0.15), transparent 40%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 8rem 1.5rem 4rem;
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Services Section - 3 Equal Cards
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(2, 136, 209, 0.15);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-card__description {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card__link:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===================================
   Method Section
   =================================== */
.method {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.method__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.method-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.method-step.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.method-step__number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.method-step__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.method-step__content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.method-step__content p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===================================
   Team Section - Single Person
   =================================== */
.team {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.team__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team__layout--single {
    grid-template-columns: 400px 1fr;
}

.team__image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team__description {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.team__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.skill-tag:nth-child(2) {
    animation-delay: 0.1s;
}

.skill-tag:nth-child(3) {
    animation-delay: 0.2s;
}

.skill-tag:nth-child(4) {
    animation-delay: 0.3s;
}

.skill-tag:nth-child(5) {
    animation-delay: 0.4s;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Booking Section with Calendly
   =================================== */
.booking {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.booking__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.booking__description {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.booking__benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
}

.benefit.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.benefit__icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.benefit p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
}

.booking__contact {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking__contact p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.booking__phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.booking__phone:hover {
    color: var(--white);
}

.booking__calendly {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    padding: 5rem 0 2rem;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__tagline {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer__links h4,
.footer__contact h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer__links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a,
.footer__contact li {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer__contact a {
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.footer__contact a:hover {
    color: var(--primary-light);
}

.footer__links a:hover {
    color: var(--primary-light);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: var(--primary-light);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .method__steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .team__layout,
    .team__layout--single {
        grid-template-columns: 1fr;
    }

    .booking__layout {
        grid-template-columns: 1fr;
    }

    .footer__main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 0;
        box-shadow: none;
        transition: right 0.3s ease;
        z-index: 998;
    }

    .nav__menu--active {
        right: 0;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray-700);
        transition: all 0.3s ease;
        border-radius: 8px;
    }

    .nav__close:hover {
        background: var(--gray-200);
        color: var(--primary);
        transform: rotate(90deg);
    }

    .nav__close svg {
        width: 24px;
        height: 24px;
    }

    .nav__item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav__item:last-of-type {
        border-bottom: none;
    }

    .nav__link {
        color: var(--gray-800) !important;
        font-size: 1.125rem;
        font-weight: 500;
        padding: 1.25rem 1.5rem;
        display: block;
        transition: all 0.3s ease;
    }

    .nav__link:hover {
        background: var(--gray-100);
        color: var(--primary) !important;
    }

    .nav__cta {
        background: var(--primary) !important;
        color: var(--white) !important;
        padding: 1rem 2rem !important;
        border-radius: 12px !important;
        margin: 2rem auto 0 !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        text-align: center;
        display: block;
        width: calc(100% - 3rem);
        max-width: 280px;
        border: none !important;
    }

    .nav__cta:hover {
        background: var(--primary-dark) !important;
        transform: translateY(-2px) !important;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .method__steps {
        grid-template-columns: 1fr;
    }

    .team__image img {
        height: 350px;
    }

    .team__stats {
        justify-content: center;
    }

    .footer__main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .footer__legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-pill {
        padding: 1rem 1.25rem;
    }

    .stat-pill__number {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}