/* ============================================
   Clevermind Academy — v2 design
   ============================================ */

:root {
  --ink: #16112E;
  --paper: #FFFAF3;
  --text: #16112E;
  --muted: #5E5A78;

  /* brand blue + grey are taken straight from the Clevermind logo */
  --blue: #3255F1;
  --blue-deep: #1F3ACF;
  --grey: #545454;
  --lav: #B3BDFF;
  --lav-soft: #EAEDFF;
  --yellow: #FFD23F;
  --yellow-soft: #FFE896;
  --blue-soft: #7C8FFF;
  /* legacy accent names kept on-palette so nothing can fall outside blue/yellow */
  --orange: #FFD23F;
  --pink: #FFD23F;
  --green: #3255F1;
  --lime: #FFD23F;

  --display: 'Archivo', 'Noto Sans Georgian', system-ui, sans-serif;
  --body: 'Inter', 'Noto Sans Georgian', system-ui, sans-serif;

  --r-lg: 32px;
  --r-xl: 44px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 72%;
  line-height: .95;
  letter-spacing: -.01em;
}
html[lang="en"] .display { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); }
/* primary call-to-action: brand blue, turns yellow on hover / press */
.btn-dark { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(50, 85, 241, .30); }
.btn-dark:hover,
.btn-dark:focus-visible { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(255, 210, 63, .45); }
.btn-dark:active { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }

