/* =================================================================
   LEARN WITH ALIZA  —  STYLESHEET
   -----------------------------------------------------------------
   Friendly, pastel, rounded design for an 11+ tutoring website.

   HOW TO EDIT COLOURS:
   All the colours live in the ":root" block right below. Change a
   value once there and it updates everywhere on the site.
   ================================================================= */

:root {
  /* ---- Pastel colour palette ---- */
  --cream:        #FFFDF8;   /* page background */
  --blue:         #A9D6E5;   /* soft blue */
  --blue-soft:    #DCF0F7;   /* very light blue */
  --pink:         #FBC4D4;   /* soft pink */
  --pink-soft:    #FDE7EE;   /* very light pink */
  --yellow:       #FCE9A8;   /* soft yellow */
  --yellow-soft:  #FEF6D6;   /* very light yellow */
  --green:        #BFE3C4;   /* soft green */
  --green-soft:   #E4F4E6;   /* very light green */
  --purple:       #D8C2EE;   /* soft lavender accent */

  --accent:       #F7A4B8;   /* coral-pink — buttons / calls to action */
  --accent-dark:  #ED7E98;   /* darker coral for hover */

  --text:         #4A4A6A;   /* soft indigo (main text, not harsh black) */
  --text-light:   #7A7A92;   /* lighter text for subtitles */
  --white:        #FFFFFF;

  /* ---- Shape & shadow ---- */
  --radius:       20px;      /* standard rounded-corner size */
  --radius-lg:    32px;      /* big rounded corners (cards, hero) */
  --shadow:       0 10px 30px rgba(120, 120, 160, 0.12);
  --shadow-hover: 0 16px 40px rgba(120, 120, 160, 0.20);

  /* ---- Fonts ---- */
  --font-head: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

/* ---- Global reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; /* stops the sticky nav covering headings */ }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;            /* nice and large for easy reading */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--text); }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

/* Centres content and limits its width on big screens */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 50px;        /* fully rounded pill shape */
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(247, 164, 184, 0.5); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(237, 126, 152, 0.55); }

.btn-secondary { background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--blue-soft); }

.btn-full { display: block; width: 100%; }

/* =================================================================
   NAVIGATION BAR
   ================================================================= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(120, 120, 160, 0.08);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--text);
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-icon { font-size: 1.6rem; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; color: var(--text);
  padding: 10px 16px; border-radius: 50px; transition: background 0.15s ease;
}
.nav-link:hover { background: var(--blue-soft); text-decoration: none; }

/* The "Get in Touch" button in the menu */
.nav-cta { background: var(--accent); color: var(--white); }
.nav-cta:hover { background: var(--accent-dark); color: var(--white); }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: 0.25s; }
/* Animate into an "X" when the menu is open */
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue-soft) 0%, var(--pink-soft) 55%, var(--yellow-soft) 100%);
  padding: 70px 0 120px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.hero-eyebrow {
  display: inline-block; background: var(--white); color: var(--text);
  font-weight: 700; font-size: 0.95rem; padding: 8px 18px; border-radius: 50px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.hero-title { font-size: 3rem; font-weight: 700; margin-bottom: 18px; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-light); margin-bottom: 28px; max-width: 540px; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges li {
  background: rgba(255, 255, 255, 0.7); padding: 8px 16px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
}

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; filter: drop-shadow(0 14px 24px rgba(120,120,160,0.18)); }

/* Wavy white divider at the bottom of the hero */
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave-divider svg { width: 100%; height: 80px; }

/* =================================================================
   GENERIC SECTION STYLING
   ================================================================= */
.section { padding: 80px 0; }
.section-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 14px; }
.section-title.align-left { text-align: left; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.15rem; max-width: 640px; margin: 0 auto 48px; }

/* =================================================================
   WHY CHOOSE ME — feature cards
   ================================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 1rem; }

/* Each card gets a different pastel icon background */
.card-blue   .feature-icon { background: var(--blue-soft); }
.card-pink   .feature-icon { background: var(--pink-soft); }
.card-green  .feature-icon { background: var(--green-soft); }
.card-yellow .feature-icon { background: var(--yellow-soft); }

/* =================================================================
   ABOUT ME
   ================================================================= */
.about { background: var(--green-soft); }
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }

.about-art { position: relative; display: flex; justify-content: center; }
.about-art-blob {
  width: 240px; height: 240px; border-radius: 50%;
  background: linear-gradient(150deg, var(--blue) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.about-emoji { font-size: 6rem; }
/* Little floating icons around the portrait blob */
.float-icon { position: absolute; font-size: 2rem; background: var(--white); width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.float-1 { top: 6px; right: 30px; }
.float-2 { bottom: 20px; left: 10px; }
.float-3 { bottom: 70px; right: 6px; }

.about-text p { margin-bottom: 16px; color: var(--text); }

.about-facts { display: flex; gap: 16px; flex-wrap: wrap; margin: 26px 0; }
.fact {
  background: var(--white); border-radius: var(--radius); padding: 16px 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); min-width: 120px;
}
.fact-num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--accent-dark); }
.fact span:last-child { font-size: 0.95rem; color: var(--text-light); }

