/* =========================================================
   Discover & Grow Learning Center — shared styles
   ========================================================= */

:root {
  --orange: #F47B3F;
  --orange-deep: #E05A1F;
  --orange-soft: #FDE5D4;
  --blue: #2E7EB6;
  --blue-soft: #D7E8F3;
  --teal: #4AB3AA;
  --coral: #E86B5B;
  --yellow: #F5C046;
  --cream: #FFF7EC;
  --cream-deep: #F9EBD2;
  --ink: #2B2118;
  --ink-soft: #6B5E52;
  --line: #EAD9BE;
  --white: #FFFFFF;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(43,33,24,0.06);
  --shadow: 0 10px 30px rgba(43,33,24,0.08);
  --shadow-lg: 0 24px 60px rgba(43,33,24,0.12);

  --f-display: "Yrsa", Georgia, serif;
  --f-body: "Nunito", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; }
h3 { font-size: 1.4rem; line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 236, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(234, 217, 190, 0.7);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img.nl-mark { height: 56px; width: auto; display: block; }
.nav-logo:hover { text-decoration: none; }
.nav-logo .nl-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-logo .nl-name {
  font-family: 'Baloo Thambi 2', var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--orange-deep);
  line-height: 1;
}
.nav-logo .nl-sub {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 720px) {
  .nav-logo .nl-sub { display: none; }
  .nav-logo .nl-name { font-size: 1.15rem; }
  .nav-logo img.nl-mark { height: 44px; }
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--orange-deep);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--orange-deep);
}
.nav-cta {
  background: var(--orange);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(244,123,63,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244,123,63,0.45);
  text-decoration: none !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .mobile-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--f-body);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 6px 18px rgba(244,123,63,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244,123,63,0.5);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(43,33,24,0.08);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
}
.btn-ghost:hover {
  color: var(--orange-deep);
}

/* ---------- Pills / Badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pill-orange { background: var(--orange-soft); color: var(--orange-deep); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-teal { background: #D9F0ED; color: #2E7B74; }
.pill-yellow { background: #FCEAC2; color: #8A6A1A; }

.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234, 217, 190, 0.5);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #EAD9BE;
  padding: 72px 0 32px;
  margin-top: 80px;
}
footer a { color: #F9D9B8; }
footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: var(--orange);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--f-body);
  font-weight: 800;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 60px;
  width: auto;
  background: white;
  border-radius: 16px;
  padding: 6px;
}
.footer-brand-name {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1.1;
}
.footer-bottom {
  border-top: 1px solid rgba(234, 217, 190, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #B7A58F;
}

/* ---------- Utility ---------- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.muted { color: var(--ink-soft); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.lead {
  font-size: 1.22rem;
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Placeholder image ---------- */
.placeholder {
  background: repeating-linear-gradient(
    135deg,
    var(--cream-deep),
    var(--cream-deep) 10px,
    var(--cream) 10px,
    var(--cream) 20px
  );
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 0.82rem;
  text-align: center;
  padding: 24px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.placeholder-photo {
  background:
    radial-gradient(circle at 30% 30%, rgba(244,123,63,0.2), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(74,179,170,0.2), transparent 50%),
    repeating-linear-gradient(135deg, var(--cream-deep), var(--cream-deep) 10px, var(--cream) 10px, var(--cream) 20px);
}

/* ---------- Review card ---------- */
.review {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234, 217, 190, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.review-stars {
  color: var(--yellow);
  letter-spacing: 2px;
  font-size: 1.1rem;
}
.review-text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.review-name { font-weight: 700; font-size: 0.95rem; line-height: 1.1; }
.review-src { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--cream-deep);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before,
.page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-header::before {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(244,123,63,0.15), transparent 70%);
  top: -80px; right: -60px;
}
.page-header::after {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(46,126,182,0.12), transparent 70%);
  bottom: -60px; left: -40px;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { margin-bottom: 12px; display: block; }
.page-header p { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; margin-top: 14px; }

/* ---------- Form ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244,123,63,0.15);
}

/* Subtle anchor offset for sticky nav */
[id] { scroll-margin-top: 100px; }
