/* ===========================================================
   Pop Club Choir – Stylesheet
   Version: 2
   Notes:
   - Added --tick-color variable (light & dark theme overrides)
   - Updated .tick li::before to use --tick-color
   - Added .btn { min-width: 300px; text-align:center; }
   - Prevented mobile off-canvas menu from being dragged into view
   - Disabled text selection on .theme-toggle (desktop & mobile)
   =========================================================== */

/* === THEME VARIABLES (LIGHT BY DEFAULT) === */
:root {
  --brand: #650000;
  --brand-dark: #ab0000;
  --logout: #4a0000;
  --logout-dark: #2e0000;
  --nav-bg: #f5f5f5;
  --page-bg: #ffffff;
  --text: #333;
  --text-soft: #555;
  --card: #ffffff;
  --card-border: #e9e9e9;
  --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  --hover-underline: #650000;
  --switch-track: #d7d7d7;
  --switch-thumb: #ffffff;

  /* modal header gradient */
  --gold1: #ffd580;
  --gold2: #e6b800;

  /* shadow */
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  --modal-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);

  /* ✅ default tick color = brand */
  --tick-color: var(--brand);

  .textOnlyLinks {
    color: #c9c9c9;
    text-decoration: none;
  }
  .textOnlyLinks:hover {
    color: #fff;
  }

  .stars {
    margin-left: 0.5rem;
    color: #f3c000;
    font-size: 0.95rem;
  }
}

/* === DARK THEME OVERRIDES === */
body.theme-dark {
  --nav-bg: #1d1d1f;
  --page-bg: #0f0f10;
  --text: #eaeaea;
  --text-soft: #c9c9c9;
  --card: #161618;
  --card-border: #2a2a2d;
  --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  --hover-underline: #ffffff;
  --switch-track: #3a3a3f;
  --switch-thumb: #ffffff;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  --modal-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  /* ✅ brighter tick color in dark mode */
  --tick-color: var(--brand-dark);
}

/* body.theme-dark .modal-content {
  color: #e3e3e3;
} */

body.theme-dark .modal-content input,
body.theme-dark .modal-content textarea {
  color: #efefef;
}

body.theme-dark .modal-content input::placeholder,
body.theme-dark .modal-content textarea::placeholder {
  color: #e3e3e3;
}

body.theme-dark .modal-content,
body.theme-dark .modal-content input {
  border: 1px solid var(--modal-border, #3a3a3a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.492); /* sottile doppio bordo */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden; /* prevent sideways scroll */
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.55;
}

/* === NAVBAR (STICKY) === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
  max-width: 1100px;
  margin: auto;
}

.brand-logo {
  height: 50px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav links (desktop layout) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  transition: color 0.25s ease;
}

/* Dramatic underline on non-pill links (desktop) */
@media (min-width: 768px) {
  .nav-links a:not(.login-btn):not(.logout-btn):hover {
    color: var(--hover-underline);
  }

  .nav-links a:not(.login-btn):not(.logout-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--hover-underline);
    transition: width 0.25s ease;
  }

  .nav-links a:not(.login-btn):not(.logout-btn):hover::after {
    width: 100%;
  }
}

/* Pills */
.login-btn,
.logout-btn {
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 999px;
  display: inline-block;
  transition: background-color 0.25s ease, transform 0.1s ease;
}

.login-btn {
  background: var(--brand);
}

.login-btn:hover {
  background: var(--brand-dark);
}

.logout-btn {
  background: var(--logout);
}

.logout-btn:hover {
  background: var(--logout-dark);
}

.login-btn:active,
.logout-btn:active {
  transform: translateY(1px);
}

