/* ==========================================================================
   Les Kids' Kalam — main stylesheet
   Brand extracted from live leskidskalam.com:
     - Primary teal      #03989E   (logo, headings, primary buttons)
     - Warm cream        #FFF6DF   (page background)
     - Yellow/mustard    #F4C41A   (logo accent, callouts, highlights)
     - Coral accent      #EE6A5E   (logo accent, secondary buttons, hover)
     - Crimson           #BC1622   (strong CTAs — matches existing site accent)
     - Warm tan          #DDCCB8   (secondary backgrounds)
   Fonts: Roboto (headings) + Poppins (body) — both from Google Fonts.
   Mobile-first. Breakpoints at 900px (tablet) and 480px (phone).
   ========================================================================== */

:root {
  --color-teal: #03989E;
  --color-teal-dark: #026F74;
  --color-cream: #FFF6DF;
  --color-yellow: #F4C41A;
  --color-coral: #EE6A5E;
  --color-crimson: #BC1622;
  --color-tan: #DDCCB8;
  --color-ink: #262626;
  --color-gray: #707070;
  --color-light-gray: #E8E2DE;
  --color-white: #FFFFFF;

  --font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(3, 152, 158, 0.08);
  --shadow-md: 0 6px 18px rgba(3, 152, 158, 0.14);

  --max-width: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  font-weight: 400;
}

img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 2px;
}

a:hover,
a:focus-visible {
  color: var(--color-coral);
  text-decoration-color: var(--color-coral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ----- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-teal);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: var(--color-teal-dark);
}

p { margin: 0 0 1em; }

.lead {
  font-size: 1.12em;
  color: var(--color-gray);
}

/* ----- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--alt {
  background: var(--color-white);
}

.section--tan {
  background: var(--color-tan);
}

.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ----- Header / nav ------------------------------------------------------- */
.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(3, 152, 158, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 56px;
  width: auto;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-teal);
  font-size: 1.05rem;
  line-height: 1.1;
}

.site-logo:hover .site-logo__text { color: var(--color-coral); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--color-coral);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  border-left: 1px solid rgba(3, 152, 158, 0.2);
  padding-left: 1rem;
}

.lang-switch a {
  color: var(--color-gray);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-switch a[aria-current="true"] {
  color: var(--color-teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-teal);
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter);
    border-bottom: 1px solid rgba(3, 152, 158, 0.15);
    gap: 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }
  .lang-switch {
    border-left: 0;
    border-top: 1px solid rgba(3, 152, 158, 0.15);
    padding-left: 0;
    padding-top: 1rem;
  }
}

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.3;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-coral);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
}

.btn--accent {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--color-coral);
  color: var(--color-white);
  text-decoration: none;
}

.btn--small {
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
}

/* ----- Hero --------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero__content h1 {
  margin-bottom: 1rem;
}

.hero__subhead {
  font-size: 1.15rem;
  color: var(--color-ink);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__secondary {
  font-weight: 500;
  color: var(--color-teal-dark);
}

.hero__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border: 4px solid var(--color-yellow);
}

/* ----- Name banner (uses the live-site banner image) ---------------------- */
.name-banner {
  padding: 2.5rem 0 1.5rem;
  background: var(--color-cream);
  text-align: center;
}

.name-banner img {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  height: auto;
}

/* ----- Credential strip --------------------------------------------------- */
.credentials {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 1.5rem 0;
}

.credentials__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.credentials__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credentials__item strong {
  font-weight: 700;
  color: var(--color-yellow);
}

/* ----- Service cards ------------------------------------------------------ */
.service-card {
  background: var(--color-white);
  border: 1px solid rgba(3, 152, 158, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal);
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-teal);
}

.service-card__subhead {
  font-size: 0.85rem;
  color: var(--color-coral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.service-card__cta {
  margin-top: auto;
  padding-top: 1rem;
}

/* ----- Booking option cards (calendar page) ------------------------------- */
.booking-card {
  background: var(--color-white);
  border: 2px solid rgba(3, 152, 158, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.booking-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-3px);
}

.booking-card__duration {
  font-size: 0.85rem;
  color: var(--color-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.booking-card h3 {
  margin-bottom: 0.5rem;
}

.booking-card__who {
  color: var(--color-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ----- Forms -------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__row label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-teal-dark);
}

.form__row input,
.form__row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(3, 152, 158, 0.25);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
}

.form__row input:focus,
.form__row textarea:focus {
  border-color: var(--color-teal);
  outline: none;
}

.form__row textarea {
  min-height: 140px;
  resize: vertical;
}

/* ----- Resource cards ----------------------------------------------------- */
.resource-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--color-yellow);
  box-shadow: var(--shadow-sm);
}

.resource-card h3 {
  margin-top: 0;
}

.resource-card__lang {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: 0.5rem;
}

/* ----- Blog list ---------------------------------------------------------- */
.post-list {
  display: grid;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(3, 152, 158, 0.12);
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: var(--color-teal);
}

.post-card h3 {
  margin: 0 0 0.5rem;
}

.post-card h3 a {
  color: var(--color-teal);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--color-coral);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 0.75rem;
}

.post-meta time {
  font-variant-numeric: tabular-nums;
}

/* ----- FAQ ---------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid rgba(3, 152, 158, 0.15);
  padding: 1.5rem 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-teal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--color-coral);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding-top: 1rem;
  color: var(--color-ink);
}

/* ----- Testimonials ------------------------------------------------------- */
.testimonial {
  background: var(--color-yellow);
  padding: 2rem;
  border-radius: var(--radius-lg);
  font-style: italic;
  position: relative;
  color: var(--color-ink);
}

.testimonial::before {
  content: "“";
  font-size: 4rem;
  color: var(--color-teal);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: serif;
  line-height: 1;
}

.testimonial p {
  margin: 0 0 1rem;
  padding-top: 1rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--color-teal-dark);
  font-size: 0.9rem;
}

/* ----- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--color-teal);
  color: var(--color-cream);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer a {
  color: var(--color-yellow);
  text-decoration-color: var(--color-yellow);
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__col h4 {
  color: var(--color-yellow);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__col li {
  margin-bottom: 0.5rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-cream);
  text-align: center;
}

/* ----- Placeholder visual marker (dev only) ------------------------------- */
[data-placeholder="true"],
.placeholder {
  outline: 2px dashed var(--color-coral);
  outline-offset: 4px;
  background: rgba(238, 106, 94, 0.05);
  position: relative;
}

.placeholder::before {
  content: "PLACEHOLDER";
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 0.65rem;
  background: var(--color-coral);
  color: var(--color-white);
  padding: 1px 6px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ----- Utility ------------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----- Print -------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .lang-switch { display: none; }
  body { background: white; color: black; }
}
