/* ============================================================
   Creating Connections — Candi Cosgrove
   Restyle: bright, kid-&-parent friendly, airy, mobile-first.
   Palette sampled from her logo (rose + sky) and brightened,
   with a sunny accent for energy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Brand palette — anchored to her logo's actual hues ---
     Logo pink swoosh  = #E4C6DE (orchid/mauve, hue ~316)
     Logo blue swoosh  = #BFE7F6 (baby/sky blue, hue ~197)
     Logo text         = #231F20 (warm charcoal)
     Pastels below ARE the logo colors; deeper steps keep the same
     hue but add saturation so buttons/links have enough contrast. */
  --rose-pastel: #e4c6de;   /* exact logo pink */
  --rose:        #cf5cad;   /* same orchid hue, vibrant for buttons */
  --rose-dark:   #b3478f;
  --rose-tint:   #f6e9f1;   /* soft pink wash */
  --sky-pastel:  #bfe7f6;   /* exact logo blue */
  --sky:         #3ba7d6;   /* same baby-blue hue, vibrant */
  --sky-dark:    #2b8ec0;
  --sky-tint:    #e7f5fc;   /* soft blue wash */

  /* --- Neutrals --- */
  --ink:         #231f20;   /* exact logo text — warm charcoal */
  --ink-soft:    #6a6064;
  --bg:          #fffdfd;   /* near-white page */
  --surface:     #ffffff;
  --border:      #efe6ec;

  /* --- Defaults wired to brand --- */
  --primary:        var(--rose);
  --primary-dark:   var(--rose-dark);
  --primary-light:  var(--rose-tint);
  --accent:         var(--sky);
  --link:           var(--sky-dark);
  --link-dark:      var(--rose-dark);
  --text:           var(--ink);
  --text-light:     var(--ink-soft);
  --white:          #fff;

  /* --- Shape & depth --- */
  --radius:     20px;
  --radius-sm:  14px;
  --radius-pill: 999px;
  --shadow:     0 10px 30px rgba(58, 46, 63, 0.08);
  --shadow-lg:  0 18px 50px rgba(58, 46, 63, 0.14);
  --ring:       0 0 0 4px rgba(238, 111, 160, 0.25);

  /* --- Layout --- */
  --max-width: 1140px;

  /* --- Type --- */
  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Minimum comfortable tap target */
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.0625rem;
  background:
    radial-gradient(1200px 600px at 110% -10%, var(--sky-tint), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, var(--rose-tint), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--link-dark); }

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

/* ---- Reusable bits ---- */

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 0.6rem;
}

.accent { color: var(--rose); }
.accent-sky { color: var(--sky-dark); }

/* ---- Header ---- */

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo img { max-height: 78px; width: auto; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.site-title a { color: var(--rose); }
.site-tagline { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }

/* ---- Navigation ---- */

.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 18px rgba(58, 46, 63, 0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: var(--rose-tint);
  border: none;
  color: var(--rose-dark);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  min-width: var(--tap);
  min-height: var(--tap);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.nav-links li { position: relative; }

.nav-links a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--sky-tint);
  color: var(--sky-dark);
}

.nav-links a.active {
  background: var(--rose);
  color: #fff;
}

/* Dropdown */
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  min-width: 250px;
  z-index: 100;
  list-style: none;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.nav-links li:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* ---- Buttons ---- */

.cta-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  background: var(--rose);
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.3rem;
  box-shadow: 0 8px 18px rgba(238, 111, 160, 0.32);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.cta-link:hover,
.btn:hover {
  background: var(--rose-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(238, 111, 160, 0.4);
}

.cta-secondary {
  background: var(--sky);
  box-shadow: 0 8px 18px rgba(63, 176, 232, 0.32);
}
.cta-secondary:hover {
  background: var(--sky-dark);
  box-shadow: 0 12px 24px rgba(63, 176, 232, 0.4);
}

/* ---- Main Content ---- */

.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--rose), var(--sky));
}

