/* ============================================
   שירה רווח — Landing Page
   Luxury minimal · Hebrew RTL · Dusty-rose accents
   ============================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #faf7f2;
    --bg-alt: #f3ede4;
    --ink: #16130f;
    --ink-soft: #56504a;
    --ink-faint: #93887c;
    --rose: #ce9ab3;            /* brand dusty-rose, from the SR logo */
    --rose-light: #e6b0c8;      /* logo highlight tint */
    --rose-deep: #935f79;       /* readable rose for text on cream */
    --rose-soft: rgba(206, 154, 179, 0.16);
    --rose-wash: rgba(206, 154, 179, 0.1);
    --hairline: rgba(206, 154, 179, 0.34);
    --paper: #fffdfa;           /* elevated-card surface, brighter than --bg */
    --dark: #141017;            /* warm plum-black, pairs with rose */
    --cream-on-dark: #f6eef2;

    --serif: 'Frank Ruhl Libre', 'Times New Roman', serif;
    --sans: 'Assistant', -apple-system, sans-serif;
    --accent: 'Cormorant Garamond', Georgia, serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --section-pad: clamp(4.5rem, 10vw, 9rem);
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--rose-soft);
    color: var(--ink);
}

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

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

ul {
    list-style: none;
}

/* Mixed Hebrew/English lines — keep bidi stable */
.program-meta,
.checks li,
.gains li {
    unicode-bidi: plaintext;
}

/* ---------- Scroll progress hairline ---------- */
.progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose-deep), var(--rose));
    transform: scaleX(0);
    transform-origin: right;
    z-index: 2000;
    pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 1.1rem var(--gutter);
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.is-scrolled {
    border-bottom-color: var(--hairline);
    box-shadow: 0 8px 30px rgba(22, 19, 15, 0.04);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.nav-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.nav-logo-mark {
    height: 30px;
    width: auto;
    transition: transform 0.5s var(--ease-out);
}

.nav-logo:hover .nav-logo-mark {
    transform: rotate(-6deg) scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 3vw, 2.5rem);
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: right;
}

.nav-cta {
    color: var(--rose-deep);
    font-weight: 600;
}

/* ---------- Labels & rules (hairlines) ---------- */
.label {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.38em;
    color: var(--rose-deep);
    text-transform: uppercase;
    white-space: nowrap;
    /* Latin accent labels read LTR */
    direction: ltr;
    unicode-bidi: isolate;
}

.rule {
    display: block;
    flex: 1;
    height: 1px;
    background: linear-gradient(-90deg, var(--hairline), transparent);
    transform-origin: right;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 1360px;
    margin: 0 auto 2.5rem;
    padding: 0 var(--gutter);
}

/* ---------- Headings ---------- */
.section-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.05rem 2rem;
    border: 1px solid var(--ink);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.45s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.btn-dark {
    background: var(--ink);
    color: var(--bg);
}

/* cream fill sweeps in from the left on hover */
.btn-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.btn-dark:hover::before,
.btn-dark:focus-visible::before {
    transform: scaleX(1);
    transform-origin: right;
}

.btn-dark:hover,
.btn-dark:focus-visible {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(22, 19, 15, 0.12);
}

.btn > span {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 1.15rem;
    transition: transform 0.45s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(-6px);
}

/* ============================================
   ROSE AURA — soft drifting light
   ============================================ */
.s-aura {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.s-aura i {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.5;
    will-change: transform;
}

.s-aura .a1 {
    width: clamp(280px, 44vw, 560px);
    height: clamp(280px, 44vw, 560px);
    background: #eec9dc;
    top: -12%;
    right: -8%;
    animation: aura-drift-a 22s ease-in-out infinite alternate;
}

.s-aura .a2 {
    width: clamp(240px, 38vw, 480px);
    height: clamp(240px, 38vw, 480px);
    background: #e3cede;
    bottom: -16%;
    left: -10%;
    animation: aura-drift-b 27s ease-in-out infinite alternate;
}

.s-aura .a3 {
    width: clamp(180px, 26vw, 340px);
    height: clamp(180px, 26vw, 340px);
    background: #f6dfe9;
    top: 38%;
    left: 30%;
    animation: aura-drift-a 31s ease-in-out infinite alternate-reverse;
}

@keyframes aura-drift-a {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-5%, 7%) scale(1.12); }
}

@keyframes aura-drift-b {
    from { transform: translate(0, 0) scale(1.08); }
    to { transform: translate(6%, -6%) scale(1); }
}

/* ============================================
   HIGHLIGHT MARKER — lights up when revealed
   ============================================ */
.hl {
    background-image: linear-gradient(to top, rgba(206, 154, 179, 0.38), rgba(206, 154, 179, 0.38));
    background-repeat: no-repeat;
    background-size: 0% 0.42em;
    background-position: right 88%;
    transition: background-size 1.1s var(--ease-out) 0.15s;
}

.hl.is-lit {
    background-size: 100% 0.42em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(6.5rem, 15vh, 9.5rem) 0 0;
}

/* decorative brand strip: the SR mark repeated edge to edge,
   sitting right under the fixed nav. */
.logo-strip {
    position: relative;
    z-index: 1;
    height: 52px;
    background-color: var(--rose-wash);
    background-image: url('logo-strip-tile.png');
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 24px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter) var(--section-pad);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-cue {
    position: absolute;
    z-index: 2;
    bottom: 1.6rem;
    left: 50%;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--rose), transparent);
    opacity: 0.8;
    animation: hero-cue-draw 2.4s var(--ease-out) infinite;
    transform-origin: top;
    pointer-events: none;
}

