/* =========================================================
   BRUNO'S SOCIETY — Shared styles
   Palette: #F8F1DB cream • #EFB3A7 coral • #A3B7ED periwinkle
            #727D97 slate  • #484C5A charcoal
   ========================================================= */

:root {
  --cream: #F8F1DB;
  --coral: #EFB3A7;
  --peri:  #A3B7ED;
  --slate: #727D97;
  --char:  #484C5A;

  --shadow-soft: 0 8px 30px rgba(72, 76, 90, 0.12);
  --shadow-hard: 6px 6px 0 var(--char);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
}

/* Fonts ---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,700;9..144,900&family=DM+Sans:wght@400;500;700&family=Caveat:wght@600&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--char);
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture using SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.28  0 0 0 0 0.30  0 0 0 0 0.35  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Type ----------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  color: var(--char);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1em; }
a { color: var(--char); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--slate); }

.script { font-family: 'Caveat', cursive; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
  font-size: .78rem;
  color: var(--slate);
  margin-bottom: .8em;
}

/* Layout --------------------------------------------------- */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--peri  { background: var(--peri); }
.section--coral { background: var(--coral); }
.section--char  { background: var(--char); color: var(--cream); }
.section--char h1, .section--char h2, .section--char h3 { color: var(--cream); }
.section--char .eyebrow { color: var(--coral); }

/* Top nav -------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--char);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--char);
}
.brand img { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); object-fit: contain; padding: 2px; }
.brand__name {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
}
.brand__name small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  color: var(--char);
  position: relative;
}
.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--coral);
}
.nav__cta {
  background: var(--char);
  color: var(--cream) !important;
  padding: 10px 16px;
  border-radius: 999px;
}
.nav__cta:hover::after { display: none; }
.nav__cta:hover { background: var(--slate); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: var(--char);
  color: var(--cream);
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 10px; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
  .topbar__inner { flex-wrap: wrap; }
}

/* Buttons -------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--char);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--dark  { background: var(--char);  color: var(--cream); }
.btn--coral { background: var(--coral); color: var(--char); }
.btn--peri  { background: var(--peri);  color: var(--char); }
.btn--ghost { background: transparent;  color: var(--char); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }

/* Hero ----------------------------------------------------- */
.hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: .95;
}
.hero__title em {
  font-style: italic;
  color: var(--coral);
  font-weight: 900;
}
.hero__lede { font-size: 1.15rem; max-width: 46ch; }
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__mascot img {
  width: min(420px, 90%);
  filter: drop-shadow(8px 10px 0 rgba(72,76,90,.18));
}
.hero__badge {
  position: absolute;
  top: 6%;
  right: 4%;
  background: var(--peri);
  border: 2px solid var(--char);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: .9rem;
  line-height: 1.05;
  color: var(--char);
  transform: rotate(-12deg);
  box-shadow: var(--shadow-hard);
  z-index: 2;
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__badge { width: 92px; height: 92px; font-size: .75rem; right: 4%; top: 4%; }
}

/* Marquee strip ------------------------------------------- */
.marquee {
  background: var(--char);
  color: var(--cream);
  overflow: hidden;
  border-top: 2px solid var(--char);
  border-bottom: 2px solid var(--char);
}
.marquee__track {
  display: flex;
  gap: 40px;
  padding: 14px 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: "✦"; color: var(--coral); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Polaroid cards ------------------------------------------ */
.polaroid {
  background: #fff;
  padding: 12px 12px 58px;
  border: 2px solid var(--char);
  box-shadow: var(--shadow-hard);
  transition: transform .2s ease;
  position: relative;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream);
}
.polaroid figcaption {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--char);
  /* keep within white frame, wrap if long, never overflow */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
