/* ==========================================================================
   Long Island Family Festival - static rebuild
   Faithful port of the Avada/Fusion source (see _audit/). No redesign.
   ========================================================================== */

:root {
  /* palette */
  --c1: #ffffff;
  --c2: #f9f9fb;
  --c3: #f2f3f5;
  --c4: #e48dbf;   /* pink - links */
  --c5: #0037db;   /* blue - primary, text, headings */
  --c6: #434549;
  --c7: #212326;
  --c8: #141617;
  --lime: #eafca7; /* custom_color_1 */

  --link: var(--c4);
  --link-hover: #ed61d8;
  --blue-dark: hsl(225, 95%, 33%);   /* button hover (color5 -5%s -10%l) */

  /* type */
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-nav: "Poppins", Arial, Helvetica, sans-serif;

  /* layout - one width rule for the whole site (LIFF box = 1200px) */
  --site-width-cap: 1200px;
  --site-edge-min: 20px;   /* min breathing room each side at any viewport */
  --site-width: min(var(--site-width-cap), calc(100vw - var(--site-edge-min) * 2));
  --section-pad: 75px;
  --col-gap: 30px;
}

/* ------------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c3);
  color: var(--c5);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
main { background: var(--c1); }  /* Avada #main content bg = white; body gray only behind */
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c5);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: 3em; font-weight: 600; }
h2 { font-size: 2.25em; font-weight: 400; line-height: 1.1; }
h3 { font-size: 1.75em; font-weight: 400; }
h4 { font-size: 24px; font-weight: 400; }
h5 { font-family: var(--font-body); font-size: 20px; font-weight: 600; }
h6 { font-family: var(--font-body); font-size: 16px; font-weight: 600; }

/* ------------------------------ layout -------------------------------- */
/* SITE-WIDTH BOX - page-shell grid (chadlewine pattern, LIFF 1200px width).
   ONE width rule for the whole site. Every section spans the viewport; its
   content re-anchors to --site-width via the centered content track. A child
   marked .full-bleed spans all three tracks back out to the viewport edges.
   --site-width shrinks responsively so content never kisses the edge. */
main {
  display: grid;
  grid-template-columns:
    [full-start] 1fr
    [content-start] var(--site-width) [content-end]
    1fr [full-end];
  align-content: start;
  background: var(--c1);
}
main > * { grid-column: content; min-width: 0; }
main > section,
main > .full-bleed { grid-column: full; }

/* each section is itself a shell: full-width background, content re-anchored */
main > section {
  display: grid;
  grid-template-columns:
    [full-start] 1fr
    [content-start] var(--site-width) [content-end]
    1fr [full-end];
  align-content: start;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
main > section > * { grid-column: content; min-width: 0; }
main > section > .full-bleed { grid-column: full; }

.section--flush-top { padding-top: 0; }
.section--flush { padding-top: 0; padding-bottom: 0; }
.container { width: 100%; }
.container.center { text-align: center; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--col-gap);
  width: 100%;
}
.row--center { justify-content: center; }
.row--tight { gap: 0; }

/* Avada column fractions (flex-basis, minus the gap share).
   flex-grow:0 so a lone column keeps its fraction instead of stretching. */
.col { flex: 0 1 100%; min-width: 0; }
.col-1_1 { flex-basis: 100%; }
.col-3_4 { flex-basis: calc(75% - var(--col-gap)); }
.col-2_3 { flex-basis: calc(66.66% - var(--col-gap)); }
.col-1_2 { flex-basis: calc(50% - var(--col-gap)); }
.col-2_5 { flex-basis: calc(40% - var(--col-gap)); }
.col-1_3 { flex-basis: calc(33.33% - var(--col-gap)); }
.col-1_4 { flex-basis: calc(25% - var(--col-gap)); }
.col-1_6 { flex-basis: calc(16.66% - var(--col-gap)); }
.row--tight .col { flex-basis: 50%; }
.row--tight .col-1_2 { flex-basis: 50%; }

