/* ── FONTS ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-700-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ── VARIABLES ──────────────────────────────────────────────────────── */

:root {
  --cream:  #faf6ed;
  --green:  #1b4332;
  --gold:   #e9a800;
  --navy:   #14213d;
  --white:  #ffffff;

  --font: 'Montserrat', sans-serif;

  --container-max: 1100px;
  --section-pad: 96px 0;
  --section-pad-sm: 64px 0;
}

/* ── RESET ──────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--cream);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── UTILITIES ──────────────────────────────────────────────────────── */

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

.section {
  padding: var(--section-pad);
}

.section-cream {
  background: var(--cream);
  color: var(--navy);
}

.section-green {
  background: var(--green);
  color: var(--cream);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.section-green h2 {
  color: var(--white);
}

.section-cta {
  margin-top: 40px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icon {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
  line-height: 1;
}

.social-icon:hover {
  opacity: 1;
  color: var(--gold);
}

/* ── NAV ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  padding: 15px 0;
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-menu a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ───────────────────────────────────────────────────────────── */

#hero {
  min-height: 70vh;
  background-image: url('../images/cavaquinho_bandolim_page_bg.webp');
  background-color: var(--navy);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.72);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-tagline {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 720px;
}

/* ── ABOUT ──────────────────────────────────────────────────────────── */

#about .col-img {
  width: 100%;
}

#about .col-img img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.18);
}



#about .col-text h2 {
  margin-bottom: 24px;
}

#about .col-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--navy);
}

#about .col-text p:last-child {
  margin-bottom: 0;
}

/* ── WHAT IS CHORO INTRO ────────────────────────────────────────────── */

.choro-intro {
  margin-bottom: 56px;
  align-items: center;
}

.choro-intro h2 {
  margin-bottom: 24px;
}

.choro-intro .col-text p {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.75;
  opacity: 0.9;
}

.choro-intro .col-text p:last-child {
  margin-bottom: 0;
}

.choro-intro .col-img img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.18);
  display: block;
}

/* ── ACCORDION (What is Choro) ──────────────────────────────────────── */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-item {
  border-radius: 4px;
  overflow: hidden;
}

.accordion-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.accordion-item[open] summary {
  background: rgba(255,255,255,0.12);
}

.accordion-item[open] summary::after {
  content: '−';
}

.accordion-item summary:hover {
  background: rgba(255,255,255,0.12);
}

.accordion-body {
  padding: 20px 24px 24px;
  background: rgba(0,0,0,0.2);
  color: var(--cream);
}

.accordion-body p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

.accordion-body a {
  color: var(--gold);
  text-decoration: underline;
}

/* ── EVENTS ─────────────────────────────────────────────────────────── */
/* TEMPORARY — remove this rule to restore the section */
#events { display: none; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.event-card {
  background: var(--white);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.event-band {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--navy);
  opacity: 0.8;
}

.event-admission {
  font-weight: 600;
  opacity: 1 !important;
  color: var(--green) !important;
}

.btn-details {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: 2px solid var(--gold);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-details:hover {
  background: var(--gold);
}

.events-none {
  color: var(--navy);
  font-style: italic;
  margin-bottom: 16px;
}

.events-none a {
  color: var(--green);
  text-decoration: underline;
}



/* ── INSTAGRAM ──────────────────────────────────────────────────────── */

.section-instagram {
  border-top: 1px solid rgba(20,33,61,0.08);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.insta-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.insta-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.insta-item:hover img {
  transform: scale(1.04);
}


/* ── CONTACT ────────────────────────────────────────────────────────── */

.contact-layout {
  align-items: start;
  gap: 80px;
}

.contact-callouts h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.callout {
  margin-bottom: 28px;
}

.callout h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.callout p {
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.65;
}

.contact-socials {
  margin-top: 40px;
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--navy);
  transition: border-color 0.15s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.cf-turnstile {
  margin-bottom: 20px;
}

#contact-form .btn {
  width: 100%;
  text-align: center;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.success {
  background: rgba(255,255,255,0.15);
  color: var(--cream);
}

.form-feedback.error {
  background: rgba(200,50,50,0.2);
  color: #ffcece;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 56px 0 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.15s, color 0.15s;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-socials .social-icon {
  color: var(--cream);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.5;
  text-align: center;
}

/* ── EVENT MODAL ────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.7);
  cursor: pointer;
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-band {
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.modal-datetime,
.modal-venue,
.modal-admission {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.modal-admission {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.modal-ticket {
  display: inline-block;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-layout {
    gap: 48px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-sm);
  }

  .nav-logo img {
    height: 60px;
  }

  #hero {
    background-image: url('../images/cavaquinho_bandolim_mobile.jpg');
    background-size: cover;
    background-position: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.is-open {
    max-height: 320px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .nav-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Instagram 2-col on mobile */
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modal full-width on mobile */
  .modal-box {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 1.4rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}
