/* Rubik and motion refinements for Shahar Academy. */
:root{--font-heading:AcademyRubik;--heading-weight:500}
html{scroll-padding-bottom:110px}
body{font-family:AcademyRubik,Arial,sans-serif}
button,input,select,textarea{font-family:inherit}
h1,h2,h3,.form-heading,.triple-facts b,.footer-main p{font-family:AcademyRubik,Arial,sans-serif}
.hero h1{font-size:clamp(2.8rem,4.75vw,4.8rem);line-height:1.18;letter-spacing:-.055em;font-weight:500}
.hero h1>span{display:block}
.hero h1 em{position:relative;display:inline-block;padding-bottom:.07em}
.hero h1 em::after{content:"";position:absolute;right:0;left:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,var(--accent));transform-origin:right}
.hero .eyebrow{line-height:1.6}
.photo-signature{font-family:AcademyRubik,Arial,sans-serif;font-style:normal;font-weight:300;letter-spacing:.025em;font-size:1.35rem}
.hero-copy>p{font-size:1.0625rem}
.hero-copy{padding-block:68px}
.hero h2{font-size:1.4rem}
.hero-image{min-width:0}
.hero-facts{font-size:.875rem}
.hero-facts b{font-size:1rem}
.topbar{transition:box-shadow .25s,border-color .25s}
.topbar.is-scrolled{box-shadow:0 12px 35px #0003;border-bottom-color:#9c704c70}
.menu-toggle{min-height:44px}
.eyebrow,.course-meta,.course-hint,.gallery-head .eyebrow,.gallery-bottom,.footer-bottom,.form-note,.lead-form>small{font-size:.875rem}
.section-heading p{font-size:1.0625rem;line-height:1.85}
.course-card{overflow:hidden}
.course-copy h3{font-size:1.6rem;line-height:1.4;font-weight:500}
.course-copy>p{min-height:5.25em}
.course-copy summary{min-height:48px;font-size:1rem;line-height:1.6}
.course-syllabus{padding:5px 0 16px}
.course-syllabus ul{padding:0;margin:0;list-style:none}
.course-syllabus li{padding:14px 0;border-top:1px solid #78604750}
.course-syllabus li:first-child{border-top:0;padding-top:0}
.course-syllabus strong{font-size:1rem;color:var(--paper);font-weight:500;display:block;margin-bottom:5px}
.course-copy .course-syllabus p{padding:0;font-size:1rem;line-height:1.85;color:#d3c6b4}
.course-copy .course-syllabus .syllabus-end{font-size:.875rem;color:#ffc18f;border-inline-start:2px solid var(--orange);padding-inline-start:12px;margin-top:15px}
.course-cta{font-size:1rem;min-height:48px;display:flex;align-items:center;justify-content:center}
.benefit{grid-template-columns:64px minmax(0,1fr);gap:24px;padding:32px 0}
.benefit-icon{position:relative}
.benefit-icon::before{content:"";position:absolute;inset:-10px;border:1px solid #b78a5660;border-radius:50%;opacity:0;transform:scale(.8)}
.benefit h3{font-weight:500;font-size:1.5rem}
.benefit p{line-height:1.9}
.triple h2{font-size:clamp(3rem,5.3vw,5rem);line-height:1.25;letter-spacing:-.045em}
.triple .tag{font-size:1rem;font-weight:500;padding:8px 17px}
.triple-copy>p{font-size:1.0625rem}
.triple-facts{font-size:.875rem}
.triple-facts b{font-size:2.25rem}
.triple-image img{object-position:center 36%}
.triple-choice{font-size:1rem}
.gallery-bottom{justify-content:flex-start}
.carousel-buttons button{min-width:44px;min-height:44px}
.photo-card img{transition:transform .7s cubic-bezier(.2,.7,.3,1)}
.section-cta{max-width:920px;margin:30px auto 0;text-align:center}
.section-cta p{color:var(--muted);margin-bottom:10px}

/* Three compact subjects; questions and answers stay nested within their subject. */
.faq-groups{max-width:920px;margin:auto;border-top:1px solid #806044}
.faq-category{border-bottom:1px solid #806044}
.faq-category>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:27px 8px;cursor:pointer;min-height:86px}
.faq-category>summary::-webkit-details-marker,.faq-question>summary::-webkit-details-marker{display:none}
.faq-category>summary h3{font-size:clamp(1.2rem,2.1vw,1.7rem);line-height:1.5;font-weight:500}
.faq-toggle{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #af7b4e;border-radius:50%;font-size:1.65rem;line-height:1;color:var(--accent);transition:transform .25s,background .25s}
.faq-category[open]>.faq-questions{animation:faq-open .3s ease-out}
.faq-category[open]>summary .faq-toggle{transform:rotate(45deg);background:#9d612324}
.faq-category[open]>summary h3{color:#ffb681}
.faq-questions{padding:0 28px 22px;border-inline-start:1px solid #b58451;margin:0 8px 20px}
.faq-question{border-top:1px solid #65513c}
.faq-question>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;list-style:none;cursor:pointer;padding:18px 0;min-height:60px;font-size:1rem;font-weight:500;line-height:1.7}
.faq-question>summary span{font-size:1.45rem;color:var(--accent);transition:transform .25s;flex:none}
.faq-question[open]>summary span{transform:rotate(45deg)}
.faq-answer{padding:0 0 22px;max-width:750px;color:#d5c7b5}
.faq-answer p{font-size:1rem;line-height:1.9}
.faq-question[open]>.faq-answer{animation:faq-open .25s ease-out}
.contact h2{font-size:clamp(2.3rem,3.8vw,3.8rem);line-height:1.35;letter-spacing:-.035em}
.contact-portrait{object-position:center 36%;width:150px;height:150px}
.contact-intro>p{font-size:1.0625rem}
.contact .contact-small{font-size:1rem}
.form-heading{font-size:1.6rem}
.lead-form>label:not(.consent){font-size:1rem}
.lead-form input[type="checkbox"]{min-width:22px;min-height:22px}
.consent{padding-block:5px;min-height:44px;align-items:center}
.form-note{line-height:1.8}
.form-status:empty{display:none}

/* The social wall is live provider content, not a static selection of photographs. */
.instagram-section{background:#25201b;border-block:1px solid #71543b70}
.instagram-layout{display:grid;grid-template-columns:1fr minmax(0,540px);align-items:center;gap:75px;max-width:1200px;margin:auto}
.instagram-copy h2{font-size:clamp(2.2rem,4.1vw,4rem);line-height:1.3}
.instagram-copy h2 em{color:var(--accent)}
.instagram-copy>p{margin-top:23px;max-width:420px;font-size:1.0625rem;color:#d8c9b5}
.instagram-handle{display:inline-flex;align-items:center;gap:12px;margin-top:28px;color:#ffc599;min-height:48px;font-size:1.2rem;direction:ltr;border-bottom:1px solid #aa784e}
.instagram-handle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.instagram-copy .embed-note{font-size:.875rem;color:var(--muted);margin-top:17px}
.instagram-frame{padding:12px;background:#f2e8db;border:1px solid #c4a27c;box-shadow:0 25px 65px #0004;min-width:0}
.instagram-frame .external-embed{min-height:585px;background:#fcf9f4;color:#2e241b}
.instagram-frame .embed-cover{min-height:585px}
.instagram-frame .embed-cover p{color:#5e4d3b}
.instagram-frame .embed-cover>svg{color:#9c4818}
.instagram-frame iframe{height:670px;color-scheme:light}
.embed-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 4px 0;color:#5d4530;flex-wrap:wrap;font-size:.875rem}
.embed-footer a,.embed-footer button{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.embed-footer button,.location-bottom button,[data-privacy-settings]{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:5px 0;text-decoration:underline;text-underline-offset:4px}
.external-embed{position:relative;overflow:hidden}
.external-embed iframe{width:100%;border:0;display:block}
.external-embed.is-loaded .embed-cover{display:none}
.external-embed .embed-cover{padding:45px 27px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center}
.embed-cover>svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.25;color:var(--accent)}
.embed-cover h3{font-size:1.5rem;line-height:1.5}
.embed-cover p{max-width:450px;font-size:1rem;line-height:1.85}
.embed-cover button{max-width:100%;white-space:normal}
.embed-loading{font-size:.875rem;text-align:center;padding:12px;margin:0}
.embed-error{padding:22px;line-height:1.8;text-align:center}
.location-section{background:#1b1917}
.location-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:35px}
.location-heading h2{font-size:clamp(2rem,3.5vw,3.5rem)}
.location-heading address{font-size:1.3rem;color:#ffb27b;font-style:normal;margin:18px 0 4px}
.location-heading p{color:var(--muted)}
.location-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.map-shell{padding:8px;border:1px solid #89623f;background:#31281f;box-shadow:0 18px 40px #0003}
.map-shell .external-embed{background:#25211c;min-height:440px}
.map-shell iframe,.map-shell .embed-cover{min-height:440px;height:440px}
.location-bottom{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:18px;font-size:.875rem;color:var(--muted)}
.location-bottom a{min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.location-bottom button{min-height:44px}
.footer-bottom nav{flex-wrap:wrap;align-items:center}
.footer-bottom nav>a,.footer-bottom nav>button{min-height:44px;display:inline-flex;align-items:center}
.site-footer{padding-bottom:115px}
.floating-social{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:12px;padding:10px;background:#f6eee2;border:1px solid #d2b18c;border-radius:60px;box-shadow:0 8px 30px #0005;z-index:55}
.floating-social a{display:grid;place-items:center;background:var(--orange);color:#23180e;border-radius:50%;width:48px;height:48px;transition:transform .2s,background .2s}
.floating-social svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.floating-social a:hover{background:#ff873d;transform:translateY(-3px)}
body.consent-visible .floating-social{visibility:hidden}

/* Equal access to accepting, rejecting, or choosing individual external services. */
.cookie-banner{position:fixed;inset:auto 22px max(20px,env(safe-area-inset-bottom));z-index:100;background:#f5eee4;color:#29231c;border:1px solid #bd9770;box-shadow:0 14px 60px #0008;padding:24px 30px;display:flex;gap:30px;align-items:center;max-width:1100px;margin-inline:auto;border-radius:8px}
.cookie-copy{flex:1}
.cookie-banner h2{font:500 1.15rem/1.5 AcademyRubik,Arial,sans-serif;margin-bottom:7px}
.cookie-banner p{font-size:.875rem;line-height:1.7;max-width:640px;color:#564534}
.cookie-banner p a{text-decoration:underline}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-start}
.cookie-actions button{min-height:44px;padding:10px 17px;border-radius:4px;border:1px solid #84613f;color:#362718;background:transparent;font-size:.875rem;font-weight:500;line-height:1.5}
.cookie-actions button:hover{background:#dfcab2}
.cookie-actions .cookie-choice{flex-basis:100%;padding:5px;border:0;text-decoration:underline;min-height:36px}
.privacy-dialog{background:#262019;color:var(--paper);border:1px solid #9e7750;border-radius:7px;width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:30px;overflow:auto;box-shadow:0 25px 90px #0007;position:fixed}
.privacy-dialog::backdrop{background:#090806bb;backdrop-filter:blur(5px)}
.privacy-dialog h2{font-size:1.6rem;line-height:1.5;padding-inline-end:40px}
.privacy-dialog>p{color:var(--muted);margin:12px 0;font-size:1rem}
.privacy-close{position:absolute;top:22px;left:22px;width:44px;height:44px;border:1px solid #806040;border-radius:50%;background:none;color:var(--paper);font-size:1.5rem;line-height:1}
.privacy-option{display:flex;align-items:center;gap:18px;padding:22px 0;border-top:1px solid #6a5138;cursor:pointer}
.privacy-option>span{flex:1}
.privacy-option strong{display:block;font-weight:500;font-size:1.05rem;margin-bottom:4px}
.privacy-option small{display:block;color:#c5b7a4;font-size:.875rem;line-height:1.7}
.privacy-option input{width:24px;height:24px;accent-color:#ed671d;cursor:pointer;flex:none}
.privacy-required{font-size:.875rem;color:#d8bd9b;white-space:nowrap}
.privacy-save{width:100%;margin-top:10px}
.privacy-dialog .privacy-explain{font-size:.875rem;line-height:1.8}
.privacy-dialog .privacy-explain a{text-decoration:underline}
.privacy-notice{font-size:.875rem;padding:15px 0 0;color:#c9bba9}
.privacy-dialog :focus-visible{outline:3px solid #ffbb87;outline-offset:4px}
.cookie-banner :focus-visible{outline:3px solid #73330d;outline-offset:4px}
.legal-page a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal-page h1{font-size:clamp(2rem,5vw,3rem);font-weight:500;line-height:1.4}
.legal-page h2{line-height:1.5;font-size:1.4rem}
.legal-page li{padding-block:4px}
.legal-page p+p{margin-top:14px}
.legal-review-note{padding:18px 22px;border:1px solid #927048;background:#3a2b1d55;margin-block:20px;color:#ebc99f}
.legal-header{flex-wrap:wrap}
body>footer:not(.site-footer){padding-bottom:40px}
.footer-brand img{width:260px;margin:0 auto 20px}

/* A short, intentional entrance for each section; no looping distraction. */
@media(prefers-reduced-motion:no-preference){
 .hero-copy.entered h1>span{animation:hero-line .9s cubic-bezier(.16,1,.3,1) both}
 .hero-copy.entered h1>span:nth-child(2){animation-delay:.12s}
 .hero-copy.entered h1>span:nth-child(3){animation-delay:.24s}
 .hero-copy.entered h1 em::after{animation:line-draw 1.2s .4s both}
 .reveal.entered{animation:section-enter .8s cubic-bezier(.2,.75,.3,1) both;animation-delay:var(--reveal-delay,0s)}
 .hero-copy.reveal.entered{animation:none}
 .hero-image.entered>img{animation:portrait-enter 1.3s cubic-bezier(.2,.7,.3,1) both}
 .benefit.entered .benefit-icon{animation:icon-settle .85s both}
 .benefit.entered .benefit-icon::before{animation:icon-ring 1.25s .15s both}
 .benefit.entered svg{animation:icon-illuminate 1.2s ease-out}
 .course-copy details[open] .course-syllabus{animation:faq-open .3s ease-out}
 .triple-image.entered img,.about-photo.entered img{animation:portrait-enter 1.1s ease-out both}
 .section-heading.entered .eyebrow::before{transform:scaleX(1)}
}
@keyframes hero-line{from{transform:translateY(24px);opacity:.35}to{transform:translateY(0);opacity:1}}
@keyframes line-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes section-enter{from{transform:translateY(22px);opacity:.55}to{transform:translateY(0);opacity:1}}
@keyframes portrait-enter{from{transform:scale(1.035)}to{transform:scale(1)}}
@keyframes icon-ring{0%{transform:scale(.8);opacity:0}40%{opacity:.75}100%{transform:scale(1.2);opacity:0}}
@keyframes icon-illuminate{0%{stroke:#8c6946}60%{stroke:#ffd5a9}100%{stroke:#f2b17c}}
@keyframes faq-open{from{opacity:.45;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .photo-card:hover img{transform:scale(1.035)}
 .course-card:hover .course-art svg{transform:translateY(-3px)}
 .course-art svg{transition:transform .35s}
 .course-card:hover .course-art .guide{opacity:.6}
}
@media(max-width:1150px){
 .instagram-layout{gap:40px;grid-template-columns:1fr minmax(0,470px)}
 .location-heading{align-items:flex-start;flex-direction:column}
 .cookie-banner{gap:20px}.cookie-actions{flex:0 0 250px}
 .hero h1{font-size:clamp(2.5rem,5vw,4rem)}
}
@media(max-width:760px){
 .hero-copy{padding:43px 24px 38px}.hero h1{font-size:clamp(2.6rem,9.5vw,4.1rem);line-height:1.2}
 .hero h2{font-size:1.2rem}.hero .eyebrow{font-size:.875rem}
 .hero-facts{gap:12px}.hero-facts b{font-size:.875rem}.hero-facts span{font-size:.8125rem}
 .hero-image{min-height:470px}.hero-image>img{object-position:center 38%}
 .triple h2{font-size:3.25rem}.triple .tag{font-size:.875rem}
 .triple-copy>p{font-size:1rem}.triple .triple-lead{font-size:1rem;line-height:1.85}
 .triple-facts{gap:16px}
 .benefit{grid-template-columns:52px minmax(0,1fr);gap:18px;padding:27px 0}
 .benefit-icon svg{width:52px;height:52px}.benefit h3{font-size:1.25rem}
 .benefits-intro h2{font-size:2.1rem;line-height:1.4}
 .faq-category>summary{padding:21px 0;gap:16px;min-height:78px}
 .faq-category>summary h3{font-size:1.18rem}
 .faq-questions{padding:0 15px 14px;margin:0 0 18px}
 .faq-question>summary{font-size:1rem}
 .contact h2{font-size:2.25rem;line-height:1.35}.contact-portrait{width:118px;height:118px;margin-top:27px}
 .instagram-layout{grid-template-columns:minmax(0,1fr);gap:34px}
 .instagram-copy h2{font-size:2.25rem}.instagram-copy>p{font-size:1rem}
 .instagram-frame{max-width:540px;width:100%;margin:auto;padding:6px}
 .instagram-frame .external-embed,.instagram-frame .embed-cover{min-height:485px}
 .instagram-frame iframe{height:645px}
 .external-embed .embed-cover{padding:28px 18px}
 .embed-cover h3{font-size:1.25rem}.embed-cover p{font-size:.9375rem}
 .location-heading h2{font-size:2rem}.location-heading address{font-size:1.25rem}
 .location-actions{gap:18px}.location-bottom{gap:4px 16px}
 .map-shell{padding:5px}.map-shell iframe,.map-shell .embed-cover,.map-shell .external-embed{height:430px;min-height:430px}
 .floating-social{padding:8px;gap:10px;bottom:max(12px,env(safe-area-inset-bottom))}
 .floating-social a{width:46px;height:46px}
 .cookie-banner{inset:auto 10px max(10px,env(safe-area-inset-bottom));display:block;padding:20px;max-height:80dvh;overflow:auto}
 .cookie-banner h2{font-size:1.125rem}.cookie-banner p{font-size:.875rem}
 .cookie-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .cookie-actions .cookie-choice{grid-column:1/-1}
 .privacy-dialog{padding:26px 21px}.privacy-dialog h2{font-size:1.3rem}
 .privacy-close{top:17px;left:17px}.privacy-option{gap:14px}
 .footer-bottom nav{gap:10px 20px}
}
@media(max-width:380px){.hero h1{font-size:2.55rem}.hero-facts{flex-wrap:wrap}.brand img{width:190px}.triple h2{font-size:2.9rem}.instagram-frame iframe{height:590px}.instagram-handle{font-size:1.1rem}.cookie-actions button{padding-inline:8px}}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .photo-card:hover img,.course-card:hover,.button:hover,.floating-social a:hover{transform:none}
}
