/*
 * Landing page styles - Movement Clinic
 * RTL Hebrew, cream/beige palette
 */

:root {
    --bg: #f5efe6;
    --bg-card: #ffffff;
    --ink: #2b2b2b;
    --ink-soft: #5a5a5a;
    --accent: #b88a4a;
    --accent-dark: #8a6432;
    --border: #e3d8c5;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Heebo', 'Assistant', 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Top brand bar (replaces Wix banner) ---------- */
.l8-topbar {
    background: #2b2b2b;
    color: #f5efe6;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.l8-topbar .powered {
    display: flex;
    align-items: center;
    gap: 8px;
}
.l8-topbar img { width: 28px; height: 28px; }
.l8-topbar .powered span:last-child { font-weight: 600; }
.l8-topbar .enter-app {
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
}
.l8-topbar .enter-app:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}
.site-header img.clinic-logo { margin: 0 auto; max-width: 320px; }
.site-header nav {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.site-header nav a {
    font-weight: 600;
    color: var(--ink);
    font-size: 16px;
}

/* ---------- Page container ---------- */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 48px 20px 32px;
}
.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 16px;
    font-weight: 700;
}
.hero p {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 28px;
}
.hero .cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
}
.hero .cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Video hero (used on home) */
.video-hero {
    position: relative;
    width: 100%;
    height: clamp(360px, 60vh, 620px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-hero video,
.video-hero .video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}
.video-hero .overlay {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}
.video-hero .overlay h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.video-hero .overlay p {
    color: #f5efe6;
    font-size: 18px;
    margin: 0 0 28px;
}

/* ---------- Service cards (home page) ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.service-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}
.service-card p { color: var(--ink-soft); margin: 0 0 20px; }
.service-card a {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    color: var(--accent-dark);
    font-weight: 600;
}
.service-card a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Generic sections ---------- */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}
.section h2 {
    margin-top: 0;
    font-size: 26px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    display: inline-block;
}
.section h3 { font-size: 20px; margin-top: 24px; }
.section p { color: var(--ink-soft); }

/* Pillar grid (used on treatment / training pages) */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.pillar {
    background: var(--bg);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pillar img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pillar .pillar-body { padding: 16px 20px; }
.pillar h3 { margin: 0 0 8px; font-size: 18px; color: var(--accent-dark); }
.pillar p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Bio block */
.bio {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.bio img { border-radius: 8px; }
@media (max-width: 600px) {
    .bio { grid-template-columns: 1fr; text-align: center; }
    .bio img { margin: 0 auto; max-width: 220px; }
}

/* Process stages */
.stages { counter-reset: stage; }
.stage {
    border-right: 4px solid var(--accent);
    padding: 12px 20px;
    margin-bottom: 16px;
    background: var(--bg);
    border-radius: 6px;
    position: relative;
}
.stage::before {
    counter-increment: stage;
    content: counter(stage);
    background: var(--accent);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 12px;
}
.stage h3 { display: inline-block; margin: 0; }

/* Testimonial */
.testimonial {
    background: var(--bg);
    border-radius: 8px;
    padding: 24px;
    font-style: italic;
    color: var(--ink-soft);
    border-right: 4px solid var(--accent);
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    align-items: center;
}
.testimonial img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial .cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) {
    .testimonial { grid-template-columns: 1fr; text-align: center; }
    .testimonial img { margin: 0 auto; }
}

/* Contact form */
form.contact {
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}
form.contact label { font-weight: 600; font-size: 14px; }
form.contact input,
form.contact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-card);
}
form.contact textarea { min-height: 110px; resize: vertical; }
form.contact button {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
form.contact button:hover { background: var(--accent-dark); }

/* Footer */
.site-footer {
    background: #2b2b2b;
    color: #cbcbcb;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 13px;
}
.site-footer img { display: inline-block; vertical-align: middle; width: 22px; height: 22px; margin: 0 6px; }