/* ---- Home Hero ---- */

.hero {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.hero-lead-image { flex: 3; min-width: 0; }

.hero-lead-image img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-welcome {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-welcome h1,
.hero-welcome .display-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-welcome h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-welcome p { margin-bottom: 1rem; color: var(--ink-soft); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* Legacy interior hero (image + text) */
.hero-text { flex: 1; }
.hero-text h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.hero-text p { margin-bottom: 1rem; }
.hero-image { flex-shrink: 0; text-align: center; }
.hero-image img { width: 180px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.hero-image figcaption { font-size: 0.85rem; color: var(--text-light); margin-top: 0.5rem; }

/* ---- Cinematic Hero (homepage) ---- */

.hero-cinematic {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-cinematic > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: brightness(1.05) saturate(1.1);
}

.hero-cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top left, rgba(35,31,32,0.84) 0%, rgba(35,31,32,0.30) 38%, transparent 64%),
    linear-gradient(300deg, rgba(207,92,173,0.22), transparent 55%, rgba(59,167,214,0.18));
}

.hero-cinematic-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  color: #fff;
  text-align: right;
}

.hero-cinematic-copy .eyebrow { color: #fff; opacity: 0.92; }

.hero-cinematic-copy h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  max-width: min(17ch, 100%);
  margin: 0 0 0.6rem auto;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-cinematic-copy h1 .accent { color: var(--rose-pastel); }

.hero-cinematic-copy .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  opacity: 0.96;
  margin: 0 0 0 auto;
  max-width: min(40ch, 100%);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Larger opening paragraph in the intro card */
.lead-para { font-size: 1.2rem; color: var(--ink); }

/* ---- Showcase strip (3 photos under the hero) ---- */

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.showcase-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-item:nth-child(2) { border-top: 5px solid var(--sky); }
.showcase-item:nth-child(odd) { border-top: 5px solid var(--rose); }

.showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  background: linear-gradient(to top, rgba(35,31,32,0.78), transparent);
}

/* ---- CTA band ---- */

.cta-block {
  text-align: center;
  margin: 2.5rem 0 0.5rem;
  padding: 2.25rem 1.5rem;
  background: linear-gradient(135deg, var(--rose-tint), var(--sky-tint));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-block h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
  color: var(--ink);
}

/* ---- Service Cards Grid ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card img { width: 100%; height: 200px; object-fit: cover; }

.service-card-body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }

.service-card-body h3 { color: var(--ink); margin-bottom: 0.5rem; font-size: 1.3rem; }
.service-card-body p { color: var(--text-light); font-size: 0.98rem; margin-bottom: 1rem; flex: 1; }

.service-card-body .read-more {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose);
}
.service-card:hover .read-more { color: var(--rose-dark); }

/* Alternating pink/blue top stripe (the logo's two colors) */
.service-card { border-top: 5px solid var(--rose); }
.service-card:nth-child(even) { border-top-color: var(--sky); }

/* ---- Article Content ---- */

.article-content { line-height: 1.85; font-size: 1.0625rem; }
.article-content p { margin-bottom: 1rem; }
.article-content h3 { color: var(--ink); margin: 1.75rem 0 0.75rem; font-size: 1.4rem; }
.article-content h3::before {
  content: "";
  display: inline-block;
  width: 0.7em; height: 0.7em;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--sky);
  vertical-align: middle;
}
.article-content ul, .article-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content img { border-radius: var(--radius-sm); margin: 0.75rem 0; box-shadow: var(--shadow); }
.article-content img.float-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 350px;
}
.article-content a {
  color: var(--sky-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-underline-offset: 3px;
}
.article-content a:hover { color: var(--rose-dark); text-decoration-color: var(--rose); }

/* ---- Testimonial Cards ---- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 6px solid var(--rose);
}
.testimonial-grid > .testimonial-card:nth-child(even) { border-left-color: var(--sky); }

.testimonial-card h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 0.75rem; }
.testimonial-card p { margin-bottom: 0.75rem; color: var(--text); font-size: 1rem; }
.testimonial-card .attribution { font-style: italic; color: var(--text-light); font-size: 0.9rem; }

/* ---- Blog Post List ---- */

.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-post {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-post h3 { color: var(--ink); margin-bottom: 0.5rem; font-size: 1.4rem; }
.blog-post p { margin-bottom: 0.75rem; color: var(--text-light); }

/* ---- Resources List ---- */

.resource-list { display: flex; flex-direction: column; gap: 1rem; }

.resource-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.resource-item h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 0.5rem; }
.resource-item p { font-size: 0.98rem; color: var(--text-light); }

/* ---- Contact Form ---- */

.contact-form { max-width: 620px; }
.contact-form .form-group { margin-bottom: 1.1rem; }

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: var(--ring);
}