/* === THEME TOGGLE PILL (moon/sun) === */
.theme-toggle {
  position: relative;
  width: 70px;
  height: 30px;
  background: var(--switch-track);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  flex-shrink: 0;

  /* prevent selection / highlight (desktop + mobile) */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle,
.theme-toggle * {
  user-select: none;
  -webkit-user-select: none;
}

.theme-toggle .icon {
  font-size: 16px;
  pointer-events: none;
}

.theme-toggle .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

body.theme-dark .theme-toggle .thumb {
  transform: translateX(40px);
}

/* === HAMBURGER (no border) === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.hamburger span {
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE: right slide-in menu (not full height) === */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-center {
    position: static;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 16px;
    margin-top: 8px;
    min-width: 220px;
    max-width: min(85vw, 360px);
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateX(100vw); /* hide fully offscreen */
    transition: transform 0.32s ease-in-out;
    z-index: 40;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.show {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 4px;
  }

  .nav-actions {
    margin-left: auto;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--hero-overlay), url("images/hero.jpg") center/cover no-repeat;
  max-width: 1100px;
  margin: auto;
}

.hero {
  background-position: 50% 20%, 50% 20%;
}

.hero-inner {
  max-width: 980px;
  padding: 56px 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 10px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin: 0 0 22px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;

  /* ✅ uniform button sizing */
  min-width: 300px;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn:active {
  transform: translateY(1px);
}

/* === SECTIONS === */
.section {
  padding: 48px 20px 0px 20px;
  /* border: 1px solid slategray; */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  /* border: 1px solid cyan; */
}

.grid {
  display: grid;
  gap: 20px;
}

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

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-half {
  background: var(--card);
  /* border: 1px solid var(--card-border); */
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  /* box-shadow: var(--shadow); */
}

.card-half img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.img-top {
  object-position: top;
} /* same as 50% 0% */
.img-top-20 {
  object-position: 50% 20%;
} /* slight upward bias */
.img-bottom {
  object-position: bottom;
}

.card-body {
  padding: 18px;
}

.muted {
  color: var(--text-soft);
}

.tick {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tick li {
  margin: 8px 0;
  padding-left: 26px;
  position: relative;
}

.tick li::before {
  content: "✓";
  color: var(--brand-dark);
  position: absolute;
  left: 0;
  top: 0;
}

/* Schedule table */
.schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.schedule td {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  border-radius: 10px;
}

strong.schedule {
  color: var(--brand);
}

/* Dark theme override */
body.theme-dark .schedule strong {
  color: var(--brand-dark); /* or var(--tick-color) */
}

/* Footer */
footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--card-border);
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 0;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 1000;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal.hiding {
  opacity: 0;
}

.modal-content {
  width: min(92vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  box-shadow: var(--modal-shadow);
  color: var(--text);
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  padding: 20px;
  text-align: center;
  border-bottom-left-radius: 50% 22px;
  border-bottom-right-radius: 50% 22px;
}

.modal-header img {
  max-height: 60px;
  display: block;
  margin: 0 auto 10px;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #2b2b2b;
}

.modal-body {
  padding: 22px;
}

.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body input[type="text"],
.modal-body input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid var(--card-border);
  background: var(--page-bg);
  color: var(--text);
  border-radius: 10px;
  font-size: 16px;
}

.modal-body label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.modal-footer {
  padding: 0 22px 22px;
  text-align: center;
}

.modal-footer button {
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  width: 100%;
  transition: background-color 0.25s ease, transform 0.1s ease;
}

.modal-footer button:hover {
  background: var(--brand-dark);
}

.modal-footer button:active {
  transform: translateY(1px);
}

/* ===== Testimonials ===== */
#testimonials {
  /* padding: 3rem 1rem; */
  background: var(--page-bg);
  color: var(--text);
  /* border: 1px solid tomato; */
}

/* #testimonials .section-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
} */

#testimonials .section-intro {
  margin: 0 0 2rem;
  color: var(--text-soft);
}