/* =================================================================
   WHAT IS THE 11+ / HOW IT WORKS
   ================================================================= */
.subjects-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 50px; }
.subject-pill {
  background: var(--white); border: 2px dashed var(--blue); color: var(--text);
  font-family: var(--font-head); font-weight: 600; padding: 12px 24px; border-radius: 50px;
}

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 24px;
  box-shadow: var(--shadow); position: relative; transition: transform 0.2s ease;
}
.step-card:hover { transform: translateY(-6px); }
.step-number {
  width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 1rem; }

/* =================================================================
   PRICING
   ================================================================= */
.pricing { background: var(--pink-soft); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 760px; margin: 0 auto; }

.price-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 38px 32px;
  box-shadow: var(--shadow); position: relative; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
/* The highlighted (featured) card gets a coloured border + slight lift */
.price-card.featured { border: 3px solid var(--accent); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }

.featured-flag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white); font-family: var(--font-head);
  font-weight: 600; font-size: 0.85rem; padding: 6px 18px; border-radius: 50px;
  white-space: nowrap;
}
.price-badge { display: inline-block; font-family: var(--font-head); font-weight: 600; padding: 6px 18px; border-radius: 50px; margin-bottom: 16px; }
.price-badge-blue { background: var(--blue-soft); color: var(--text); }
.price-badge-pink { background: var(--pink-soft); color: var(--text); }

.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; color: var(--text); line-height: 1; }
.price-amount span { font-size: 1.1rem; font-weight: 500; color: var(--text-light); }
.price-tagline { color: var(--text-light); margin: 8px 0 22px; }

.price-features { list-style: none; text-align: left; margin-bottom: 26px; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--cream); font-size: 1rem; }
.price-features li:last-child { border-bottom: none; }

.pricing-note { text-align: center; margin-top: 36px; font-size: 1.1rem; color: var(--text-light); }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--yellow-soft); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow);
}
.testimonial-stars { font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-quote { font-style: italic; margin-bottom: 16px; }
.testimonial-author { font-family: var(--font-head); font-weight: 600; color: var(--accent-dark); }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { background: var(--blue-soft); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact-form-wrap > p { color: var(--text-light); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 13px 16px; border: 2px solid var(--blue-soft); border-radius: var(--radius);
  background: var(--cream); transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; }

/* The little status line under the submit button */
.form-status { margin-top: 14px; font-weight: 700; text-align: center; min-height: 1.2em; }
.form-status.success { color: #4CAF87; }
.form-status.error   { color: var(--accent-dark); }

/* Right-hand contact info panel */
.contact-info h3 { font-size: 1.3rem; margin-bottom: 14px; }
.map-card {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 24px;
  background-image: radial-gradient(var(--blue) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.map-pin { font-size: 1.8rem; }
.area-intro { color: var(--text); margin-bottom: 12px; }
.area-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 28px; }
.area-list li { background: var(--white); padding: 8px 14px; border-radius: 50px; font-size: 0.95rem; box-shadow: var(--shadow); }

.contact-direct { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-email { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; word-break: break-all; }
.contact-hours { color: var(--text-light); font-size: 0.95rem; margin-top: 6px; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--text); color: var(--cream); padding: 50px 0 30px; text-align: center; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 8px; }
.footer-inner p { color: #D8D8E8; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 20px 0; }
.footer-links a { color: var(--cream); font-family: var(--font-head); }
.footer-links a:hover { color: var(--pink); }
.footer-copy { font-size: 0.9rem; color: #A8A8C0 !important; margin-top: 14px; }

/* =================================================================
   RESPONSIVE / MOBILE STYLES
   These rules kick in on smaller screens (phones & tablets).
   ================================================================= */

/* --- Tablets and below (1 fewer column for grids) --- */
@media (max-width: 960px) {
  .feature-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }            /* show the owl above the text */
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-badges { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-art { margin-bottom: 20px; }
  .section-title.align-left { text-align: center; }
  .contact-inner { grid-template-columns: 1fr; }
}

/* --- Phones --- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero-title { font-size: 2.2rem; }
  .hero { padding: 40px 0 90px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.8rem; }
  .feature-grid, .step-grid, .pricing-grid, .area-list { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }      /* don't scale on tiny screens */
  .price-card.featured:hover { transform: translateY(-6px); }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }       /* stack age & phone */

  /* --- Mobile hamburger menu --- */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 10px 16px 20px;
    box-shadow: 0 12px 20px rgba(120,120,160,0.12);
    /* hidden by default; slides open when .open is added by JS */
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 14px 16px; border-radius: var(--radius); }
  .nav-cta { text-align: center; margin-top: 6px; }
}

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