/* =========================================================
   AFACH ARTS — style.css
   Mobile-first · Pastel Kawaii · Nunito
   ========================================================= */

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #FFFFFF;
  --primary:       #ADE8F4;   /* pastel blue */
  --primary-dark:  #83d8ee;
  --secondary:     #FFB3C6;   /* pastel pink */
  --secondary-dark:#f092aa;
  --yellow:        #FFF3A3;
  --green:         #C8F7C5;
  --text:          #3D3D3D;
  --text-light:    #7A7A7A;
  --white:         #FFFFFF;
  --radius-sm:     10px;
  --radius:        18px;
  --radius-lg:     28px;
  --shadow-soft:   0 4px 18px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 28px rgba(0,0,0,0.13);
  --transition:    0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-weight: 900; line-height: 1.2; }

.section-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.95); }

.btn--pink {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,179,198,0.45);
}
.btn--pink:hover { background: var(--secondary-dark); box-shadow: 0 6px 20px rgba(255,179,198,0.55); transform: translateY(-2px); }

.btn--blue {
  background: var(--primary);
  color: #3D3D3D;
  box-shadow: 0 4px 14px rgba(173,232,244,0.45);
}
.btn--blue:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(173,232,244,0.55); transform: translateY(-2px); }

.btn--full { width: 100%; }

/* ── Wave Dividers ──────────────────────────────────────── */
.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
  height: 40px;
}
.wave-divider svg { width: 100%; height: 100%; }
.wave-divider--flip { transform: scaleY(-1); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #d6f5fd 0%, #ffd6e7 60%, #fff8c5 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; }

/* Decorative floating doodles */
.hero-deco {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.22;
  animation: floatDeco 6s ease-in-out infinite;
  color: var(--secondary-dark);
  user-select: none;
}
.hero-deco--star  { top: 12%; left: 8%;  animation-delay: 0s; }
.hero-deco--star2 { top: 18%; right: 10%; animation-delay: 2s; font-size: 1.1rem; }
.hero-deco--flower  { bottom: 20%; left: 12%; animation-delay: 1s; color: var(--primary-dark); }
.hero-deco--flower2 { bottom: 15%; right: 8%; animation-delay: 3s; color: #fbbf60; font-size: 1.3rem; }

@keyframes floatDeco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(12deg); }
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  box-shadow: 0 6px 30px rgba(255,179,198,0.35);
  background: #fff;
  padding: 6px;
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #c06c84, #6ab0c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7a7a7a;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about {
  padding: 2rem 1.25rem;
  display: flex;
  justify-content: center;
}

.about-card {
  background: linear-gradient(135deg, #fff0f5 0%, #f0faff 100%);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.about-emoji { font-size: 1.8rem; }

.about-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ── Artist portrait ─────────────────────────────────── */
.artist-portrait-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 0.2rem;
}

/* Outer decorative ring — rotates slowly for a painterly feel */
.artist-portrait-deco {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(
    #FFB3C6 0%,
    #ADE8F4 25%,
    #FFF3A3 50%,
    #c8f7c5 75%,
    #FFB3C6 100%
  );
  animation: spinBorder 8s linear infinite;
  z-index: 0;
}

/* Mask the deco ring to look like dashes by overlaying a white ring */
.artist-portrait-deco::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f5 0%, #f0faff 100%);
}

@keyframes spinBorder {
  to { transform: rotate(360deg); }
}

/* The portrait photo itself */
.artist-portrait {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 6px 24px rgba(192, 108, 132, 0.30);
  border: 4px solid #fff;
}

/* Artist name caption */
.artist-name {
  font-size: 1rem;
  font-weight: 900;
  color: #c06c84;
  letter-spacing: 0.3px;
  margin-top: 0.1rem;
}


/* ══════════════════════════════════════════════════════════
   EVENT
══════════════════════════════════════════════════════════ */
.event {
  padding: 2rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, #fff6f9 0%, #fdf0f5 100%);
  text-align: center;
}

.event-badge {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
}

.event-subtitle {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

/* Flyer thumbnail */
.flyer-thumb-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.flyer-thumb-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.flyer-thumb-btn:hover,
.flyer-thumb-btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.flyer-thumb {
  width: 260px;
  max-width: 85vw;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.flyer-thumb-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary-dark);
  letter-spacing: 0.3px;
}

/* Event details list */
.event-details {
  max-width: 400px;
  margin: 0 auto 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.event-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.detail-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.event-details li strong { font-weight: 800; }
.event-details small { color: var(--text-light); font-size: 0.8rem; }

/* CTA buttons */
.event-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-start;
}

