/* ============================================
   InStride Performance Therapy — Styles
   Teal + Slate Grey | Clean Minimalist
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    --white: #ffffff;
    --black: #000000;
    
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--slate-800);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--slate-900);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--slate-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--slate-900);
}

.logo-mark {
    font-size: 1.25rem;
    color: var(--teal-400);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--slate-600);
}

.nav-links a:hover {
    color: var(--teal-400);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--teal-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-400);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--teal-300) !important;
    border: 1px solid rgba(45, 212, 191, 0.4) !important;
    padding: 8px 20px;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: var(--teal-600) !important;
    color: var(--white) !important;
    border-color: var(--teal-600) !important;
}

.navbar.scrolled .nav-cta {
    color: var(--teal-600) !important;
    border-color: var(--teal-200) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: var(--transition);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--slate-800);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--slate-950);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.5rem;
    color: var(--slate-400);
    transition: var(--transition);
}

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

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--slate-300);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--teal-400);
}

.mobile-cta {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--teal-400);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--teal-800);
    padding: 12px 32px;
    transition: var(--transition);
}

.mobile-cta:hover {
    background: var(--teal-600);
    color: var(--white);
    border-color: var(--teal-600);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.82) 0%,
        rgba(15, 23, 42, 0.72) 50%,
        rgba(17, 94, 89, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 80px;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 44px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 36px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--teal-600);
    color: var(--white);
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* --- Intro --- */
.intro {
    padding: 120px 0;
    background: var(--white);
}

.intro-content {
    max-width: 780px;
}

.thin-line {
    width: 48px;
    height: 1px;
    background: var(--teal-400);
    margin-bottom: 32px;
}

.intro-text {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--slate-700);
    margin-bottom: 56px;
}

.intro-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate-900);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--slate-500);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-200);
}

/* --- Section Shared --- */
.section-header {
    margin-bottom: 64px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--slate-900);
    margin-bottom: 20px;
}

.section-line {
    width: 48px;
    height: 1px;
    background: var(--teal-400);
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--slate-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 44px 36px;
    border: 1px solid var(--slate-100);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--teal-200);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    color: var(--teal-600);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- Approach --- */
.approach {
    padding: 120px 0;
    background: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.approach-image {
    position: relative;
}

.approach-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.approach-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--teal-200);
    z-index: -1;
}

.approach-content {
    padding-left: 20px;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 48px;
}

.approach-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--teal-300);
    padding-top: 4px;
}

.approach-step h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 8px;
}

.approach-step p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--slate-50);
}

.about-content {
    max-width: 680px;
    margin-bottom: 64px;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 94, 89, 0.9) 0%,
        rgba(2, 6, 23, 0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.section-tag.light {
    color: var(--teal-300);
}

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

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--teal-600);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    color: var(--slate-700);
    line-height: 1.6;
}

.contact-value a {
    color: var(--slate-700);
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--teal-600);
}

/* --- Form --- */
.contact-form-wrapper {
    background: var(--slate-50);
    padding: 48px;
    border: 1px solid var(--slate-100);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--white);
    border: 1px solid var(--slate-200);
    padding: 14px 16px;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    gap: 16px;
}

.form-success.visible {
    display: flex;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-600);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--slate-900);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* --- Map --- */
.map-section {
    background: var(--slate-100);
}

/* --- Footer --- */
.footer {
    background: var(--slate-950);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--slate-500);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--slate-500);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--slate-600);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .intro {
        padding: 80px 0;
    }
    
    .intro-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 32px 28px;
    }
    
    .approach {
        padding: 80px 0;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .approach-image::after {
        display: none;
    }
    
    .approach-content {
        padding-left: 0;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-tag {
        font-size: 0.6875rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .approach-step {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
}
