/* ============================================================
   TOWN SPA PIZZA — style.css
   Palette: Garnet #7B1818 · Gold #C8962A · Cream #FAF7F2 · Charcoal #1A1A1A
   Fonts: Libre Baskerville (headings) · Inter (body)
============================================================ */

:root {
  --red:        #7B1818;
  --red-dark:   #5E1010;
  --red-light:  #9B2020;
  --gold:       #C8962A;
  --gold-light: #E8B84B;
  --cream:      #FAF7F2;
  --cream-dark: #F0EAE0;
  --charcoal:   #1A1A1A;
  --mid-gray:   #6B6B6B;
  --border:     #DDD5C8;
  --nav-height: 72px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Typography helpers ---- */
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section-heading.light { color: #fff; }
.section-intro {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.body-text {
  color: #3A3A3A;
  margin-bottom: 1rem;
}
.body-text.light-text { color: rgba(255,255,255,0.85); }
.rounded-custom { border-radius: 12px; }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.75rem;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-primary-custom:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.75rem;
  transition: background .2s, border-color .2s;
}
.btn-outline-custom:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-outline-primary-custom {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 4px;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  font-size: 0.875rem;
  transition: background .2s, color .2s;
}
.btn-outline-primary-custom:hover { background: var(--red); color: #fff; }
.btn-outline-light-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  transition: background .2s;
}
.btn-outline-light-custom:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ============================================================
   NAVBAR
============================================================ */
#mainNav {
  background: rgba(20, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding .3s, background .3s;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
#mainNav.scrolled {
  background: rgba(10, 2, 2, 0.97);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.brand-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.navbar-nav .nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82) !important;
  padding: 0.4rem 0.7rem;
  transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--gold-light) !important; }
.btn-order {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 0.35rem 1rem !important;
}
.btn-order:hover { background: var(--red-dark) !important; }

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(80, 8, 8, 0.72) 0%,
    rgba(20, 6, 6, 0.55) 60%,
    rgba(10, 3, 3, 0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}
.hero-since {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   ABOUT
============================================================ */
.section-about {
  padding: 6rem 0;
  background: var(--cream);
}
.about-badges { gap: 2rem; }
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}
.about-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-main-img {
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}
.about-inset-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 180px;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.about-inset-card img { border-radius: 6px; width: 100%; }
.inset-caption {
  font-size: 0.68rem;
  color: var(--mid-gray);
  margin: 0.4rem 0 0;
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   MENU
============================================================ */
.section-menu {
  padding: 6rem 0;
  background: var(--cream-dark);
}
.menu-category {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 18px rgba(0,0,0,0.05);
}
.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cream-dark);
}
.category-icon {
  width: 10px;
  height: 10px;
  color: var(--red);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
}
.category-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}
.category-note {
  font-size: 0.78rem;
  color: var(--mid-gray);
  font-style: italic;
  margin-left: auto;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}
@media (max-width: 576px) {
  .menu-grid { grid-template-columns: 1fr; }
  .category-note { display: none; }
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dotted #E0D8CC;
  gap: 0.5rem;
}
.menu-item:last-child { border-bottom: none; }
.item-name {
  font-size: 0.92rem;
  color: var(--charcoal);
  flex: 1;
}
.item-desc {
  font-size: 0.78rem;
  color: var(--mid-gray);
  display: block;
  font-style: italic;
}
.item-price {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-item-highlight {
  background: #FEF9F0;
  border-radius: 4px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  border-bottom: none !important;
}
.sub-category-label {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  border-left: 3px solid var(--gold);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   DAILY SPECIALS
============================================================ */
.section-specials {
  padding: 6rem 0;
  background: var(--red);
}
.special-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  height: 100%;
  transition: background .2s;
}
.special-card:hover { background: rgba(255,255,255,0.14); }
.special-card-closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}
.special-day {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.special-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.special-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  padding: 0.2rem 0;
  line-height: 1.4;
}
.closed-note {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

/* ============================================================
   GALLERY
============================================================ */
.section-gallery {
  padding: 6rem 0;
  background: var(--cream);
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   FUNCTION ROOM
============================================================ */
.section-function {
  padding: 6rem 0;
  background: var(--cream-dark);
}
.function-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.function-gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ============================================================
   PIZZA BY MAIL
============================================================ */
.section-mailorder {
  padding: 6rem 0;
  background: var(--charcoal);
}
.mailorder-inner {
  max-width: 900px;
  margin: 0 auto;
}
.mail-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.mail-details li {
  color: rgba(255,255,255,0.85);
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.mail-details i { color: var(--gold-light); }
.mail-badge {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
}
.mail-badge-icon {
  font-size: 3.5rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.mail-badge-text {
  font-family: 'Libre Baskerville', serif;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   LOCATION
============================================================ */
.section-location {
  padding: 6rem 0;
  background: var(--cream);
}
.location-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2rem;
  height: 100%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.location-card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.location-address {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 0;
}
.divider-line {
  border-color: var(--border);
}
.hours-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.3rem 0;
}
.hours-table td:first-child { color: var(--mid-gray); }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table .closed { color: var(--mid-gray); font-style: italic; }
.contact-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}
.contact-link:hover { color: var(--red-dark); }
.location-note {
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  text-decoration: none;
  font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s;
}
.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.map-wrap iframe { display: block; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #0D0303;
  padding: 3.5rem 0 2rem;
}
.footer-logo { opacity: 0.9; }
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.footer-phone {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.footer-phone:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.25rem; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.35rem;
}
.footer-powered {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.footer-powered a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}
.footer-powered a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 991px) {
  .about-inset-card { width: 130px; left: -0.5rem; bottom: -0.5rem; }
  .function-gallery-grid img { height: 160px; }
}
@media (max-width: 767px) {
  .section-about, .section-menu, .section-specials,
  .section-gallery, .section-function, .section-mailorder,
  .section-location { padding: 4rem 0; }
  .about-inset-card { display: none; }
  .hero-title { font-size: 2.4rem; }
  .mail-badge { width: 160px; height: 160px; }
  .mail-badge-icon { font-size: 2.5rem; }
}
@media (max-width: 575px) {
  .menu-category { padding: 1.25rem; }
  .function-gallery-grid { grid-template-columns: 1fr; }
}
