@charset "UTF-8";

/* =========================================================
   GLOBAL BASE VERS C
   ========================================================= */
* { box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background-color: #f6f3ee; /* match hero background across page */
}

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

/* Optional: override fixed-width wrappers from older themes */
#pagewrap, .pagewrap, .container, .wrapper{
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   TOP NAVIGATION + CENTER LOGO
   Desktop: logo hangs below nav (absolute)
   Mobile: logo becomes normal flow (no overlap)
   ========================================================= */
.topnav{
  background-color: #f4f1ec;
  position: relative;
  z-index: 1000;
  min-height: 64px;
  overflow: visible;

  /* Default: no shadow (keeps top clean) */
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

/* Hide dropdown links by default */
.topnav #myLinks{ display: none; }

/* Base link styling */
.topnav a{
  color: #ac7730;
  padding: 14px 16px;
  text-decoration: none;
  font-family: 'Teko', sans-serif;
  font-size: 165%;
  display: block;
}

/* Left "Powhatan Fair" */
.topnav a.active{
  background-color: #3b2a12;
  color: #fff;
}

/* Hamburger menu */
.topnav a.icon{
  background: #3b2a12;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1200;
}

/* Hover ONLY for normal nav links, NOT the center logo */
.topnav a:hover:not(.nav-center-logo){
  background-color: #ac7730;
  color: #fff;
}

/* Center logo (desktop/tablet): hangs below nav bar */
.topnav .nav-center-logo{
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 14px;
  z-index: 1100;

  background: transparent !important;
  padding: 0 !important;
  line-height: 0;
}

.topnav .nav-center-logo:hover,
.topnav .nav-center-logo:active,
.topnav .nav-center-logo:focus{
  background: transparent !important;
}

.topnav .nav-center-logo img{
  width: clamp(140px, 18vw, 230px);
  transition: transform 220ms ease, filter 220ms ease;
}

.topnav .nav-center-logo:hover img{
  transform: translateY(-4px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
}

/* =========================================================
   HERO
   Uses variables for logo clearance
   ========================================================= */
.pf-hero{
  --nav-h: 86px;       /* desktop-ish nav space */
  --logo-clear: 160px; /* desktop-ish logo hang */

  background: #f6f3ee;
  color: #1f1f1f;
  position: relative;

  padding: clamp(42px, 7vw, 86px) 16px clamp(28px, 5vw, 60px);
  padding-top: calc(var(--nav-h) + var(--logo-clear));
}

.pf-hero__inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

/* Headline */
.pf-hero__title{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(44px, 7.4vw, 112px);
}

.pf-hero__line{
  display: block;
  white-space: nowrap;
}

.pf-hero__line--dark{ color: #1f1f1f; }

/* Line 3 (gold) + reduced size */
.pf-hero__line--gold{
  color: #b6812b;
  font-size: 0.62em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0.2em;
}

/* Line that contains the pill */
.pf-hero__line--with-pill{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Pill */
.pf-hero__pill{
  flex: 0 0 auto;
  width: clamp(110px, 12vw, 150px);
  height: clamp(40px, 4.8vw, 54px);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.pf-hero__pill img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Down button (if used) */
.pf-hero__down{
  position: absolute;
  right: 18px;
  top: 55%;
  transform: translateY(-50%);
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: none;
  background: #0f141a;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.pf-hero__downIcon{
  font-size: 30px;
  line-height: 1;
  transform: translateY(1px);
}

/* =========================================================
   MAGICBOX (white blurb band)
   ========================================================= */
#magicbox{
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 72px; /* top | sides | bottom */
  text-align: center;
}

#magicbox .pf-hero__blurb{
  margin: 0;
  max-width: 820px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.65;
  color: rgba(0,0,0,0.70);
}

#magicbox .pf-hero__blurb strong{
  font-weight: 700;
  color: rgba(0,0,0,0.88);
}

/* =========================================================
   FLYER (matches Topstories width)
   ========================================================= */
.pf-flyer{
  background-color: #f6f3ee;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 14px 16px; /* top spacing + side alignment + bottom */
}

.pf-flyer img{
  width: 100%;
  height: auto;
}

/* =========================================================
   TOPSTORIES
   ========================================================= */
.topstories{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px;
}

.topstories__wrap{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.topstories__slider,
.topstories__features{
  min-width: 0;
}

.topstories__features{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Slider */
.topstories__slider .slider{
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 6px;
  height: clamp(360px, 38vw, 560px);
}

.topstories__slider .slides{ position: absolute; inset: 0; }

.topstories__slider .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transform: scale(1.01);
  transition: opacity 450ms ease, transform 800ms ease;
}

.topstories__slider .slide.is-active{
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

.topstories__slider picture{ display: block; width: 100%; height: 100%; }
.topstories__slider picture img{ width: 100%; height: 100%; object-fit: cover; }

/* Lighter overlay */
.topstories__slider .overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.28), rgba(0,0,0,0.55)),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.45));
}

.topstories__slider .caption{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(14px, 3vw, 36px);
  color: #fff;
}