/* ------------------------------ buttons ------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  padding: 11px 23px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  background: var(--c5);
  color: var(--c1);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--blue-dark); color: var(--c1); }

.btn-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  padding: 11px 23px;
  border-radius: 25px;
  border: 2px solid rgba(0, 55, 219, 0.16);
  background: linear-gradient(180deg, #f5fce0 0%, var(--c2) 100%);
  color: rgba(0, 55, 219, 0.69);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-pill:hover { background: var(--c5); color: var(--lime); }

.btn-lg { font-size: 18px; padding: 14px 30px; }

/* ------------------------------ header -------------------------------- */
.site-header {
  background: var(--lime);
  display: grid;
  grid-template-columns:
    [full-start] 1fr
    [content-start] var(--site-width) [content-end]
    1fr [full-end];
  align-content: start;
}
.site-header > * { grid-column: content; min-width: 0; }
.site-header > .full-bleed { grid-column: full; }
.site-header__bar {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: 116px; height: auto; }
/* right side is a two-line stack: nav row above, ticket/map pills below */
.site-header__right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.site-header__nav { display: flex; align-items: center; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px dashed rgba(0, 55, 219, 0.23);
}
.main-nav a {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--c5);
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: var(--c5); color: var(--lime); }
.header-ctas { display: flex; align-items: center; gap: 10px; }
.header-ctas .btn-pill { font-size: 13px; padding: 8px 18px; }

/* mobile nav */
.nav-toggle {
  display: none;
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 1.5em;
  text-transform: uppercase;
  color: var(--c5);
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.mobile-panel { display: none; }

/* ------------------------------ footer -------------------------------- */
.site-footer {
  background: var(--c5);
  color: var(--lime);
  display: grid;
  grid-template-columns:
    [full-start] 1fr
    [content-start] var(--site-width) [content-end]
    1fr [full-end];
  align-content: start;
}
.site-footer > * { grid-column: content; min-width: 0; }
.site-footer__inner {
  padding: var(--section-pad) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--col-gap);
}
.site-footer .fcol { flex: 1 1 calc(33.33% - var(--col-gap)); min-width: 220px; }
/* logo displays full-size within its column (source: image_id 43|full, no cap) */
.site-footer__logo img { width: 100%; max-width: 400px; height: auto; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
/* footer menu - source: 1.23em (=30.26px live) Space Grotesk 600 lime,
   items_padding 8px vertical / 15px horizontal.
   Hover/active: lime rectangle + blue text, NO radius
   (source active_bg=custom_color_1, active_color=color5). */
.footer-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.3;
  color: var(--lime);
  padding: 8px 15px;
  margin-left: -15px;
  width: fit-content;
  transition: background .2s, color .2s;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { background: var(--lime); color: var(--c5); }
/* titles are h4 (source size="4"): 24px Space Grotesk 400 - use the global h4, recolor lime */
.site-footer h4 { color: var(--lime); margin: 0 0 .3em; }
.site-footer .fsep { border: 0; border-top: 1px solid rgba(234, 252, 167, 0.29); margin: .4em 0 .8em; }
.site-footer .faddr { font-size: 14px; line-height: 1.3; color: var(--lime); }
/* subtle build credit - its own row, left aligned */
.built-credit { margin-top: 38px; }
.built-credit a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 55, 219, 0.45);
  transition: color .2s;
}
.built-credit a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.footer-copyright {
  background: var(--c1);
  display: grid;
  grid-template-columns:
    [full-start] 1fr
    [content-start] var(--site-width) [content-end]
    1fr [full-end];
}
.footer-copyright > * { grid-column: content; }
.footer-copyright__inner { padding: 20px 0; text-align: center; font-size: 12px; color: var(--c6); }

