/*
Theme Name: Nurturing Potential
Theme URI: https://nurturingpotential.local
Author: Nurturing Potential
Description: Custom theme for Nurturing Potential — parent and student support, tutoring, and career guidance.
Version: 1.0
Text Domain: nurturing-potential
*/

:root{
  --navy:#122a45;
  --navy-deep:#0b1c2e;
  --teal:#1c766f;
  --gold:#dd9a1f;
  --purple:#4a3078;
  --cream:#f7f4ec;
  --paper:#ffffff;
  --ink:#1c2b3a;
  --muted:#5b6b7a;
  --line:#e2ddcd;
  --radius:10px;
}

*, *::before, *::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size:17px;
  line-height:1.65;
}

h1,h2,h3,h4{
  font-family:"Lora", Georgia, "Times New Roman", serif;
  color:var(--navy);
  line-height:1.2;
  margin:0 0 .5em;
  text-wrap:balance;
}

h1{ font-size:clamp(2rem, 4vw, 3rem); }
h2{ font-size:clamp(1.5rem, 3vw, 2.1rem); }
h3{ font-size:1.25rem; }

p{ margin:0 0 1em; color:var(--ink); }
a{ color:var(--teal); }
img{ max-width:100%; display:block; }

.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  display:inline-block;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal);
  font-weight:600;
  margin-bottom:.6em;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:.85em 1.7em;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
  font-size:.98rem;
  border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor:pointer;
}
.btn:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
.btn-gold{
  background:var(--gold);
  color:var(--navy-deep);
  box-shadow:0 6px 18px rgba(221,154,31,.35);
}
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(221,154,31,.45); }
.btn-outline{
  background:transparent;
  border-color:rgba(255,255,255,.5);
  color:#fff;
}
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-outline-dark{
  background:transparent;
  border-color:var(--navy);
  color:var(--navy);
}
.btn-outline-dark:hover{ background:var(--navy); color:#fff; }

/* ---------- Site header ---------- */
.site-header{
  background:var(--navy);
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 2px 14px rgba(0,0,0,.12);
}
.site-header .inner{
  display:flex;
  align-items:center;
  gap:24px;
  padding:14px 24px;
}
.brand{
  display:flex;
  align-items:baseline;
  gap:.4em;
  text-decoration:none;
  margin-right:auto;
  white-space:nowrap;
}
.brand .mark{
  font-family:"Lora", serif;
  font-weight:700;
  font-size:1.5rem;
  color:#fff;
}
.brand .wordmark{
  font-family:"Lora", serif;
  font-weight:400;
  font-size:1.5rem;
  color:#fff;
}
.brand:focus-visible{ outline:3px solid var(--gold); outline-offset:4px; }

.primary-menu{
  list-style:none;
  display:flex;
  gap:28px;
  margin:0;
  padding:0;
}
.primary-menu a{
  color:#e9ecef;
  text-decoration:none;
  font-weight:500;
  font-size:.98rem;
  padding:6px 0;
  border-bottom:2px solid transparent;
}
.primary-menu a:hover,
.primary-menu li.current-menu-item a{
  color:#fff;
  border-bottom-color:var(--gold);
}
.nav-toggle{ display:none; }

@media(max-width:860px){
  .site-header .inner{ gap:12px; padding:12px 18px; }
  .brand .mark{ font-size:1.2rem; }
  .primary-menu{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--navy);
    flex-direction:column;
    gap:0;
    padding:10px 24px 18px;
    box-shadow:0 12px 20px rgba(0,0,0,.18);
  }
  .primary-menu.is-open{ display:flex; }
  .primary-menu li{ width:100%; }
  .primary-menu a{
    display:block;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px; height:44px;
    background:transparent;
    border:1px solid rgba(255,255,255,.3);
    border-radius:8px;
    color:#fff;
    font-size:1.2rem;
  }
  /* The CTA stays in the bar on phones rather than hiding behind the menu,
     with the toggle kept rightmost per convention. */
  .header-cta{ padding:.6em 1.1em; font-size:.88rem; margin-left:0; order:2; }
  .nav-toggle{ order:3; }
}
@media(max-width:480px){
  .brand .wordmark{ display:none; }
}
.header-cta{ margin-left:8px; }

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(221,154,31,.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:#fff;
  padding:88px 0 96px;
}
.hero .container{
  display:grid;
  gap:20px;
  justify-items:start;
}
.hero h1{ color:#fff; max-width:18ch; }
.hero .lede{ font-size:1.15rem; color:#cfd8e0; max-width:58ch; }
.hero .actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:6px; }

.page-hero{
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:#fff;
  padding:64px 0 72px;
}
.page-hero h1{ color:#fff; margin-bottom:.3em; }
.page-hero .lede{ color:#cfd8e0; max-width:62ch; font-size:1.08rem; margin:0; }

/* ---------- Sections ---------- */
section{ padding:72px 0; }
section.tight{ padding:48px 0; }
.section-head{ max-width:680px; margin:0 auto 44px; text-align:center; }
.section-head.left{ margin-left:0; text-align:left; }

.alt{ background:var(--paper); }
.deep{ background:var(--navy); color:#fff; }
.deep h2, .deep h3{ color:#fff; }
.deep p{ color:#cfd8e0; }

/* ---------- Cards / grids ---------- */
.grid{
  display:grid;
  gap:22px;
}
.grid-2{ grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); }

/* Explicit column counts keep rows even: the card grids hold 6 or 10 items,
   which reflow raggedly under auto-fit. */
.grid-3{ grid-template-columns:1fr; }
@media(min-width:620px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:940px){ .grid-3{ grid-template-columns:repeat(3,1fr); } }

.grid-5{ grid-template-columns:repeat(2,1fr); }
@media(min-width:620px){ .grid-5{ grid-template-columns:repeat(3,1fr); } }
@media(min-width:940px){ .grid-5{ grid-template-columns:repeat(5,1fr); } }

.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 24px;
}
.card .icon{
  width:52px; height:52px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
  background:var(--cream);
  color:var(--teal);
  border:1.5px solid var(--line);
}
.card .icon svg{ width:25px; height:25px; }
.icon-label{
  font-family:"Lora", serif;
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:-.02em;
}
.card h3{ margin-bottom:.4em; font-size:1.12rem; }
.card p{ color:var(--muted); font-size:.97rem; margin:0; }

/* Scoped to match `.card .icon` specificity, which would otherwise win
   and render every icon teal. Tints echo the flyers' colour-coded icons. */
.card .icon.icon-teal{
  color:var(--teal);
  background:rgba(28,118,111,.08);
  border-color:rgba(28,118,111,.25);
}
.card .icon.icon-gold{
  color:#b8790c;
  background:rgba(221,154,31,.12);
  border-color:rgba(221,154,31,.32);
}
.card .icon.icon-purple{
  color:var(--purple);
  background:rgba(74,48,120,.08);
  border-color:rgba(74,48,120,.24);
}
.card .icon.icon-navy{
  color:var(--navy);
  background:rgba(18,42,69,.07);
  border-color:rgba(18,42,69,.22);
}

.pill-list{
  list-style:none;
  padding:0; margin:0;
  display:grid;
  gap:12px;
}
/* Explicit colour: this list also sits inside .deep, where it would
   otherwise inherit white text onto its white card. */
.pill-list li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px 16px;
  font-size:.98rem;
}
.pill-list li::before{
  content:"";
  flex:0 0 8px;
  width:8px; height:8px;
  border-radius:50%;
  background:var(--gold);
  margin-top:.5em;
}

/* Compare block */
.compare{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
@media(max-width:720px){ .compare{ grid-template-columns:1fr; } }
.compare .col{
  border-radius:var(--radius);
  padding:26px 24px;
  border:1px solid var(--line);
}
.compare .col.us{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}
.compare .col.us h3{ color:#fff; }
.compare .col.free{ background:var(--paper); }
.compare ul{ margin:0; padding-left:1.1em; }
.compare li{ margin-bottom:.5em; }
.compare .col.us li{ color:#dbe4ec; }

/* Promise / CTA band */
.cta-band{
  background:linear-gradient(120deg, var(--teal), var(--navy));
  color:#fff;
  border-radius:16px;
  padding:52px 40px;
  text-align:center;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color:#e3ece7; max-width:56ch; margin:0 auto 24px; }

/* Trust strip */
.trust-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px,1fr));
  gap:20px;
  text-align:center;
}
.trust-strip .item h4{
  font-family:"Lora", serif;
  font-size:1rem;
  color:var(--navy);
  margin:.5em 0 .2em;
}
.trust-strip .trust-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px; height:46px;
  border-radius:50%;
  background:var(--paper);
  border:1.5px solid var(--line);
  color:var(--teal);
}
.trust-strip .trust-icon svg{ width:23px; height:23px; }
.trust-strip .item p{ font-size:.88rem; color:var(--muted); margin:0; }

/* Subject grid */
.subject{
  text-align:center;
  padding:22px 16px;
}
.subject .icon{ margin:0 auto 14px; }
.subject h3{ font-size:1rem; margin:0; }

/* SEND callout */
.callout{
  border:1.5px solid var(--purple);
  background:#faf7ff;
  border-radius:var(--radius);
  padding:32px 28px;
}
.callout h2{ color:var(--purple); }

/* Contact page */
.contact-wrap{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:36px;
  align-items:start;
}
@media(max-width:880px){ .contact-wrap{ grid-template-columns:1fr; } }
.contact-form-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
}
.contact-side .card{ margin-bottom:18px; }
.contact-side .card:last-child{ margin-bottom:0; }

.wpcf7-form p{ margin-bottom:1.1em; }
.wpcf7-form label{ display:block; font-weight:600; font-size:.92rem; color:var(--navy); }
/* CF7 emits a <br> between label text and field; use real spacing instead. */
.wpcf7-form label br{ display:none; }
.wpcf7-form .wpcf7-form-control-wrap{ display:block; margin-top:.45em; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form select,
.wpcf7-form textarea{
  width:100%;
  padding:12px 14px;
  border:1.5px solid var(--line);
  border-radius:8px;
  font-family:inherit;
  font-size:1rem;
  background:var(--cream);
  color:var(--ink);
}
.wpcf7-form textarea{ min-height:130px; resize:vertical; }
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus{ outline:2px solid var(--teal); outline-offset:1px; }
.wpcf7-form .wpcf7-submit{
  background:var(--gold);
  color:var(--navy-deep);
  border:none;
  padding:.9em 2em;
  border-radius:999px;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
}
.wpcf7-form .wpcf7-submit:hover{ filter:brightness(1.05); }
.wpcf7-response-output{
  border-radius:8px;
  padding:12px 16px;
  margin-top:16px;
  border:1.5px solid var(--line);
}
.wpcf7-mail-sent-ok{ border-color:#2f8a52; color:#2f8a52; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng{ border-color:#b8422f; color:#b8422f; }
.wpcf7-not-valid-tip{ color:#b8422f; font-size:.85rem; }

/* Footer */
.site-footer{
  background:var(--navy-deep);
  color:#c8d2db;
  padding:52px 0 30px;
}
.footer-top{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  justify-content:space-between;
  align-items:flex-start;
  padding-bottom:28px;
  border-bottom:1px solid rgba(255,255,255,.1);
  margin-bottom:22px;
}
.footer-brand .mark{ font-family:"Lora", serif; color:#fff; font-size:1.3rem; font-weight:700; }
.footer-brand p{ color:#93a3b2; max-width:32ch; font-size:.92rem; margin-top:.6em; }
.footer-col h4{
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.9em;
}
.footer-col ul{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-col a{ color:#c8d2db; text-decoration:none; font-size:.95rem; }
.footer-col a:hover{ color:#fff; }
.footer-col a.with-icon{ display:inline-flex; align-items:center; gap:9px; }
.footer-col a.with-icon svg{ width:17px; height:17px; flex:0 0 17px; color:var(--gold); }
.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  justify-content:space-between;
  font-size:.85rem;
  color:#7f909f;
}
.footer-bottom .heart{ color:var(--gold); }

/* Focus visibility for keyboard users */
.primary-menu a:focus-visible,
.footer-col a:focus-visible,
.contact-side a:focus-visible,
.nav-toggle:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px;
  border-radius:4px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--gold);
  color:var(--navy-deep);
  padding:12px 20px;
  font-weight:700;
  z-index:100;
}
.skip-link:focus{ left:8px; top:8px; }

/* Tighter rhythm on small screens */
@media(max-width:640px){
  section{ padding:52px 0; }
  section.tight{ padding:38px 0; }
  .hero{ padding:60px 0 64px; }
  .page-hero{ padding:48px 0 52px; }
  .section-head{ margin-bottom:32px; }
  .cta-band{ padding:38px 22px; }
  .contact-form-card{ padding:24px 20px; }
  .container{ padding:0 18px; }
}

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

/* Utilities */
.mt-0{ margin-top:0; }
.center{ text-align:center; }
