:root {
  --header-height: 140px;
}

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.home .site-header {
  background: transparent;
  box-shadow: none;
}

.story-article-page .site-header {
  position: static;
  box-shadow: none;
}

.stories-page .site-header {
  position: static;
  box-shadow: none;
}

.site-header.is-sticky {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(12, 20, 36, 0.08);
  backdrop-filter: blur(6px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}


.nav-toggle,
.mobile-close {
  display: none;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(12, 20, 36, 0.08);
  background: var(--ivory);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  padding: 24px;
  z-index: 12;
}

.mobile-menu ul {
  list-style: none;
  padding: 24px;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(12, 20, 36, 0.12);
}

.intro-image-offset { margin-top: -60px; }
.intro-text-offset { margin-top: -50px; }
.mantra-section-offset { margin-top: 0; margin-bottom: 80px; }
.mantra-text-offset { margin-top: 0; }
.testimonial-frame-tight { margin-bottom: -1px; }
.hidden-section { display: none; }

main [id] {
  scroll-margin-top: var(--header-height);
}

.hero { 
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 0 120px;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 50%;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 22% 24%,
    rgba(255, 250, 244, 0.9),
    rgba(241, 226, 203, 0.78),
    rgba(209, 191, 162, 0.58)
  );
}

.hero-script {
  position: absolute;
  top: 40%;
  right: 6%;
  width: 340px;
  transform: rotate(-95deg);
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px at var(--glow-x) var(--glow-y),
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0) 58%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  mix-blend-mode: screen;
  z-index: 1;
}

.hero.has-glow::after {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 90vw);
  text-align: left;
  color: var(--navy);
}

.hero-content h1 {
  font-size: 70px;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero-content .lede {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: float 2.4s ease-in-out infinite;
}

.scroll-cue .chevron {
  font-size: 18px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.shape {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.shape-1 { background: var(--blush); top: 12%; left: 10%; }
.shape-2 { background: var(--peach); bottom: 18%; right: 12%; }
.shape-3 { background: var(--gold); top: 30%; right: 25%; }

.intro .split {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro .media-block img[data-src*="cc-home-3"] {
  transform: translateY(20px);
  margin-top: 0;
}

.content-block {
  padding: 12px;
}

.intro .content-block {
  max-width: 480px;
}

.intro#services .content-block {
  margin-top: 60px;
}

.carousel {
  background: var(--ivory);
  overflow: visible;
  position: relative;
  padding-top: 40px;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 20px;
  padding: 24px 5vw 32px 7vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track .card {
  scroll-snap-align: start;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 1;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--ivory), rgba(247, 244, 239, 0));
}

.carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--ivory), rgba(247, 244, 239, 0));
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 2;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(12, 20, 36, 0.12);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(12, 20, 36, 0.12);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  pointer-events: auto;
}

.carousel-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(12, 20, 36, 0.16);
}

.carousel-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.angled {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.angled::before,
.angled::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  z-index: 0;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 50%);
}

.angled::before { top: -79px; }
.angled::after { bottom: -79px; transform: rotate(180deg); }

.angled .container,
.testimonials .container,
.cta-strip .container,
.footer .container {
  position: relative;
  z-index: 1;
}

.testimonials {
  background: linear-gradient(135deg, var(--ivory), var(--champagne-gold));
  color: var(--navy);
  padding: 25px 0 190px;
  text-align: center;
}
.testimonials h2 { color: var(--navy); }
.testimonials .eyebrow { color: rgba(12, 20, 36, 0.8); }

.cta-strip {
  background: var(--white);
  color: var(--navy);
  padding: 15px 0 80px;
}

.cta-strip .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin: 0 auto;
}

.cta-strip .container > div {
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.cta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-form {
  margin-inline: auto;
}

.contact-bar {
  width: 100%;
  margin: 12px 0 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(12, 20, 36, 0.08);
  border-bottom: 1px solid rgba(12, 20, 36, 0.08);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
}

.cta-form [data-netlify-recaptcha] {
  min-height: 50px;
}

.cta-form [data-netlify-recaptcha] > div,
.g-recaptcha {
  transform: scale(0.65);
  transform-origin: 0 0;
  height: 50px !important;
}

.contact-bar .nav-container {
  width: min(var(--max-width), 92vw);
  max-width: var(--max-width);
  padding: 13px 24px;
  justify-content: center;
  display: flex;
  margin: 0 auto;
}

.contact-bar-inner{
  display: grid !important;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-inline: 24px;
  box-sizing: border-box;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.contact-bar-inner > a.contact-bar-link:first-of-type{
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.contact-bar-inner > a.contact-bar-link:nth-of-type(2){
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
}

.contact-bar-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  width: max-content;
}

.contact-bar-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.contact-bar-link:hover::after {
  transform: scaleX(1);
}

.contact-bar-link img {
  width: 32px;
  height: 32px;
  display: block;
}

.contact-social{
  justify-self: center;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 0;
  padding-top: 2px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-block;
  background: center / contain no-repeat;
}

.social-facebook {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230c1424'/%3E%3Cpath fill='%23fff' d='M13.3 18v-5.2h1.9l.3-2.2h-2.2V9.2c0-.6.2-1 1-1h1.3V6.2c-.2 0-.9-.1-1.8-.1-1.9 0-3.1 1.1-3.1 3.2v1.3H9v2.2h1.7V18h2.6z'/%3E%3C/svg%3E");
}

.social-youtube {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230c1424'/%3E%3Cpath fill='%23fff' d='M16.9 10c.2.7.2 1.5.2 2s0 1.3-.2 2c-.2.7-.7 1.2-1.4 1.3-.9.1-2.1.1-3.5.1s-2.6 0-3.5-.1c-.7-.1-1.2-.6-1.4-1.3-.2-.7-.2-1.5-.2-2s0-1.3.2-2c.2-.7.7-1.2 1.4-1.3C9.4 8.6 10.6 8.6 12 8.6s2.6 0 3.5.1c.7.1 1.2.6 1.4 1.3z'/%3E%3Cpath fill='%230c1424' d='M11.1 10.4v3.2l2.9-1.6-2.9-1.6z'/%3E%3C/svg%3E");
}

.social-instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230c1424'/%3E%3Crect x='8' y='8' width='8' height='8' rx='2.4' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='2' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3Ccircle cx='15.1' cy='8.9' r='0.9' fill='%23fff'/%3E%3C/svg%3E");
}

.social-tiktok {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230c1424'/%3E%3Cpath fill='%23fff' d='M14.2 7.2v6.3c-.6-.3-1.2-.5-2-.5a3.4 3.4 0 1 0 3.4 3.4V11c.8.6 1.7.9 2.7 1V9.5c-1.4-.1-2.4-1-2.9-2-.2-.4-.3-.8-.3-1.3h-1.0zM12.2 18.1a1.7 1.7 0 1 1 0-3.4c.8 0 1.7.5 1.7 1.7s-.9 1.7-1.7 1.7z'/%3E%3C/svg%3E");
}

.cta-form {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid rgba(12, 20, 36, 0.08);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 12px 28px rgba(12, 20, 36, 0.12);
}

.cta-form .field-row {
  display: grid;
  gap: 6px;
  text-align: left;
}

.cta-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(12, 20, 36, 0.14);
  font: inherit;
  background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: rgba(12, 20, 36, 0.35);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(12, 20, 36, 0.08);
}

