/* =========================================================
   Phoenix Mill Events — styles.css
   - Core palette + layout primitives
   - Header/Nav styling
   - Hero carousel layout (JS controls transform)
   - Venue collage layout
   - Event Types tab system (buttons + media collage + content panes)
   - Parallax band styling
   - Footer styling
   ========================================================= */

:root{
  --bg: #f2e6cf;
  --bg2: #efe0c5;
  --ink: #173a2c;
  --ink2: #0f2a20;
  --accent: #1f4a38;
  --white: #ffffff;
  --shadow: rgba(0,0,0,.10);
  --wrap: 1120px;
  --radius: 18px;
}

*{ box-sizing: border-box; }
html,body{ margin: 0; padding: 0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink2);
  background: radial-gradient(1200px 700px at 50% 0%, #f6e9cf 0%, var(--bg) 45%, #ecdcbf 100%);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .92; }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.dot{ margin: 0 10px; opacity: .6; }

/* =========================================================
   Top ribbon
   ========================================================= */
.topbar{
  background: #0f2a20;
  color: #e7f0ea;
  font-size: 14px;
}
.topbar__inner{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.topbar a{ color: #e7f0ea; }

/* =========================================================
   Header / Nav
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,230,207,.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,58,44,.12);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand__logo{
  height: 72px;
  width: auto;
  display: block;
}
.brand__name{
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .4px;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.05;
  color: var(--ink);
}

.nav{ display: flex; align-items: center; gap: 18px; }
.nav a{ font-weight: 600; color: var(--ink); }

/* Ensure nav link rule does not override button colors */
.nav a.btn{ color: var(--white); }
.nav a.btn.btn--ghost{ color: var(--ink); }

.navToggle{ display: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0);
  box-shadow: 0 8px 22px var(--shadow);
}
.btn--ghost{
  background: transparent;
  border-color: rgba(23,58,44,.35);
  color: var(--ink);
  box-shadow: none;
}
.btn--sm{ padding: 9px 14px; font-size: 14px; }

/* =========================================================
   Typography
   ========================================================= */
.kicker{ letter-spacing: .2em; text-transform: uppercase; font-size: 12px; opacity: .9; }
h1,h2{ font-family: Georgia, "Times New Roman", serif; margin: 10px 0 10px; }
h1{ font-size: 52px; }
h2{ font-size: 40px; }
.lead{ font-size: 18px; line-height: 1.6; opacity: .95; }
.actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.muted{ opacity: .78; line-height: 1.6; }

/* =========================================================
   Sections / Layout
   ========================================================= */
.section{ padding: 64px 0; }
.section--alt{ background: rgba(255,255,255,.38); }
.sectionHead{ margin-bottom: 18px; }
.sectionHead h2{ margin: 0 0 8px; color: var(--ink); }

.grid2{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}

.card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(23,58,44,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px var(--shadow);
}

.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.capCard,.setupCard,.articleCard{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(23,58,44,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px var(--shadow);
}
.articleCard{ display: block; }
.articleCard:hover{ transform: translateY(-2px); transition: transform .15s ease; }

/* Simple list style */
.list{ margin: 10px 0 0; padding-left: 18px; }
.list li{ margin: 6px 0; }

/* =========================================================
   Venue: overlapped photo collage
   ========================================================= */
.venueGrid{
  grid-template-columns: .95fr 1.05fr;
  align-items: start;
}
.venueText{ display: grid; gap: 16px; }
.venueMedia{
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
}
.venueImg{
  position: absolute;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(23,58,44,.12);
  object-fit: cover;
  background: rgba(255,255,255,.35);
}
.venueImg--a{ top: 0; left: 0; width: 78%; height: 72%; z-index: 2; }
.venueImg--b{ bottom: 0; right: 0; width: 58%; height: 52%; z-index: 3; }
.venueImg--c{ top: 14%; right: 8%; width: 34%; height: 34%; z-index: 4; }

/* =========================================================
   HERO: Horizontal carousel
   - JS updates .hero__track transform
   ========================================================= */
.hero{ position: relative; }
.hero__slider{
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}
.hero__track{
  height: 100%;
  width: 100%;
  display: flex;
  will-change: transform;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
  transform: translate3d(0,0,0);
}
.hero__track.is-instant{ transition: none !important; }
.slide{
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero__track .slide::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,42,32,.78) 0%, rgba(15,42,32,.25) 55%, rgba(15,42,32,.05) 100%);
}
.hero__track .slide__content{
  position: relative;
  padding: 80px 0;
  color: #f3f3f3;
  max-width: 720px;
  z-index: 2;
}

/* Controls */
.sliderBtn, .dots{ position: absolute; z-index: 10; }
.sliderBtn{
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(15,42,32,.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
}
.sliderBtn.prev{ left: 16px; }
.sliderBtn.next{ right: 16px; }

.dots{
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 55;
}
.dots button{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.15);
  cursor: pointer;
}
.dots button.is-active{
  background: rgba(255,255,255,.95);
}

/* =========================================================
   Parallax band
   ========================================================= */
.parallax{
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 0;
}
.parallax__media{
  position: absolute;
  inset: -18vh 0;
  background-size: cover;
  background-position: center;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.parallax__overlay{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: rgba(15,42,32,.55);
}
.parallax__content{
  color: #fff;
  padding: 72px 0;
}
@media (prefers-reduced-motion: reduce){
  .parallax__media{ transform: none !important; }
}

/* =========================================================
   Event Types: buttons + collage + panes
   ========================================================= */
.eventTypesNav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.eventTypesGrid{
  grid-template-columns: .95fr 1.05fr;
  align-items: start;
}
.eventTypesMedia{
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

/* Only one mediaSet visible at a time */
.eventTypesMedia .mediaSet{
  position: absolute;
  inset: 0;
  display: none;
}
.eventTypesMedia .mediaSet.is-active{ display: block; }

.eventImg{
  position: absolute;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(23,58,44,.12);
  object-fit: cover;
  background: rgba(255,255,255,.35);
}
.eventImg--a{ top: 0; left: 0; width: 78%; height: 72%; z-index: 2; }
.eventImg--b{ bottom: 0; right: 0; width: 58%; height: 52%; z-index: 3; }
.eventImg--c{ top: 14%; right: 8%; width: 34%; height: 34%; z-index: 4; }

.feature__panel{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(23,58,44,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px var(--shadow);
}
.featurePane{ display: none; }
.featurePane.is-active{ display: block; }

/* Event Types buttons */
#event-types .eventTypesNav .featureBtn{
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font: 700 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink2);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(23,58,44,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease, color .2s ease;
}
#event-types .eventTypesNav .featureBtn:hover{
  background: rgba(255,255,255,.90);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
#event-types .eventTypesNav .featureBtn.is-active,
#event-types .eventTypesNav .featureBtn[aria-selected="true"]{
  background: linear-gradient(135deg, rgba(31,74,56,.95), rgba(15,42,32,.95));
  color: #fff;
  border-color: rgba(15,42,32,.85);
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
}
#event-types .eventTypesNav .featureBtn:focus-visible{
  outline: 2px solid rgba(31,74,56,.55);
  outline-offset: 3px;
}

/* =========================================================
   Footer
   ========================================================= */
.siteFooter{
  background: #0f2a20;
  color: #e7f0ea;
  padding: 12px 0 10px;
}
.siteFooter a{ color: #e7f0ea; }
.siteFooter a:hover{ opacity: .92; }

.siteFooter__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .75fr;
  gap: 16px;
  align-items: start;
}
.siteFooter__name{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 6px;
}
.siteFooter__tagline{
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.25;
  opacity: .9;
  max-width: 42ch;
}
.siteFooter__head{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.1;
  opacity: .9;
}
.siteFooter__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
}
.siteFooter__bottom{
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(231,240,234,.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: .9;
}
.siteFooter__smallLinks{
  display: flex;
  gap: 12px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .siteFooter__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .venueGrid{ grid-template-columns: 1fr; }
  .venueMedia{
    min-height: auto;
    display: grid;
    gap: 12px;
  }
  .venueImg{
    position: static;
    width: 100%;
    height: 220px;
  }

  .eventTypesGrid{ grid-template-columns: 1fr; }
  .eventTypesMedia{
    min-height: auto;
    display: grid;
    gap: 12px;
    overflow: visible;
    height: auto;
    max-width: none;
  }
  .eventTypesMedia .mediaSet{ position: static; }
  .eventImg{
    position: static;
    width: 100%;
    height: 220px;
  }

  h1{ font-size: 40px; }
  h2{ font-size: 34px; }

  .nav{ display: none; }
  .navToggle{
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(23,58,44,.25);
    background: transparent;
    border-radius: 999px;
    padding: 10px 14px;
  }
  .brand__logo{ height: 38px; }
  .brand__name{ font-size: 18px; }
}
@media (max-width: 560px){
  .siteFooter__grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Gallery thumbnails — force consistent sizing + cropping
   ========================================================= */
.galleryGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.galleryItem{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(23,58,44,.12);
  box-shadow: 0 10px 28px var(--shadow);
  background: rgba(255,255,255,.55);

  /* Consistent thumbnail “frame” */
  aspect-ratio: 4 / 3;
}

.galleryItem img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop to fill frame */
  object-position: center; /* center subject */
}

/* Responsive */
@media (max-width: 1200px){
  .galleryGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  .galleryGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .galleryGrid{ grid-template-columns: 1fr; }
}

/* =========================================================
   History page: force consistent image tiles (matches Gallery)
   Works with your current HTML classes:
   .historyRow, .historyTiles3, .historyGrid9, .tile
   ========================================================= */

/* Two-column layout: photos left, text right */
.historyRow{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

/* 3-photo layout: 1 wide on top, 2 below */
.historyTiles3{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.historyTiles3 .tile:nth-child(1){
  grid-column: 1 / -1; /* make the first image span full width */
}

/* The tile wrapper should crop the image */
.historyTiles3 .tile,
.historyGrid9 .tile{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(23,58,44,.12);
  box-shadow: 0 10px 28px var(--shadow);
  background: rgba(255,255,255,.55);
}

/* Force consistent sizing + cropping */
.historyTiles3 .tile{
  height: 180px; /* adjust if you want taller */
}

.historyTiles3 img,
.historyGrid9 img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* 9-photo grid: keep consistent tiles */
.historyGrid9{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.historyGrid9 .tile{
  height: 180px; /* same height as above for consistency */
}

/* Responsive */
@media (max-width: 900px){
  .historyRow{ grid-template-columns: 1fr; }
  .historyGrid9{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .historyGrid9{ grid-template-columns: 1fr; }
  .historyTiles3 .tile,
  .historyGrid9 .tile{ height: 220px; }
}

/* === Fix: ensure Venue section header buttons are clickable === */
#venue .sectionHead{
  position: relative;
  z-index: 5;
}

#venue .sectionHead .actions{
  position: relative;
  z-index: 6;
}

#venue .sectionHead .actions a{
  pointer-events: auto;
}

/* =========================================================
   Preferred Vendors — FINAL GRID (clean + centered)
   ========================================================= */

.vendorsGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Card polish */
.vendorCard{
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(23,58,44,.14);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.vendorCard:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0,0,0,.18);
}

.vendorHead{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}

/* Vendor rows */
.vendorList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.vendorItem{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(23,58,44,.10);
  transition: background .15s ease, transform .15s ease;
}

.vendorItem:hover{
  background: rgba(255,255,255,.92);
  transform: translateY(-1px);
}

.vendorName{
  font-weight: 700;
  color: var(--ink2);
}

.vendorMeta{
  font-size: 14px;
  opacity: .75;
  margin-top: 2px;
}

/* Visit button */
.vendorVisit{
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.vendorVisit:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* === Preferred Vendors: stop vendor tiles from spilling out === */

/* Make each vendor row a normal full-width tile inside the card */
.vendorList { 
  width: 100%;
}

.vendorItem{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;           /* prevents any internal bleed */
}

/* Ensure the "Visit" pill never forces the tile wider than its container */
.vendorItem__info{
  min-width: 0;               /* allows text to wrap instead of forcing width */
}

.vendorVisit{
  flex: 0 0 auto;
}

/* Optional: if anything still tries to spill, clamp it at the card level */
.vendorCard{
  overflow: hidden;
}

/* === Preferred Vendors: clean vendor row typography (no stupid wrapping) === */

.vendorItem{
  display: grid;
  grid-template-columns: 1fr auto; /* info left, button right */
  align-items: center;
  gap: 14px;
}

.vendorItem__info{
  min-width: 0; /* allows safe truncation/wrap of NAME only */
}

.vendorName{
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  word-break: normal;
  overflow-wrap: normal;
}

.vendorMeta{
  font-size: 14px;
  opacity: .78;
  white-space: nowrap;    /* keeps 734-837-3668 on ONE line */
  letter-spacing: .02em;  /* makes numbers feel cleaner */
}

/* Optional: if a long vendor name gets crazy, it wraps nicely without breaking every word */
.vendorName{
  overflow-wrap: anywhere;
}