.btn-ghost { background: #fff; border: 2px solid var(--blue); color: var(--blue); }
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn-ghost:active { background: var(--yellow); border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.btn-lime { background: var(--yellow); color: var(--ink); }
.btn-sm { padding: 12px 22px; font-size: .92rem; }

/* section eyebrow — soft brand-blue pill, same family as the marker below it */
.tag-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lav-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: 9px 18px;
  border-radius: 999px;
}
.tag-dark::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ---------- Announcement ---------- */
.announcement-bar {
  position: relative;
  z-index: 101;
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: .86rem;
  font-weight: 600;
}
.announcement-bar a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav-wrap { position: sticky; top: 12px; z-index: 100; padding: 0 12px; margin-top: 12px; }
.pill-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(22, 17, 46, .06);
  box-shadow: 0 8px 30px rgba(22, 17, 46, .08);
}
/* blur lives on a pseudo-element so the fixed mobile menu keeps the viewport as its containing block */
.pill-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: -1;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.site-footer .brand img { height: 34px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark strong { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.15rem; }
.wordmark span { font-size: .58rem; letter-spacing: .26em; font-weight: 600; color: var(--muted); }

.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .2s; }
.nav-links a:hover { background: var(--lav-soft); }
.nav-links a.active { background: var(--blue); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: flex; background: var(--lav-soft); border-radius: 999px; padding: 3px; }
.lang-toggle button { font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 999px; color: var(--muted); }
.lang-toggle button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(22, 17, 46, .12); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 12px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 92px; left: 12px; right: 12px;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(22, 17, 46, .18);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; padding: 14px 18px; }
  .nav-toggle { display: flex; }
  .desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: -80px;
  padding: 150px 0 110px;
  background: linear-gradient(120deg, #FFF6E3 0%, #EDF0FF 52%, #E3E8FF 100%);
  overflow: hidden;
}
.squiggle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.squiggle path { fill: none; stroke: var(--blue); stroke-width: 2; opacity: .35; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3s .4s ease forwards; }
.squiggle circle { fill: #fff; stroke: var(--blue); stroke-width: 2; opacity: .6; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-title { font-size: clamp(3rem, 7.2vw, 6.4rem); margin: 24px 0 26px; overflow-wrap: break-word; }
html[lang="ka"] .hero-title { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.02; }
.hero-title > span { display: block; animation: rise .9s var(--ease) both; }
.hero-title > span:nth-child(2) { animation-delay: .1s; }
.hero-title > span:nth-child(3) { animation-delay: .2s; }
/* marker block: brand blue at rest, flips to yellow on hover — same pair as the buttons */
.hl {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: .02em .16em .06em;
  border-radius: .18em;
  transform: rotate(-2deg);
  box-shadow: 0 10px 0 -4px rgba(22, 17, 46, .85);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.hero-title:hover .hl { background: var(--yellow); color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

.hero-lead { font-size: 1.1rem; max-width: 540px; }
.grad-bar { width: 260px; height: 6px; border-radius: 9px; margin: 28px 0; background: linear-gradient(90deg, var(--blue), var(--blue-soft) 40%, var(--yellow)); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-left: auto; }
.hero-art .blob { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE9B8, #DCE3FF 55%, #C9D3FF 100%); }
.photo-tile {
  position: absolute;
  inset: 11% 9% 11% 13%;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 30px 60px rgba(22, 17, 46, .22);
  transform: rotate(2deg);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(22, 17, 46, .18);
  animation: bob 5s ease-in-out infinite;
}
.chip-yellow { background: var(--yellow); }
.chip-dark { background: var(--ink); color: #fff; }
.chip-lav { background: var(--lav); }
.hero-art .c1 { top: 5%; left: 0; }
.hero-art .c2 { top: 46%; right: -3%; animation-delay: -1.6s; }
.hero-art .c3 { bottom: 3%; left: 26%; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.burst { position: absolute; z-index: 4; width: 128px; aspect-ratio: 1; display: grid; place-items: center; }
.burst i { position: absolute; inset: 0; background: var(--yellow); border-radius: 16px; animation: spin 20s linear infinite; }
.burst i:nth-child(2) { rotate: 30deg; }
.burst i:nth-child(3) { rotate: 60deg; }
.burst b { position: relative; z-index: 1; text-align: center; color: var(--ink); font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 2rem; line-height: 1; transform: rotate(-8deg); }
.burst b small { display: block; font-family: var(--body); font-size: .72rem; font-weight: 700; margin-top: 4px; }
.burst.yellow i { background: var(--yellow); }
.burst.yellow b { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .burst { top: -1%; right: 4%; }

.tag-sticker {
  position: absolute;
  z-index: 4;
  left: -4%;
  top: 56%;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.1;
  transform: rotate(-8deg);
  box-shadow: 0 12px 26px rgba(50, 85, 241, .35);
}
.tag-sticker strong { display: block; font-family: var(--display); font-stretch: 80%; font-size: 1.9rem; }

.smiley {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 2%;
  width: 24%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border-radius: 30%;
  transform: rotate(10deg);
  box-shadow: 0 14px 28px rgba(22, 17, 46, .2);
}
.smiley svg { width: 68%; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  margin: -34px -40px 0;
  padding: 22px 0;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; white-space: nowrap; }
html[lang="en"] .marquee span { text-transform: uppercase; }
.marquee .alt { color: var(--yellow); }
.marquee i { font-style: normal; color: var(--yellow); font-size: 1.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0 0; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); max-width: 16ch; color: var(--blue); }
html[lang="ka"] .sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.02; max-width: none; }

/* Course tiles */
.course-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ctile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.ctile:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 30px 60px rgba(22, 17, 46, .18); }
.t-yellow { background: var(--yellow); }
.t-blue { background: var(--blue); color: #fff; }
.t-lav { background: var(--lav); }
.ctile-photo { margin: 14px 14px 0; border-radius: 30px; overflow: hidden; aspect-ratio: 1 / .88; }
.ctile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ctile:hover .ctile-photo img { transform: scale(1.05); }
.ctile-art {
  position: relative;
  display: grid;
  place-items: center;
  background-color: #C6D0FF;
  background-image: radial-gradient(rgba(22, 17, 46, .16) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.ctile-art svg { width: 58%; transition: transform .5s var(--ease); }
.ctile:hover .ctile-art svg { transform: rotate(-6deg) scale(1.05); }
.ctile-art .mini { position: absolute; background: #fff; font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(22, 17, 46, .12); }
.ctile-art .m1 { top: 14%; left: 10%; transform: rotate(-6deg); }
.ctile-art .m2 { bottom: 14%; right: 10%; transform: rotate(5deg); background: var(--ink); color: var(--lime); }

.ctile-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 26px 26px; }
.age-chip { align-self: flex-start; background: rgba(255, 255, 255, .72); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px; }
.t-blue .age-chip { background: rgba(255, 255, 255, .18); color: #fff; }
.ctile h3 { font-size: clamp(2rem, 2.7vw, 2.7rem); }
html[lang="ka"] .ctile h3 { font-size: clamp(1.7rem, 2.3vw, 2.25rem); line-height: 1.05; }
.ctile p { color: inherit; opacity: .82; }
.go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.go .arr { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 1.3rem; transition: transform .35s var(--ease); }
.t-blue .go .arr { background: #fff; color: var(--blue); }
.ctile:hover .arr { transform: rotate(-45deg); }

.soon-line { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; background: #fff; border: 1.5px dashed var(--lav); padding: 10px 18px; border-radius: 999px; }
.soon-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
  grid-template-areas:
    "a a b c"
    "a a d d"
    "e f g g";
}
.b { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px; border-radius: var(--r-lg); overflow: hidden; }
.b-a { grid-area: a; } .b-b { grid-area: b; } .b-c { grid-area: c; } .b-d { grid-area: d; }
.b-e { grid-area: e; } .b-f { grid-area: f; } .b-g { grid-area: g; }
.b-photo { padding: 0; }
.b-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.b-photo:hover img { transform: scale(1.04); }
.b-green { background: var(--blue); color: #fff; }
.b-pink { background: var(--yellow); color: var(--ink); }
.b-orange { background: var(--ink); color: #fff; }
.b-lav { background: var(--lav); }
.b .big { font-size: clamp(3.4rem, 5.6vw, 5.2rem); line-height: .85; margin-bottom: auto; }
.b h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.b p { color: inherit; opacity: .88; font-size: .95rem; }
.b .face { width: 78px; margin-bottom: auto; }
.cap { position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px; }

/* Big CTA */
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px);
}
.cta-box .squiggle path { stroke: var(--yellow); opacity: .7; }
.cta-box .squiggle circle { fill: var(--ink); stroke: var(--yellow); }
.cta-box h2 { position: relative; z-index: 1; font-size: clamp(3rem, 8vw, 7.4rem); color: var(--lav); max-width: 11ch; }
html[lang="ka"] .cta-box h2 { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1.02; }
.cta-box p { position: relative; z-index: 1; color: rgba(255, 255, 255, .75); max-width: 480px; margin: 22px 0 32px; font-size: 1.1rem; }
.cta-box .btn { position: relative; z-index: 1; }
.cta-box .burst { top: 9%; right: 6%; width: 156px; }
.cta-box .burst b { font-size: 1.05rem; font-family: var(--body); font-weight: 800; font-stretch: 100%; max-width: 110px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 120px; padding: 80px 0 0; background: var(--ink); color: rgba(255, 255, 255, .72); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .wordmark strong { color: #fff; }
.site-footer .wordmark span { color: rgba(255, 255, 255, .5); }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 300px; color: rgba(255, 255, 255, .6); }
.footer-col h4 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: .92rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--yellow); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: .84rem; }
.footer-big { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(4rem, 17vw, 15rem); line-height: .78; color: rgba(255, 255, 255, .06); white-space: nowrap; text-align: center; margin-bottom: -.08em; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .squiggle path { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin: 20px auto 0; max-width: 520px; }
  .course-tiles { grid-template-columns: 1fr 1fr; }
  .course-tiles .ctile:last-child { grid-column: 1 / -1; min-height: 0; flex-direction: row; }
  .course-tiles .ctile:last-child .ctile-photo { flex: 1; margin: 14px; aspect-ratio: auto; min-height: 320px; }
  .course-tiles .ctile:last-child .ctile-body { flex: 1; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d" "e f" "g g"; grid-auto-rows: 230px; }
  .b-a { grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 130px 0 90px; }
  .hero-art .chip { padding: 9px 16px; font-size: .88rem; }
  .hero-art .burst { width: 100px; }
  .hero-art .burst b { font-size: 1.5rem; }
  .tag-sticker { left: 0; padding: 10px 14px; }
  .tag-sticker strong { font-size: 1.5rem; }
  .section { padding-top: 90px; }
  .course-tiles { grid-template-columns: 1fr; }
  .course-tiles .ctile:last-child { flex-direction: column; }
  .course-tiles .ctile:last-child .ctile-photo { flex: none; margin: 14px 14px 0; aspect-ratio: 1 / .88; min-height: 0; }
  .ctile { min-height: 0; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; grid-auto-rows: auto; }
  .b-a { grid-row: auto; }
  .b { min-height: 220px; }
  .b-photo { height: 280px; }
  .cta-box .burst { position: relative; top: auto; right: auto; margin-bottom: 20px; width: 128px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- small-screen fixes: keep everything inside the viewport --- */
.hero-grid > *, .course-tiles > *, .bento > *, .footer-grid > * { min-width: 0; }
.ctile h3, .b h3, .ctile p { overflow-wrap: break-word; }

@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; padding: 15px 22px; font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-lead { font-size: 1.02rem; }
  .hero-art { max-width: 100%; }
  .hero-art .c1 { left: 0; }
  .hero-art .c2 { right: 0; }
  .hero-art .c3 { left: 16%; }
  .hero-art .burst { right: 0; }
  .tag-sticker { left: 0; }
  .smiley { right: 0; bottom: 0; }
  .marquee { margin-inline: -20px; }
  .announcement-bar { font-size: .78rem; }
}

@media (max-width: 380px) {
  .brand .wordmark { display: none; }
  .pill-nav { padding: 8px 8px 8px 14px; }
  .lang-toggle button { padding: 7px 10px; }
}

/* ============================================
   Inner pages — about / courses / contact
   ============================================ */
.page-hero {
  position: relative;
  margin-top: -80px;
  padding: 170px 0 90px;
  background: linear-gradient(120deg, #FFF6E3 0%, #EDF0FF 52%, #E3E8FF 100%);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin: 22px 0; max-width: 16ch; }
html[lang="ka"] .page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.04; max-width: 22ch; }
.page-hero p { font-size: 1.12rem; max-width: 640px; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(22, 17, 46, .08); transition: background .25s, transform .25s var(--ease); }
.jump a:hover { background: var(--yellow); transform: translateY(-2px); }
.jump .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* course blocks */
.course-block { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; scroll-margin-top: 110px; }
.course-block.flip .cb-media { order: 2; }
.cb-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1.02; box-shadow: 0 30px 60px rgba(22, 17, 46, .16); }
.cb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cb-media:hover img { transform: scale(1.04); }
.cb-media.f-yellow { border: 10px solid var(--yellow); }
.cb-media.f-blue { border: 10px solid var(--blue); }
.cb-media.f-lav { border: 10px solid var(--lav); }
.cb-art { display: grid; place-items: center; background-color: #C6D0FF; background-image: radial-gradient(rgba(22, 17, 46, .16) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.cb-art svg { width: 56%; transition: transform .5s var(--ease); }
.cb-art:hover svg { transform: rotate(-6deg) scale(1.05); }
.cb-tag { position: absolute; left: 20px; bottom: 20px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 18px rgba(22, 17, 46, .14); }

.cb-body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-s { font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px; background: var(--lav-soft); color: var(--blue); }
.chip-s.on { background: var(--yellow); color: var(--ink); }
.cb-body h2 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); color: var(--blue); margin-bottom: 18px; }
html[lang="ka"] .cb-body h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; }
.cb-body .lead { font-size: 1.05rem; margin-bottom: 24px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-bottom: 26px; }
.checks li { display: flex; gap: 10px; font-size: .95rem; color: var(--text); }
.checks li::before { content: '✓'; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: .72rem; font-weight: 800; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pills > span { background: #fff; border: 1.5px solid var(--lav-soft); font-size: .86rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* curriculum */
.modules-head { margin: 72px 0 22px; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--blue); }
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.modules.six { grid-template-columns: repeat(3, 1fr); }
.module { background: #fff; border: 1.5px solid var(--lav-soft); border-radius: var(--r-lg); padding: 26px; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.module:hover { transform: translateY(-6px); background: var(--yellow); border-color: var(--yellow); }
.module .num { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--blue); }
.module .wk { display: inline-block; margin: 12px 0 10px; font-size: .78rem; font-weight: 700; background: var(--lav-soft); color: var(--blue); padding: 5px 12px; border-radius: 999px; transition: background .3s; }
.module:hover .wk { background: #fff; }
.module h4 { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.25rem; line-height: 1.12; margin-bottom: 8px; }
.module p { font-size: .92rem; transition: color .3s; }
.module:hover p { color: var(--ink); }

.outcomes { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.outcome { border-radius: var(--r-lg); padding: 30px; color: #fff; }
.outcome.o-blue { background: var(--blue); }
.outcome.o-ink { background: var(--ink); }
.outcome h4 { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.35rem; margin-bottom: 10px; }
.outcome p { color: rgba(255, 255, 255, .84); }

/* coming soon */
.soon-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.soon-card2 { position: relative; background: #fff; border: 2px dashed var(--lav); border-radius: var(--r-lg); padding: 30px; }
.soon-card2 .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: var(--lav-soft); margin-bottom: 16px; }
.soon-card2 .badge { position: absolute; top: 22px; right: 22px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .75rem; padding: 5px 12px; border-radius: 999px; }
.soon-card2 h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; }
.soon-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .sec-head { margin-bottom: 24px; }
.split p + p { margin-top: 16px; }
.split-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3.3; border: 10px solid var(--yellow); box-shadow: 0 30px 60px rgba(22, 17, 46, .16); transform: rotate(-1.5deg); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { display: flex; flex-direction: column; min-height: 290px; padding: 28px; border-radius: var(--r-lg); transition: transform .3s var(--ease); }
.value:hover { transform: translateY(-6px) rotate(-.6deg); }
.value .letter { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 4.4rem; line-height: .9; margin-bottom: auto; }
.value h3 { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin: 18px 0 8px; }
.value p { color: inherit; opacity: .86; font-size: .94rem; }
.v-blue { background: var(--blue); color: #fff; }
.v-yellow { background: var(--yellow); color: var(--ink); }
.v-ink { background: var(--ink); color: #fff; }
.v-lav { background: var(--lav); color: var(--ink); }

.loc-card { background: #fff; border-radius: var(--r-xl); padding: 30px; box-shadow: 0 20px 50px rgba(22, 17, 46, .08); }
.loc-card h3 { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.6rem; color: var(--blue); margin-bottom: 8px; }
.map { margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--lav-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { background: #fff; border: 1.5px solid var(--lav-soft); border-radius: var(--r-lg); padding: 32px; text-align: center; transition: transform .3s var(--ease), border-color .3s; }
.member:hover { transform: translateY(-6px); border-color: var(--yellow); }
.member .avatar { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--lav-soft); }

.member h3 { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.35rem; }
.member span { color: var(--blue); font-weight: 700; font-size: .9rem; }

/* contact */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.info-card { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 34px; }
.info-card h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.9rem; margin-bottom: 18px; }
.info-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.info-row .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(255, 255, 255, .08); }
.info-row strong { display: block; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .55); margin-bottom: 2px; }
.info-row a, .info-row span { color: #fff; font-weight: 600; }
.info-row a:hover { color: var(--yellow); }
.info-card .footer-social { margin-top: 0; }

.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); box-shadow: 0 24px 60px rgba(22, 17, 46, .1); }
.form-card h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; color: var(--blue); }
.form-card > p { margin: 10px 0 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--text);
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid #E3E6F5; background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(50, 85, 241, .14); }
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: wait; }
.form-note { text-align: center; font-size: .84rem; margin-top: 14px; }
.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.form-status.success { display: block; background: var(--lav-soft); color: var(--blue); }
.form-status.error { display: block; background: #FDECEC; color: #B42318; }

.course-block > *, .split > *, .contact-wrap > *, .modules > *, .values > *, .team > * { min-width: 0; }

@media (max-width: 1024px) {
  .course-block, .split, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .course-block.flip .cb-media { order: 0; }
  .cb-media { aspect-ratio: 4 / 3; }
  .modules, .modules.six, .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 140px 0 70px; }
  .checks, .outcomes, .form-row, .soon-cards, .modules, .modules.six, .values, .team { grid-template-columns: 1fr; }
  .value { min-height: 0; }
  .value .letter { margin-bottom: 18px; }
  .split-photo { transform: none; }
  .cb-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Copy blocks for the team's own texts
   ============================================ */
.hero-lead + .hero-lead2 { margin-top: 14px; font-size: 1rem; }

.why-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; margin: -8px 0 56px; }
.why-lead { font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.35; font-weight: 700; color: var(--ink); }
.why-copy p + p { margin-top: 14px; }
.why-copy p:last-child { color: var(--blue); font-weight: 700; }

.sec-lead { max-width: 780px; font-size: 1.1rem; margin: -18px 0 34px; }

.story-copy .tag-dark { margin-bottom: 22px; }
.story-copy p + p { margin-top: 14px; }
.story-accent { font-size: 1.25rem; font-weight: 700; color: var(--blue); }

.dev-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dev-item { background: #fff; border: 1.5px solid var(--lav-soft); border-radius: var(--r-lg); padding: 24px; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.dev-item:hover { transform: translateY(-6px); background: var(--yellow); border-color: var(--yellow); }
.dev-num { display: block; font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.dev-item h3 { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.15rem; line-height: 1.15; margin-bottom: 8px; }
.dev-item p { font-size: .92rem; transition: color .3s; }
.dev-item:hover p { color: var(--ink); }

.values.six { grid-template-columns: repeat(3, 1fr); }
.values.six .value { min-height: 260px; }

.team-copy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; margin-bottom: 40px; }
.team-copy p + p { margin-top: 14px; }

.quote-block { text-align: center; }
.quote-block .qmark { display: block; font-family: var(--display); font-weight: 800; font-size: 6rem; line-height: .7; color: var(--yellow); }
.quote-block blockquote { font-size: clamp(2rem, 4.6vw, 4rem); color: var(--blue); max-width: 20ch; margin: 0 auto 32px; }
html[lang="ka"] .quote-block blockquote { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.08; max-width: 26ch; }

/* smaller dark closing box (courses page) */
.cta-box.compact { padding: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.cta-box.compact h2 { grid-column: 1; font-size: clamp(1.9rem, 3.6vw, 3.2rem); max-width: 22ch; }
html[lang="ka"] .cta-box.compact h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.08; }
.cta-box.compact p { grid-column: 1; margin: 0; max-width: 640px; font-size: 1rem; }
.cta-box.compact .btn { grid-column: 2; grid-row: 1 / span 2; }

.why-intro > *, .team-copy > *, .dev-list > *, .cta-box.compact > * { min-width: 0; }

@media (max-width: 1024px) {
  .why-intro, .team-copy { grid-template-columns: 1fr; gap: 20px; }
  .dev-list { grid-template-columns: repeat(2, 1fr); }
  .values.six { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dev-list, .values.six { grid-template-columns: 1fr; }
  .cta-box.compact { grid-template-columns: 1fr; }
  .cta-box.compact .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* values: no decorative initials — title on top, text below (same feel as the home colour blocks) */
.values.six .value { justify-content: flex-start; min-height: 230px; }
.values.six .value h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
html[lang="ka"] .values.six .value h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.14; }
.values.six .value p { font-size: .95rem; }

/* ---------- Parent reviews (homepage, hidden until real quotes exist) ---------- */
[hidden] { display: none !important; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { position: relative; display: flex; flex-direction: column; margin: 0; padding: 34px 30px 28px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--lav-soft); transition: transform .3s var(--ease); }
.review:hover { transform: translateY(-6px) rotate(-.4deg); }
.review .rq { font-family: var(--display); font-weight: 800; font-size: 4.6rem; line-height: .6; color: var(--yellow); margin-bottom: 14px; }
.review blockquote { margin: 0 0 26px; font-size: 1.08rem; line-height: 1.6; color: var(--text); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; }
.rv-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lav-soft); font-size: 1.2rem; }
.review.rv-blue { background: var(--blue); border-color: var(--blue); }
.review.rv-blue blockquote, .review.rv-blue figcaption { color: #fff; }
.review.rv-blue .rv-av { background: rgba(255, 255, 255, .18); }
.review.rv-yellow { background: var(--yellow); border-color: var(--yellow); }
.review.rv-yellow .rq { color: var(--blue); }
.review.rv-yellow .rv-av { background: rgba(255, 255, 255, .6); }
.reviews > * { min-width: 0; }
@media (max-width: 1024px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* founder card (single card until mentor profiles are ready) */
.team.solo { grid-template-columns: minmax(0, 380px); }
.avatar.initials { background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 2.4rem; letter-spacing: .02em; }
.member.founder:hover .avatar.initials { background: var(--yellow); color: var(--ink); }
.member.founder .avatar { transition: background .3s, color .3s; }

/* team of four — initials in brand colours until photos arrive */
.team.four { grid-template-columns: repeat(4, 1fr); }
.member .avatar.av-blue   { background: var(--blue);   color: #fff; }
.member .avatar.av-yellow { background: var(--yellow); color: var(--ink); }
.member .avatar.av-ink    { background: var(--ink);    color: #fff; }
.member .avatar.av-lav    { background: var(--lav);    color: var(--ink); }
.member .avatar.initials  { transition: transform .3s var(--ease); }
.member:hover .avatar.initials { transform: rotate(-8deg) scale(1.05); }
@media (max-width: 1024px) { .team.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .team.four { grid-template-columns: 1fr; } }

/* team of five */
.team.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.team.five .member { padding: 28px 18px; }
.team.five .member .avatar { width: 96px; height: 96px; }
.member .avatar.av-soft { background: var(--blue-soft); color: #fff; }
@media (max-width: 1024px) { .team.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .team.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .team.five { grid-template-columns: 1fr; } }
.member h3 { line-height: 1.2; margin-bottom: 6px; }
.member span { display: block; line-height: 1.35; }

/* team of six — two rows of three */
.team.six { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .team.six { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team.six { grid-template-columns: 1fr; } }

/* language switch as links (static bilingual pages) */
.lang-toggle a { display: inline-block; font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-toggle a.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(22, 17, 46, .12); }

/* team: space reserved for a real photo (swap .photo-slot for an <img> when photos arrive) */
.avatar.photo-slot { background: var(--lav-soft); display: grid; place-items: center; }
.avatar.photo-slot svg { width: 46%; fill: var(--blue); opacity: .38; }
.member:hover .avatar.photo-slot { background: var(--yellow); }
.member:hover .avatar.photo-slot svg { fill: var(--ink); opacity: .5; }
.member img.avatar { object-fit: cover; }

.member img.avatar { display: block; margin: 0 auto 16px; object-fit: cover; }
