/* Color variables—using original font colors (black) */
:root {
  --primary-color: #000000;
  --text-color: #000000;
  --bg-light: #d7ebf4;
  --bg-color: #d7ebf4;
  --section-color: #FEB402;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.5;
  padding-top: 29px;
  padding-bottom: 29px;
}

/* Top diamonds fixed */
body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 29px;
  background: url('../images/diamonds.png') repeat-x center;
  z-index: 9999;
  pointer-events: none;
}

/* Bottom diamonds scroll with content */
body::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 29px;
  background: url('../images/diamonds.png') repeat-x center;
  z-index: 0;
}

/* Ensure main content sits between diamonds */
.content,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  text-align: center;
  background: var(--bg-light);
  padding: 1rem;
}

.logo {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 1rem;
}

.site-tagline {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-color);
}

/* Booking image above gold section */
.booking-image {
  display: block;
  margin: 0 auto;
  width: 600px;
  max-width: 100%;
  height: auto;
  padding-bottom: 1rem;
}

/* Gold background for booking section */
.booking {
  background-color: var(--section-color);
  padding: 1rem;
  border-radius: 4px;
}

.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content section {
  margin-bottom: 2rem;
}

.booking h2,
.repertoire h2,
.events h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.booking p,
.events p {
  margin: 0.5rem 0;
}

.contact a {
  color: blue;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  color: red;
}

/* Repertoire list styling */
.repertoire ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin: 0;
}

/* Upcoming performances section */
.upcoming {
  background-color: var(--section-color);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.upcoming h2 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Upcoming table styling (fixed layout on desktop) */
.upcoming-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  table-layout: fixed;
}

.upcoming-table th,
.upcoming-table td {
  padding: 0.5rem 0;
  text-align: left;
  vertical-align: top;
  white-space: normal;        /* wrap at spaces */
  overflow-wrap: break-word;  /* break long unbroken text if needed */
  word-break: normal;         /* don’t force mid-word elsewhere */
}

.upcoming-table tr + tr {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

/* Column width adjustments */
.upcoming-table th:nth-child(1),
.upcoming-table td:nth-child(1) {
  width: 35%;
}

.upcoming-table th:nth-child(2),
.upcoming-table td:nth-child(2) {
  width: 35%;
}

.upcoming-table th:nth-child(3),
.upcoming-table td:nth-child(3) {
  width: 15%;
}

.upcoming-table th:nth-child(4),
.upcoming-table td:nth-child(4) {
  width: 15%;
}

/* Mobile-specific overrides */
@media (max-width: 600px) {
  /* Allow table to auto-layout on mobile for better wrapping */
  .upcoming-table {
    table-layout: auto;
  }

  /* Ensure address column wraps at the space before the ZIP code */
  .upcoming-table td:nth-child(2) {
    white-space: normal;        /* allow breaks at spaces */
    overflow-wrap: break-word;  /* break only if needed */
    word-break: normal;         /* no mid-word breaks */
  }
}

/* Contact Form Styles */
.contact-form-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.contact-form-section h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* Right justify the inline reCAPTCHA badge */
.contact-form .g-recaptcha,
.contact-form .grecaptcha-badge {
  display: block;
  margin: 1rem 0 1rem auto;
}

/* Override default badge fixed positioning */
.grecaptcha-badge {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
}

/* Banner at top of page for form results */
.form-message {
  max-width: 600px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer styling */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  font-size: 0.85rem;
}
