/* =========================================================
   Snack & Go at Sun Petro — Williamstown, NJ
   Palette: warm red & white  |  Fonts: Fredoka + Nunito Sans
   ========================================================= */

:root{
  /* Core red & white */
  --red:        #D62828;
  --red-deep:   #A01D1D;
  --red-soft:   #FCE9E7;
  --white:      #FFFFFF;

  /* Warm neutrals */
  --cream:      #FFF7F0;
  --cream-2:    #FBEFE6;
  --charcoal:   #2C2622;
  --gray:       #6E645C;
  --amber:      #F4A93C;   /* sunny micro-accent (Sun Petro) */

  --shadow-sm: 0 2px 10px rgba(44,38,34,.08);
  --shadow-md: 0 10px 30px rgba(44,38,34,.12);
  --shadow-lg: 0 20px 50px rgba(160,29,29,.18);

  --radius:   18px;
  --radius-lg:26px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family:"Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--charcoal);
  background:var(--cream);
  line-height:1.65;
  font-size:1.06rem;
  overflow-x:hidden;
  max-width:100%;
}
img,iframe,video,svg{ max-width:100%; }
img{ display:block; }
a{ color:var(--red); text-decoration:none; }
h1,h2,h3,h4{ font-family:"Fredoka", system-ui, sans-serif; font-weight:600; line-height:1.12; margin:0 0 .5em; color:var(--charcoal); }
h2{ font-size:clamp(1.9rem,4.2vw,3rem); }
h3{ font-size:clamp(1.35rem,2.6vw,1.9rem); }
p{ margin:0 0 1rem; }
.container{ width:min(var(--maxw), 92vw); margin-inline:auto; }
.accent{ color:var(--red); }
.accent-light{ color:#FFE1B3; }

.skip-link{
  position:absolute; left:-999px; top:0; z-index:200;
  background:var(--red); color:#fff; padding:.7rem 1.2rem; border-radius:0 0 12px 0; font-weight:700;
}
.skip-link:focus{ left:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  font-family:"Fredoka", sans-serif; font-weight:600; font-size:1.02rem;
  padding:.85rem 1.5rem; border-radius:999px; border:2px solid transparent;
  cursor:pointer; transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  will-change:transform;
}
.btn:hover{ transform:translateY(-3px); }
.btn:active{ transform:translateY(-1px); }
.btn-primary{ background:var(--red); color:#fff; box-shadow:0 8px 20px rgba(214,40,40,.35); }
.btn-primary:hover{ background:var(--red-deep); box-shadow:0 12px 26px rgba(160,29,29,.42); }
.btn-outline{ background:rgba(255,255,255,.9); color:var(--red); border-color:var(--red); }
.btn-outline:hover{ background:var(--red); color:#fff; }
.btn-white{ background:#fff; color:var(--red); box-shadow:var(--shadow-md); }
.btn-white:hover{ background:var(--cream-2); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.86); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(214,40,40,.12);
  transition:box-shadow .3s, padding .3s;
}
.site-header.scrolled{ box-shadow:var(--shadow-sm); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 0; }
.brand{ display:flex; align-items:center; gap:.7rem; color:var(--charcoal); cursor:pointer; border-radius:12px; padding:.15rem; margin:-.15rem; }
.brand:focus-visible{ outline:3px solid var(--red); outline-offset:2px; }
.brand-mark{
  display:grid; place-items:center; width:46px; height:46px; flex:0 0 auto;
  background:var(--red); color:#fff; border-radius:14px;
  font-family:"Fredoka",sans-serif; font-weight:700; font-size:1rem; letter-spacing:.5px;
  box-shadow:0 4px 12px rgba(214,40,40,.35); transform:rotate(-4deg);
}
.brand-text{ display:flex; flex-direction:column; line-height:1; }
.brand-name{ font-family:"Fredoka",sans-serif; font-weight:700; font-size:1.35rem; color:var(--red); }
.brand-sub{ font-size:.78rem; color:var(--gray); font-weight:700; letter-spacing:.5px; text-transform:uppercase; }

.nav{ display:flex; align-items:center; }
.nav-menu{ list-style:none; display:flex; align-items:center; gap:1.7rem; margin:0; padding:0; }
.nav-menu a{ color:var(--charcoal); font-weight:700; font-size:1rem; position:relative; padding:.3rem 0; }
.nav-menu a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background:var(--red); transition:width .25s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a:focus-visible::after{ width:100%; }
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px; background:none; border:0;
  cursor:pointer; padding:.55rem; min-width:44px; min-height:44px; border-radius:10px;
}
.nav-toggle span{ width:26px; height:3px; background:var(--charcoal); border-radius:3px; transition:.3s; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:min(88vh,760px); display:flex; align-items:flex-end; overflow:hidden; }
.hero-carousel{ position:absolute; inset:0; }
.hero-slide{ position:absolute; inset:0; opacity:0; transition:opacity 1.1s var(--ease), transform 6s linear; transform:scale(1.05); }
.hero-slide.is-active{ opacity:1; transform:scale(1.12); }
.hero-slide img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(44,38,34,.15) 0%, rgba(44,38,34,.35) 45%, rgba(120,15,15,.82) 100%),
    linear-gradient(90deg, rgba(160,29,29,.35), rgba(44,38,34,.05));
}
.hero-content{ position:relative; z-index:3; color:#fff; padding:2.5rem 0 4.5rem; }
.hero-eyebrow{
  display:inline-block; background:rgba(255,255,255,.16); backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.3); padding:.4rem 1rem; border-radius:999px;
  font-weight:800; font-size:.9rem; margin-bottom:1rem;
}
.hero-title{ margin:0 0 .8rem; display:flex; flex-direction:column; color:#fff; }
.hero-title-main{ color:#fff; font-size:clamp(2.5rem,11vw,6rem); font-weight:700; letter-spacing:-1px; text-shadow:0 4px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35); }
.hero-title-sub{ font-size:clamp(1.1rem,3vw,1.8rem); font-weight:500; color:#FFE1B3; margin-top:-.2em; }
.hero-tagline{ max-width:600px; font-size:clamp(1.05rem,2vw,1.3rem); font-weight:600; text-shadow:0 2px 12px rgba(0,0,0,.4); }
.hero-cta{ display:flex; flex-wrap:wrap; gap:.9rem; margin:1.4rem 0 1.6rem; }
.hero-badges{ list-style:none; display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin:0; padding:0; font-weight:800; font-size:.98rem; }
.hero-badges li{ text-shadow:0 2px 8px rgba(0,0,0,.4); }

/* Carousel dots */
.carousel-dots{ position:absolute; z-index:4; bottom:16px; left:0; right:0; display:flex; justify-content:center; gap:.55rem; }
.carousel-dots button{ width:12px; height:12px; border-radius:50%; border:2px solid #fff; background:transparent; cursor:pointer; padding:0; transition:.25s; }
.carousel-dots button.active{ background:#fff; transform:scale(1.25); }

/* ---------- Section shells ---------- */
.section{ padding:clamp(3.5rem,7vw,6rem) 0; }
.section-head{ text-align:center; max-width:720px; margin:0 auto clamp(2rem,4vw,3rem); }
.eyebrow{ font-family:"Fredoka",sans-serif; font-weight:600; color:var(--red); letter-spacing:.5px; margin-bottom:.4rem; text-transform:uppercase; font-size:.95rem; }
.section-title{ margin-bottom:.5rem; }
.section-lead{ color:var(--gray); font-size:1.12rem; }
.subhead{ text-align:center; margin:2.5rem 0 1.4rem; }

.store{ background:linear-gradient(180deg,#fff, var(--cream)); }

/* Store feature split */
.store-feature{ display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(1.5rem,4vw,3rem); align-items:center; margin-bottom:1rem; }
.store-feature-media{ position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); }
.store-feature-media img{ width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .8s var(--ease); }
.store-feature-media:hover img{ transform:scale(1.06); }
.store-feature-text h3{ color:var(--red-deep); }
.checklist{ list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:.6rem; }
.checklist li{ position:relative; padding-left:2rem; font-weight:700; }
.checklist li::before{
  content:"✓"; position:absolute; left:0; top:0; width:1.4rem; height:1.4rem; border-radius:50%;
  background:var(--red); color:#fff; display:grid; place-items:center; font-size:.85rem;
}

/* Category card grid */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,258px),1fr)); gap:1.4rem; }
.card{
  background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm);
  border:1px solid rgba(214,40,40,.07);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover, .card:focus-visible{ transform:translateY(-8px); box-shadow:var(--shadow-lg); outline:none; }
.card-media{ position:relative; overflow:hidden; aspect-ratio:4/3; }
.card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.card:hover .card-media img, .card:focus-visible .card-media img{ transform:scale(1.1); }
.card-tag{
  position:absolute; top:12px; left:12px; background:rgba(255,255,255,.94); color:var(--red-deep);
  font-family:"Fredoka",sans-serif; font-weight:600; font-size:.82rem; padding:.3rem .75rem; border-radius:999px;
  box-shadow:var(--shadow-sm);
}
.card-body{ padding:1.1rem 1.2rem 1.3rem; }
.card-body h4{ font-size:1.3rem; margin:0 0 .3rem; color:var(--red-deep); }
.card-body p{ margin:0; color:var(--gray); font-size:.98rem; }

/* Gallery */
.gallery{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:1rem; }
.gallery-item{ margin:0; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); aspect-ratio:1; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease), filter .4s; }
.gallery-item:hover img{ transform:scale(1.12); }
.gallery-item:nth-child(3n){ grid-row:span 1; }

