/* PhysioCare Motion - site styles */

:root {
    /* Primary: navy */
    --navy-900: #0b2545;
    --navy-800: #13315c;
    --navy-700: #1d4170;
    --navy-100: #dfe7f1;

    /* Secondary: teal */
    --teal-700: #0f766e;
    --teal-600: #118a7e;
    --teal-300: #5eead4;
    --teal-100: #d7f5ef;

    /* Accent: sky */
    --sky-600: #0369a1;
    --sky-100: #e0f2fe;

    /* Status */
    --success-700: #15803d;
    --success-100: #dcfce7;
    --warning-700: #b45309;
    --warning-100: #fef3c7;
    --error-700: #b91c1c;
    --error-100: #fee2e2;

    /* Neutrals */
    --white: #ffffff;
    --grey-50: #f5f7fa;
    --grey-100: #e9eef4;
    --grey-300: #cbd5e1;
    --grey-500: #64748b;
    --grey-700: #334155;
    --grey-900: #1e293b;

    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.08);
    --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.12);
    --header-height: 80px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-2));
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    color: var(--grey-900);
    background: var(--white);
}

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

a {
    color: var(--teal-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--navy-900);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 var(--space-2);
    color: var(--navy-900);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.875rem, 2.5vw + 1rem, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 var(--space-2);
}

:focus-visible {
    outline: 3px solid var(--teal-600);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.narrow {
    max-width: 820px;
}

.skip-link {
    position: absolute;
    left: var(--space-2);
    top: -100px;
    z-index: 200;
    background: var(--navy-900);
    color: var(--white);
    padding: var(--space-1) var(--space-2);
    border-radius: 8px;
}

.skip-link:focus {
    top: var(--space-2);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: var(--space-1);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--teal-700);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
    background: var(--teal-600);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.36);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--grey-300);
}

.btn-ghost:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}

.btn-lg {
    min-height: 56px;
    padding: 14px 32px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--navy-900);
}

.brand:hover {
    color: var(--navy-900);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-tagline {
    font-size: 0.8125rem;
    color: var(--grey-500);
}

.brand-light,
.brand-light:hover {
    color: var(--white);
}

.brand-light .brand-tagline {
    color: var(--grey-300);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--grey-300);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    position: relative;
    color: var(--navy-900);
    font-weight: 600;
    text-decoration: none;
    padding: var(--space-1) 0;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-actions .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.9375rem;
}

/* Hero */

.hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(94, 234, 212, 0.18), transparent 40%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    padding: var(--space-12) 0;
}

.hero h1,
.hero h2 {
    color: var(--white);
}

.hero .eyebrow {
    color: var(--teal-300);
}

.accent-text {
    color: var(--teal-300);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: var(--space-8);
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--grey-100);
    max-width: 36em;
    margin-bottom: var(--space-4);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.hero-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-1);
}

.hero-highlights li {
    position: relative;
    padding-left: var(--space-3);
    color: var(--grey-100);
}

.hero-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-300);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 940 / 650;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Sections */

.section {
    padding: var(--space-12) 0;
}

.section-alt {
    background: var(--grey-50);
}

.section-heading {
    max-width: 680px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.section-heading p:last-child {
    color: var(--grey-700);
    margin-bottom: 0;
}

/* Cards */

.card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-100);
}

.service-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--teal-700);
    margin-bottom: var(--space-2);
}

.service-card p {
    color: var(--grey-700);
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--navy-900);
}

.card-link::after {
    content: " \2192";
    color: var(--teal-700);
    transition: margin-left 0.2s ease;
}

.card-link:hover::after {
    margin-left: 4px;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
}

.about-media img {
    width: 100%;
    aspect-ratio: 940 / 650;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-copy h3 {
    margin-top: var(--space-4);
}

.about-copy p {
    color: var(--grey-700);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: var(--space-2);
    color: var(--grey-900);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.step {
    text-align: left;
    padding: var(--space-4);
    background: var(--grey-50);
    border-radius: var(--radius-lg);
}

.step p {
    color: var(--grey-700);
    margin-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-2);
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 700;
}

/* FAQ */

.faq-list {
    display: grid;
    gap: var(--space-2);
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    padding: 0 var(--space-3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: var(--teal-600);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    font-weight: 700;
    color: var(--navy-900);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--teal-700);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--grey-700);
    padding-bottom: var(--space-3);
    margin: 0;
}

