/* ============================================
   Integrate2 Physical Therapy — Stylesheet
   Teal + Slate Grey | Clean Minimalist
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --teal-900: #0f3436;
    --teal-800: #1e3a41;
    --teal-700: #2a4f54;
    --teal-600: #3d6b6f;
    --teal-500: #5a8a8e;
    --teal-400: #8fb5b5;
    --teal-300: #a5d6ce;
    --teal-200: #c5e8e0;
    --teal-100: #e0f5f0;
    --teal-50: #f0faf7;
    
    --slate-950: #0a0f14;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    
    --white: #ffffff;
    --black: #0a0a0a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

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

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

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

ul {
    list-style: none;
}

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

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section--dark {
    background-color: var(--teal-900);
}

.section--teal {
    background-color: var(--teal-100);
}

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

.grid {
    display: grid;
    gap: 4rem;
}

.grid--two {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.grid--reverse {
    direction: rtl;
}

.grid--reverse > * {
    direction: ltr;
}

/* --- Section Headers --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.5rem;
    color: var(--teal-900);
}

.section-title em {
    font-style: italic;
    color: var(--teal-600);
}

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

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

.section-title--dark {
    color: var(--teal-900);
}

.section-body {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.8;
    max-width: 540px;
}

.section-body--light {
    color: var(--slate-300);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/27925592/pexels-photo-27925592.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 52, 54, 0.9) 0%, rgba(30, 58, 65, 0.84) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(165, 214, 206, 0.9);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.12;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero__title em {
    font-style: italic;
    color: var(--teal-300);
}

.hero__subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-900);
    background: var(--teal-300);
    border: none;
    padding: 1rem 2.25rem;
    text-decoration: none;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(165, 214, 206, 0.6);
    padding: 0.9375rem 2.125rem;
    text-decoration: none;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(165, 214, 206, 0.12);
    border-color: var(--teal-300);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    transition: all 0.4s ease;
}

.nav--scrolled {
    background: rgba(15, 52, 54, 0.96);
    backdrop-filter: blur(12px);
    padding: 0.875rem 2rem;
    box-shadow: 0 1px 0 rgba(165, 214, 206, 0.15);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav__logo span {
    color: var(--teal-300);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav__link {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-300);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--teal-300);
}

.nav__link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* --- About Section --- */
.about__image {
    overflow: hidden;
    border-radius: 2px;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about__image:hover img {
    transform: scale(1.03);
}

.about__content {
    padding: 1rem 0;
}

.about__stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--teal-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-500);
}

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

.service-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(165, 214, 206, 0.15);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(165, 214, 206, 0.35);
    transform: translateY(-4px);
}

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

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* --- Approach --- */
.approach__image {
    overflow: hidden;
    border-radius: 2px;
}

.approach__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.approach__image:hover img {
    transform: scale(1.03);
}

.approach__content {
    padding: 1rem 0;
}

.approach-steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.approach-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
}

.approach-step__num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--teal-300);
    line-height: 1;
    padding-top: 0.25rem;
}

.approach-step__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    color: var(--teal-900);
    margin-bottom: 0.5rem;
}

.approach-step__desc {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(15, 52, 54, 0.06);
    text-align: left;
    transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 52, 54, 0.1);
}

.testimonial-card__stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-card__quote {
    font-size: 0.9375rem;
    color: var(--slate-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card__author {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-900);
}

/* --- Contact --- */
.contact__info {
    padding: 1rem 0;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
}

.contact-detail__label {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 0.25rem;
}

.contact-detail__value {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--teal-900);
    line-height: 1.5;
}

.contact-detail__value a {
    color: inherit;
    transition: color 0.3s ease;
}

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

/* --- Contact Form --- */
.contact__form-wrapper {
    background: var(--slate-50);
    padding: 3rem;
    border-radius: 2px;
    border: 1px solid var(--slate-200);
}

.contact-form__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--teal-900);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-600);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 2px;
    padding: 0.875rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(165, 214, 206, 0.2);
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--teal-900);
    border: none;
    padding: 1rem 2.25rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 52, 54, 0.25);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 1.5rem;
    background: var(--teal-100);
    color: var(--teal-900);
    font-size: 0.9375rem;
    border-radius: 2px;
    margin-top: 1rem;
}

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

/* --- Map --- */
.map-section {
    height: 400px;
    filter: grayscale(0.4) contrast(1.05);
}

/* --- Footer --- */
.footer {
    background: var(--teal-900);
    padding: 5rem 0 2rem;
}

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

.footer__brand {
    max-width: 280px;
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 1.25rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    font-size: 0.9375rem;
    color: var(--slate-400);
    transition: color 0.3s ease;
    line-height: 1.5;
}

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

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(165, 214, 206, 0.15);
    text-align: center;
}

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

/* --- Scroll Reveal --- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 52, 54, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu--open {
    display: flex;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: var(--teal-300);
}

.mobile-menu__close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu__close svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .grid--two {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .grid--reverse {
        direction: ltr;
    }
    
    .nav__links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__buttons .btn-primary,
    .hero__buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .about__stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .approach-step {
        grid-template-columns: 2.5rem 1fr;
        gap: 1rem;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact__form-wrapper {
        padding: 2rem;
    }
    
    .map-section {
        height: 300px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact__form-wrapper {
        padding: 1.5rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
