/* =====================================================
   FRESH X PIZZA MARKET — Shared Styles
   Dark charcoal + brick red + fresh herb green palette
   Typefaces: Playfair Display (display) + DM Sans (body)
   ===================================================== */

:root {
  --black: #111010;
  --charcoal: #1C1C1C;
  --surface: #242424;
  --surface2: #2E2E2E;
  --red: #C4302B;
  --red-light: #E84040;
  --green: #4A7C3F;
  --green-light: #6BAF5A;
  --cream: #F5EFE4;
  --muted: #9A9080;
  --text: #E8E0D4;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,16,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .fresh {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.nav-logo-text .market {
  font-size: 0.7rem;
  color: var(--green-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: var(--surface);
}

.nav-links .order-btn {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
}

.nav-links .order-btn:hover {
  background: var(--red-light);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* FOOTER */
footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 56px 40px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand .tagline {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.5;
  max-width: 220px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.solar-flare-link {
  background: none;
  border: none;
  color: var(--green-light);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.solar-flare-link:hover { color: #fff; }

/* SOLAR FLARE MODAL */
.sf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sf-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sf-modal-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px);
  background: rgba(10,10,10,0.5);
}

.sf-modal-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.sf-modal-card .ss-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid var(--green-light);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.sf-modal-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 14px;
}

.sf-modal-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.sf-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-go-btn {
  background: var(--green);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.sf-go-btn:hover { background: var(--green-light); }

.sf-stay-btn {
  background: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sf-stay-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* FAREWELL OVERLAY */
.farewell-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.farewell-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.farewell-overlay::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: linear-gradient(120deg, #F5A623, #4CA6D8, #8ED14F, #F0662A);
  background-size: 300% 300%;
  filter: blur(60px) saturate(1.3);
  animation: sfGrad 7s ease infinite;
}

.farewell-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.25);
}

@keyframes sfGrad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.farewell-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  font-family: 'DM Sans', sans-serif;
}

.farewell-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: #fff;
  text-shadow: 0 6px 28px rgba(0,0,0,0.3);
  margin-bottom: 14px;
}

.farewell-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}

.farewell-track {
  width: 280px;
  max-width: 70vw;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  overflow: hidden;
  margin: 0 auto 28px;
}

.farewell-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 999px;
}

.farewell-back {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.65);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.farewell-back:hover { background: rgba(255,255,255,0.12); }

/* SECTION SHARED */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-full {
  padding: 80px 40px;
}

.section-full .inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-body {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
}

/* HERO */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 60px 40px 50px;
  background: var(--charcoal);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.page-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* DIVIDER IMG */
.divider-img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto;
  opacity: 0.25;
}

/* TICKER */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 28s linear infinite;
}

.ticker-inner span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  padding: 0 28px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CARDS */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196,48,43,0.35);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(196,48,43,0.45); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245,239,228,0.3);
}

.btn-outline:hover { border-color: var(--cream); }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74,124,63,0.35);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--charcoal); padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section, .section-full { padding: 56px 20px; }
  .page-hero { padding: 40px 20px 40px; min-height: 260px; }
  footer { padding: 40px 20px 20px; }
}

/* =====================================================
   FLOATING MOCK-UP BADGE
   ===================================================== */
:root {
  --sf-sun1:#F5A623;
  --sf-sun2:#F0662A;
  --sf-blue:#4CA6D8;
  --sf-green:#8ED14F;
}

.mock-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  max-width: 220px;
  padding: 14px 34px 14px 16px;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(120deg, var(--sf-sun1), var(--sf-blue), var(--sf-green), var(--sf-sun2), var(--sf-sun1));
  background-size: 400% 400%;
  animation: sfGrad 9s ease infinite, badgeGlow 2.6s ease-in-out infinite;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  transition: transform .25s ease;
  font-family: 'DM Sans', sans-serif;
}

.mock-badge:hover { transform: translateY(-4px); }

.mock-badge b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-style: normal;
  font-weight: 700;
}

.mock-badge p {
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

.mock-badge .badge-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}

.mock-badge .badge-close:hover { opacity: 1; }

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 0px rgba(255,255,255,0); }
  50% { box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 0 22px rgba(255,255,255,0.5); }
}

@media (max-width: 560px) {
  .mock-badge { max-width: 180px; padding: 12px 30px 12px 14px; right: 12px; bottom: 12px; }
  .mock-badge p { font-size: 0.72rem; }
}
