/* =========================================================
   The Art Habitat — styles.css
   Design system + single-page styling (mobile-first)
   ========================================================= */

:root {
  /* Brand palette */
  --teal:    #2BA89E;
  --teal-d:  #1f8f86;
  --orange:  #F4892F;
  --pink:    #E94B8A;
  --pink-d:  #d63d79;
  --purple:  #8B5FBF;
  --purple-d:#744aa6;
  --yellow:  #FFD23F;
  --blush:   #FBE9EF;
  --cream:   #FBEDDA;
  --ink:     #2E2A33;
  --muted:   #6f6877;
  --white:   #ffffff;

  /* Type */
  --font-head:   'Fredoka', system-ui, "Segoe UI", sans-serif;
  --font-script: 'Caveat', "Segoe Script", cursive;
  --font-body:   'Nunito Sans', system-ui, "Segoe UI", sans-serif;

  /* Shape */
  --r-sm: 14px;
  --r:    20px;
  --r-lg: 30px;
  --pill: 999px;

  /* Shadow */
  --sh:    0 10px 30px rgba(46,42,51,.08);
  --sh-lg: 0 22px 50px rgba(46,42,51,.14);

  --maxw: 1120px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-d); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

/* Brand accent colours (used in logo + headings) */
.c-teal   { color: var(--teal); }
.c-orange { color: var(--orange); }
.c-pink   { color: var(--pink); }
.c-purple { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .72rem 1.45rem; border-radius: var(--pill); border: 2px solid transparent;
  cursor: pointer; line-height: 1.15; white-space: normal; max-width: 100%; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .5rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

.btn-pink   { background: var(--pink);  color: #fff; box-shadow: 0 8px 20px rgba(233,75,138,.30); }
.btn-pink:hover   { background: var(--pink-d); box-shadow: 0 12px 26px rgba(233,75,138,.40); }
.btn-teal   { background: var(--teal);  color: #fff; box-shadow: 0 8px 20px rgba(43,168,158,.28); }
.btn-teal:hover   { background: var(--teal-d); box-shadow: 0 12px 26px rgba(43,168,158,.38); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(139,95,191,.28); }
.btn-purple:hover { background: var(--purple-d); }
.btn-white  { background: #fff; color: var(--pink); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.btn-white:hover  { background: #fff; color: var(--pink-d); }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal-d); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,237,218,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(46,42,51,.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(46,42,51,.08); background: rgba(251,237,218,.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-badge { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 4px 8px rgba(139,95,191,.25)); }
.logo-img { height: clamp(40px, 6.2vw, 52px); width: auto; display: block; }
.logo-words { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35rem; line-height: 1; }
.logo-the { flex-basis: 100%; font-family: var(--font-script); font-size: .82rem; color: var(--purple); margin-bottom: -4px; }
.logo-art { font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: .3px; }
.logo-habitat { font-family: var(--font-script); font-weight: 700; font-size: 1.55rem; color: var(--pink); }

/* Nav */
.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 1rem; transition: color .2s ease; }
.nav-menu a:not(.btn):hover { color: var(--pink); }
.nav-cta { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: #fff; border-radius: var(--r); padding: .6rem;
    box-shadow: var(--sh-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(8px); }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: .7rem .8rem; border-radius: var(--r-sm); }
  .nav-menu a:not(.btn):hover { background: var(--blush); }
  .nav-cta { margin-top: .3rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem); background: linear-gradient(170deg, var(--cream) 0%, var(--blush) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { font-family: var(--font-head); font-weight: 500; color: var(--purple); letter-spacing: .3px; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.1rem); letter-spacing: -.5px; margin-bottom: .35em; }
.hero-emoji { display: inline-block; white-space: nowrap; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 620px; margin-bottom: 1.6rem; }
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.center-cta { justify-content: center; }
.hero-note { margin-top: 1.3rem; font-size: 1rem; color: var(--muted); }
.hero-note a { font-family: var(--font-head); font-weight: 600; color: var(--pink); text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* Decorative blobs + sparkles */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 1; animation: float 9s ease-in-out infinite; }
.blob-1 { width: 230px; height: 230px; background: radial-gradient(circle at 30% 30%, #8fe3da, var(--teal)); top: -40px; right: -30px; opacity: .35; }
.blob-2 { width: 180px; height: 180px; background: radial-gradient(circle at 30% 30%, #ffc3dd, var(--pink)); bottom: -50px; right: 18%; opacity: .3; animation-delay: -3s; }
.blob-3 { width: 130px; height: 130px; background: radial-gradient(circle at 30% 30%, #ffd9b0, var(--orange)); top: 40%; left: -45px; opacity: .3; animation-delay: -5s; }
.spark { position: absolute; color: var(--yellow); font-size: 1.4rem; z-index: 2; animation: twinkle 3.2s ease-in-out infinite; text-shadow: 0 0 10px rgba(255,210,63,.6); }
.spark-a { top: 18%; right: 14%; }
.spark-b { bottom: 22%; left: 8%; color: var(--pink); animation-delay: -1.4s; }
.spark-c { top: 16%; left: 12%; }
.spark-d { bottom: 18%; right: 14%; color: #fff; animation-delay: -1.8s; }

@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(10px); } }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: .5; } 50% { transform: scale(1.4) rotate(20deg); opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: .7rem 0; }
.marquee-track { display: flex; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 500; letter-spacing: 1px; white-space: nowrap; font-size: 1rem; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section-blush { background: var(--blush); }
.kicker { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; color: var(--teal); margin-bottom: .4rem; }
.kicker-light { color: #ffe1ef; }
.section-title { font-size: clamp(1.8rem, 4.4vw, 2.7rem); letter-spacing: -.4px; margin-bottom: .35em; }
.section-title--light { color: #fff; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin-bottom: 2rem; }
.section-lead--light { color: rgba(255,255,255,.92); }
.section-foot { margin-top: 1.8rem; color: var(--muted); }
.section-foot a { font-family: var(--font-head); font-weight: 600; color: var(--pink); text-decoration: none; }
.section-foot a:hover { text-decoration: underline; }
.section-foot--light { color: rgba(255,255,255,.9); text-align: center; }

/* ---------- 3-up feature cards ---------- */
.cards-3 { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: #fff; border-radius: var(--r-lg); padding: 2rem 1.6rem; box-shadow: var(--sh); border: 1px solid rgba(46,42,51,.05); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.feature-icon { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem; overflow: hidden; }
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.i-teal { background: #d9f3f0; } .i-pink { background: #fcdde9; } .i-purple { background: #ece1f7; }
.feature-card h3 { font-size: 1.4rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---------- Workshop cards ---------- */
.cards-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
.workshop-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); border: 1px solid rgba(46,42,51,.05); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.workshop-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.ws-art { height: 190px; overflow: hidden; }
.ws-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-pot      { background: linear-gradient(135deg, #d9f3f0, #8fe3da); }
.ws-umbrella { background: linear-gradient(135deg, #e7e0fb, #c4b1ec); }
.ws-canvas   { background: linear-gradient(135deg, #fcdde9, #f6b6cf); }
.ws-tote     { background: linear-gradient(135deg, #ffe6cf, #ffc89c); }
.ws-private  { background: linear-gradient(135deg, #d9f3f0, #fcdde9); }
.ws-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ws-body h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.ws-body p { color: var(--muted); font-size: .96rem; }
.price { font-family: var(--font-head); color: var(--ink); margin: .2rem 0 1rem; }
.price strong { font-size: 1.25rem; color: var(--pink); }
.ws-body .btn { margin-top: auto; }

@media (min-width: 1000px) {
  .workshop-card--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .workshop-card--wide .ws-art { height: auto; width: 240px; flex: none; font-size: 4rem; }
  .workshop-card--wide .ws-body { justify-content: center; max-width: 560px; }
  .workshop-card--wide .btn { margin-top: 1rem; align-self: flex-start; }
}

/* ---------- Bedazzle Kits (shop) ---------- */
.section-kits { background: linear-gradient(150deg, var(--purple) 0%, var(--pink) 100%); color: #fff; overflow: hidden; }
.section-kits .section-title { color: #fff; }
.ship-banner { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff; font-family: var(--font-head); font-weight: 500; padding: .55rem 1.3rem; border-radius: var(--pill); margin-bottom: 2rem; backdrop-filter: blur(4px); }
.ship-banner strong { color: var(--yellow); }
.kit-card { position: relative; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 1.6rem 1.5rem 1.7rem; box-shadow: var(--sh-lg); display: flex; flex-direction: column; transition: transform .2s ease; }
.kit-card:hover { transform: translateY(-6px); }
.kit-card--featured { transform: scale(1.03); }
.kit-card--featured:hover { transform: scale(1.03) translateY(-6px); }
.kit-tag { position: absolute; top: -12px; right: 18px; background: var(--yellow); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: .25rem .8rem; border-radius: var(--pill); box-shadow: var(--sh); }
.kit-art { height: 170px; border-radius: var(--r); margin-bottom: 1.1rem; position: relative; overflow: hidden; }
.kit-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-tote    { background: linear-gradient(135deg, #ffe6cf, #ffc89c); }
.kit-canvas  { background: linear-gradient(135deg, #fcdde9, #f6b6cf); }
.kit-starter { background: linear-gradient(135deg, #e7e0fb, #c4b1ec); }
.kit-art .gem { position: absolute; bottom: 12px; right: 16px; font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.kit-card h3 { font-size: 1.35rem; }
.kit-contents { color: var(--muted); font-size: .95rem; }
.kit-price { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--purple-d); margin: .4rem 0 1.1rem; }
.kit-card .btn { margin-top: auto; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
@media (min-width: 680px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gtile { aspect-ratio: 1 / 1; border-radius: var(--r); box-shadow: var(--sh); transition: transform .25s ease; overflow: hidden; }
.gtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile span { filter: drop-shadow(0 3px 6px rgba(0,0,0,.12)); }
.gtile:hover { transform: scale(1.04) rotate(-1.5deg); }
.gt-1 { background: linear-gradient(135deg, #8fe3da, var(--teal)); }
.gt-2 { background: linear-gradient(135deg, #f6b6cf, var(--pink)); }
.gt-3 { background: linear-gradient(135deg, #c4b1ec, var(--purple)); }
.gt-4 { background: linear-gradient(135deg, #ffc89c, var(--orange)); }
.gt-5 { background: linear-gradient(135deg, #ffe08a, var(--yellow)); }
.gt-6 { background: linear-gradient(135deg, #f6b6cf, #c4b1ec); }

/* ---------- Why us ---------- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-grid li { background: #fff; border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: var(--sh); display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.why-ico { grid-row: span 2; font-size: 1.9rem; width: 52px; height: 52px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; }
.why-grid strong { font-family: var(--font-head); font-size: 1.08rem; }
.why-grid span:last-child { color: var(--muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.section-cta { background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 55%, var(--pink) 100%); overflow: hidden; }
.section-cta .container { position: relative; z-index: 2; max-width: 720px; }
.venues { margin-top: 1.6rem; color: rgba(255,255,255,.9); }
.venues strong { color: #fff; }

/* ---------- About ---------- */
.about-inner { display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about-inner { grid-template-columns: 300px 1fr; gap: 3rem; } }
.about-art { position: relative; min-height: 220px; display: grid; place-items: center; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--blush), #e7e0fb); overflow: hidden; }
.about-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Upcoming workshops ---------- */
.section-upcoming { background: var(--blush); }
.event-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
.event-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; }
@media (min-width: 480px) { .event-card { flex-direction: row; } }
.event-media { position: relative; }
.event-media img { width: 100%; height: 200px; object-fit: cover; display: block; }
@media (min-width: 480px) { .event-media { width: 210px; flex: none; } .event-media img { height: 100%; min-height: 240px; } }
.event-date { position: absolute; top: 12px; left: 12px; background: var(--pink); color: #fff; border-radius: 14px; padding: .45rem .7rem; text-align: center; font-family: var(--font-head); line-height: 1; box-shadow: var(--sh); }
.event-date strong { display: block; font-size: 1.5rem; }
.event-date span { font-size: .7rem; letter-spacing: 1.5px; }
.event-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.event-meta { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .45rem; color: var(--muted); font-size: .96rem; }
.event-meta strong { color: var(--pink); }
.event-body .btn { margin-top: auto; }
.about-emoji { font-size: 5rem; position: relative; z-index: 2; }
.blob-a { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #8fe3da, var(--teal)); opacity: .4; animation: float 9s ease-in-out infinite; }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--ink); }
.about-socials { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.about-socials a { font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--teal-d); background: var(--cream); border: 2px solid rgba(43,168,158,.25); padding: .5rem 1.1rem; border-radius: var(--pill); transition: background .2s, color .2s; }
.about-socials a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: #241f2b; color: #d9d2e0; padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.logo-words--footer .logo-art { color: #fff; }
.footer-brand p { margin-top: .8rem; color: #b3aabf; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a, .footer-social a { color: #d9d2e0; text-decoration: none; font-family: var(--font-head); font-weight: 500; transition: color .2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--pink); }
.footer-social-title { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: .2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #9c93a8; }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal--in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .spark, .marquee-track, .blob-a { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .feature-card:hover, .workshop-card:hover, .kit-card:hover, .gtile:hover { transform: none; }
}
