/*
Theme Name: Small Step Childcare 2
Description: Conversion- and search-focused redesign for Small Step Childcare, a family home daycare in Aldie, VA.
Version: 2.0.0
Requires PHP: 7.4
*/

:root{--ink:#273934;--muted:#4e6259;--paper:#f9f6ee;--white:#fffdf8;--green:#23483a;--green-2:#35604d;--sage:#e9eee2;--accent:#f3c974;--coral:#ce7f66;--olive:#8f9b74;--line:#dcded2;--width:1180px;--radius:18px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #bc5b36;outline-offset:4px}
h1,h2,h3,p,figure,ul,ol,dl,dd{margin:0}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:normal;line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
h1{font-size:clamp(2.6rem,5.6vw,5.4rem)}
h2{font-size:clamp(2.1rem,4vw,3.6rem)}
h3{font-size:1.5rem}
p{text-wrap:pretty}
.container{width:min(var(--width),calc(100% - 64px));margin:auto}
.skip{position:absolute;left:12px;top:-90px;background:#fff;padding:10px;z-index:50}
.skip:focus{top:12px}

/* Header */
.header{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line);background:rgba(255,253,248,.96);backdrop-filter:saturate(1.4) blur(6px)}
.admin-bar .header{top:32px}
.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand img{width:120px;height:auto}
.navlinks{display:flex;gap:26px;align-items:center}
.navlinks a{text-decoration:none;font-size:.95rem;font-weight:650;text-underline-offset:5px}
.navlinks a:hover,.navlinks a[aria-current]{text-decoration:underline}
.nav-actions{display:flex;align-items:center;gap:16px}
.nav-phone{font-weight:700;text-decoration:none;white-space:nowrap}
.nav-phone:hover{text-decoration:underline}

/* Buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:50px;padding:.75rem 1.35rem;border-radius:999px;background:var(--green);color:#fff;text-decoration:none;font-weight:700;border:0;cursor:pointer;font-size:1rem;transition:background .15s}
.button:hover{background:var(--green-2)}
.button.light{background:var(--accent);color:var(--ink)}
.button.light:hover{background:#f7d690}
.button.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.button.ghost:hover{background:var(--ink);color:#fff}
.textlink{font-weight:700;text-underline-offset:4px}

/* Hero */
.hero{padding:56px 0 40px}
.split{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:clamp(28px,5vw,72px)}
.pill{display:inline-flex;align-items:center;gap:.5rem;background:var(--sage);color:var(--green);font-weight:700;font-size:.85rem;padding:.4rem .85rem;border-radius:999px;margin-bottom:20px}
.pill::before{content:"";width:8px;height:8px;border-radius:50%;background:#3f8f5f;box-shadow:0 0 0 4px rgba(63,143,95,.18)}
.kicker{color:var(--muted);font-weight:750;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:16px}
.lede{font-size:1.15rem;color:var(--muted);max-width:46ch;margin:22px 0 28px}
.actions{display:flex;gap:14px 20px;align-items:center;flex-wrap:wrap}
.hero figure img{width:100%;aspect-ratio:1.15;object-fit:cover;border-radius:45% 45% 16px 16px/30% 30% 16px 16px}
.facts{margin-top:34px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;border-block:1px solid var(--line);padding:18px 0}
.facts div{border-inline-start:1px solid var(--line);padding-left:16px}
.facts div:first-child{padding-left:0;border:0}
.facts dt{font-size:.85rem;color:var(--muted)}
.facts dd{font-weight:700}

/* Trust strip */
.trust{background:var(--green);color:#fff;padding:22px 0}
.trust ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.trust li{display:flex;gap:12px;align-items:flex-start;font-size:.95rem;line-height:1.4}
.trust strong{display:block;font-size:1rem}
.trust svg{flex:none;width:26px;height:26px;color:var(--accent)}

/* Sections */
.section{padding:72px 0}
.section-head{max-width:720px;margin-bottom:34px}
.section-head p,.section p.muted{color:var(--muted);margin-top:14px;font-size:1.08rem}
.tint{background:var(--sage)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px}
.card h3{margin-bottom:10px}
.card p{color:var(--muted)}
.card.mark::before{display:block;content:"";width:31px;height:5px;border-radius:5px;background:var(--coral);margin-bottom:18px}
.card.mark:nth-child(3n+2)::before{background:var(--olive)}
.card.mark:nth-child(3n)::before{background:#e5b14d}
.photo{width:100%;aspect-ratio:1.35;object-fit:cover;border-radius:var(--radius)}
.checklist{list-style:none;padding:0;display:grid;gap:12px;margin-top:22px}
.checklist li{position:relative;padding-left:34px}
.checklist li::before{content:"";position:absolute;left:0;top:.2em;width:22px;height:22px;border-radius:50%;background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat}

/* Day schedule */
.schedule{list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;counter-reset:s}
.schedule li{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.schedule time{display:block;font-weight:800;color:var(--green);font-size:.92rem;margin-bottom:6px}
.schedule strong{display:block;font-family:Georgia,serif;font-weight:normal;font-size:1.3rem;letter-spacing:-.02em;margin-bottom:6px}
.schedule p{color:var(--muted);font-size:.95rem}

/* Tuition */
.prices{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.price{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column}
.price.featured{border:2px solid var(--green)}
.price h3{font-size:1.2rem;font-family:system-ui,sans-serif;font-weight:700;letter-spacing:0}
.price .amount{font-family:Georgia,serif;font-size:2.6rem;letter-spacing:-.03em;margin:10px 0 2px;color:var(--green)}
.price .amount small{font-family:system-ui,sans-serif;font-size:.95rem;color:var(--muted);letter-spacing:0}
.price p{color:var(--muted);font-size:.95rem}
.fine{margin-top:20px;color:var(--muted);font-size:.95rem}

/* Steps */
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:step}
.steps li{counter-increment:step;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px}
.steps li::before{content:counter(step);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent);font-weight:800;margin-bottom:16px}
.steps h3{margin-bottom:8px}
.steps p{color:var(--muted)}

/* FAQ */
.faq{display:grid;gap:12px;max-width:900px}
.faq details{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:0 22px}
.faq summary{cursor:pointer;list-style:none;padding:18px 34px 18px 0;font-weight:700;font-size:1.05rem;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:0;top:12px;font-size:1.6rem;font-weight:400;color:var(--green)}
.faq details[open] summary::after{content:"\2013"}
.faq details p,.faq details ul{color:var(--muted);padding-bottom:18px}
.faq details ul{padding-left:1.2rem}

/* Areas + CTA */
.areas{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin-top:20px}
.areas li{background:var(--white);border:1px solid var(--line);border-radius:999px;padding:.35rem .9rem;font-size:.95rem}
.visit{background:var(--green);color:#fff;padding:64px 0}
.visit h2{color:#fff}
.visit p{margin:16px 0;color:#e4ece6;max-width:52ch}
.visit .actions a:not(.button){color:#fff}
.visit address{font-style:normal}
.map{width:100%;aspect-ratio:16/10;border:0;border-radius:14px;display:block}

/* Contact */
.contact-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:start}
.contact-info{background:var(--sage);border-radius:var(--radius);padding:clamp(24px,4vw,44px)}
.contact-info h1{font-size:clamp(2.5rem,5vw,4.4rem)}
.contact-info dl{display:grid;gap:14px;margin:24px 0}
.contact-info dt{font-size:.85rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.contact-info dd a{font-weight:700}
.inquiry{padding:clamp(24px,4vw,40px)}
.inquiry h2{font-size:clamp(2rem,3.6vw,3rem);margin-bottom:8px}
.inquiry .muted{color:var(--muted);margin-bottom:20px}
.inquiry .wpcf7-form p{margin:0 0 14px}
.inquiry label{display:block;font-weight:650}
.inquiry .row{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.inquiry .wpcf7-form br{display:none}
.inquiry .label{display:block;font-weight:650}
.inquiry .wpcf7-radio{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:.4rem}
.inquiry .wpcf7-radio .wpcf7-list-item{margin:0}
.inquiry .wpcf7-radio label{font-weight:400;display:flex;align-items:center;gap:6px}
.inquiry input[type=radio]{width:18px;height:18px;accent-color:var(--green)}
.inquiry input:not([type=hidden]):not([type=submit]):not([type=checkbox]):not([type=radio]),.inquiry select,.inquiry textarea{display:block;width:100%;margin-top:.3rem;border:1px solid #a8b2a8;border-radius:.65rem;padding:.75rem;color:var(--ink);font:inherit;background:#fff}
.inquiry textarea{height:7rem;resize:vertical}
.inquiry .wpcf7-checkbox{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:.4rem}
.inquiry .wpcf7-list-item{margin:0}
.inquiry .wpcf7-list-item label{font-weight:400}
.inquiry input[type=submit]{width:100%;min-height:54px;border-radius:999px;background:var(--green);color:#fff;border:0;cursor:pointer;font:700 1.05rem system-ui,sans-serif}
.inquiry input[type=submit]:hover{background:var(--green-2)}
.inquiry :is(input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:2px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.next-steps{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.next-steps ol{padding-left:1.2rem;color:var(--muted);display:grid;gap:6px;margin-top:10px}

/* Reading pages */
.reading{max-width:900px}
.guide{padding-left:1.6rem;margin:2rem 0}
.guide li{padding:.45rem 0 .45rem .35rem}
.table-wrap{overflow-x:auto;margin-top:18px}
table{width:100%;border-collapse:collapse;background:var(--white);border-radius:14px;overflow:hidden}
th,td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line)}
th{background:var(--sage);font-size:.9rem}
.doc-list{columns:2;gap:28px;padding-left:1.2rem;margin-top:16px;color:var(--muted)}
.doc-list li{break-inside:avoid;padding:3px 0}

/* Carousel */
.carousel{position:relative}
.carousel img[hidden]{display:none}
.carousel-controls{display:flex;gap:.55rem;align-items:center;justify-content:center;margin-top:.7rem}
.carousel-controls[hidden]{display:none}
.carousel-controls button{border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--green);width:44px;height:44px;font-size:1.25rem;cursor:pointer}
.carousel-controls .rotation{width:auto;border-radius:999px;padding:0 .8rem;font-size:.85rem}
.carousel-controls span{min-width:3rem;text-align:center}

/* Footer */
.footer{padding:48px 0 32px;border-top:1px solid var(--line);background:var(--white)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
.footer h2{font-size:1.4rem;margin-bottom:10px}
.footer p,.footer address,.footer li{color:var(--muted);font-style:normal;font-size:.95rem}
.footer ul{list-style:none;padding:0;display:grid;gap:6px}
.footer a{text-underline-offset:4px}
.copyright{margin-top:28px;font-size:.85rem;color:var(--muted)}

/* Mobile action bar */
.mobile-bar{display:none}

@media (max-width:980px){
  .trust ul{grid-template-columns:repeat(2,1fr)}
  .schedule{grid-template-columns:repeat(2,1fr)}
  .prices{grid-template-columns:repeat(2,1fr)}
  .nav-phone{display:none}
}
@media (max-width:760px){
  body{font-size:16px;padding-bottom:72px}
  .container{width:calc(100% - 36px)}
  .nav{min-height:64px;gap:12px;flex-wrap:wrap;padding:8px 0}
  .brand img{width:96px}
  .header,.admin-bar .header{position:relative;top:0}
  .navlinks{order:3;width:100%;gap:18px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .navlinks::-webkit-scrollbar{display:none}
  .navlinks a{font-size:.9rem;white-space:nowrap}
  .nav-actions .button{min-height:42px;padding:.5rem 1rem;font-size:.92rem}
  .hero{padding:28px 0}
  .section{padding:48px 0}
  .split,.cards,.steps,.footer-grid,.contact-grid,.inquiry .row{grid-template-columns:1fr}
  .hero figure img{aspect-ratio:1.4}
  .carousel-controls .rotation{white-space:nowrap}
  .facts{gap:14px 8px;grid-template-columns:repeat(2,1fr)}
  .facts div:nth-child(3){padding-left:0;border:0}
  .facts div{padding-left:8px}
  .facts dd{font-size:.92rem}
  .trust ul,.schedule,.prices{grid-template-columns:1fr}
  .doc-list{columns:1}
  .mobile-bar{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,253,248,.97);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(0,0,0,.06)}
  .mobile-bar .button{min-height:48px}
}