@keyframes hero-cue-draw {
    0% { transform: scaleY(0); }
    45% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
    max-width: 340px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

/* mask-reveal wrappers */
.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em; /* room for descenders inside the mask */
}

.hero-title .line-inner {
    display: block;
}

.hero-gold {
    font-style: normal;
    color: var(--rose-deep);
    position: relative;
}

.hero-gold::after {
    content: '';
    position: absolute;
    bottom: 0.02em;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: right;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--ink-soft);
    max-width: 30em;
    margin-bottom: clamp(2rem, 5vh, 3rem);
}

/* ---------- Portrait placeholder ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
}

.portrait {
    width: min(100%, 400px);
    aspect-ratio: 4 / 5;
    background: var(--bg-alt);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* offset gold frame */
.portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--hairline);
    transform: translate(-14px, 14px);
    pointer-events: none;
    transition: transform 0.6s var(--ease-out);
    z-index: 1;
}

.portrait:hover::after {
    transform: translate(-8px, 8px);
}

/* ============================================
   MARQUEE — quiet moving type
   ============================================ */
.marquee {
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 1.6rem) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: var(--paper);
    direction: ltr;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3rem);
    width: max-content;
    animation: marq-scroll 38s linear infinite;
}

.marquee-item {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 1.9rem);
    line-height: 1.3;
    white-space: nowrap;
    color: var(--rose-deep);
    opacity: 0.85;
    unicode-bidi: plaintext;
}

.marquee-item.alt {
    color: transparent;
    -webkit-text-stroke: 1px rgba(147, 95, 121, 0.55);
}

.marquee-dot {
    color: var(--rose);
    font-size: 1.5rem;
}

@keyframes marq-scroll {
    to { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--section-pad) 0;
}

.about-grid {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.6fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.about-text p {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 300;
    line-height: 2;
    color: var(--ink-soft);
}

.about-text p + p {
    margin-top: 1.5em;
}

/* ============================================
   PROGRAMS
   ============================================ */
.programs {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--hairline);
}

.programs-title {
    max-width: 1360px;
    margin: 0 auto clamp(3rem, 7vw, 5.5rem);
    padding: 0 var(--gutter);
}

.programs-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.program-card {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(2.25rem, 4.5vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) 1.65fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    position: relative;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(22, 19, 15, 0.05);
    transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}

.program-card:hover {
    box-shadow: 0 20px 44px rgba(206, 154, 179, 0.16);
    transform: translateY(-4px);
}

.program-card:last-of-type {
    margin-bottom: 0;
}

/* elegant italic gold numbering */
.program-number {
    font-family: var(--accent);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.9;
    color: var(--rose);
    direction: ltr;
    text-align: right;
    transition: color 0.5s ease;
    will-change: transform;
}

.program-card:hover .program-number {
    color: var(--rose-deep);
}

.program-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.program-meta {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--rose-deep);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.program-description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 44em;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.program-q {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.program-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.program-group h5 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hairline);
}

.checks li,
.gains li {
    position: relative;
    padding-right: 1.85rem;
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.checks li::before,
.gains li::before {
    content: '✔';
    position: absolute;
    right: 0;
    top: 0.15em;
    width: 1.15rem;
    height: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.62rem;
    line-height: 1;
}

.checks li::before {
    background: var(--rose-soft);
    color: var(--rose-deep);
}

.gains li::before {
    background: var(--rose-deep);
    color: #fff;
    font-weight: 700;
}

.program-outcomes {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-right: 3px solid var(--rose);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(22, 19, 15, 0.04);
}

.program-outcomes h4 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.program-outcomes .gains {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.25rem 2rem;
}

/* ============================================
   WHY — light rose-wash moment
   ============================================ */
.why {
    background: linear-gradient(180deg, var(--bg) 0%, #f6e8ef 100%);
    color: var(--ink);
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--hairline);
}

/* soft rose glows, top-right + bottom-left */
.why::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(206, 154, 179, 0.22), transparent 65%);
    pointer-events: none;
}

.why::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -12%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(227, 206, 222, 0.28), transparent 65%);
    pointer-events: none;
}

.why-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

.why .section-head {
    padding: 0;
    max-width: none;
}

.why-title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.why-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    line-height: 2;
    color: var(--ink-soft);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, #f6e8ef 100%);
    border-top: 1px solid var(--hairline);
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.contact-grid {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.contact-sub {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ink-soft);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: 0 18px 40px rgba(22, 19, 15, 0.05);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.field input {
    font-family: var(--sans);
    font-size: 1.05rem;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline);
    padding: 0.6rem 0.1rem;
    border-radius: 0;
    transition: border-color 0.35s ease;
}

.field input:focus {
    outline: none;
    border-bottom-color: var(--rose-deep);
}

/* gold underline that grows on focus */
.field {
    position: relative;
}

.field::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out);
    pointer-events: none;
}

.field:focus-within::after {
    transform: scaleX(1);
}

.form-submit {
    justify-content: center;
    margin-top: 0.5rem;
}

.form-message {
    min-height: 1.6em;
    font-weight: 600;
    color: var(--rose-deep);
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--hairline);
    padding: 2.5rem var(--gutter);
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 84px;
    width: auto;
    opacity: 0.92;
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-top {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rose-deep);
    transition: transform 0.35s var(--ease-out);
    display: inline-block;
}

.footer-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero {
        padding-top: 7.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-visual {
        order: 1; /* portrait after text on mobile */
    }

    .portrait {
        width: min(100%, 320px);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .program-number {
        text-align: right;
        font-size: 3.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 560px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .program-groups {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ============================================
   REDUCED MOTION — kill all animation
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-gold::after {
        transform: scaleX(1);
    }

    .progress {
        display: none;
    }
}