.cta-form textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-form .btn {
  width: 100%;
  justify-content: center;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  background: linear-gradient(135deg, var(--ivory), var(--champagne-gold));
  color: var(--navy);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 28px;
  align-items: start;
}

.footer h4 { margin-bottom: 8px; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer .brand {
  gap: 8px;
}

.footer .brand-mark {
  width: 40px;
  height: 40px;
}

.footer .footnote {
  margin: 8px 0 0;
  color: rgba(12, 20, 36, 0.7);
}

.footer a { color: var(--navy); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  margin-top: 8px;
}

.sub-links {
  display: flex;
  gap: 12px;
}

.page-badge {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 20, 36, 0.9);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(12, 20, 36, 0.2);
  z-index: 2;
}

.page {
  padding-top: var(--header-height);
  padding-bottom: 25px;
  background: var(--page-bg, var(--ivory));
}

.stories-page .page {
  padding-top: 0;
}

.story-article-page .page {
  padding-top: 0;
  background: #ffffff;
}

/* Remove bottom gap on service detail pages so backgrounds don't peek through before footer */
body[class*="service-"] .page {
  padding-bottom: 0;
}

body.service-live-events { --page-bg: linear-gradient(135deg, #ffffff, #f4eee5); }
body.service-wellbeing { --page-bg: linear-gradient(135deg, var(--ivory), #e6d6c0); }
body.service-kids { --page-bg: linear-gradient(135deg, #fdeef1, #f6d8d1); }
body.service-home-ed { --page-bg: linear-gradient(135deg, #f9e4da, #ede4d8); }
body.service-stone { --page-bg: var(--stone); }
body.stories-page { --page-bg: linear-gradient(135deg, var(--ivory), var(--champagne-gold)); }
body.story-article-page { --page-bg: #ffffff; }
body.service-live-events { --contact-bg: linear-gradient(135deg, #ffffff, #f4eee5); }
body.service-wellbeing { --contact-bg: linear-gradient(135deg, var(--ivory), #e6d6c0); }
body.service-kids { --contact-bg: linear-gradient(135deg, #fdeef1, #f6d8d1); }
body.service-home-ed { --contact-bg: linear-gradient(135deg, #f9e4da, #ede4d8); }
body.service-stone { --contact-bg: var(--stone); }

main [id] {
  scroll-margin-top: var(--header-height);
}

.page-hero {
  background: var(--stone);
  color: var(--navy);
}

.page-hero.about-top {
  background: var(--white);
  color: var(--navy);
  padding: 40px 0 80px;
}

.service-hero.live-events { background: linear-gradient(135deg, #ffffff, #f4eee5); }
.service-hero.wellbeing { background: linear-gradient(135deg, var(--ivory), #e6d6c0); }
.service-hero.kids { background: linear-gradient(135deg, #fdeef1, #f6d8d1); }
.service-hero.home-ed { background: linear-gradient(135deg, #f9e4da, #ede4d8); }

.narrow {
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero-content h1 { font-size: 56px; }
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: flex; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
  .mobile-menu.is-open { opacity: 1; pointer-events: all; }
  .carousel-track { grid-auto-columns: 80%; }
  .hero { padding-top: 120px; }
  .hero-content h1 { font-size: 48px; }
}

@media (max-width: 600px) {
  .contact-bar .nav-container { padding: 9px 16px; max-width: none; width: 100%; }
  .contact-bar { margin: 12px 0 18px; align-items: center; }
  .contact-bar-inner { padding-inline: 16px; }
  .contact-bar-inner{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    text-align: center;
    row-gap: 10px;
  }

  .contact-bar-inner > a.contact-bar-link:first-of-type{
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
  }

  .contact-social{
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
  }

  .contact-bar-inner > a.contact-bar-link:nth-of-type(2){
    grid-row: 3;
    grid-column: 1;
    justify-self: center;
  }
  .nav-container { padding: 12px 0; }
  .hero { padding: 120px 0 80px; }
  .hero-content h1 { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
