/*
Theme Name: Nurturing Academy
Theme URI: https://nurturingacademy.com
Author: Nurturing Academy
Author URI: https://nurturingacademy.com
Description: A warm, one-page theme for Nurturing Academy — an experienced nanny and educator serving families in the Charleston area. Features a hand-drawn growth timeline, hero logo, and simple contact section.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nurturing-academy
*/

/*
 * Note: Fraunces and Work Sans are loaded from functions.php via
 * wp_head (non-render-blocking, media="print" swap trick), not via
 * @import here — an @import in the stylesheet forces the browser to
 * discover and fetch the font CSS *after* this file downloads, adding
 * a full extra round trip before First Contentful Paint. The font
 * stacks below include close system-font fallbacks so text is visible
 * immediately and reflows once the webfont swaps in.
 */

:root{
  --cream:#F6F1E3;
  --paper:#FCFAF3;
  --espresso:#33251A;
  --espresso-soft:#5A483A;
  --forest:#2C4A31;
  --forest-deep:#1E3423;
  --leaf:#7FA268;
  --leaf-light:#B9CDA5;
  --gold:#B08A2E;
  --line:rgba(51,37,26,0.14);
  --max-w:760px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
section[id]{ scroll-margin-top:80px; }

body{
  margin:0;
  background:var(--cream);
  color:var(--espresso);
  font-family:'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}

a{color:inherit;}

img{max-width:100%;}

.wrap{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 28px;
  position:relative;
}

.eyebrow{
  font-family:'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight:600;
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--forest);
}

h1,h2,h3{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:600;
  color:var(--forest-deep);
  margin:0;
}

/* ---------- SITE NAV ---------- */
.site-nav{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:50;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-top:14px;
  padding-bottom:14px;
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  flex-shrink:0;
}
.nav-brand img{ display:block; border-radius:50%; }
.nav-brand span{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:600;
  font-size:17px;
  color:var(--forest-deep);
  white-space:nowrap;
}

.nav-links{
  list-style:none;
  display:flex;
  align-items:center;
  gap:26px;
  margin:0;
  padding:0;
}
.nav-links li{ margin:0; }
.nav-links > li > a{
  white-space:nowrap;
}
.nav-links a{
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:var(--espresso-soft);
  letter-spacing:0.01em;
  transition:color 0.2s ease;
  padding:6px 0;
  border-bottom:2px solid transparent;
}
.nav-links a:hover{ color:var(--forest); }
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a{
  color:var(--forest);
  border-bottom-color:var(--leaf);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;
  height:38px;
  padding:0;
  background:none;
  border:none;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--forest-deep);
  border-radius:2px;
  transition:transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:680px){
  .nav-toggle{ display:flex; }
  .nav-menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    max-height:0;
    overflow:hidden;
    transition:max-height 0.3s ease;
  }
  .nav-menu.nav-open{ max-height:80vh; overflow-y:auto; }
  .nav-links{
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    padding:8px 28px 20px;
  }
  .nav-links a{
    display:block;
    width:100%;
    padding:12px 0;
    border-bottom:1px solid var(--line);
  }
}

/* ---------- DROPDOWN SUBMENUS ---------- */
.menu-item-has-children{
  position:relative;
  display:flex;
  align-items:center;
  gap:2px;
}
.submenu-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:none;
  padding:6px;
  margin:0;
  color:var(--espresso-soft);
  cursor:pointer;
  line-height:0;
}
.submenu-toggle svg{ transition:transform 0.2s ease; }
.menu-item-has-children.submenu-open .submenu-toggle svg{ transform:rotate(180deg); }

.sub-menu{
  list-style:none;
  margin:0;
  padding:0;
}

@media (min-width:681px){
  .menu-item-has-children > a{ padding-right:0; }
  .sub-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:10px;
    box-shadow:0 14px 30px rgba(30,52,35,0.14);
    padding:8px;
    margin-top:6px;
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);
    transition:opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index:60;
  }
  .menu-item-has-children:hover > .sub-menu,
  .menu-item-has-children.submenu-open > .sub-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
  .sub-menu li + li{ margin-top:2px; }
  .sub-menu a{
    display:block;
    padding:9px 12px;
    border-radius:6px;
    font-size:13.5px;
    white-space:nowrap;
    border-bottom:none;
  }
  .sub-menu a:hover{ background:var(--cream); color:var(--forest); }
}