/* Larger headline + readable shadow */
.topstories__slider .headline{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  max-width: 18ch;
  font-size: clamp(28px, 5vw, 64px);
  text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

.topstories__slider .meta{
  margin-top: 14px;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.topstories__slider .meta .dot{ margin: 0 8px; opacity: 0.75; }

/* Arrows */
.topstories__slider .nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.topstories__slider .prev{ left: 14px; }
.topstories__slider .next{ right: 14px; }

/* Dots */
.topstories__slider .dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.topstories__slider .dots button{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}

.topstories__slider .dots button[aria-selected="true"]{
  background: rgba(255,255,255,0.95);
}

.topstories__slider .slide-link{ position: absolute; inset: 0; z-index: 3; }

/* Feature cards */
.topstories__features .featurecard{
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  display: block;
  text-decoration: none;
}

.topstories__features picture{ display: block; width: 100%; height: 100%; }
.topstories__features picture img{ width: 100%; height: 100%; object-fit: cover; }

/* Lighter feature overlay */
.topstories__features .featurecard__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.48));
}

.topstories__features .featurecard__title{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  z-index: 2;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.15;
  text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

/* =========================================================
   SPONSOR INTRO
   ========================================================= */
.sponsor-intro{
  background: #ffffff;
  padding: 48px 0 40px;
}

.sponsor-intro__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  text-align: center;
}

.sponsor-intro__title{
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 34px);
  color: #3b2a12;
}

.sponsor-intro__text{
  margin: 0 auto 16px;
  max-width: 900px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  color: rgba(0,0,0,0.72);
}

.sponsor-intro__text strong{
  font-weight: 800;
  color: rgba(0,0,0,0.9);
}

.sponsor-intro__emphasis{
  margin-top: 10px;
  font-weight: 600;
  color: #b6812b;
}

/* =========================================================
   SPONSOR LIST
   ========================================================= */
.sponsorlist{
  background: #f6f3ee;
  padding: 26px 0 34px;
}

.sponsorlist__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.sponsorlist__title{
  margin: 0 0 14px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(20px, 2.2vw, 30px);
  color: #3b2a12;
}

.sponsorlist__items{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 12px 18px;
  line-height: 1.55;
}

.sponsorlist__items li{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.78);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  white-space: normal;
  max-width: 100%;
}

/* =========================================================
   SPONSOR LOGO IMAGE
   ========================================================= */
.sponsor-logos{
  background-color: #f6f3ee;
  padding: 28px 0 36px;
}

.sponsor-logos__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

.sponsor-logos picture,
.sponsor-logos img{
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   SOCIAL MEDIA FOOTER
   ========================================================= */
.social-footer{
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 32px 0 40px;
  background-color: #f6f3ee;
}

.social-footer a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-footer img{
  width: 45px;
  height: 45px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-footer a:hover img{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 700px){
  .topstories__wrap{ grid-template-columns: 1fr; }

  .topstories__slider .slider{
    height: auto;
    min-height: 360px;
    aspect-ratio: 4 / 5;
  }

  .topstories__features{ grid-template-columns: 1fr; }
  .topstories__features .featurecard{ aspect-ratio: 16 / 9; }
}

@media (max-width: 600px){

  /* NAV sizing */
  .topnav{ min-height: 58px; }

  /* Logo becomes normal flow so it cannot overlap headline */
  .topnav .nav-center-logo{
    position: static;
    transform: none;
    margin: 10px auto 0;
    width: fit-content;
    display: block;
  }

  .topnav .nav-center-logo img{
    width: clamp(120px, 46vw, 175px);
  }

  /* HERO: reduce clearance */
  .pf-hero{
    --nav-h: 18px;
    --logo-clear: 0px;
    padding-top: 26px;
  }

  /* Headline wraps cleanly */
  .pf-hero__line{ white-space: normal; }
  .pf-hero__line--with-pill{
    flex-wrap: wrap;
    gap: 12px;
  }

  .pf-hero__pill{
    width: 140px;
    height: 48px;
  }

  /* Magicbox tighter */
  #magicbox{
    padding: 40px 14px 52px;
  }

  /* Sponsor intro tuning */
  .sponsor-intro{
    padding: 36px 0 32px;
  }

  .sponsor-intro__title{
    letter-spacing: 0.06em;
  }

  /* Sponsor list tuning */
  .sponsorlist{
    padding: 20px 0 28px;
  }

  .sponsorlist__items{
    gap: 10px 12px;
  }

  .sponsorlist__items li{
    font-size: 15px;
    padding: 7px 10px;
  }
}

@media (max-width: 420px){
  /* Android / small phone headline fit */
  .pf-hero__title{
    font-size: clamp(38px, 8.5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.015em;
  }

  .pf-hero__line{
    font-size: 0.92em;
  }
}

/* =========================================================
   MOBILE: HARD REMOVE TOP LINE (FINAL OVERRIDE)
   (kept, but simplified to avoid accidental re-introductions)
   ========================================================= */
@media (max-width: 768px){
  .topnav,
  .topnav::before,
  .topnav::after,
  header,
  header::before,
  header::after,
  body > header,
  body > header::before,
  body > header::after{
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
    background-image: none !important;
  }

  .topnav{
    transform: translateZ(0);
  }
}
