@charset "UTF-8";

/* ============================================================
   The Jeffery Concerts — style.css
   ============================================================ */


/* === CSS Variables ========================================== */

:root {
  --color-maroon:    #993333;
  --color-brown:     #453f36;
  --color-white:     #ffffff;
  --color-black:     #000000;
  --color-link:      #0c6aa6;

  --font-body:       Arial, Helvetica, sans-serif;
  --font-size-base:  14px;
  --font-size-small: 12px;
  --font-size-title: 16px;
  --font-size-h1:    36px;
  --font-size-h2:    24px;

  --max-width:       960px;
}


/* === Reset / Base =========================================== */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-black);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
}

a:hover, a:focus {
  text-decoration: underline;
}

ul {
  padding-left: 1.5em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}


/* === Site Shell ============================================= */

.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}


/* === Header ================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 2px solid var(--color-maroon);
  gap: 16px;
}

.logo a {
  display: block;
  line-height: 0;
}

.logo img {
  width: 260px;
  max-width: 100%;
}


/* === Navigation ============================================= */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  font-weight: bold;
  font-size: var(--font-size-base);
  color: var(--color-brown);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-maroon);
  text-decoration: underline;
}


/* === Main Content Area ====================================== */

.page-content {
  padding: 28px 0 40px;
}

.page-title {
  font-size: var(--font-size-h1);
  font-weight: bold;
  color: var(--color-brown);
  margin: 0 0 20px;
}

/* Section headings used within content (e.g. tickets.html) */
.section-heading {
  font-size: var(--font-size-title);
  font-weight: bold;
  color: var(--color-brown);
}

/* Coloured links used throughout (concert titles, sidebar links, etc.) */
.concerttitle,
.concerttitle a,
.concerttitle a:visited {
  color: var(--color-maroon);
  font-weight: bold;
  text-decoration: none;
}
.concerttitle a:hover,
.concerttitle a:focus {
  text-decoration: underline;
}

/* Utility: image floated left with margin (used in about.html) */
.float-left {
  float: left;
  margin: 0 20px 16px 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}


/* === Buy Now Button ========================================= */

.btn-buy {
  display: inline-block;
  background-color: var(--color-maroon);
  color: var(--color-white);
  font-weight: bold;
  font-size: var(--font-size-base);
  padding: 10px 28px;
  border-radius: 4px;
  text-decoration: none;
  margin: 8px 0;
}

.btn-buy:hover,
.btn-buy:focus {
  background-color: var(--color-brown);
  color: var(--color-white);
  text-decoration: none;
}


/* === Home Page: Carousel =================================== */

/* === Carousel ===
   6 slides × 5s visible + 1s fade = 36s total cycle
   Each slide's animation-delay = its index × 6s

   When the season changes (different number of concerts):
     - Count slides: N
     - Per-slide time: choose how many seconds each is visible (e.g. 5s) + 1s fade = 6s each
     - Total: N × 6s
     - Update: animation duration on .carousel-slide → new total
     - Update: nth-child delays → 0, 6, 12, 18 ... (N-1)×6
     - Update: @keyframes percentages → visible % = 5/total, fade % = 6/total
*/

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 910 / 400;
  overflow: hidden;
  background-color: #000;
  margin-bottom: 28px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: carousel-fade 36s infinite;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;  /* anchor crop to top so heads are not cut */
  display: block;
}

/* Caption bar — shown at bottom of each slide */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 14px;
  padding: 8px 14px;
  pointer-events: none;
}

.carousel-slide:nth-child(1) { animation-delay:  0s; }
.carousel-slide:nth-child(2) { animation-delay:  6s; }
.carousel-slide:nth-child(3) { animation-delay: 12s; }
.carousel-slide:nth-child(4) { animation-delay: 18s; }
.carousel-slide:nth-child(5) { animation-delay: 24s; }
.carousel-slide:nth-child(6) { animation-delay: 30s; }

@keyframes carousel-fade {
  0%     { opacity: 1; }   /* start visible */
  13.89% { opacity: 1; }   /* stay visible for 5s (5/36 = 13.89%) */
  16.67% { opacity: 0; }   /* fade out over 1s (6/36 = 16.67%) */
  100%   { opacity: 0; }   /* stay hidden until next cycle */
}


/* === Home Page: Season Listing ============================= */

