/* ===========================================================
   COS: THE FERTILE PLACE — Fashion Art Talent Show
   Design tokens: cream base, maroon + gold + deep plum accents
   Pattern motif nods to Kalabari pelete-bite (cut-thread) cloth
   =========================================================== */

:root {
  /* colour */
  --cream:        #F1E8E3;
  --cream-soft:   #FBF6F2;
  --ink:          #241726;
  --ink-soft:     #4A3B4E;
  --maroon:       #B30C47;
  --maroon-deep:  #8C0938;
  --plum:         #2A0C3A;
  --plum-deep:    #1B0726;
  --gold:         #B68D47;
  --gold-light:   #D9BD87;
  --whatsapp:     #25D366;
  --whatsapp-deep:#1DA851;
  --line:         rgba(42,12,58,0.12);

  /* type */
  --font-display: 'Playfair Display', serif;
  --font-head:    'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-script:  'Permanent Marker', cursive;

  /* layout */
  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(27,7,38,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { flex-shrink: 0; }

/* ---------- reveal-on-scroll ----------
   Visible by default (no-JS / slow-JS safe). JS opts elements
   INTO the hidden-then-fade-in state via .reveal-armed, so the
   page never depends on JavaScript to show its content. */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-armed.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-armed { opacity: 1; transform: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-large { padding: 17px 34px; font-size: 16px; }
.btn-small { padding: 10px 18px; font-size: 13px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--plum-deep);
  box-shadow: 0 8px 20px rgba(182,141,71,0.35);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(182,141,71,0.45); }

.btn-maroon {
  background: var(--maroon);
  color: var(--cream-soft);
  box-shadow: 0 8px 18px rgba(179,12,71,0.3);
}
.btn-maroon:hover { background: var(--maroon-deep); }

.btn-outline {
  border: 1.6px solid var(--cream-soft);
  color: var(--cream-soft);
  background: rgba(255,255,255,0.04);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-light {
  border: 1.6px solid rgba(255,255,255,0.55);
  color: var(--cream-soft);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-deep); }

.link-arrow {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--maroon);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--maroon); }

.link-email {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--plum);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241,232,227,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--plum);
  margin-right: auto;
}
.brand-leaf { color: #2e7d4f; display: inline-flex; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
}
.nav-links a { opacity: 0.85; transition: opacity 0.2s ease; }
.nav-links a:hover { opacity: 1; color: var(--maroon); }
.nav-menu {
  display: contents;
}
.nav-cta { margin-left: 4px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #4a1a52 0%, var(--plum) 45%, var(--plum-deep) 100%);
  color: var(--cream-soft);
  padding: 76px 0 0;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23D9BD87' stroke-width='1.3'%3E%3Cpolygon points='42,4 78,42 42,80 6,42'/%3E%3Cpolygon points='42,22 60,42 42,62 24,42'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.title-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--plum-deep);
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 7vw, 68px);
  letter-spacing: 0.01em;
  color: var(--cream-soft);
}
.hero-title .line { display: block; }
.hero-title .script {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 54px);
  color: var(--gold-light);
  margin-top: -4px;
  transform: rotate(-2deg);
}
.hero-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-tags span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-deep);
  background: var(--gold-light);
  padding: 5px 14px;
  border-radius: 999px;
}
.hero-tagline {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(14px, 2vw, 17px);
  color: var(--cream-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hero-tagline em { color: var(--gold-light); font-style: normal; font-weight: 700; }
.tagline-item { display: inline-flex; align-items: center; gap: 7px; }
.tagline-divider { opacity: 0.4; }

.hero-chips {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217,189,135,0.4);
  background: rgba(255,255,255,0.05);
  color: var(--cream-soft);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-divider {
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpolygon points='22,2 40,11 22,20 4,11' fill='none' stroke='%23D9BD87' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 44px 22px;
  background-position: center;
}

/* ---------- sections (shared) ---------- */
.section { padding: 88px 0; }
.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--maroon);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kicker.light { color: var(--gold-light); }
.center { text-align: center; }
.section h2 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--plum);
  max-width: 640px;
}
.section.center h2, h2.center { margin-left: auto; margin-right: auto; }
h2.light { color: var(--cream-soft); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: end;
}
.photo-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--cream-soft);
  outline: 1px solid var(--line);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.photo-card--tall img { aspect-ratio: 3/4.6; }
.photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(42,12,58,0.55);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
}

/* ---------- fabric flip widget ---------- */
.fabric-flip { display: flex; flex-direction: column; align-items: center; }
.flip-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  perspective: 1200px;
}
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--cream-soft);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.flip-back img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.flip-back.sb1 { transform: rotate(-7deg) translateY(2%); z-index: 1; }
.flip-back.sb2 { transform: rotate(6deg) translateY(3%); z-index: 1; }
.flip-card {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--cream-soft);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  background: #fff;
}
.flip-card:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.flip-face {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.22s ease-in;
  transform-origin: center;
}
.flip-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(42,12,58,0.55);
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.flip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--plum);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27,7,38,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.flip-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.flip-prev { left: -14px; }
.flip-next { right: -14px; }
.flip-caption {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.flip-caption #flipCount { color: var(--maroon); font-weight: 700; }

/* ---------- details ---------- */
.details { background: var(--cream-soft); }
.details-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.detail-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.6px solid var(--maroon);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.detail-card h3 {
  font-size: 19px;
  color: var(--plum);
  margin-bottom: 14px;
}
.detail-line {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.detail-line strong { color: var(--ink); }

/* ---------- booths ---------- */
.booths {
  position: relative;
  background: linear-gradient(180deg, var(--plum), var(--plum-deep));
  overflow: hidden;
}
.booths-pattern {
  position: absolute; inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23D9BD87' stroke-width='1.3'%3E%3Cpolygon points='42,4 78,42 42,80 6,42'/%3E%3Cpolygon points='42,22 60,42 42,62 24,42'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
}
.booths .wrap { position: relative; z-index: 1; }
.booths-sub {
  max-width: 480px;
  margin: 14px auto 0;
  color: rgba(251,246,242,0.8);
  font-size: 16px;
}
.booth-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.booth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(217,189,135,0.28);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--cream-soft);
}
.booth-card--vip {
  background: linear-gradient(160deg, rgba(182,141,71,0.16), rgba(255,255,255,0.03));
  border-color: var(--gold);
}
.booth-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-deep);
  background: var(--gold-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.booth-card h3 { font-size: 24px; margin-bottom: 4px; }
.booth-price {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 32px;
  color: var(--gold-light);
  margin-top: 8px;
}
.booth-price-note {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(251,246,242,0.6);
  margin-bottom: 16px;
}
.booth-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(251,246,242,0.78);
  margin-bottom: 20px;
}
.booth-list { margin-bottom: 20px; }
.booth-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(251,246,242,0.92);
}
.booth-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold-light);
  transform: rotate(45deg);
}
.booth-note {
  font-size: 13px;
  font-style: italic;
  color: rgba(251,246,242,0.55);
}

.booth-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.booth-cta-note {
  font-size: 13.5px;
  color: rgba(251,246,242,0.65);
  max-width: 420px;
}

/* ---------- ribbon ---------- */
.ribbon {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  color: var(--plum-deep);
  padding: 18px 0;
}
.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  flex-wrap: wrap;
}
.ribbon-inner p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-sub {
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.contact-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--plum-deep);
  color: rgba(251,246,242,0.7);
  padding: 48px 0 32px;
}
.footer-inner { text-align: center; }
.brand--footer { justify-content: center; color: var(--cream-soft); margin-bottom: 14px; }
.footer-tagline { font-size: 13.5px; letter-spacing: 0.02em; margin-bottom: 8px; }
.footer-copy { font-size: 12.5px; opacity: 0.7; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream-soft);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-gallery { grid-template-columns: 1fr 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .booth-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .flip-prev { left: -10px; }
  .flip-next { right: -10px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 58px; }
  .hero-inner { padding-bottom: 46px; }
  .btn-large { width: 100%; }
  .about-gallery { grid-template-columns: 1fr; gap: 22px; }
  .photo-card--tall img, .photo-card img { aspect-ratio: 4/3; }
  .flip-stack { aspect-ratio: 4/3; max-width: 320px; margin: 0 auto; }
  .flip-back.sb1, .flip-back.sb2 { display: none; }
}