.polaroid:nth-child(3n+1) { transform: rotate(-2deg); }
.polaroid:nth-child(3n+2) { transform: rotate(1.5deg); }
.polaroid:nth-child(3n+3) { transform: rotate(-0.8deg); }
.polaroid:hover { transform: rotate(0) scale(1.02); z-index: 2; }
.polaroid img { cursor: zoom-in; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(72, 76, 90, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox__frame {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  background: #fff;
  padding: 18px 18px 56px;
  border: 2px solid var(--char);
  box-shadow: 10px 10px 0 rgba(0,0,0,.35);
  cursor: default;
  transform: rotate(-1deg);
}
.lightbox__frame img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--cream);
}
.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--char);
}
.lightbox__close {
  position: absolute;
  top: -18px; right: -18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--char);
  border: 2px solid var(--char);
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 3px 3px 0 var(--char);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cream);
  border: 2px solid var(--char);
  color: var(--char);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--char);
}
.lightbox__nav--prev { left: -24px; }
.lightbox__nav--next { right: -24px; }
@media (max-width: 600px) {
  .lightbox__frame { padding: 10px 10px 42px; }
  .lightbox__close { top: -14px; right: -14px; width: 36px; height: 36px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: -10px; }
  .lightbox__nav--next { right: -10px; }
}

/* Featured grid (Home) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
@media (max-width: 820px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 520px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* Portfolio gallery sections */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .gallery { grid-template-columns: 1fr; } }

/* Section header w/ tag */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--char);
  border: 2px solid var(--char);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}
.section--char .tag { background: var(--coral); }

/* "What to Expect" / feature blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.feature {
  background: var(--cream);
  border: 2px solid var(--char);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
}
.feature__num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--coral);
  line-height: 1;
}
.feature h3 { margin-top: .2em; }
.section--peri .feature { background: var(--cream); }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

/* Two-column blocks */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.two-col img { width: 100%; height: auto; }

/* Course cards */
.course-list {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
.course-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.course-card__media {
  position: relative;
  background: var(--peri);
  display: grid;
  place-items: center;
  padding: 24px;
  border-right: 2px solid var(--char);
}
.course-card__media img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.course-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--cream);
  border: 2px solid var(--char);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.course-card__body { padding: 26px 28px; }
.course-card__body h3 { margin-bottom: 6px; }
.course-card__meta { margin-bottom: 14px; }
.course-card__list {
  margin: 0 0 18px;
  padding-left: 18px;
}
.course-card__list li { margin: 4px 0; }
.course-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 2px dashed var(--char);
  padding-top: 16px;
}
.course-card__price {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--char);
}
.course-card__dates {
  color: var(--slate);
  font-size: .9rem;
}
@media (max-width: 720px) {
  .course-card { grid-template-columns: 1fr; }
  .course-card__media { border-right: 0; border-bottom: 2px solid var(--char); padding: 18px; }
  .course-card__media img { max-height: 160px; }
}

/* Coming-soon card */
.coming-soon {
  background: var(--cream);
  border: 2px dashed var(--char);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  box-shadow: var(--shadow-hard);
}

/* Forms ---------------------------------------------------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--char);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--coral); outline-offset: 2px; }

/* Contact card row */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--cream);
  border: 2px solid var(--char);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-card .icon {
  width: 52px; height: 52px;
  background: var(--peri);
  border: 2px solid var(--char);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 900;
  flex-shrink: 0;
}
.contact-card.coral .icon { background: var(--coral); }

/* Footer --------------------------------------------------- */
.footer {
  background: var(--char);
  color: var(--cream);
  padding: 60px 0 30px;
}
.footer a { color: var(--cream); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.footer__brand img { width: 88px; height: 88px; border-radius: 50%; background: var(--cream); object-fit: contain; padding: 4px; }
.footer__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(248,241,219,.25);
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(248,241,219,.7);
}

/* Decorative stickers */
.sticker {
  position: absolute;
  background: var(--coral);
  border: 2px solid var(--char);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: grid; place-items: center;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: .8rem;
  line-height: 1.05;
  color: var(--char);
  box-shadow: var(--shadow-hard);
}
.sticker--peri { background: var(--peri); }
.sticker--cream { background: var(--cream); }

/* Utility -------------------------------------------------- */
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.divider {
  height: 2px; background: var(--char); border: 0; margin: 40px 0;
}
.lede { font-size: 1.15rem; max-width: 60ch; }
