/*
Theme Name: Bright Steps Primary Tutoring
Theme URI: https://brightsteps.me
Author: Bright Steps Primary Tutoring
Author URI: https://brightsteps.me
Description: Warm, friendly custom theme for an online primary tutoring website. Includes a designed homepage plus About, Services, Prices and Contact page templates. Palette of cream, soft blue, green and yellow with Quicksand and Nunito fonts.
Version: 1.2
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bright-steps
*/

/* =============================================================
   Bright Steps Primary Tutoring
   Stylesheet
   Palette:  cream #FFF8EF · soft blue #A7C7E7 · green #B8D8BA
             yellow #F7D774 · navy #243447
   Fonts:    Quicksand (headings) · Nunito (body)
   ============================================================= */

:root {
  /* Brand palette */
  --cream:        #FFF8EF;
  --cream-2:      #FDF3E7;
  --blue-soft:    #A7C7E7;
  --green-soft:   #B8D8BA;
  --yellow:       #F7D774;
  --navy:         #243447;

  /* Working accents (derived for buttons / icons) */
  --blue:         #5B92C9;
  --blue-deep:    #4178AF;
  --green:        #7FB685;
  --green-deep:   #5E9A66;
  --yellow-deep:  #E8B53C;

  /* Section tints */
  --tint-blue:    #EAF2FB;
  --tint-green:   #EDF6EE;
  --tint-yellow:  #FDF4DC;
  --card-cream:   #FBF5EC;

  --text:         #243447;
  --text-soft:    #4d5b6a;
  --white:        #ffffff;

  --shadow-sm:    0 2px 10px rgba(36, 52, 71, .06);
  --shadow-md:    0 10px 30px rgba(36, 52, 71, .08);
  --radius:       18px;
  --radius-lg:    26px;
  --maxw:         1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .logo-text {
  font-family: "Quicksand", "Nunito", sans-serif;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section   { padding: 72px 0; }
.center    { text-align: center; }
.eyebrow   { color: var(--blue-deep); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Quicksand", sans-serif; font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }
.btn-primary  { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(65,120,175,.28); }
.btn-primary:hover  { background: var(--blue-deep); transform: translateY(-2px); }
.btn-outline  { background: #fff; color: var(--green-deep); border-color: var(--green); }
.btn-outline:hover  { background: var(--tint-green); transform: translateY(-2px); }
.btn-yellow   { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 16px rgba(232,181,60,.30); }
.btn-yellow:hover   { background: var(--yellow-deep); transform: translateY(-2px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,239,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(36,52,71,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-text { line-height: 1; }
.brand .logo-text .top    { display:block; font-size: 1.45rem; font-weight: 700; color: var(--navy); }
.brand .logo-text .bottom { display:block; font-size: .92rem; font-weight: 700; color: var(--green-deep); }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: "Quicksand", sans-serif; font-weight: 600; color: var(--navy);
  padding: 6px 2px; position: relative;
}
.nav-links a:hover { color: var(--blue-deep); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  border-radius: 3px; background: var(--yellow);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display:block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 60px 0 70px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); }
.hero p.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 30em; margin: .4rem 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-doodle { margin-top: 26px; max-width: 170px; opacity: .9; }

.hero-photo {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  background: #f3e7d4;
}
.hero-photo svg { width: 100%; height: auto; display: block; }

/* =============================================================
   TRUST CARDS
   ============================================================= */
.trust { background: #fff; }
.trust-wrap {
  background: var(--card-cream); border-radius: var(--radius-lg);
  padding: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.trust-card { display: flex; gap: 16px; }
.trust-card .icon-circle { flex: 0 0 auto; }
.trust-card h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.trust-card p { margin: 0; color: var(--text-soft); font-size: .98rem; }

.icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.icon-circle svg { width: 30px; height: 30px; }
.ic-blue   { background: var(--blue); }
.ic-green  { background: var(--green); }
.ic-yellow { background: var(--yellow); color: var(--navy); }

/* =============================================================
   WHO I HELP
   ============================================================= */
.who { background: var(--tint-blue); }
.who-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.who h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.who p { color: var(--text-soft); max-width: 34em; }
.who-right { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.check-list svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.who-illustration { align-self: center; }

/* =============================================================
   SERVICES (How I can help)
   ============================================================= */
.services { background: #fff; }
.section-title { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 40px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
}
.service-card.sc-blue   { background: var(--tint-blue); }
.service-card.sc-green  { background: var(--tint-green); }
.service-card.sc-yellow { background: var(--tint-yellow); }
.service-card h3 { font-size: 1.25rem; margin-top: 8px; }
.service-card p { color: var(--text-soft); margin: 0 0 8px; flex: 1; }
.service-card .more { font-family:"Quicksand",sans-serif; font-weight:700; display:inline-flex; align-items:center; gap:6px; }
.sc-blue   .more { color: var(--blue-deep); }
.sc-green  .more { color: var(--green-deep); }
.sc-yellow .more { color: var(--yellow-deep); }
.service-card .more:hover { gap: 11px; }

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.how { background: var(--tint-blue); }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: start; }
.step { text-align: center; max-width: 280px; margin: 0 auto; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; color: #fff; font-family:"Quicksand",sans-serif;
  font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; margin: 0 auto 14px;
}
.step:nth-child(1) .num { background: var(--blue); }
.step:nth-child(3) .num { background: var(--green); }
.step:nth-child(5) .num { background: var(--yellow); color: var(--navy); }
.step h3 { font-size: 1.16rem; margin-bottom: .3rem; }
.step p { color: var(--text-soft); font-size: .98rem; margin: 0 0 14px; }
.step-illus { height: 70px; margin: 6px auto 0; }
.step-arrow { align-self: center; color: var(--blue); padding-top: 30px; }
.step-arrow svg { width: 40px; }

/* =============================================================
   FINAL CTA
   ============================================================= */
.final-cta { background: #fff; }
.cta-band {
  background: linear-gradient(135deg, #FBE9B8, var(--yellow));
  border-radius: var(--radius-lg); padding: 40px 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.cta-band .heart { width: 70px; }
.cta-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.cta-band p { margin: 6px 0 0; color: #5a4f2e; font-weight: 600; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--cream); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-about p { color: var(--text-soft); font-size: .96rem; max-width: 30em; }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-list li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: .96rem; }
.footer-list svg { width: 18px; height: 18px; color: var(--blue-deep); flex: 0 0 auto; }
.footer-list a:hover { color: var(--blue-deep); }
.social { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color:#fff; display: grid; place-items: center; }
.social:hover { background: var(--blue-deep); }
.footer-bar { background: var(--blue); color: #fff; text-align: center; padding: 14px; font-size: .9rem; margin-top: 10px; }

/* =============================================================
   INNER PAGE HEADERS + CONTENT
   ============================================================= */
.page-hero { background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%); padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--text-soft); max-width: 40em; margin: .4rem auto 0; font-size: 1.08rem; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--text-soft); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* About intro: photo + opening text side by side */
.about-intro {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 44px; align-items: center;
}
.about-photo {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo::after {
  content: ""; position: absolute; right: -14px; bottom: -14px;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--yellow); z-index: -1;
}
.about-intro .about-text p { color: var(--text-soft); }
.about-intro .about-text p:first-child { margin-top: 0; }
.about-caption {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint-blue); color: var(--blue-deep);
  font-family: "Quicksand", sans-serif; font-weight: 700; font-size: .9rem;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 14px;
}
.about-caption svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 460px; margin: 0 auto; }
}

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.feature-list svg { width: 20px; height: 20px; color: var(--green-deep); flex: 0 0 auto; margin-top: 3px; }

/* Service detail blocks */
.svc-block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 32px; margin-bottom: 26px; }
.svc-block h2 { display:flex; align-items:center; gap:14px; font-size: 1.45rem; }
.svc-block .badge { width: 50px; height: 50px; border-radius: 14px; display:grid; place-items:center; color:#fff; flex:0 0 auto; }
.svc-block .badge svg { width: 26px; height: 26px; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.tag { background: var(--tint-blue); color: var(--blue-deep); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card { background:#fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px 28px; text-align:center; position: relative; border: 2px solid transparent; display:flex; flex-direction:column; }
.price-card.featured { border-color: var(--yellow); box-shadow: var(--shadow-md); }
.price-flag { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background: var(--yellow); color: var(--navy); font-family:"Quicksand",sans-serif; font-weight:700; font-size:.82rem; padding:5px 16px; border-radius:999px; }
.price-card h3 { font-size: 1.25rem; }
.price-card .amount { font-family:"Quicksand",sans-serif; font-weight:700; font-size: 2.6rem; color: var(--blue-deep); margin: 6px 0; }
.price-card p { color: var(--text-soft); flex:1; }
.price-note { background: var(--tint-green); border-radius: var(--radius); padding: 26px 30px; text-align:center; margin-top: 30px; }
.price-note h3 { color: var(--green-deep); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.form-card { background:#fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px; }
.form-row { margin-bottom: 18px; }
.form-row.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
label { display:block; font-family:"Quicksand",sans-serif; font-weight:600; margin-bottom:6px; font-size:.95rem; }
input, select, textarea {
  width:100%; font-family:"Nunito",sans-serif; font-size:1rem; color:var(--text);
  padding:12px 14px; border:2px solid #e6ddd0; border-radius:12px; background:var(--cream);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline:none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 110px; }
.consent { display:flex; align-items:flex-start; gap:10px; font-weight:600; font-size:.92rem; }
.consent input { width:auto; margin-top:4px; }
.contact-info { background: var(--tint-blue); border-radius: var(--radius-lg); padding: 34px; }
.contact-info h3 { color: var(--navy); }
.contact-info .footer-list { margin-top: 16px; }
.form-success { display:none; background:var(--tint-green); border:2px solid var(--green); color:var(--green-deep); border-radius:12px; padding:16px; font-weight:700; margin-top:18px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-photo { order: -1; max-width: 520px; }
  .trust-wrap { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: 30px; }
  .who-right { grid-template-columns: 1fr; }
  .service-grid, .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band .heart { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn { padding: 10px 18px; font-size: .92rem; }
  .section { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