.season-label {
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.season-title {
  font-size: var(--font-size-h1);
  font-weight: bold;
  color: var(--color-brown);
  margin: 0 0 16px;
}

.concert-list {
  margin-bottom: 32px;
}

.concert-list p {
  margin-bottom: 12px;
}

.concert-list .concert-name {
  font-weight: bold;
  color: var(--color-maroon);
}

.concert-list .concert-name a,
.concert-list .concert-name a:visited {
  color: var(--color-maroon);
  text-decoration: none;
}

.concert-list .concert-name a:hover,
.concert-list .concert-name a:focus {
  text-decoration: underline;
}


/* === Home Page: Featured Composer Box ====================== */

.featured-composer {
  border: 3px solid var(--color-maroon);
  border-radius: 30px;
  padding: 25px;
  margin: 32px 0;
}

.featured-composer-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.featured-composer-photo {
  flex-shrink: 0;
}

.featured-composer-photo img {
  height: 250px;
  width: auto;
  display: block;
}

.featured-composer-name {
  font-size: var(--font-size-h2);
  font-weight: bold;
  margin: 0 0 4px;
}

.featured-composer-subtitle {
  font-size: var(--font-size-h2);
  margin: 0 0 14px;
}


/* === Concerts Page: Concert Entries ======================== */

.concert-entry {
  margin-bottom: 48px;
}

.concert-entry img.banner {
  width: 100%;
  display: block;
  margin-bottom: 16px;
}

.concert-title {
  font-size: var(--font-size-title);
  font-weight: bold;
  color: var(--color-brown);
  margin: 0 0 6px;
}

.concert-title a,
.concert-title a:visited {
  color: var(--color-maroon);
  text-decoration: none;
}

.concert-title a:hover,
.concert-title a:focus {
  text-decoration: underline;
}


/* === About Pages: Sidebar Layout =========================== */

.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-main {
  flex: 1;
  min-width: 0;
}

.about-sidebar {
  width: 160px;
  flex-shrink: 0;
  padding-top: 4px;
}

.about-sidebar a {
  display: block;
  font-weight: bold;
  color: var(--color-maroon);
  text-decoration: none;
  margin-bottom: 14px;
  font-size: var(--font-size-base);
}

.about-sidebar a:hover,
.about-sidebar a:focus {
  text-decoration: underline;
}


/* === Footer ================================================= */

.site-footer {
  background-color: var(--color-maroon);
  color: var(--color-white);
  margin-top: 40px;
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}

.footer-mailchimp {
  flex: 0 0 240px;
}

.footer-address {
  flex: 0 0 240px;
  text-align: center;
  font-size: var(--font-size-small);
  line-height: 1.6;
}

.footer-org-name {
  display: block;
  font-weight: bold;
  font-size: var(--font-size-base);
  margin-bottom: 6px;
}

.footer-social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.footer-social a {
  display: block;
  line-height: 0;
}

.footer-social svg {
  width: 36px;
  height: 36px;
  fill: var(--color-white);
  transition: fill 0.2s;
}

.footer-social a:hover svg,
.footer-social a:focus svg {
  fill: #f0c0c0;
}

/* MailChimp embed overrides */
#mc_embed_signup {
  background: transparent;
  font: var(--font-size-base) var(--font-body);
  color: var(--color-white);
}

#mc_embed_signup .mc-field-group {
  padding-bottom: 0;
}

.footer-mailchimp .footer-subscribe-label {
  display: block;
  font-weight: bold;
  font-size: var(--font-size-base);
  margin-bottom: 8px;
}

#mc_embed_signup input.email {
  display: block !important;
  width: 100% !important;
  float: none !important;
  padding: 7px 10px;
  margin: 6px 0;
  border: none;
  border-radius: 3px;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
}

#mc_embed_signup input[type="submit"],
#mc_embed_signup .button {
  display: block !important;
  width: 100% !important;
  background-color: var(--color-brown) !important;
  color: var(--color-white) !important;
  border: none !important;
  padding: 7px 18px !important;
  cursor: pointer;
  border-radius: 3px !important;
  font-weight: bold;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  margin-top: 4px;
  line-height: normal;
  text-align: center !important;
  float: none !important;
}

#mc_embed_signup input[type="submit"]:hover,
#mc_embed_signup .button:hover {
  background-color: #2a2520 !important;
}

/* === Responsive: 768px (tablet / mobile) =================== */

@media (max-width: 768px) {

  /* Header */
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 14px;
    gap: 12px;
  }

  /* Nav wraps left-aligned */
  .site-nav {
    justify-content: flex-start;
    gap: 6px 16px;
  }

  /* Featured composer: stack image above text */
  .featured-composer-inner {
    flex-direction: column;
  }

  .featured-composer-photo img {
    height: auto;
    width: 100%;
    max-width: 280px;
  }

  /* About sidebar: horizontal row below content */
  .about-layout {
    flex-direction: column;
  }

  .about-sidebar {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 0;
    border-top: 1px solid #ddd;
    padding-top: 16px;
  }

  .about-sidebar a {
    display: inline;
    margin-bottom: 0;
  }

  /* Footer: stack columns */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-address {
    text-align: left;
  }

}


/* === Responsive: 480px (small phones) ====================== */

@media (max-width: 480px) {

  .page-title,
  .season-title {
    font-size: 28px;
  }

  .featured-composer-name,
  .featured-composer-subtitle {
    font-size: 20px;
  }

  .site-nav {
    gap: 6px 12px;
    font-size: 13px;
  }

  .logo img {
    width: 200px;
  }

}
