/* ==========================================================================
   Port Gourmet Deli — design tokens
   ========================================================================== */
:root {
  --red-deli: #A61B1B;
  --red-deep: #7A1414;
  --cream: #FBF4E9;
  --charcoal: #241C18;
  --mustard: #E8A93A;
  --paper: #F3E9D7;

  --font-display: "Anton", sans-serif;
  --font-body: "Libre Franklin", sans-serif;

  --max-width: 1180px;
  --radius: 4px;

  --shadow-sm: 0 2px 8px rgba(36, 28, 24, 0.12);
  --shadow-md: 0 8px 24px rgba(36, 28, 24, 0.16);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  color: var(--red-deli);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--mustard);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red-deli);
  color: var(--cream);
  border-color: var(--red-deli);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

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

.btn-call {
  background: var(--red-deli);
  color: var(--cream);
  border-color: var(--red-deli);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}
.btn-call:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-small {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* On dark footer / red backgrounds, outline btn needs dark text variant */
.site-footer .btn-outline {
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.site-footer .btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.primary-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.primary-nav a:hover {
  border-color: var(--mustard);
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(251, 244, 233, 0.15);
  }
  .primary-nav .btn-call {
    margin-top: 0.75rem;
    justify-content: center;
  }
}

/* No-JS fallback: keep nav visible if JS never runs and toggle is hidden */
.no-js .primary-nav { display: flex; position: static; }
.no-js .nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,28,24,0.35) 0%, rgba(36,28,24,0.55) 55%, rgba(36,28,24,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.6s ease forwards 0.1s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { opacity: 1; transform: none; animation: none; }
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--mustard);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-hours {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.9;
}

/* ==========================================================================
   About strip
   ========================================================================== */
.about-strip {
  background: var(--paper);
  padding: 2.5rem 0;
  border-bottom: 4px solid var(--red-deli);
}
.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.about-line {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 62ch;
  margin-bottom: 1.75rem;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.review {
  margin: 0;
  padding: 1.1rem 1.3rem;
  background: var(--cream);
  border-left: 4px solid var(--mustard);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.review p {
  font-style: italic;
  margin-bottom: 0.5rem;
}
.review cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red-deli);
}

/* ==========================================================================
   Menu section
   ========================================================================== */
.menu-section {
  padding: 3.5rem 0 2.5rem;
}

.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 2.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(36,28,24,0.15);
}
.menu-jump a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red-deli);
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--red-deli);
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.menu-jump a:hover {
  background: var(--red-deli);
  color: var(--cream);
}

.menu-category {
  margin-bottom: 3.5rem;
  opacity: 1;
}
.menu-category:target {
  scroll-margin-top: 90px;
}

.category-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--red-deli);
  display: inline-block;
}

.subcategory-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--red-deli);
  margin: 2rem 0 0.75rem;
}
.subcategory-title .note {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--charcoal);
  opacity: 0.65;
  font-size: 0.9rem;
}

.menu-list {
  display: grid;
  gap: 0.6rem;
}
.menu-list--compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 1.5rem;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.item-name {
  font-weight: 500;
}
.item-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.item-price {
  font-weight: 700;
  color: var(--red-deli);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-category--feature {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2.5rem;
  border-radius: 8px;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: calc(1.25rem + 1rem);
  padding-right: calc(1.25rem + 1rem);
}
.menu-category--feature .category-title {
  color: var(--cream);
  border-bottom-color: var(--mustard);
}
.menu-category--feature .subcategory-title {
  color: var(--mustard);
}
.menu-category--feature .menu-list li {
  background: rgba(251, 244, 233, 0.08);
}
.menu-category--feature .item-name em {
  opacity: 0.7;
}
.menu-category--feature .item-price {
  color: var(--mustard);
}
.feature-photo {
  margin: -2.5rem calc(-1rem - 1.25rem) 2rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  max-height: 420px;
}
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.menu-category--accent .category-title {
  color: var(--red-deli);
  border-bottom-color: var(--mustard);
}
.menu-category--accent {
  background: var(--paper);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--red-deli);
}

/* ==========================================================================
   Counter (retail) section
   ========================================================================== */
.counter-section {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3.5rem 0;
}
.counter-section .section-title {
  color: var(--cream);
}
.counter-section .section-title::after {
  background: var(--mustard);
}
.counter-intro {
  max-width: 60ch;
  margin-bottom: 1.75rem;
  opacity: 0.85;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag-cloud li {
  background: rgba(251, 244, 233, 0.08);
  border: 1px solid rgba(251, 244, 233, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==========================================================================
   Visit section
   ========================================================================== */
.visit-section {
  padding: 3.5rem 0;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 780px) {
  .visit-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.visit-facts {
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 1.25rem;
}
.visit-facts dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--red-deli);
  margin-bottom: 0.2rem;
}
.visit-facts dd {
  margin: 0;
  font-size: 1.1rem;
}
.visit-facts a {
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-underline-offset: 3px;
}
.hours-note {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.visit-map {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(160deg, var(--red-deli) 0%, var(--red-deep) 100%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.visit-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 28, 24, 0.22);
}
.visit-map-graphic {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(251,244,233,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,244,233,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.visit-map-pin {
  font-size: 3.5rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
}
.visit-map-caption {
  padding: 1.25rem 1.5rem;
  background: rgba(36, 28, 24, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.visit-map-title {
  font-weight: 600;
}
.visit-map-cta {
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--paper);
  border-top: 4px solid var(--red-deli);
  padding: 2.5rem 0 3rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.footer-logo {
  border-radius: 50%;
}
.footer-address a {
  color: var(--red-deli);
  font-weight: 700;
  text-decoration: none;
}
.footer-address a:hover { text-decoration: underline; }
.footer-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Scroll reveal (JS-enhanced)
   ========================================================================== */
.reveal {
  opacity: 0.001;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