@media (max-width:680px){
  .menu-item-has-children{ flex-wrap:wrap; width:100%; }
  .menu-item-has-children > a{ flex:1; border-bottom:none; }
  .submenu-toggle{ width:32px; height:32px; }
  .menu-item-has-children .sub-menu{
    flex-basis:100%;
    max-height:0;
    overflow:hidden;
    transition:max-height 0.25s ease;
    padding-left:16px;
    border-bottom:1px solid var(--line);
  }
  .menu-item-has-children.submenu-open .sub-menu{ max-height:500px; }
  .sub-menu a{
    padding:10px 0;
    font-size:13.5px;
    border-bottom:1px solid var(--line);
  }
  .sub-menu li:last-child a{ border-bottom:none; }
}

/* ---------- PAGE HEADER (non-homepage) ---------- */
.page-header{
  padding:56px 28px 48px;
  text-align:center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(127,162,104,0.12), transparent 60%),
    var(--cream);
  border-bottom:1px solid var(--line);
}
.page-header h1{
  font-size:clamp(28px, 4.4vw, 40px);
}

/* ---------- ENTRY CONTENT (pages & posts) ---------- */
.entry-content{
  max-width:640px;
  margin:56px auto;
  font-size:16.5px;
  color:var(--espresso-soft);
}
.entry-content p{ margin:0 0 20px; }
.entry-content h2{
  font-size:26px;
  color:var(--forest-deep);
  margin:40px 0 14px;
}
.entry-content h3{
  font-size:20px;
  color:var(--forest-deep);
  margin:32px 0 12px;
}
.entry-content ul,
.entry-content ol{ margin:0 0 20px; padding-left:22px; }
.entry-content li{ margin-bottom:8px; }
.entry-content a{ color:var(--forest); text-decoration:underline; text-decoration-color:var(--leaf-light); }
.entry-content a:hover{ text-decoration-color:var(--forest); }
.entry-content img{ border-radius:10px; height:auto; }
.entry-content blockquote{
  margin:28px 0;
  padding:4px 0 4px 20px;
  border-left:3px solid var(--leaf);
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-style:italic;
  color:var(--forest-deep);
}

.entry-meta{
  font-size:12.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--espresso-soft);
  margin-bottom:22px;
}
.entry-meta-divider{ margin:0 4px; }

.post-summary{
  padding-bottom:36px;
  margin-bottom:36px;
  border-bottom:1px solid var(--line);
}
.post-summary:last-child{ border-bottom:none; }
.post-summary h2{
  font-size:24px;
  margin-bottom:8px;
}
.post-summary h2 a{ text-decoration:none; color:var(--forest-deep); }
.post-summary h2 a:hover{ color:var(--forest); }
.post-excerpt{ font-size:15.5px; }

.post-nav,
.page-links{
  margin-top:30px;
  font-size:14px;
}
.post-nav a,
.post-nav span.current{
  display:inline-block;
  padding:6px 12px;
  margin-right:6px;
  border-radius:6px;
}
.post-nav a{ color:var(--forest); text-decoration:none; }
.post-nav span.current{ background:var(--forest); color:var(--paper); }

/* ---------- HERO ---------- */
.hero{
  padding:76px 28px 60px;
  text-align:center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(127,162,104,0.14), transparent 60%),
    var(--cream);
}
.hero-logo{
  width:190px;
  height:190px;
  margin:0 auto 30px;
  filter:drop-shadow(0 6px 18px rgba(30,52,35,0.18));
  animation:riseIn 1.1s ease both;
}
.hero-logo img{width:100%;height:100%;display:block;}

@keyframes riseIn{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}

.hero h1{
  font-size:clamp(30px, 5vw, 46px);
  line-height:1.15;
  letter-spacing:-0.01em;
  animation:riseIn 1.1s 0.15s ease both;
}
.hero .sub{
  margin-top:14px;
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-style:italic;
  font-weight:400;
  font-size:clamp(17px, 2.4vw, 21px);
  color:var(--espresso-soft);
  animation:riseIn 1.1s 0.3s ease both;
}
.hero .ages{
  margin-top:22px;
  font-size:13px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--forest);
  font-weight:600;
  animation:riseIn 1.1s 0.42s ease both;
}
.hero .ages span{ color: var(--gold); }

