/* ==========================================================================
   E-Pantulu Skills Lab — stylesheet
   Palette inspired by Andhra Pradesh art traditions (Lepakshi murals, Kalamkari)
   ========================================================================== */

:root {
  /* Andhra Pradesh-inspired palette */
  --color-cream: #F7EFDD;
  --color-surface: #FFFBF2;
  --color-terracotta: #C1512D;
  --color-terracotta-dark: #9E3F22;
  --color-indigo: #1F3A5F;
  --color-indigo-dark: #142943;
  --color-ochre: #D9A441;
  --color-maroon: #6E1E2B;
  --color-charcoal: #2B2019;
  --color-charcoal-soft: #4A3B32;
  --color-border: rgba(43, 32, 25, 0.12);

  --font-heading: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(43, 32, 25, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 32, 25, 0.12);

  --container-width: 1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-maroon);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw + 0.8rem, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.5rem); }

p { color: var(--color-charcoal-soft); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section { padding-block: clamp(2.5rem, 5vw, 5rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-terracotta);
  margin-bottom: 0.6rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head--center { margin-inline: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-terracotta-dark); box-shadow: var(--shadow-md); }

.btn--secondary {
  background: transparent;
  border-color: var(--color-indigo);
  color: var(--color-indigo);
}
.btn--secondary:hover { background: var(--color-indigo); color: var(--color-surface); }

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

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-maroon);
}

.nav__brand img { width: 40px; height: 40px; }

.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-sub { font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--color-charcoal-soft); letter-spacing: 0.04em; text-transform: uppercase; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-maroon);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__menu.is-open {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.nav__link {
  padding: 0.7rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.nav__link:last-child { border-bottom: none; }
.nav__link.is-active { color: var(--color-terracotta); }

.nav__cta { margin-top: 0.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-cream) 100%);
}

.hero__motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem);
  margin-block: clamp(1.5rem, 4vw, 3rem);
  max-width: 720px;
  background: rgba(255, 251, 242, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero__lede { font-size: 1.15rem; max-width: 55ch; }

.hero__credential {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-maroon);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* ---- Cards / Grids ---- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}

.card__link { margin-top: auto; font-weight: 600; color: var(--color-terracotta); }

/* ---- Flagship program banner ---- */
.flagship {
  background: var(--color-maroon);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.flagship h2, .flagship h3 { color: var(--color-cream); }
.flagship p { color: rgba(247, 239, 221, 0.85); }
.flagship .eyebrow { color: var(--color-ochre); }

.flagship__tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--color-ochre);
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ---- Workshop banner ---- */
.workshop-banner {
  background: var(--color-ochre);
  color: var(--color-charcoal);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.workshop-banner .eyebrow { color: var(--color-maroon); }
.workshop-banner h2 { color: var(--color-maroon); }
.workshop-banner p { color: var(--color-charcoal); max-width: 60ch; }

.workshop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.workshop-price__amount { font-size: 1.5rem; font-weight: 700; color: var(--color-terracotta); }

.workshop-dates {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-maroon);
}

.workshop-batches {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  width: 100%;
}

.workshop-batch {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.workshop-batch strong { font-family: var(--font-heading); color: var(--color-maroon); }

/* ---- Divider ---- */
.divider {
  height: 28px;
  background-repeat: repeat-x;
  background-size: 40px 28px;
  opacity: 0.9;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--color-indigo);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cta-band h2 { color: var(--color-cream); }
.cta-band p { color: rgba(247, 239, 221, 0.85); max-width: 55ch; }

/* ---- Program detail blocks ---- */
.program-block {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.program-block:last-child { border-bottom: none; }

.program-block__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal-soft);
}
.program-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--color-terracotta);
  border-radius: 50%;
}

/* ---- About page ---- */
.value-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.value-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value-list__marker {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: var(--color-surface);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 560px;
}

.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.contact-info dt {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-maroon);
  margin-top: 1.1rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--color-charcoal-soft); margin: 0.2rem 0 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-indigo-dark);
  color: rgba(247, 239, 221, 0.85);
  padding-block: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-grid h4 { color: var(--color-ochre); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-grid p { color: #FFFFFF; }
.footer-grid a:hover { color: var(--color-ochre); }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong { color: var(--color-ochre); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 239, 221, 0.15);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ochre);
  color: var(--color-charcoal);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   Tablet and up (>= 600px)
   ========================================================================== */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .value-list { grid-template-columns: repeat(2, 1fr); }
  .flagship { flex-direction: row; align-items: center; }
  .flagship__content { flex: 1; }
  .flagship__cta { flex-shrink: 0; }
  .workshop-batches { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Desktop and up (>= 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .nav__toggle { display: none; }

  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    gap: 0.5rem;
  }
  .nav__link { border-bottom: none; padding: 0.5rem 0.85rem; border-radius: 999px; }
  .nav__link:hover { background: rgba(193, 81, 45, 0.08); }
  .nav__cta { margin-top: 0; margin-left: 0.5rem; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .program-block { grid-template-columns: 220px 1fr; align-items: start; }
}

@media (min-width: 1200px) {
  .hero__inner { padding-block: clamp(4rem, 8vw, 7rem); }
}

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