/* ==========================================================================
   KOTA Study Center — design tokens + shared components
   ========================================================================== */

:root {
  /* Colors */
  --bg: oklch(98% 0.006 80);
  --bg-alt: oklch(96% 0.01 80);
  --text: oklch(22% 0.01 80);
  --text-body: oklch(38% 0.01 80);
  --text-body-2: oklch(40% 0.01 80);
  --text-muted: oklch(42% 0.01 80);
  --text-muted-2: oklch(45% 0.01 80);
  --border: oklch(90% 0.01 80);
  --border-strong: oklch(88% 0.01 80);
  --border-input: oklch(85% 0.01 80);

  --accent: oklch(50% 0.18 25);
  --accent-hover: oklch(44% 0.18 25);
  --accent-tint: oklch(75% 0.1 40);
  --accent-tint-2: oklch(85% 0.1 40);
  --accent-tint-dark: oklch(75% 0.1 60);

  --overlay-dark: oklch(20% 0.015 40);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --font-ui: 'Inter', sans-serif;
  --font-accent: 'Libre Baskerville', serif;

  --max-width: 1280px;
  --section-pad-y: clamp(48px, 8vw, 96px);
  --section-pad-x: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section-alt {
  background: var(--bg-alt);
}
.section-narrow {
  max-width: 920px;
  margin: 0 auto;
}
.section-medium {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

h1,
h2,
h3 {
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.15;
}
h2 {
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.2;
}
h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
}

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

p {
  color: var(--text-body);
  line-height: 1.7;
  font-size: 17px;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid oklch(80% 0.01 80);
  color: oklch(25% 0.01 80);
  font-weight: 600;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

/* Chips (subject toggles) */
.chip {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-input);
  background: white;
  color: oklch(30% 0.01 80);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}
.card-alt {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 22px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.card p,
.card-alt p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}
.grid-auto-220 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid-auto-240 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-auto-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-2 {
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--section-pad-x);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: oklch(98% 0.006 80 / 0.94);
  backdrop-filter: blur(8px);
  z-index: 50;
  flex-wrap: wrap;
  gap: 12px;
}
.site-header.header-overlay {
  position: absolute;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  top: 0;
  left: 0;
  right: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.brand-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}
.header-overlay .brand-name,
.header-overlay .brand-name em {
  color: white;
}
.header-overlay .brand img {
  height: 36px;
  width: 36px;
}
.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: oklch(30% 0.01 80);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}
.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover {
  color: var(--accent-tint-2);
}
.main-nav .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
}

/* Homepage hero */
.hero-photo {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  align-items: flex-start;
}
.hero-photo img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero-photo .hero-scrim-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(15% 0.02 40 / 0.7) 0%, oklch(15% 0.02 40 / 0.25) 38%, transparent 60%);
  z-index: 1;
}
.hero-photo .hero-scrim-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(15% 0.02 40 / 0.55) 0%, transparent 30%);
  z-index: 1;
}
.hero-photo-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: clamp(96px, 12vw, 120px) var(--section-pad-x) clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
.hero-card {
  max-width: 340px;
  background: oklch(15% 0.02 40 / 0.42);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 22px);
}
.hero-card .eyebrow {
  font-size: 11.5px;
  color: var(--accent-tint);
  margin-bottom: 10px;
}
.hero-card h1 {
  font-size: clamp(21px, 2.6vw, 28px);
  color: white;
  margin: 0 0 10px;
}
.hero-card p {
  font-size: 13.5px;
  color: oklch(94% 0.01 80);
  margin: 0 0 16px;
  line-height: 1.5;
}
.hero-location-badge {
  background: oklch(98% 0.006 80 / 0.95);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.2);
  white-space: nowrap;
}

.feature-strip {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  justify-content: center;
  padding: 22px var(--section-pad-x);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: oklch(35% 0.01 80);
}
.feature-strip-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(60% 0.14 60);
}

/* Simple text hero (inner pages) */
.hero-simple {
  padding: clamp(40px, 7vw, 80px) var(--section-pad-x) clamp(32px, 5vw, 56px);
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-simple .lede {
  margin: 0 0 28px;
}
.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.photo-rounded {
  width: 100%;
  height: clamp(280px, 36vw, 420px);
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* Step / numbered path */
.step {
  text-align: center;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 18px;
}
.step h3 {
  margin: 0 0 10px;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item.aspect {
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(to top, oklch(0% 0 0 / 0.55), transparent);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
}
.gallery-grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 10px;
}
.gallery-grid-asymmetric .span-2-col {
  grid-column: span 2;
}
.gallery-grid-asymmetric .span-2-row {
  grid-row: span 2;
}

/* Testimonial */
.testimonial-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.testimonial-photo img {
  width: 100%;
  height: clamp(300px, 32vw, 420px);
  object-fit: cover;
}
.testimonial-photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: oklch(98% 0.006 80 / 0.95);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
}
.pull-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  margin: 0 0 24px;
  color: oklch(25% 0.01 80);
}