/* ── Calendar picker ───────────────────────────────────── */
.cal-picker-wrap {
  position: relative;
  display: inline-block;
}

.cal-picker-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 0.5rem;
  min-width: 200px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropIn 0.18s ease;
}

.cal-picker-dropdown[hidden] { display: none; }

@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cal-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.cal-option:hover { background: #f5f0ff; color: #7c3aed; }

/* ══════════════════════════════════════════════════════════
   PORTFOLIO — Category Cards
══════════════════════════════════════════════════════════ */
.portfolio {
  padding: 2.5rem 1.25rem;
  background: var(--bg);
}

/* 2-col mobile, 3-col tablet+ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 5th card centered when in 2-col layout */
@media (max-width: 559px) {
  .gallery-grid .cat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 200px;
    justify-self: center;
  }
}

/* ── Category card ───────────────────────────────────── */
.cat-card {
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  aspect-ratio: 3 / 4;
  padding: 0;
  display: block;
  width: 100%;
}

.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover);
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

/* Cover photo */
.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-card-img {
  transform: scale(1.07);
}

/* Pastel colour overlay — colour set via inline style on each card */
.cat-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  transition: opacity var(--transition);
}

/* Top banner strip — solid pastel, holds the category name */
.cat-card-banner {
  width: 100%;
  padding: 0.6rem 0.5rem 0.5rem;
  background: var(--banner-color, rgba(255,179,198,0.88));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  backdrop-filter: blur(2px);
}

.cat-card-name {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.8rem, 3.5vw, 1rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  line-height: 1.2;
}

.cat-card-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

/* Bottom peek gradient — subtle so image is visible */
.cat-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.18));
  pointer-events: none;
}

/* Hover "tap to explore" hint */
.cat-card-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.3px;
}

.cat-card:hover .cat-card-hint,
.cat-card:focus-visible .cat-card-hint { opacity: 1; }


/* ══════════════════════════════════════════════════════════
   COMMISSION FORM
══════════════════════════════════════════════════════════ */
.commission {
  padding: 2.5rem 1.25rem 3rem;
  background: linear-gradient(180deg, #f0faff 0%, #fdf5f8 100%);
}

.commission-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.req { color: var(--secondary-dark); }
.opt { color: var(--text-light); font-weight: 600; font-size: 0.8rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid #e8d8f0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255,179,198,0.25);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-feedback {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.form-feedback--success {
  background: var(--green);
  color: #2d6a2a;
}

.form-feedback--error {
  background: #ffe0e0;
  color: #a03030;
}
.form-feedback--error a { text-decoration: underline; }

/* Loading state */
.btn-loading { display: none; }
.btn[data-loading] .btn-text   { display: none; }
.btn[data-loading] .btn-loading { display: inline; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(135deg, #fde8f0 0%, #e0f7fc 100%);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c06c84;
  background: #fff;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.footer-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.77rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   MODALS — shared
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 40, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: overlayIn 0.2s ease;
  /* Hidden state toggled via [hidden] */
}

.modal-overlay[hidden] { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 92vh;
  overflow: hidden;
}

@keyframes modalIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background var(--transition), transform var(--transition);
}

.modal-close:hover { background: var(--secondary); color: #fff; transform: scale(1.1); }

/* ── Flyer modal ── */
.modal--flyer {
  max-width: min(420px, 95vw);
  width: 100%;
  padding: 10px;
  background: linear-gradient(145deg, #fff0f5, #f0f8ff);
}

.flyer-modal-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  object-fit: contain;
  max-height: 85vh;
}

/* ── Gallery modal ── */
.modal--gallery {
  width: min(600px, 96vw);
  min-height: 340px;
  background: #1a1220;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 48px;
  position: relative;
}

.modal-gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 3.5rem;
}

.modal-gallery-img {
  max-width: 100%;
  max-height: 65vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: block;
}

.modal-gallery-label {
  margin-top: 0.8rem;
  color: #ddd;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* Nav arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2;
}

.modal-nav:hover { background: var(--secondary); }
.modal-nav--prev { left: 8px; }
.modal-nav--next { right: 8px; }

/* Dots */
.modal-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.modal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.modal-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .hero      { padding: 4rem 2rem 3.5rem; }
  .hero-logo { width: 200px; height: 200px; }
  .event-details { max-width: 460px; }
  .event-ctas { gap: 1rem; }
}

@media (min-width: 900px) {
  .hero-logo { width: 220px; height: 220px; }
  .modal--gallery { padding-bottom: 52px; }
}

/* ── Scroll fade-in utility (JS adds .visible) ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