#testimonials .container {
  max-width: 1100px; /* matches your other sections */
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* 3-up on desktop, 2-up tablet, 1-up mobile */
.testimonial-card {
  grid-column: span 4; /* 12/4 = 3 per row */
  background: var(--card);
  border: 1px solid var(--card-border, rgba(0, 0, 0, 0.06));
  border-radius: var(--radius, 16px);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .testimonial-card {
    grid-column: span 6;
  } /* 2 per row */
}
@media (max-width: 560px) {
  .testimonial-card {
    grid-column: span 12;
  } /* 1 per row */
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-border, rgba(0, 0, 0, 0.08));
}

#testimonials blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.55;
}

#testimonials cite {
  font-style: normal;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Normalize figures used as cards */
figure.card {
  margin: 0;
} /* remove UA default margins */
.card figcaption {
  margin: 0;
} /* tidy, just in case a UA adds margin */

/* === Show/hide helpers for nav === */
.show-mobile {
  display: none;
}
@media (max-width: 767px) {
  .show-mobile {
    display: list-item;
  }
  .hide-mobile {
    display: none !important;
  }
}

/* === Tiny phone button in navbar === */
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  text-decoration: none;
  font-size: 18px; /* emoji size */
  line-height: 1;
  color: var(--text);
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.nav-contact:hover {
  background: var(--card);
  border-color: var(--brand);
}
.nav-contact:active {
  transform: translateY(1px);
}

/* Show/hide helpers for nav items */
.show-mobile {
  display: none;
}
@media (max-width: 767px) {
  .show-mobile {
    display: list-item;
  }
  .hide-mobile {
    display: none !important;
  }
}

/* === Footer contact section (minimal, classic) === */
.footer-contact {
  background: var(--nav-bg);
  border-top: 1px solid var(--card-border);
  padding-top: 36px;
}

/* Two columns on tablet/desktop; stacks on mobile */
.contact-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr; /* Contact | Socials */
    align-items: start;
  }
}

/* Unify heading sizes for Contact us and Socials */
.footer-contact .contact-heading,
.footer-contact h2,
.footer-contact h3 {
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 10px;
}

/* Contact list */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

/* Monochrome icon wrapper */
.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: var(--text);
}

/* Social pills */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}
.social:hover {
  border-color: var(--brand);
  background: var(--card);
}
.social:active {
  transform: translateY(1px);
}

/* Footer links readable in both themes */
.footer-contact a,
.footer-contact a:visited {
  color: var(--text);
  text-decoration: none;
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand);
}

/* Dark-mode micro-contrast */
body.theme-dark .footer-contact .contact-list a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
}
body.theme-dark .footer-contact .social {
  border-color: #3a3a3f;
  background: rgba(255, 255, 255, 0.04);
}
body.theme-dark .footer-contact .social:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Center the copyright line */
#contact .fineprint {
  display: flex;
  justify-content: center;
  text-align: center;
}

#contact .fineprint p {
  margin: 0;
  text-align: center;
}

/* Space above the grey footer */
.footer-contact {
  margin-top: 28px;
}

/* Force the footer to stack: Socials under Contact (one column at all widths) */
#contact .contact-grid {
  display: grid !important;
  grid-template-columns: 1fr !important; /* beats the earlier 1fr 1fr rule */
}

/* Small gap between Contact and Socials blocks */
#contact .contact-block + .contact-block {
  margin-top: 20px;
}

/* Social pills: stack vertically but keep button-width (content width) */
#contact .socials {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* left-align the pills */
}

#contact .social {
  width: auto !important; /* override earlier 100% */
  justify-content: flex-start;
}

/* buy tickets tab */
.tab-screen-right {
  font-size: 25px;
  padding: 5px 25px 2px 25px;
  background: rgba(255, 0, 0, 0.6);
  color: white;
  border-radius: 30px 30px 0px 0px;
  position: fixed;
  top: 40%;
  right: -1px;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 999;
}

.tab-screen-right :hover {
  cursor: pointer;
}

.rotate {
  transform: rotate(-90deg);
  transform-origin: bottom right;
  -ms-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
}