/* Dark editorial section (Renzo, KASA page) */
.section-dark {
  padding: clamp(56px, 9vw, 110px) var(--section-pad-x);
  background: var(--overlay-dark);
  color: white;
}
.section-dark .eyebrow {
  color: var(--accent-tint-dark);
  text-align: center;
}
.section-dark .pull-quote {
  color: white;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.45;
  margin: 0 0 40px;
}
.section-dark p {
  color: oklch(88% 0.01 80);
  font-size: 15.5px;
  line-height: 1.75;
}

/* Pricing */
.pricing-badge {
  background: var(--accent);
  color: white;
  display: inline-block;
  padding: 20px 40px;
  border-radius: 18px;
  margin-bottom: 24px;
}
.pricing-badge .amount {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
}
.pricing-badge .period {
  font-size: 13.5px;
  opacity: 0.9;
  font-weight: 600;
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 14px;
  color: var(--text-body-2);
  margin-top: 4px;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: oklch(28% 0.01 80);
}
.checklist-item::before {
  content: '✓';
  color: var(--accent);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-strong);
  padding: 4px 0;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 18px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-answer {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 18px;
  padding: 0 4px;
}
.faq-answer[hidden] {
  display: none;
}

/* Form */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-field .optional {
  font-weight: 500;
  color: oklch(50% 0.01 80);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-input);
  font-size: 15px;
  background: white;
}
.form-field input[aria-invalid="true"] {
  border-color: var(--accent);
}
.form-field textarea {
  resize: vertical;
}
.field-error {
  font-size: 12.5px;
  color: var(--accent);
  margin-top: 5px;
}
.field-error[hidden] {
  display: none;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.form-progress-bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border-strong);
}
.form-progress-bar.filled {
  background: var(--accent);
}

.form-confirmation {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
}
.form-confirmation .check {
  font-size: 40px;
  margin-bottom: 12px;
}
.form-confirmation h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.form-confirmation p {
  font-size: 15px;
  color: var(--text-body-2);
  line-height: 1.6;
  margin: 0 0 24px;
}
.form-confirmation-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}
.form-confirmation-links a {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: oklch(32% 0.01 80);
}
.form-confirmation-links .btn {
  margin-top: 8px;
}
.form-submit-error {
  font-size: 13.5px;
  color: var(--accent);
  text-align: center;
  margin: 0;
}
.form-submit-error[hidden] {
  display: none;
}

.form-messenger-note {
  text-align: center;
  margin-top: 20px;
}
.form-messenger-note p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* CTA band */
.cta-band {
  padding: clamp(56px, 9vw, 110px) var(--section-pad-x);
  background: var(--accent);
  text-align: center;
}
.cta-band .eyebrow {
  color: oklch(92% 0.04 25);
}
.cta-band h2 {
  color: white;
  margin: 0 0 18px;
}
.cta-band p {
  color: oklch(94% 0.02 25);
  margin: 0 0 32px;
}
.cta-band .btn-primary {
  background: white;
  color: var(--accent);
}
.cta-band .btn-primary:hover {
  background: oklch(94% 0.02 25);
  color: var(--accent);
}

/* Renzo "in his own words" callout */
.callout {
  padding: clamp(48px, 6vw, 72px) var(--section-pad-x);
  background: var(--bg-alt);
  max-width: 900px;
  margin: 0 auto clamp(48px, 8vw, 96px);
  border-radius: 24px;
}

/* Footer */
.site-footer {
  padding: clamp(36px, 5vw, 56px) var(--section-pad-x);
  border-top: 1px solid var(--border);
}
.footer-columns {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer-columns a {
  text-decoration: none;
  color: inherit;
}
.footer-col-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--accent);
}
.footer-col-value {
  font-size: 14.5px;
  color: var(--text-body);
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}
.footer-brand span {
  font-weight: 800;
  font-size: 14px;
}
.footer-copy {
  font-size: 13.5px;
  color: var(--text-muted-2);
}

.footer-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--text-body);
}
.footer-row a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.footer-row-schedule {
  font-weight: 600;
}

/* Sticky mobile bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -4px 16px oklch(0% 0 0 / 0.08);
  z-index: 60;
}
.sticky-bar[hidden] {
  display: none;
}
.sticky-bar .btn {
  flex: 1;
  padding: 13px;
  font-size: 14px;
}