/* ---------- Story ---------- */
.story{ background:var(--cream-2); }
.story-inner{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
.story-media{ position:relative; }
.story-media img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); aspect-ratio:10/11; object-fit:cover; width:100%; }
.story-badge{
  position:absolute; right:-14px; bottom:-14px; background:var(--red); color:#fff;
  border-radius:22px; padding:1rem 1.3rem; display:flex; align-items:center; gap:.7rem;
  box-shadow:var(--shadow-lg); transform:rotate(-3deg);
}
.story-badge-num{ font-family:"Fredoka",sans-serif; font-weight:700; font-size:2.6rem; line-height:1; }
.story-badge-num span{ font-size:1.3rem; vertical-align:super; }
.story-badge-label{ font-weight:800; font-size:.85rem; line-height:1.2; text-align:left; }
.story-sign{ font-family:"Fredoka",sans-serif; color:var(--red-deep); font-weight:600; font-size:1.2rem; margin-top:1.2rem; }

/* ---------- Gas & services ---------- */
.fuel-banner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem;
  background:linear-gradient(120deg, var(--red), var(--red-deep)); color:#fff;
  border-radius:var(--radius-lg); padding:1.6rem 2rem; box-shadow:var(--shadow-lg); margin-bottom:2.5rem;
}
.fuel-grades{ display:flex; gap:1.2rem; }
.fuel-grade{ text-align:center; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); border-radius:16px; padding:.7rem 1.1rem; min-width:84px; }
.grade-num{ display:block; font-family:"Fredoka",sans-serif; font-weight:700; font-size:2rem; color:#FFE1B3; }
.grade-label{ font-weight:800; font-size:.85rem; letter-spacing:.5px; }
.fuel-cta{ display:flex; flex-direction:column; align-items:flex-start; gap:.5rem; }
.fuel-cta p{ margin:0; font-weight:700; }

.service-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); gap:1.3rem; }
.service-card{
  background:#fff; border-radius:var(--radius); padding:1.6rem 1.5rem; box-shadow:var(--shadow-sm);
  border:1px solid rgba(214,40,40,.08); text-align:center;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover, .service-card:focus-visible{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:rgba(214,40,40,.35); outline:none; }
.service-icon{
  display:inline-grid; place-items:center; width:66px; height:66px; margin-bottom:.6rem;
  background:var(--red-soft); border-radius:50%; font-size:2rem; transition:transform .3s var(--ease);
}
.service-card:hover .service-icon{ transform:scale(1.12) rotate(-6deg); }
.service-card h4{ color:var(--red-deep); font-size:1.25rem; margin-bottom:.3rem; }
.service-card p{ margin:0; color:var(--gray); font-size:.96rem; }

/* ---------- Promise ---------- */
.promise{
  position:relative; padding:clamp(3.5rem,7vw,5.5rem) 0; text-align:center; color:#fff;
  background:linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
}
.promise::before{
  content:""; position:absolute; inset:0; opacity:.12;
  background:radial-gradient(circle at 20% 20%, #fff 2px, transparent 2px) 0 0/34px 34px;
}
.promise-inner{ position:relative; max-width:720px; }
.promise-emoji{ font-size:3rem; display:block; margin-bottom:.4rem; }
.promise h2{ color:#fff; font-size:clamp(2rem,5vw,3.2rem); }
.promise p{ font-size:1.15rem; font-weight:600; margin:0 auto 1.6rem; max-width:600px; }

/* ---------- Community ---------- */
.community-media{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); margin-bottom:2.5rem; }
.community-media img{ width:100%; aspect-ratio:16/7; object-fit:cover; transition:transform .8s var(--ease); }
.community-media:hover img{ transform:scale(1.05); }
.testimonials{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:1.5rem; }
.quote{
  margin:0; background:#fff; border-radius:var(--radius); padding:2rem 1.8rem 1.6rem; position:relative;
  box-shadow:var(--shadow-sm); border-left:5px solid var(--red);
}
.quote::before{ content:"\201C"; position:absolute; top:-.2em; left:.4rem; font-family:"Fredoka",sans-serif; font-size:4.5rem; color:var(--red-soft); line-height:1; }
.quote blockquote{ margin:0 0 .8rem; font-size:1.12rem; font-weight:600; position:relative; }
.quote figcaption{ color:var(--red-deep); font-weight:800; font-size:.95rem; }

/* ---------- Visit ---------- */
.visit{ background:linear-gradient(180deg, var(--cream), #fff); }
.visit-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:2rem; align-items:start; }
.visit-info{ display:grid; gap:1.5rem; }
.info-block{ background:#fff; border-radius:var(--radius); padding:1.6rem 1.7rem; box-shadow:var(--shadow-sm); border:1px solid rgba(214,40,40,.08); }
.info-block h3{ color:var(--red-deep); font-size:1.4rem; }
.hours-list{ list-style:none; margin:0; padding:0; }
.hours-list li{ display:flex; justify-content:space-between; gap:1rem; padding:.5rem 0; border-bottom:1px dashed rgba(110,100,92,.22); font-weight:600; }
.hours-list li:last-child{ border-bottom:0; }
.hours-list span:last-child{ color:var(--red-deep); font-weight:800; }
.hours-note{ margin:.8rem 0 0; color:var(--gray); font-style:italic; }
.info-block address{ font-style:normal; font-weight:700; font-size:1.15rem; margin-bottom:1rem; }
.info-actions{ display:flex; flex-wrap:wrap; gap:.7rem; }

.visit-maps{ display:grid; gap:1.2rem; }
.map-embed{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); border:4px solid #fff; }
.map-embed iframe{ display:block; width:100%; height:300px; border:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--charcoal); color:#f4ece6; padding-top:3rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2rem; padding-bottom:2.5rem; }
.footer-brand{ display:flex; gap:.9rem; align-items:flex-start; }
.footer-name{ font-family:"Fredoka",sans-serif; font-weight:700; font-size:1.4rem; color:#fff; margin:0; }
.footer-name span{ color:var(--amber); font-size:.9rem; font-weight:500; }
.footer-tag{ color:#c9bcb2; margin:.3rem 0 0; font-size:.96rem; }
.footer-col h4{ color:#fff; font-size:1.1rem; margin-bottom:.8rem; }
.footer-col address{ font-style:normal; color:#d8ccc3; line-height:1.9; }
.footer-col p{ color:#d8ccc3; }
.footer-col a{ color:#f4ece6; }
.footer-col a:hover{ color:var(--amber); }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; }
.footer-col em{ color:var(--amber); font-style:normal; }
.footer-bar{ border-top:1px solid rgba(255,255,255,.12); padding:1.2rem 0; }
.footer-bar .container{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; }
.footer-bar p{ margin:0; font-size:.88rem; color:#b4a89e; }

/* ---------- Back to top ---------- */
.to-top{
  position:fixed; right:20px; bottom:20px; z-index:80; width:50px; height:50px; border-radius:50%;
  background:var(--red); color:#fff; border:0; font-size:1.5rem; cursor:pointer; box-shadow:var(--shadow-md);
  opacity:0; transform:translateY(20px); transition:.3s var(--ease);
}
.to-top.show{ opacity:1; transform:translateY(0); }
.to-top:hover{ background:var(--red-deep); transform:translateY(-4px); }

/* ---------- Image fallback placeholder ---------- */
.img-fallback{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem;
  width:100%; height:100%; min-height:140px; color:#fff; text-align:center; padding:1rem;
  background:linear-gradient(135deg, var(--red), var(--red-deep));
  font-family:"Fredoka",sans-serif;
}
.img-fallback::before{ content:"🏪"; font-size:2rem; }
.img-fallback span{ font-size:.9rem; font-weight:600; opacity:.95; max-width:90%; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */

/* Tablet & mobile: hamburger nav + stacked multi-column sections */
@media (max-width:860px){
  .nav-toggle{ display:flex; }
  .nav-menu{
    position:absolute; top:100%; right:0; left:0; flex-direction:column; align-items:stretch; gap:0;
    background:#fff; box-shadow:var(--shadow-md); padding:.25rem 0;
    border-top:1px solid rgba(214,40,40,.1);
    max-height:0; overflow:hidden; transition:max-height .35s var(--ease);
  }
  .nav.open .nav-menu{ max-height:70vh; }
  .nav-menu li{ border-bottom:1px solid rgba(214,40,40,.08); }
  .nav-menu li:last-child{ border-bottom:0; }
  .nav-menu a{ display:block; padding:1rem 1.4rem; font-size:1.05rem; }
  .nav-menu a::after{ display:none; }
  .nav.open .nav-toggle span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity:0; }
  .nav.open .nav-toggle span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

  .store-feature{ grid-template-columns:1fr; }
  .story-inner{ grid-template-columns:1fr; }
  .story-media{ max-width:460px; margin-inline:auto; }
  .visit-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* Phones */
@media (max-width:540px){
  body{ font-size:1rem; }
  .hero{ min-height:80vh; }
  .hero-content{ padding:2rem 0 3.25rem; }
  .hero-cta{ gap:.7rem; }
  .hero-cta .btn{ flex:1 1 auto; justify-content:center; }

  .gallery{ grid-template-columns:repeat(2,1fr); gap:.7rem; }

  .fuel-banner{ flex-direction:column; align-items:stretch; text-align:center; padding:1.4rem 1.2rem; }
  .fuel-grades{ justify-content:center; flex-wrap:wrap; }
  .fuel-cta{ align-items:center; }
  .fuel-cta .btn{ width:100%; justify-content:center; }
  .service-card{ padding:1.4rem 1.2rem; }

  .info-block{ padding:1.4rem 1.3rem; }
  .info-actions .btn{ flex:1 1 auto; justify-content:center; }
  .map-embed iframe{ height:260px; }

  .footer-grid{ grid-template-columns:1fr; }
  .footer-bar .container{ flex-direction:column; }

  .story-badge{ right:8px; bottom:-12px; padding:.7rem 1rem; }
  .story-badge-num{ font-size:2.1rem; }
}

/* Small phones (e.g. 320px): trim the brand so header never overlaps */
@media (max-width:380px){
  .brand-mark{ width:40px; height:40px; font-size:.9rem; }
  .brand-name{ font-size:1.15rem; }
  .brand-sub{ font-size:.66rem; }
  .hero-badges{ font-size:.9rem; gap:.5rem 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *{ animation:none!important; scroll-behavior:auto!important; }
  .reveal{ opacity:1!important; transform:none!important; }
  .hero-slide.is-active{ transform:none; }
}