.cta-btn{
  display:inline-block;
  margin-top:32px;
  padding:14px 34px;
  background:var(--forest);
  color:var(--paper);
  text-decoration:none;
  font-family:'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.04em;
  border-radius:999px;
  transition:background 0.25s ease, transform 0.25s ease;
  animation:riseIn 1.1s 0.55s ease both;
}
.cta-btn:hover{ background:var(--forest-deep); transform:translateY(-2px); color:var(--paper); }

/* ---------- SECTION SHELL ---------- */
section{
  padding:64px 0;
  position:relative;
}

.divider{
  width:36px;
  height:2px;
  background:var(--leaf);
  margin:0 auto 26px;
  border-radius:2px;
}
.center{ text-align:center; }

/* ---------- INTRO / QUOTE ---------- */
.quote{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-style:italic;
  font-weight:500;
  font-size:clamp(22px, 3.4vw, 30px);
  line-height:1.4;
  color:var(--forest-deep);
  max-width:600px;
  margin:0 auto 8px;
}
.quote::before{ content:"\201C"; }
.quote::after{ content:"\201D"; }

.intro-body{
  max-width:620px;
  margin:34px auto 0;
  font-size:16.5px;
  color:var(--espresso-soft);
}
.intro-body p{ margin:0 0 18px; }
.intro-body p:last-child{ margin-bottom:0; }

/* ---------- BRANCH TIMELINE ---------- */
.branch-section{
  background:var(--paper);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.branch-title{ text-align:center; margin-bottom:8px; }
.branch-title h2{ font-size:clamp(26px,4vw,34px); }
.branch-sub{
  text-align:center;
  color:var(--espresso-soft);
  max-width:480px;
  margin:14px auto 50px;
  font-size:15.5px;
}

.timeline{
  position:relative;
  padding-left:44px;
}
.timeline svg.spine{
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:24px;
  height:calc(100% - 12px);
}
.timeline-path{
  stroke:var(--leaf);
  stroke-width:2.5;
  fill:none;
  stroke-linecap:round;
  stroke-dasharray:1200;
  stroke-dashoffset:1200;
  animation:growBranch 1.8s 0.2s ease forwards;
}
@media (prefers-reduced-motion: reduce){
  .timeline-path{ stroke-dashoffset:0; animation:none; }
}
@keyframes growBranch{ to{ stroke-dashoffset:0; } }

.t-item{
  position:relative;
  padding:0 0 44px 20px;
}
.t-item:last-child{ padding-bottom:0; }
.t-leaf{
  position:absolute;
  left:-44px;
  top:2px;
  width:22px;
  height:22px;
}
.t-item h3{
  font-size:19px;
  font-weight:600;
  margin-bottom:6px;
}
.t-item p{
  margin:0;
  font-size:15px;
  color:var(--espresso-soft);
}
.t-tag{
  display:inline-block;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--forest);
  font-weight:600;
  margin-bottom:6px;
}

/* ---------- FAMILY ---------- */
.family{
  text-align:center;
}
.family h2{ font-size:clamp(26px,4vw,34px); margin-bottom:22px; }
.family p{
  max-width:600px;
  margin:0 auto;
  font-size:16.5px;
  color:var(--espresso-soft);
}
.family-tally{
  display:flex;
  justify-content:center;
  gap:48px;
  margin-top:36px;
  flex-wrap:wrap;
}
.tally-num{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:600;
  font-size:40px;
  color:var(--forest);
  line-height:1;
}
.tally-label{
  display:block;
  margin-top:6px;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--espresso-soft);
}

/* ---------- PHILOSOPHY ---------- */
.philosophy{
  background:var(--paper);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.philosophy h2{
  text-align:center;
  font-size:clamp(26px,4vw,34px);
  margin-bottom:46px;
}
.p-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
}
@media (max-width:640px){
  .p-grid{ grid-template-columns:1fr; gap:34px; }
}
.p-card{ text-align:center; }
.p-icon{
  width:44px; height:44px;
  margin:0 auto 16px;
  color:var(--leaf);
}
.p-card h3{
  font-size:17px;
  font-weight:600;
  margin-bottom:8px;
}
.p-card p{
  font-size:14.5px;
  color:var(--espresso-soft);
  margin:0;
}