.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-form button {
  min-height: 52px;
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(238, 111, 160, 0.32);
  transition: transform 0.15s, background 0.2s;
}
.contact-form button:hover { background: var(--rose-dark); transform: translateY(-2px); }

/* ---- Workshop Tabs ---- */

.workshop-tabs { margin: 1.5rem 0; }

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab-btn {
  min-height: var(--tap);
  padding: 0.5rem 1.25rem;
  border: none;
  background: var(--sky-tint);
  color: var(--sky-dark);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.tab-btn:hover { background: var(--sky); color: #fff; }
.tab-btn.active { background: var(--rose); color: #fff; }

.tab-panel {
  display: none;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.tab-panel.active { display: block; }

/* ---- Footer ---- */

.site-footer {
  background: linear-gradient(135deg, var(--rose), var(--sky));
  color: #fff;
  text-align: center;
  padding: 2.25rem 1.25rem;
  margin-top: 3rem;
}
.site-footer p { font-size: 0.95rem; opacity: 0.95; }
.site-footer a { color: #fff; text-decoration: underline; }

/* ---- Breadcrumb ---- */

.breadcrumb { font-size: 0.9rem; margin-bottom: 1.5rem; color: var(--text-light); }
.breadcrumb a { color: var(--sky-dark); font-weight: 600; }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  body { font-size: 1.05rem; }

  .hero-welcome h1,
  .hero-welcome .display-title { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .cta-block h3 { font-size: 1.35rem; }

  .header-inner { flex-direction: column; text-align: center; padding: 0.75rem; }

  .nav-inner { justify-content: space-between; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.15rem;
    padding: 0.5rem 0 0.75rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--rose-tint);
    width: 100%;
    min-width: 0;
    margin: 0.15rem 0;
  }

  .nav-links li:hover .dropdown-menu { display: none; }
  .nav-links li.open .dropdown-menu { display: block; }
  .dropdown-menu a { min-height: 48px; }

  .hero-cinematic { min-height: 540px; }
  .hero-cinematic > img { object-position: 38% 22%; }
  .hero-cinematic-copy { padding: 1.25rem 1.25rem 1.75rem; }
  .hero-cinematic-copy h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .hero-cinematic::after {
    background:
      linear-gradient(to top, rgba(35,31,32,0.86) 0%, rgba(35,31,32,0.45) 22%, transparent 48%),
      linear-gradient(120deg, rgba(207,92,173,0.20), transparent 55%, rgba(59,167,214,0.18));
  }
  .lead-para { font-size: 1.1rem; }

  .hero { flex-direction: column; text-align: center; }
  .hero-lead-image { flex: none; width: 100%; }
  .hero-lead-image img { height: auto; max-height: none; }
  .hero-cta { justify-content: center; }
  .hero-image { margin: 0 auto; }

  .article-content img.float-right {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }

  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 1rem; }

  .content-card { padding: 1.5rem; }

  /* Full-width, finger-friendly buttons on phones */
  .cta-link, .btn { width: 100%; max-width: 360px; }
  .cta-block .cta-link { width: 100%; }
}
