/* ============================================================
   Creativity Castle Group — Shared Stylesheet
   ============================================================ */

:root {
  /* Brand palette */
  --navy: #1A1F4D;
  --navy-soft: #2B3169;
  --pink: #EC5195;
  --pink-dark: #D63A7C;
  --orange: #F2994A;
  --orange-dark: #DC7F2E;
  --purple: #3B2A6B;
  --cream: #F8F1EB;
  --cream-dark: #F1E5DA;
  --ink: #262B4A;
  --muted: #6A6F8F;
  --white: #FFFFFF;
  --line: #E8E3DC;

  /* Page accent — overridden per brand page */
  --accent: var(--pink);
  --accent-dark: var(--pink-dark);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 30px rgba(26, 31, 77, 0.08);
  --shadow-soft: 0 6px 18px rgba(26, 31, 77, 0.06);

  --container: 1180px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: "Baloo 2", "Inter", sans-serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}
p { margin: 0 0 1em; }
section { position: relative; }

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

/* -------------------- Type scale -------------------- */
.eyebrow {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}
.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  backdrop-filter: blur(2px);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand img { width: 42px; height: 42px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 8px 2px;
}
.nav-links a.nav-link.is-active { color: var(--accent); }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.dropdown a:hover { background: var(--cream); color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }
.nav-toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-open span { opacity: 0; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 73px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a.nav-link { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .has-dropdown > a::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 0 0 6px 14px; display: none;
    background: transparent;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav-cta { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy p.lede { margin-bottom: 30px; }
.hero-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero.hero-full .container { grid-template-columns: 1fr; }
.hero.hero-full .hero-media {
  aspect-ratio: 21 / 9;
}
.hero.hero-full .hero-copy { max-width: 720px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* Placeholder illustration blocks (stand-in for client photography) */
.ph-media {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 20px;
}
.ph-media::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ph-bg, linear-gradient(135deg, var(--pink), var(--purple)));
  opacity: 0.94;
}
.ph-media .ph-label {
  position: relative;
  z-index: 1;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  max-width: 220px;
  opacity: 0.92;
}
.ph-media svg { position: relative; z-index: 1; width: 34%; height: auto; opacity: 0.9; margin-bottom: 10px; }
.ph-media.ph-cream::before { background: var(--cream-dark); }
.ph-media.ph-cream { color: var(--navy); }
.ph-media.ph-cream .ph-label { opacity: 0.75; }

/* -------------------- Brand / feature cards -------------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.brand-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.brand-card .icon-mark { margin-bottom: 14px; }
.brand-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.brand-card a.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem; color: var(--accent);
  margin-top: 10px;
}

.icon-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.icon-mark svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-mark.accent svg { stroke: var(--accent); }
.icon-mark.orange svg { stroke: var(--orange); }
.icon-mark.purple svg { stroke: var(--purple); }

/* feature list (icon + label, no card bg) */
.feature-grid {
  display: grid;
  gap: 26px;
}
.feature {
  text-align: center;
}
.feature .icon-mark { margin: 0 auto 12px; background: var(--cream); }
.feature h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.feature p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* -------------------- Sections / bands -------------------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section.bg-cream { background: var(--cream); }
.section.bg-navy { background: var(--navy); color: rgba(255,255,255,0.92); }
.section.bg-navy h2, .section.bg-navy h3 { color: var(--white); }
.section.bg-navy .lede { color: rgba(255,255,255,0.72); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: -1; }
  .split-media { order: -1; }
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
}

/* Quote / banner card */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.quote-card p {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0;
}
.quote-card .quote-mark {
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 0.5;
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, serif;
}

.banner {
  border-radius: var(--radius-lg);
  padding: 54px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy), var(--purple));
}
.banner h2 { color: var(--white); }
.banner p.lede { color: rgba(255,255,255,0.78); }
.banner-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .banner { padding: 34px; } .banner-split { grid-template-columns: 1fr; } }

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}
@media (max-width: 700px) { .value-row { grid-template-columns: 1fr; } }
.value-item { text-align: center; }
.value-item .icon-mark { margin: 0 auto 12px; background: rgba(255,255,255,0.1); }
.value-item .icon-mark svg { stroke: var(--white); }
.value-item h4 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.value-item p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin: 0; }

/* -------------------- Program / service cards -------------------- */
.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.program-card .program-media { aspect-ratio: 4/3; }
.program-card .program-body { padding: 18px; }
.program-card h4 { margin-bottom: 6px; font-size: 1.02rem; }
.program-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.round-program {
  text-align: center;
}
.round-program .program-media {
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  width: 92px; height: 92px;
}
.round-program h4 { font-size: 0.92rem; margin: 0; }

.service-card { background: var(--cream); border-radius: var(--radius-md); overflow: hidden; }
.service-card .program-media { aspect-ratio: 5/4; }
.service-card .program-body { padding: 16px 18px 20px; }

/* -------------------- Certification badges -------------------- */
.cert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
}
.cert-card .icon-mark { margin: 0 auto 14px; width: 60px; height: 60px; background: var(--cream); }
.cert-card .icon-mark svg { width: 30px; height: 30px; }
.cert-card h4 { font-size: 0.98rem; margin-bottom: 4px; }
.cert-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

.cert-detail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.cert-detail:first-of-type { border-top: none; }
.cert-detail .icon-mark { flex-shrink: 0; background: var(--cream); }

/* -------------------- Testimonials -------------------- */
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.testi-track::-webkit-scrollbar { height: 6px; }
.testi-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.testi-card {
  scroll-snap-align: start;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.testi-card p.testi-text {
  font-size: 0.92rem;
  color: var(--ink);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testi-card .testi-name {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-top: 10px;
}
.testi-nav { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.testi-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.testi-nav button:hover { background: var(--cream); }
.testi-nav svg { width: 16px; height: 16px; }

/* -------------------- Projects page -------------------- */
.project-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 20px 22px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.project-tile:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.project-logo {
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.play-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.play-badge svg { width: 15px; height: 15px; margin-left: 2px; fill: var(--white); stroke: none; }
.project-tile .tile-name { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

/* Video modal */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(26,31,77,0.82);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.video-modal.is-open { display: flex; }
.video-modal-inner {
  background: #000;
  width: min(920px, 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.video-modal video, .video-modal iframe {
  width: 100%; display: block; aspect-ratio: 16/9; border: 0;
}
.video-modal-empty {
  aspect-ratio: 16/9;
  background: var(--navy);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 20px;
}
.video-modal-close {
  position: absolute; top: -46px; right: 0;
  background: rgba(255,255,255,0.15);
  border: none; color: var(--white);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem;
}

/* -------------------- Form -------------------- */
.form-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.form-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--muted);
}
.form-check input { width: 18px; height: 18px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* -------------------- Contact block -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}
.contact-item .icon-mark { margin: 0 auto 12px; background: var(--cream); }
.contact-item h4 { font-size: 0.92rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 0.86rem; color: var(--muted); }
.contact-item a:hover { color: var(--accent); }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-family:"Baloo 2",sans-serif; font-weight:700; color: var(--white); }
.footer-col h5 {
  color: var(--white);
  font-family: "Baloo 2", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  padding-top: 22px;
  font-size: 0.82rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 1.7; }
.footer-tagline { display: flex; align-items: center; gap: 6px; }

/* -------------------- Utility -------------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.reveal-note {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: inline-block;
  margin-top: 10px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
