/* ---- Reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ---- Header ---- */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 50px; width: auto; margin-right: 10px; }

.logo-text {
  font-weight: bold;
  color: #7030A0;
  font-size: 1.1rem;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto;
}

.nav-menu a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu a:hover { color: #7030A0; }

/* ---- Hero ---- */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}
.hero::before { display: none; }
.hero-content { position: relative; z-index: 2; }

.hero h1 { font-size: 2.8rem; font-weight: 300; margin-bottom: 20px; letter-spacing: 1px; }
.hero-tagline { font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; }
.hero-divider { width: 100px; height: 4px; background: #7030A0; margin: 20px auto; }

/* ---- Sections ---- */
.section { padding: 60px 0; background: #fff; }

.about { padding: 40px 0; background: #fafafa; }
.about h2,
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #7030A0;
  font-weight: 300;
}
.about-divider { width: 100px; height: 4px; background: #000; margin: 20px auto 50px; }

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

/* ---- Pricing & Programs cards ---- */
.cards-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.card {
  border: 2px solid #7030A0;
  border-radius: 6px;
  padding: 24px;
  background: #fff;
  text-align: center;
}
.card img { width: 80%; height: auto; display: block; margin: 0 auto 16px; }
.card h3 { color: #7030A0; margin: 6px 0 8px; }
.price { font-weight: 700; text-align: center; margin-bottom: 16px; }

/* ---- Workshops split ---- */
.media-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.media-split__image img { width: 100%; height: auto; display: block; }
.media-split__content h2 { color: #7030A0; margin-bottom: 12px; }
.media-split__content p { margin-bottom: 20px; }

/* ---- Partner tiles ---- */
.cards-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tile { border: 2px solid #7030A0; padding: 14px; background: #fff; }
.tile img { width: 100%; height: auto; display: block; margin-bottom: 10px; }
.tile h4 { text-align: center; margin: 6px 0 10px; }
.tile p { text-align: center; }

/* ---- Buttons ---- */
/* Sitewide button style (used by Workshops CTA) */
.submit-btn {
  display: inline-block;
  background: #000000;
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  font-weight: 600;
  border-radius: 6px;
  width: auto;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  transition: background .25s ease;
}
.submit-btn:hover { background: #5a2784; }

/* Pricing & Programs CTA (no banner) */
.cta-bar { text-align: center; margin: 30px 0; }
.cta-bar a {
  display: inline-block;
  background: #000000;
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: background .25s ease;
}
.cta-bar a:hover { background: #5a2784; }

/* ---- Footer ---- */
.footer {
  margin-top: 40px;
  background: #000000;
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}
.footer-content { margin-bottom: 30px; }

.social-links { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.social-link {
  width: 50px; height: 50px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; font-size: 1.2rem;
  transition: all .3s;
}
.social-link:hover { background: rgba(255,255,255,.3); transform: translateY(-3px); }
.footer p { margin: 10px 0; font-size: 1.1rem; }
.footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer a:hover { border-bottom-color: #fff; }

/* ---- Smooth scrolling & anchor offsets ---- */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

#about, #programs, #events, #contact { scroll-margin-top: 110px; }
#about    { scroll-margin-top: 140px; }  /* About sits a bit higher */
#programs { scroll-margin-top: 125px; }  /* Programs needs a touch more */

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .cards-2col { grid-template-columns: 1fr; }
  .media-split { grid-template-columns: 1fr; }
  .cards-4col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }

  .hero h1 { font-size: 2.2rem; }
  .hero-tagline { font-size: 1.2rem; }

  .about h2, .section-title { font-size: 2rem; }
  .about-content { padding: 0 20px; }

  /* full-width buttons on mobile */
  .submit-btn,
  .cta-bar a { display: block; width: 100%; text-align: center; }

  html { scroll-padding-top: 100px; }
  #about    { scroll-margin-top: 130px; }
  #programs { scroll-margin-top: 115px; }
}

@media (max-width: 560px) {
  .cards-4col { grid-template-columns: 1fr; }
}

/* === Book section layout polish === */
#book .media-split {
  /* keep the cover a nice fixed-ish column and center the two columns vertically */
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 36px;
  align-items: center;          /* centers the text block next to the image */
}

#book .media-split__content {
  align-self: center;           /* ensure the copy sits mid-height in its column */
}

#book .media-split__image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Optional: a little breathing room above the button */
#book .submit-btn { margin-top: 12px; }

/* Mobile: stack, keep the cover centered, and keep text left-aligned */
@media (max-width: 768px) {
  #book .media-split { grid-template-columns: 1fr; }
  #book .media-split__image { justify-self: center; max-width: 480px; }
  #book .media-split__content { text-align: left; }
}

/* Make the grid row height equal to the tallest item (the cover)
   and let the text cell fill that height, then center its contents */
#book .media-split {
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 36px;
  align-items: stretch;                 /* ⬅ stretch both grid items to the row height */
}

/* Center the content vertically inside its (now full-height) cell */
#book .media-split__content {
  display: flex;                        /* new */
  flex-direction: column;               /* new */
  justify-content: center;              /* new */
}

/* Keep the image nicely styled */
#book .media-split__image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Optional spacing for the Amazon button */
#book .submit-btn { margin-top: 12px; }

/* Mobile: stack and center the cover, normal text alignment */
@media (max-width: 768px) {
  #book .media-split { 
    grid-template-columns: 1fr; 
    align-items: start;                 /* revert */
  }
  #book .media-split__image { 
    justify-self: center; 
    max-width: 480px; 
  }
  #book .media-split__content { 
    display: block;                     /* no flex centering on mobile */
    text-align: left; 
  }
}