/* ------------------------------ home ---------------------------------- */
.hero {
  background: url("../images/carousel.webp") center center / cover no-repeat;
}
.hero__card {
  background: var(--lime);
  border-radius: 65px;
  padding: 50px;
  width: 75%;
  margin-inline: auto;
  text-align: center;
}
.hero__card h1 {
  font-size: 3.4em;
  line-height: 1.6;
  margin: 0;
  text-shadow: 3px 3px 10px var(--c4);
  white-space: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero__marquee { display: inline-flex; white-space: nowrap; animation: hero-marquee 12s linear infinite; }
.hero__marquee-item { display: inline-block; }
@keyframes hero-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero__marquee { animation: none; } }
.hero__card h2 { margin: .2em 0; }
.hero__card h3 { margin: .1em 0; }
.hero__rain { font-size: .8em; color: rgba(0, 55, 219, 0.61); margin-top: .2em; }
.hero__card .btn { margin-top: 18px; }

.band-center { text-align: center; }
.band-center h2 { font-size: 3em; font-weight: 700; margin-bottom: .3em; }
.band-center .lead { font-size: 2em; line-height: 1.35; }

.about-grid { gap: 0; justify-content: flex-start; }
.about-grid .col-1_2 { flex-basis: 50%; max-width: 50%; }
.about-grid .col-2_5 { flex-basis: 40%; max-width: 40%; }
.about-grid .about-card {
  background: var(--lime);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-grid .about-img { padding: 0; }
.about-grid .about-img img { width: 100%; height: 100%; object-fit: cover; }

/* festival-info sections */
.section--pagetitle { padding-bottom: 30px; }
.band-tanner {
  background: linear-gradient(180deg, var(--lime) 0%, #d3dee8 100%);
}

/* --------------------------- attractions ------------------------------ */
.attraction { }
.attraction img { width: 100%; border-radius: 0; margin-bottom: 14px; }
.attraction--bordered img { border: 2px solid var(--lime); }
.attraction h2 { font-size: 1.6em; margin-bottom: .3em; }
.attraction p { font-size: .95em; }

.fem-band { position: relative; overflow: hidden; }
/* span all tracks so the absolute bg reaches the viewport edges, not just content */
.fem-band__video,
.fem-band__overlay { grid-column: full; }
.fem-band__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fem-band__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(234, 252, 167, 0.87) 0%, var(--lime) 100%);
  z-index: 1;
}
.fem-band > .container { position: relative; z-index: 2; }
.fem-band .fem-logo { max-width: 320px; margin: 0 auto 10px; }
.fem-band h2 { text-align: center; }

.tassle-band .row { align-items: center; }
.tassle-pad { padding: 0 40px; text-align: center; }
.tassle-band h2 { text-align: center; }
.tassle-band .social-links { display: flex; justify-content: center; gap: 16px; margin: 14px 0; }
.tassle-band .social-links a { color: var(--c5); }
.tassle-band .social-links svg { width: 32px; height: 32px; display: block; }
.tassle-band img { width: 100%; }

/* ---------------------------- sponsors -------------------------------- */
.sponsor-grid { justify-content: center; }
.sponsor-grid .sponsor {
  flex-basis: calc(25% - var(--col-gap));
  display: flex; align-items: center; justify-content: center;
  padding: 15px;
}
.sponsor-grid .sponsor img { max-width: 172px; width: 100%; height: auto; }

/* ---------------------------- vendor ---------------------------------- */
.vendor-col { text-align: center; }
.vendor-col h2 { text-align: center; }
.vendor-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vendor-btns .btn { display: inline-block; }
.notice-box {
  background: var(--c4);
  color: var(--c1);
  padding: 15px;
  text-align: center;
  border-radius: 6px;
  max-width: 75%;
  margin: 20px auto 0;
}
.notice-box p { color: var(--c1); }
.notice-box .btn { margin-top: 10px; }
.vendor-closing { text-align: center; font-size: 2em; line-height: 1.35; }