/* Appointment */

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
}

.appointment-intro p {
    color: var(--grey-700);
}

.call-box {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    background: var(--teal-100);
    border-radius: var(--radius);
    color: var(--navy-900);
    font-weight: 600;
}

.call-box a {
    font-weight: 700;
    color: var(--navy-900);
}

.appointment-panel {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
}

.appointment-form h3 {
    margin-bottom: var(--space-3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.form-field {
    margin-bottom: var(--space-3);
}

.form-field label {
    display: block;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: var(--space-1);
}

.required {
    color: var(--error-700);
}

.optional {
    font-weight: 400;
    color: var(--grey-500);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--grey-900);
    background: var(--white);
    border: 1.5px solid var(--grey-300);
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--teal-600);
    box-shadow: 0 0 0 4px rgba(17, 138, 126, 0.18);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: var(--error-700);
}

.field-error {
    margin: var(--space-1) 0 0;
    font-size: 0.9375rem;
    color: var(--error-700);
    font-weight: 600;
}

.form-alert {
    padding: var(--space-2);
    margin-bottom: var(--space-3);
    border-radius: var(--radius);
    background: var(--error-100);
    color: var(--error-700);
    font-weight: 600;
}

.form-note {
    margin: var(--space-2) 0 0;
    font-size: 0.875rem;
    color: var(--grey-700);
    text-align: center;
}


.form-success {
    text-align: center;
    padding: var(--space-6) var(--space-3);
    animation: fade-up 0.5s ease both;
}

.form-success h3 {
    font-size: 1.5rem;
}

.form-success p {
    color: var(--grey-700);
}

.form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-2);
    border-radius: 50%;
    background: var(--success-100);
    color: var(--success-700);
    font-size: 1.75rem;
    font-weight: 700;
}

/* Footer */

.site-footer {
    background: var(--navy-900);
    color: var(--grey-300);
    padding: var(--space-8) 0 var(--space-3);
}

.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--teal-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-4);
}

.footer-note {
    margin-top: var(--space-2);
    max-width: 320px;
    color: var(--grey-300);
}

.footer-heading {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.contact-list,
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    margin-bottom: var(--space-2);
}

.contact-label {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey-300);
}

.footer-links li {
    margin-bottom: var(--space-1);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

.mobile-call {
    display: none;
}

/* Legal page */

.legal-page {
    padding: var(--space-8) 0 var(--space-12);
}

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

.legal-content h1 {
    margin-bottom: var(--space-1);
}

.legal-updated {
    color: var(--grey-500);
    margin-bottom: var(--space-4);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-6);
}

.legal-content ul {
    padding-left: var(--space-3);
    color: var(--grey-700);
}

.legal-content p {
    color: var(--grey-700);
}

.legal-content .btn {
    margin-top: var(--space-3);
}

/* Entrance animation (only when JavaScript is available) */

.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */

@media (max-width: 1024px) {
    .nav-list {
        gap: var(--space-3);
    }

    .nav-actions .btn-ghost {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-3);
        background: var(--white);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .site-header.is-open .site-nav {
        transform: none;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-3);
    }

    .nav-list a {
        font-size: 1.25rem;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-actions .btn {
        min-height: 52px;
    }

    .hero-grid,
    .about-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero {
        padding: var(--space-8) 0;
    }

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

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

@media (max-width: 640px) {
    body {
        font-size: 16px;
        padding-bottom: 72px;
    }

    .container {
        padding: 0 var(--space-2);
    }

    .section {
        padding: var(--space-8) 0;
    }

    .section-heading {
        margin-bottom: var(--space-6);
    }

    .brand-tagline {
        display: none;
    }

    .service-grid,
    .steps,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .appointment-panel {
        padding: var(--space-3) var(--space-2);
    }

    .footer-bottom {
        flex-direction: column;
    }

    .mobile-call {
        display: flex;
        position: fixed;
        left: var(--space-2);
        right: var(--space-2);
        bottom: var(--space-2);
        z-index: 90;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        border-radius: 999px;
        background: var(--teal-700);
        color: var(--white);
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 12px 28px rgba(11, 37, 69, 0.3);
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
.view { display: none; }
.view:target { display: block; }
body:has(.view:target) #home { display: none; }
.confirmation { text-align: center; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
