/*
Theme Name: Montessori School
Author: Montessori School
Description: An accessible, editorial WordPress theme for the Rancho Viejo Montessori community.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: montessori-school
*/
:root{--paper:#faf8f3;--white:#fff;--ink:#292b2c;--muted:#62645e;--blue:#214897;--plum:#4a092d;--orange:#b64a16;--gold:#f7cd6b;--line:#deded3;--serif:Georgia,'Times New Roman',serif;--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--sans);-webkit-font-smoothing:antialiased}img{max-width:100%;height:auto;display:block}a{color:var(--blue);text-underline-offset:5px}a:hover{text-decoration-thickness:2px}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:5px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.1;letter-spacing:-.035em}h1{font-size:clamp(44px,5.2vw,78px)}h2{font-size:clamp(34px,3.5vw,51px)}h3{font-size:29px}p{margin-bottom:1.4em}ul,ol{padding-left:1.4em}li{margin-bottom:.6em}.wrap{width:min(1280px,calc(100% - 96px));margin:auto}.skip-link{position:fixed;left:16px;top:-100px;background:white;padding:14px 22px;z-index:200}.skip-link:focus{top:12px}.site-header{background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:30}.header-inner{height:104px;display:flex;align-items:center;gap:32px}.brand{display:flex;align-items:center;gap:12px;color:var(--plum);text-decoration:none;margin-right:auto;line-height:1.15}.brand-mark{width:55px;height:70px;overflow:hidden;flex-shrink:0}.brand-mark img{width:280px;max-width:none;height:70px}.brand strong{display:block;font:24px var(--serif);letter-spacing:-.035em}.brand small{display:block;font-size:9px;letter-spacing:.18em;text-transform:uppercase;margin-top:5px}.primary-nav ul{display:flex;gap:27px;align-items:center;list-style:none;margin:0;padding:0}.primary-nav li{margin:0}.primary-nav a{color:var(--ink);font-size:14px;text-decoration:none;padding:12px 0}.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current-page-ancestor>a{color:var(--plum);text-decoration:underline}.button,.wp-element-button{display:inline-flex;justify-content:center;align-items:center;gap:24px;min-height:50px;padding:14px 25px;background:var(--plum);border:1px solid var(--plum);color:white;text-decoration:none;font-size:14px;font-weight:600;border-radius:3px;cursor:pointer;transition:background .2s,transform .2s}.button:hover{background:#68163f;color:white;transform:translateY(-2px)}.button.secondary{background:transparent;color:var(--plum)}.button.secondary:hover{background:#f0e5e9}.arrow{font-size:22px;line-height:1;font-weight:400}.header-cta{white-space:nowrap}.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:3px;padding:10px 14px;color:var(--plum)}.eyebrow{font:600 11px/1.6 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--plum);margin-bottom:23px}.eyebrow:before{content:'';display:inline-block;width:24px;height:2px;background:var(--orange);vertical-align:middle;margin-right:12px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding-top:44px;padding-bottom:44px}.hero-copy{padding:24px 0 30px}.hero h1{margin-bottom:26px;line-height:1.06}.hero h1 em{color:var(--plum);font-weight:400}.hero-copy>p:not(.eyebrow){font-size:17px;line-height:1.75;max-width:440px;color:var(--muted)}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:31px;flex-wrap:wrap}.text-link{font-size:14px;color:var(--plum);font-weight:600}.hero-photo{position:relative;margin:0;height:600px}.hero-photo>img{width:100%;height:100%;object-fit:cover;object-position:57% center;border-radius:180px 8px 8px 8px}.photo-note{position:absolute;bottom:25px;left:-27px;background:var(--gold);color:var(--plum);padding:17px 23px;max-width:220px;box-shadow:0 4px 18px #0000000c;transform:rotate(-3deg)}.photo-note strong{font:25px/1.15 var(--serif);display:block}.photo-note span{font-size:10px;text-transform:uppercase;letter-spacing:.1em}.hero-footnote{margin-top:36px;font-size:11px;letter-spacing:.05em;color:var(--muted)}.hero-footnote span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:8px}.trust-strip{display:flex;justify-content:space-between;gap:24px;padding:25px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;letter-spacing:.04em}.trust-strip b{color:var(--plum);font-weight:600;margin-right:8px}.section{padding:96px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:35px}.section-heading h2{margin:0;max-width:630px}.section-heading p{max-width:330px;color:var(--muted);margin:0}.program-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:23px}.program-card{color:var(--ink);text-decoration:none;display:block;border-bottom:1px solid var(--line);padding-bottom:24px;position:relative}.program-card .image{overflow:hidden;border-radius:5px}.program-card img{width:100%;height:240px;object-fit:cover;transition:transform .35s}.program-card:hover img{transform:scale(1.035)}.program-card .age{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin:22px 0 10px}.program-card h3{font-size:27px;margin-bottom:11px}.program-card p{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:20px}.program-card .card-link{font-size:12px;color:var(--plum);font-weight:600;display:flex;justify-content:space-between}.story-section{background:#efece3}.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.story-image{width:100%;height:520px;object-fit:cover;border-radius:6px}.story-copy p{color:var(--muted);max-width:470px}.value-list{list-style:none;padding:0;margin:32px 0}.value-list li{border-top:1px solid #d7d4c9;padding:15px 0;margin:0;font-size:14px}.value-list span{color:var(--orange);margin-right:15px}.quote-section{padding:85px 0;text-align:center;background:var(--plum);color:var(--paper)}.quote-section .eyebrow{color:var(--gold)}.quote-section blockquote{font:clamp(26px,3vw,40px)/1.4 var(--serif);max-width:860px;margin:0 auto 27px;letter-spacing:-.025em}.quote-section cite{font-size:12px;font-style:normal;color:#edd5dd}.family-grid{display:grid;grid-template-columns:1fr 1fr;gap:65px}.family-links{list-style:none;padding:0;margin:0}.family-links a{display:flex;justify-content:space-between;align-items:center;padding:23px 0;color:var(--plum);border-bottom:1px solid var(--line);text-decoration:none;font-size:18px}.family-links a:hover{padding-left:8px}.cta-band{background:var(--gold);padding:64px 0}.cta-band .wrap{display:flex;justify-content:space-between;align-items:center;gap:35px}.cta-band h2{color:var(--plum);margin-bottom:12px}.cta-band p{margin:0;color:#554630}.site-footer{background:#302331;color:#e9dde3;padding:65px 0 22px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:65px}.footer-brand{font:29px var(--serif);color:#fff}.site-footer h2{font:600 12px var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:22px}.site-footer p,.site-footer a{font-size:13px;line-height:1.85;color:#e9dde3}.site-footer ul{list-style:none;padding:0}.site-footer li{margin:0 0 8px}.footer-bottom{border-top:1px solid #635265;margin-top:40px;padding-top:22px;display:flex;justify-content:space-between;gap:18px;font-size:11px;color:#cdbac8}.footer-bottom a{font-size:11px}.breadcrumb{font-size:12px;color:var(--muted);padding:28px 0 0}.breadcrumb a{color:var(--muted)}.page-hero{padding:48px 0 62px;max-width:920px}.page-hero h1{font-size:clamp(42px,4.5vw,65px);margin:0 0 25px}.page-hero p{font-size:20px;color:var(--muted);max-width:710px;margin:0}.page-content{padding-bottom:90px}.page-content>.prose{max-width:790px;margin:auto}.prose h2{font-size:37px;margin-top:45px}.prose h3{font-size:26px;margin-top:30px}.prose p{color:#53564f}.prose img{border-radius:6px}.page-content .program-grid{margin-bottom:30px}.content-wide{width:100%}.feature-image{width:100%;max-height:540px;object-fit:cover;border-radius:8px;margin-bottom:40px}.link-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:30px 0}.info-card{background:white;padding:27px;border:1px solid var(--line);border-radius:5px}.info-card h2,.info-card h3{margin-top:0;font-size:26px}.info-card p{font-size:15px}.resource-list{padding:0;list-style:none;margin:26px 0}.resource-list li{margin:0;border-top:1px solid var(--line)}.resource-list a{display:flex;justify-content:space-between;gap:25px;padding:20px 0;text-decoration:none;color:var(--plum);font-weight:600}.resource-list small{font-weight:400;color:var(--muted);white-space:nowrap}.notice{border-left:3px solid var(--orange);background:#f1ede3;padding:18px 22px;margin:24px 0;font-size:14px}.form-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:70px}.form-layout h2{font-size:36px}.tour-form{padding:35px;background:white;border:1px solid var(--line);border-radius:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.field.full{grid-column:1/-1}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #999e93;border-radius:3px;background:#fff;color:var(--ink);min-height:49px}.field textarea{resize:vertical;min-height:110px}.field .hint{font-size:12px;color:var(--muted);margin:6px 0 0}.consent{display:flex;gap:12px;font-size:12px;line-height:1.6;margin:23px 0}.consent input{width:18px;height:18px;flex-shrink:0;margin-top:3px}.form-status{padding:15px;margin:20px 0;background:#eef3e8;border-left:3px solid #466932}.form-status.error{background:#faeeee;border-color:#ac2222}.form-status:empty{display:none}.hp-field{position:absolute;left:-10000px}.form-note{font-size:12px;color:var(--muted);margin-bottom:0;margin-top:13px}.gallery{display:grid;grid-template-columns:1fr 1fr;gap:24px}.gallery figure{margin:0}.gallery img{width:100%;height:300px;object-fit:cover;border-radius:5px}.gallery figcaption{font-size:13px;padding:12px 0;color:var(--muted)}.faculty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.faculty-card img{width:100%;height:260px;object-fit:cover;object-position:top;border-radius:5px}.faculty-card h2{font-size:25px;margin:20px 0 10px}.faculty-card p{font-size:14px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}details{border-top:1px solid var(--line);padding:20px 0}summary{cursor:pointer;font-weight:600;color:var(--plum)}details p{padding-top:18px}.wp-block-image img{max-width:100%}.wp-block-button{margin:25px 0}body.error404 .page-hero{min-height:400px}.preview-notice{font-size:12px;color:var(--muted)}
@media(min-width:1600px){.hero-photo{height:670px}}@media(max-width:1100px){.wrap{width:calc(100% - 56px)}.header-inner{gap:20px}.primary-nav ul{gap:17px}.brand strong{font-size:21px}.hero{gap:36px}.hero-photo{height:545px}.program-grid{gap:16px}.program-card img{height:205px}.story-grid{gap:45px}.form-layout{gap:35px}.header-cta{padding:12px 17px}}
@media(max-width:850px){.header-inner{height:86px;flex-wrap:wrap}.menu-toggle{display:block}.header-cta{display:none}.primary-nav{width:100%;background:var(--paper);padding-bottom:22px}.primary-nav ul{flex-direction:column;align-items:stretch;gap:0}.primary-nav a{display:block;padding:12px}.js .primary-nav{display:none;position:absolute;top:85px;left:0;padding:16px 28px;box-shadow:0 15px 20px #0000000d}.js .primary-nav.is-open{display:block}.hero{padding-top:30px;gap:25px}.hero h1{font-size:54px}.hero-photo{height:500px}.hero-actions{gap:15px}.hero-copy>p:not(.eyebrow){font-size:15px}.program-grid{grid-template-columns:repeat(2,1fr);gap:32px 20px}.program-card img{height:270px}.trust-strip{font-size:11px;gap:14px}.story-grid{gap:35px}.story-image{height:450px}.section{padding:70px 0}.footer-grid{gap:30px}.form-layout{grid-template-columns:1fr}.faculty-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.wrap{width:calc(100% - 40px)}.header-inner{height:83px}.brand strong{font-size:23px}.brand small{font-size:8px}.brand-mark{height:58px;width:46px}.brand-mark img{width:232px;height:58px}.hero{grid-template-columns:1fr;padding-top:16px;gap:15px;padding-bottom:32px}.hero-copy{padding-bottom:14px}.hero h1{font-size:58px;max-width:370px}.hero-copy>p:not(.eyebrow){font-size:16px}.eyebrow{font-size:10px;margin-bottom:19px}.hero-footnote{margin-top:26px}.hero-photo{height:410px;margin-left:15px}.hero-photo>img{border-top-left-radius:120px}.photo-note{left:-14px;bottom:20px;padding:13px 18px}.photo-note strong{font-size:23px}.trust-strip{flex-direction:column;gap:12px;padding:24px 0;font-size:12px}.section{padding:58px 0}.section-heading{display:block}.section-heading h2{margin-bottom:18px}.section-heading p{max-width:none}.program-grid{gap:28px 16px}.program-card img{height:180px}.program-card h3{font-size:25px}.program-card p{font-size:13px}.program-card .age{font-size:9px}.story-grid,.family-grid{grid-template-columns:1fr;gap:35px}.story-image{height:370px}.quote-section{padding:60px 0}.quote-section blockquote{font-size:29px}.cta-band{padding:48px 0}.cta-band .wrap{display:block}.cta-band .button{margin-top:24px}.footer-grid{grid-template-columns:1fr 1fr;gap:30px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{display:block}.footer-bottom>span{display:block;margin-bottom:12px}.page-hero{padding:38px 0}.page-hero p{font-size:18px}.link-grid,.gallery{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;gap:18px}.tour-form{padding:23px}.form-layout{gap:25px}.faculty-grid{grid-template-columns:1fr 1fr;gap:20px}.faculty-card img{height:230px}.resource-list a{display:block}.resource-list small{display:block;margin-top:4px}.gallery img{height:260px}.feature-image{height:280px}.page-content{padding-bottom:55px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
.story-picture{margin:0}.story-picture img{width:100%;height:520px;object-fit:cover;border-radius:6px}.wp-block-group{box-sizing:border-box}.section-heading>.wp-block-heading{margin-bottom:0}@media(max-width:850px){.story-picture img{height:450px}}@media(max-width:600px){.story-picture img{height:370px}.section-heading>.wp-block-heading{margin-bottom:18px}}
.hero-photo>img{object-position:100% center}.brand-mark{width:65px}@media(max-width:600px){.brand-mark{width:54px}.brand strong{font-size:21px}}
@media(max-width:850px){html:not(.js) .header-inner{height:auto;min-height:86px;padding-top:12px}html:not(.js) .menu-toggle{display:none}}@media(max-width:600px){.hero h1{font-size:50px}}
/* WordPress wraps classic group blocks; keep their children in the intended grid. */
.story-grid>.wp-block-group__inner-container,.family-grid>.wp-block-group__inner-container,.section-heading>.wp-block-group__inner-container{display:contents}

/* Familiar homepage shortcuts, placed before the fold and before the mobile photo. */
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:480px;margin-top:32px;padding-top:25px;border-top:1px solid var(--line)}
.home-shortcut{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;text-decoration:none;color:var(--plum);border-radius:6px}
.shortcut-circle{display:grid;place-items:center;width:86px;height:86px;border-radius:50%;background:var(--blue);color:white;box-shadow:0 5px 0 #21489712;transition:transform .2s,box-shadow .2s}
.shortcut-circle svg{width:33px;height:33px}
.shortcut-learn .shortcut-circle{background:var(--plum);box-shadow:0 5px 0 #4a092d12}
.shortcut-apply .shortcut-circle{background:var(--gold);color:var(--plum);box-shadow:0 5px 0 #b68e2715}
.shortcut-support .shortcut-circle{background:var(--orange);box-shadow:0 5px 0 #b64a1612}
.shortcut-label{font-size:12px;line-height:1.4;font-weight:600}
.home-shortcut:hover .shortcut-circle,.home-shortcut:focus-visible .shortcut-circle{transform:translateY(-4px);box-shadow:0 9px 18px #30233118}
.home-shortcut:hover .shortcut-label{text-decoration:underline;text-underline-offset:4px}
@media(min-width:601px) and (max-width:950px){.home-shortcuts{gap:8px}.shortcut-circle{width:65px;height:65px}.shortcut-label{font-size:11px}}
@media(max-width:600px){.home-shortcuts{margin-top:25px;padding-top:23px;gap:10px;max-width:390px}.shortcut-circle{width:66px;height:66px}.shortcut-circle svg{width:28px;height:28px}.shortcut-label{font-size:12px}.hero-footnote{margin-top:25px}}
@media(max-width:360px){.home-shortcuts{gap:7px}.shortcut-circle{width:58px;height:58px}.shortcut-label{font-size:11px}}

/* Preserve the full faculty portraits at every screen size. */
.faculty-card img{height:auto;aspect-ratio:auto;object-fit:contain;object-position:center top}
/* Compact faculty row keeps the original low-resolution portraits modest in size. */
.faculty-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}
.faculty-card img{width:100%;max-width:200px;height:auto;object-fit:contain}
.faculty-card h2{font-size:23px;line-height:1.2;margin-top:18px}
.faculty-card .eyebrow{font-size:10px;letter-spacing:.12em}
.faculty-card .eyebrow:before{width:16px;margin-right:8px}
@media(max-width:1000px){.faculty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 22px}}
@media(max-width:600px){.faculty-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}.faculty-card h2{font-size:21px}}

/* Slow crossfades preserve the hero shape and avoid layout shifts. */
.hero-slides{position:absolute;inset:0;overflow:hidden;border-radius:180px 8px 8px 8px;background:#efece3}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease-in-out;pointer-events:none}
.hero-slide.is-active{opacity:1}
.hero-slide img{width:100%;height:100%;object-fit:cover;object-position:50% center}
.hero-slide:first-child img{object-position:100% center}
.hero-slide:nth-child(2) img{object-position:65% center}
.hero-slideshow .photo-note{z-index:2;bottom:82px}
.slideshow-controls{position:absolute;bottom:18px;right:18px;z-index:3;display:flex;align-items:center;gap:7px;padding:3px 8px;border-radius:30px;background:var(--paper);box-shadow:0 2px 12px #0002}
.slideshow-controls[hidden]{display:none}.slide-dots{display:flex}
.slide-dot,.slide-toggle{border:0;background:transparent;color:var(--plum);cursor:pointer;min-height:40px}
.slide-dot{width:32px;padding:0;display:grid;place-items:center}.slide-dot span{width:7px;height:7px;border-radius:50%;background:#aca39f}.slide-dot[aria-pressed="true"] span{background:var(--plum);width:9px;height:9px}
.slide-toggle{font-size:12px;font-weight:600;padding:0 10px;border-left:1px solid var(--line);min-width:62px}
@media(max-width:600px){.hero-slides{border-top-left-radius:120px}.hero-slideshow .photo-note{bottom:80px}.slideshow-controls{bottom:14px;right:14px}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}