/* --------------------------- directions ------------------------------- */
.dir-block { margin-bottom: 30px; }
.dir-block h2 { font-family: var(--font-head); font-weight: 600; margin-bottom: .1em; }
.dir-block h3 { margin-top: 0; margin-bottom: .4em; }
.dir-block ol { margin: 0; padding-left: 1.4em; }
.dir-block li { font-size: .95em; line-height: 1.5; margin-bottom: .35em; }

/* ----------------------------- contact -------------------------------- */
.contact-form-card { background: var(--lime); padding: 15px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fest-form label { display: block; font-size: 16px; margin-bottom: 6px; color: var(--c5); }
.fest-form input,
.fest-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c5);
  background: var(--c1);
  border: 1px solid rgba(0, 55, 219, 0.2);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.fest-form textarea { resize: vertical; }
.fest-form input:focus,
.fest-form textarea:focus { outline: 2px solid var(--c5); outline-offset: 0; }
.fest-form .btn { width: 100%; }
.form-msg { margin-top: 12px; font-size: 16px; display: none; }
.form-msg.ok { display: block; color: #1a7f37; }
.form-msg.err { display: block; color: #b3261e; }

.map-embed { line-height: 0; }
.map-embed > iframe { grid-column: full; width: 100%; height: 450px; border: 0; display: block; margin-bottom: -7px; }

/* honeypot - global, never form-scoped */
.hp, input[name="leit_company_url"], input[name="leit_hp"] {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  opacity: 0 !important; pointer-events: none !important;
}

/* ---------------------------- festival map ---------------------------- */
.map-image { padding-top: 0; }
.map-image img { width: auto; max-width: 100%; }  /* natural size, left-aligned (Avada does not upscale) */

/* .reveal is a no-op: content is always visible (source has no fade-in sections).
   Class kept as a harmless hook. */

/* ============================== responsive ============================= */
@media (max-width: 1024px) {
  :root { --section-pad: 56px; }
  h1 { font-size: 2.5em; }
  .hero__card h1 { font-size: 2.4em; }
  .band-center h2 { font-size: 2.4em; }
  .band-center .lead, .vendor-closing { font-size: 1.6em; }
}

/* header collapses to the hamburger a bit early (900) so the full nav never
   crowds the edge on iPad-portrait widths (~810-834) */
@media (max-width: 900px) {
  .site-header__right { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel {
    background: var(--lime);
    padding: 10px 20px 20px;
  }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel a {
    display: block;
    color: var(--c5);
    font-size: 1.3em;
    line-height: 2.3;
    text-align: center;
    border-bottom: 1px solid rgba(0, 55, 219, 0.09);
    text-transform: uppercase;
  }
  .mobile-panel a:hover, .mobile-panel a[aria-current="page"] { background: var(--c5); color: var(--lime); }
  .mobile-panel .btn-pill { display: block; text-align: center; margin: 12px auto 0; max-width: 260px; }
}

@media (max-width: 768px) {
  .row .col-3_4, .row .col-2_3, .row .col-1_2, .row .col-2_5,
  .row .col-1_3, .row .col-1_4, .row .col-1_6 { flex-basis: 100%; }
  .row--tight .col, .row--tight .col-1_2 { flex-basis: 100%; }
  .hero__card { width: 100%; padding: 34px 24px; border-radius: 40px; }
  .hero__card h1 { white-space: normal; }
  .sponsor-grid .sponsor { flex-basis: calc(50% - var(--col-gap)); }
  .tassle-pad { padding: 0; }
  .site-footer .fcol { flex-basis: 100%; }
  .notice-box { max-width: 100%; }
}

@media (max-width: 480px) {
  :root { --section-pad: 40px; }
  body { font-size: 18px; }
  .hero__card h1 { font-size: 1.9em; }
  .band-center h2 { font-size: 2em; }
  .band-center .lead, .vendor-closing { font-size: 1.35em; }
  .sponsor-grid .sponsor { flex-basis: 100%; }
}

@media (pointer: coarse) {
  .btn, .btn-pill, .main-nav a, .footer-nav a { min-height: 44px; }
}
