/* ═══════════════════════════════════════════
   COCOON CORNER — Shared Stylesheet
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&family=Fraunces:ital,wght@0,300;0,700;0,900;1,300;1,700&display=swap');

:root {
  --teal:         #5bbcad;
  --teal-light:   #a8e0d9;
  --teal-xlight:  #e4f9f5;
  --yellow:       #f9da5f;
  --yellow-light: #fff6b7;
  --pink:         #f4a7b9;
  --pink-light:   #fde4ec;
  --purple:       #b89fe8;
  --purple-light: #e8dff8;
  --orange:       #e8703a;
  --orange-light: #fde8c8;
  --green:        #7dc97a;
  --green-light:  #d6f0d4;
  --text:         #1e2a35;
  --text-soft:    #4a5568;
  --white:        #ffffff;
  --cream:        #fdfaf5;
  --nav-h:        68px;
  --radius-lg:    28px;
  --radius-md:    18px;
  --radius-sm:    10px;
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.09);
  --shadow-lg:    0 16px 50px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-weight: 900; font-size: 1.4rem;
  color: var(--orange); letter-spacing: -0.3px;
}

.nav-worm { display: flex; align-items: center; gap: 3px; }
.worm-seg {
  width: 11px; height: 11px; border-radius: 50%;
  animation: wormBounce 1.6s ease-in-out infinite;
}
.worm-seg:nth-child(1){ background:var(--yellow);  animation-delay:0s;    }
.worm-seg:nth-child(2){ background:var(--pink);    animation-delay:.15s;  }
.worm-seg:nth-child(3){ background:var(--teal);    animation-delay:.3s;   }
.worm-seg:nth-child(4){ background:var(--purple);  animation-delay:.45s; width:8px; height:8px; }

@keyframes wormBounce {
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(-5px); }
}

nav ul { list-style:none; display:flex; gap:.3rem; flex-wrap:wrap; }
nav a.nl {
  text-decoration:none; font-weight:700; font-size:.875rem;
  padding:.42rem .95rem; border-radius:50px;
  color:var(--text-soft); transition:all .22s;
}
nav a.nl:hover, nav a.nl.active {
  background:var(--orange); color:white;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(232,112,58,.28);
}

/* ─── PAGE WRAPPER ─── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─── HERO BANNER (inner pages) ─── */
.page-hero {
  padding: 4rem 2.5rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}

.page-hero::before {
  content:''; position:absolute; inset:0;
  background: inherit; z-index:0;
}

.page-hero > * { position:relative; z-index:1; }

.eyebrow {
  display:inline-block;
  font-size:.78rem; font-weight:800; letter-spacing:2.5px;
  text-transform:uppercase; color:var(--orange);
  margin-bottom:.7rem;
}

.page-title {
  font-family:'Fraunces', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight:900; line-height:1.05; color:var(--text);
}

.page-title span { color:var(--orange); }

.page-subtitle {
  font-size:1.1rem; color:var(--text-soft);
  max-width:620px; margin:.8rem auto 0;
  font-family:'Fraunces', serif; font-style:italic;
}

/* ─── SECTION HELPERS ─── */
section.content-section {
  padding: 4rem 2.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

.section-label {
  font-size:.78rem; font-weight:800; letter-spacing:2.5px;
  text-transform:uppercase; color:var(--orange);
  display:block; margin-bottom:.6rem;
}

h2.section-heading {
  font-family:'Fraunces', serif; font-weight:900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color:var(--text); line-height:1.15;
  margin-bottom:1.2rem;
}

/* ─── CARDS ─── */
.card {
  background:var(--white); border-radius:var(--radius-lg);
  padding:2rem; box-shadow:var(--shadow-sm);
  transition:transform .28s, box-shadow .28s;
}
.card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }

.card-grid-3 {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:1.4rem;
}

.card-grid-2 {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.4rem;
}

/* ─── DETAILS / SUMMARY (accordion) ─── */
details {
  background:var(--white); border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm); margin-bottom:1rem;
  overflow:hidden; transition:box-shadow .2s;
}
details[open] { box-shadow:var(--shadow-md); }
details summary {
  padding:1.3rem 1.8rem;
  font-family:'Fraunces', serif; font-weight:700; font-size:1.15rem;
  cursor:pointer; list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  user-select:none; transition:background .2s;
}
details summary:hover { background:rgba(232,112,58,.06); }
details summary::after {
  content:'＋'; font-size:1.2rem; color:var(--orange);
  transition:transform .3s; flex-shrink:0; margin-left:1rem;
}
details[open] summary::after { transform:rotate(45deg); }
details summary::-webkit-details-marker { display:none; }
.details-body { padding:0 1.8rem 1.8rem; border-top:1px solid rgba(0,0,0,.06); }

/* ─── MARQUEE ─── */
.marquee-bar {
  overflow:hidden; background:var(--orange);
  padding:.6rem 0; white-space:nowrap;
}
.marquee-inner {
  display:inline-block;
  animation:marquee 22s linear infinite;
}
.marquee-inner span {
  color:white; font-weight:800; font-size:.88rem;
  letter-spacing:.8px; margin:0 2rem;
}
@keyframes marquee {
  0%  { transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity:0; transform:translateY(30px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.2,0,0,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ─── FOOTER ─── */
footer {
  background:var(--text); color:rgba(255,255,255,.65);
  padding:2.5rem; text-align:center;
}
footer .foot-logo {
  font-family:'Fraunces', serif; font-size:1.6rem;
  font-weight:900; color:white; margin-bottom:.4rem;
}
footer p { font-size:.9rem; margin-top:.4rem; }
footer a { color:var(--teal); text-decoration:none; }
footer a:hover { text-decoration:underline; }

/* ─── TAGS ─── */
.tag {
  display:inline-block; padding:.35rem .9rem; border-radius:50px;
  font-size:.82rem; font-weight:700; margin:.25rem;
}

/* ─── UTILITY ─── */
.text-center { text-align:center; }
.mt-1  { margin-top:1rem;  }
.mt-2  { margin-top:2rem;  }
.mt-3  { margin-top:3rem;  }
.mb-1  { margin-bottom:1rem; }
.mb-2  { margin-bottom:2rem; }

.pill-btn {
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--orange); color:white;
  font-weight:800; font-size:.95rem;
  padding:.65rem 1.6rem; border-radius:50px;
  text-decoration:none; transition:all .22s;
  box-shadow:0 4px 14px rgba(232,112,58,.3);
}
.pill-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(232,112,58,.4);
}
.pill-btn.outline {
  background:transparent; color:var(--orange);
  border:2px solid var(--orange); box-shadow:none;
}
.pill-btn.outline:hover { background:var(--orange); color:white; }

/* ─── RESPONSIVE ─── */
@media(max-width:760px){
  nav ul { display:none; }
  .page-hero { padding:3rem 1.5rem 2rem; }
  section.content-section { padding:2.5rem 1.5rem; }
}