/* ---------- TRUST STRIP ---------- */
.trust{
  display:flex;
  justify-content:center;
  gap:0;
  flex-wrap:wrap;
  text-align:center;
}
.trust-item{
  padding:0 34px;
  border-right:1px solid var(--line);
}
.trust-item:last-child{ border-right:none; }
@media (max-width:600px){
  .trust-item{ border-right:none; padding:14px 0; border-bottom:1px solid var(--line); }
  .trust-item:last-child{ border-bottom:none; }
}
.trust-item .num{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:600;
  font-size:26px;
  color:var(--forest);
  display:block;
}
.trust-item .lbl{
  font-size:12.5px;
  color:var(--espresso-soft);
  margin-top:4px;
  max-width:160px;
}

/* ---------- CONTACT ---------- */
.contact{
  text-align:center;
  background:var(--forest-deep);
  color:var(--paper);
  padding:80px 28px;
}
.contact h2{
  color:var(--paper);
  font-size:clamp(28px,4.4vw,38px);
}
.contact p{
  max-width:480px;
  margin:18px auto 0;
  color:rgba(252,250,243,0.82);
  font-size:16px;
}
.contact .cta-btn{
  background:var(--gold);
  color:var(--forest-deep);
}
.contact .cta-btn:hover{ background:#c69a3a; color:var(--forest-deep); }

.contact-details{
  margin-top:22px;
  font-size:15px;
  color:rgba(252,250,243,0.85);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.contact-details a{
  text-decoration:none;
  border-bottom:1px solid rgba(252,250,243,0.35);
  transition:border-color 0.2s ease, color 0.2s ease;
}
.contact-details a:hover{
  color:var(--gold);
  border-color:var(--gold);
}
.contact-divider{ color:rgba(252,250,243,0.4); }

footer.site-footer{
  text-align:center;
  padding:30px 20px 40px;
  font-size:12.5px;
  color:var(--espresso-soft);
}
footer.site-footer img{
  width:34px; height:34px;
  display:block;
  margin:0 auto 10px;
  opacity:0.8;
}

/* ---------- TUTORING PAGE ---------- */
.tutor-intro{ padding-top:56px; }
.tutor-ctas{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}
.cta-btn-outline{
  background:transparent;
  border:1.5px solid var(--forest);
  color:var(--forest);
}
.cta-btn-outline:hover{ background:var(--forest); color:var(--paper); }

.age-bands{
  background:var(--paper);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.age-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
@media (max-width:640px){
  .age-grid{ grid-template-columns:1fr; }
}
.age-card{
  background:var(--cream);
  border:1px solid var(--line);
  border-left:3px solid var(--leaf);
  border-radius:10px;
  padding:26px 24px;
}
.age-tag{
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  margin-bottom:6px;
}
.age-card h3{ font-size:19px; margin-bottom:14px; }
.age-card ul{
  margin:0;
  padding-left:18px;
  font-size:14.5px;
  color:var(--espresso-soft);
}
.age-card li{ margin-bottom:8px; }
.age-card li:last-child{ margin-bottom:0; }

.steps-band{
  background:var(--forest-deep);
  color:var(--paper);
}
.steps-band h2{ color:var(--paper); }
.step-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  margin-top:40px;
}
@media (max-width:760px){
  .step-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:460px){
  .step-grid{ grid-template-columns:1fr; }
}
.step-item{
  padding:22px 18px;
  border:1px solid rgba(252,250,243,0.16);
  border-radius:14px;
}
.step-num{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:600;
  font-size:26px;
  color:var(--leaf-light);
  margin-bottom:10px;
}
.step-item h3{ color:var(--paper); font-size:16px; margin-bottom:6px; }
.step-item p{ margin:0; font-size:14px; color:rgba(252,250,243,0.75); }

.for-parents{ background:var(--paper); }
.feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px 40px;
  margin-top:40px;
}
@media (max-width:640px){
  .feature-grid{ grid-template-columns:1fr; }
}
.feature-item{
  display:flex;
  gap:16px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}
.feature-item:last-child{ border-bottom:none; }
.feature-mark{
  font-family:'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight:700;
  font-size:22px;
  color:var(--leaf);
  min-width:30px;
}
.feature-item h3{ font-size:16.5px; margin-bottom:6px; }
.feature-item p{ margin:0; color:var(--espresso-soft); font-size:14.5px; }

:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px;
}
