/* ============================================
   Lam's Kitchen - Stylesheet
   ============================================
   
   Color Palette:
   - Red (Primary):  #FD3E3E
   - Cream:          #FFFFCC
   - Beige:          #ffe4b8
   - Accent/Pink:    #ffd2aa
   - Coral:          #ff9473
   - Text Muted:     #a4a584
   
============================================ */

/* ============================================
   1. CSS Custom Properties
============================================ */
:root {
  /* Colors */
  --c-red: #fd3e3e;
  --c-red-dark: #d93636;
  --c-cream: #ffffcc;
  --c-beige: #ffe4b8;
  --c-accent: #ffd2aa;
  --c-pink: #ff9473;
  --c-text: #1a1a1a;
  --c-muted: #a4a584;

  /* Spacing (4px base) */
  --s-1: 0.25rem;  /* 4px */
  --s-2: 0.5rem;   /* 8px */
  --s-3: 0.75rem;  /* 12px */
  --s-4: 1rem;     /* 16px */
  --s-6: 1.5rem;   /* 24px */
  --s-8: 2rem;     /* 32px */

  /* Border Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Shadows */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);

  /* Transitions */
  --ease: 200ms ease;

  /* Typography */
  --font-display: Sayanora, Georgia, serif;
  --font-body: Roboto, 'Roboto Fallback', system-ui, sans-serif;

  /* Layout */
  --content-width: 1000px;
  --content-padding: 60px;
}

/* ============================================
   2. Reset & Base
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100vh;
  min-height: 100dvh;
  background: 
    linear-gradient(to bottom, var(--c-cream), #ffb691),
    url(/images/background.png);
  background-color: var(--c-cream);
  background-blend-mode: soft-light;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
  overscroll-behavior: none;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.6;
  color: var(--c-text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   3. Fonts
============================================ */
@font-face {
  font-family: Sayanora;
  src: url(/fonts/Sayonara_Trash_Free.ttf) format("truetype");
  font-display: optional;
}

@font-face {
  font-family: Roboto;
  src: url(/fonts/Roboto-Regular.ttf) format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Roboto;
  src: url(/fonts/Roboto-Bold.ttf) format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: 'Roboto Fallback';
  src: local('Arial');
  size-adjust: 100.5%;
  ascent-override: 92%;
  descent-override: 22%;
}

/* ============================================
   4. Typography
============================================ */
h1, h2, h3, h4 {
  color: var(--c-red);
  line-height: 1.2;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.375rem);
}

h2 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  margin-block: var(--s-1);
}

p {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--ease);
}

a:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============================================
   5. Utility Classes
============================================ */
/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text */
.text-red { color: var(--c-red); }
.underline { text-decoration: underline; }
.italic { font-style: italic; }
.font-bold { font-weight: bold; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-4 { gap: var(--s-4); }

/* Spacing */
.p-4 { padding: var(--s-4); }
.px-4 { padding-inline: var(--s-4); }
.py-4 { padding-block: var(--s-4); }
.m-4 { margin: var(--s-4); }
.mb-4 { margin-bottom: var(--s-4); }

/* Background */
.bg-beige { background-color: var(--c-beige); }
.bg-red { background-color: var(--c-red); }

/* Border */
.rounded { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.border-dashed {
  border: 3px dashed var(--c-accent);
  border-radius: var(--r-lg);
}

/* ============================================
   6. Skip Link (Accessibility)
============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-red);
  color: var(--c-cream);
  padding: var(--s-2) var(--s-6);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   7. Layout
============================================ */
.container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.foreground {
  background-image: url(/images/content.png);
  background-repeat: repeat;
  padding: var(--s-4) var(--content-padding);
  text-align: center;
  width: var(--content-width);
  min-height: 100vh;
  min-height: 100dvh;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dynamic {
  position: relative;
  padding-inline: var(--s-4);
}

.row {
  display: flex;
}

/* ============================================
   8. Header
============================================ */
.header {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.header img {
  max-width: 100%;
  height: auto;
}

.cell {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.center {
  justify-content: center;
  align-items: center;
}

#hours {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px dashed var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  row-gap: 4px;
  flex: 1;
}

#hours h1 {
  margin-top: 0px;
  margin-bottom: 4px;
}

#hours .lunch-and-dinner-time {
  padding: 8px 0px;
}
#hours .lunch-and-dinner-time > p {
  font-size: 20px;
  line-height: 24px;
  padding-bottom: 4px;
}

#hours > .weekdays-hours-time { color: var(--c-red); }
#hours > .weekdays-hours-time > h2 { margin: 0; }
#hours > .weekdays-hours-time > p {
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   9. Navigation
============================================ */
#navigation {
  display: flex;
  border: 2px solid var(--c-red);
  border-radius: var(--r-md);
  overflow: hidden;
}

#navigation .button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 48px;
  padding: var(--s-2) var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 2rem);
  background: var(--c-red);
  color: var(--c-cream);
  transition: background var(--ease), color var(--ease);
}

#navigation .button:hover,
#navigation .button:focus-visible,
#navigation .button[aria-current="page"] {
  background: var(--c-accent);
  color: var(--c-red);
}

#navigation .button[aria-current="page"] {
  font-weight: 700;
}

/* ============================================
   10. Dividers
============================================ */
.divider {
  height: 4px;
  margin: var(--s-4);
  background: radial-gradient(ellipse at center, var(--c-accent), transparent);
}

.h-divider {
  width: 3px;
  background: var(--c-accent);
  flex-shrink: 0;
}

/* ============================================
   11. Information Bar
============================================ */
#information {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-4);
  padding-inline: var(--s-4);
  font-size: clamp(1rem, 3.5vw, 1.625rem);
}

#information .location {
  color: var(--c-pink);
}

#information .location:hover {
  opacity: 0.8;
}

#information .phone {
  color: var(--c-muted);
}

/* ============================================
   12. Home Page
============================================ */
.home-about {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  background: var(--c-beige);
  border-radius: var(--r-md);
  padding: var(--s-4);
}

.home-about img {
  border-radius: var(--r-md);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.home-about p {
  flex: 1;
  min-width: 250px;
  padding: var(--s-4);
  text-align: left;
  color: var(--c-red);
}

.home-letter {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
}

.map-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  max-height: 400px;
}

.map-container iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
}

/* ============================================
   13. Menu Styles
============================================ */
.menu-lunch-banner {
  width: 100%;
  height: auto;
  margin-bottom: var(--s-4);
  transition: transform var(--ease), opacity var(--ease);
}

.menu-lunch-banner:hover {
  transform: scale(1.02);
  opacity: 0.60;
}

.menu-section {
  display: flex;
  flex-direction: column;
  margin-block: var(--s-2) var(--s-4);
}

.section-title {
  background: var(--c-red);
  color: var(--c-cream);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  padding: var(--s-2) var(--s-4);
  margin-block: var(--s-4);
  border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-sm);
}

.section-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-section-extra {
  font-size: 0.875rem;
  color: var(--c-red);
  padding-bottom: var(--s-2);
}

/* Menu Rows */
.menu-row {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-top: 2px;
  border-radius: var(--r-sm);
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

.menu-row div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-1) var(--s-2);
}

.menu-row .number {
  justify-content: flex-start;
  padding-left: var(--s-4);
  min-width: 44px;
  color: var(--c-red);
  font-weight: 600;
}

.menu-row .title {
  flex: 4;
  justify-content: flex-start;
  text-align: left;
}

.menu-row .spicy {
  flex: 0 0 50px;
}

.menu-row .spicy img {
  width: 20px;
  height: auto;
}

.menu-row .price {
  justify-content: flex-end;
  padding-right: var(--s-4);
  font-weight: 600;
  white-space: nowrap;
}

.beige {
  background: var(--c-beige);
}

/* Quick Links */
.menu-row .quick-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-2);
  margin: 2px;
  background: var(--c-beige);
  color: var(--c-red);
  border-radius: var(--r-sm);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
}

.menu-row .quick-link:hover {
  background: var(--c-red);
  color: var(--c-beige);
}

/* ============================================
   14. Lunch Page
============================================ */
.lunch-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px dashed var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  row-gap: 4px;
}

.lunch-banner h1 {
  margin: 0 0 4px 0;
}

.lunch-banner .lunch-hours {
  padding: 8px 0;
}

.lunch-banner .lunch-hours p {
  font-size: 1.125rem;
  line-height: 1.5;
}

.lunch-banner .lunch-info {
  color: var(--c-red);
  font-size: 18px;
  max-width: 74%;
}

.lunch-banner .lunch-info p {
  font-size: 1.2rem;
  font-weight: 500;
}

.lunch-extras {
  font-style: italic;
  font-size: 0.9rem !important;
}

.lunch-banner .spicy-legend {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--c-red);
}

/* ============================================
   15. Contact Page
============================================ */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-4);
  margin: 0 auto;
}

.contact-card {
  border: 3px dashed var(--c-beige);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  background: linear-gradient(135deg, rgba(255, 228, 184, 0.3), transparent);
}

.contact-card-secondary {
  border-color: var(--c-accent);
  text-align: center;
  padding: var(--s-4) var(--s-6);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--c-red);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
  margin-bottom: var(--s-6);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.contact-link,
.contact-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  background: var(--c-beige);
  color: var(--c-red);
  border-radius: var(--r-lg);
  transition: transform var(--ease), background var(--ease);
}

.contact-link:hover,
.contact-menu-link:hover {
  background: var(--c-pink);
  transform: translateY(-2px);
}

.contact-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* background: rgba(255, 255, 255, 0.15); */
  border-radius: var(--r-md);
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.contact-link-label {
  text-align: left;
  font-weight: 600;
  opacity: 0.9;
}

.contact-link-value {
  text-align: right;
  font-weight: bold;
}

.contact-note {
  color: var(--c-red);
  margin-bottom: var(--s-1);
}

.contact-email {
  color: var(--c-red);
  font-weight: 600;
  text-decoration: underline;
}

.contact-email:hover {
  opacity: 0.8;
}

/* ============================================
   15b. Reviews Section
============================================ */
.reviews-section {
  border: 3px dashed var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  text-align: center;
}

.reviews-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--c-red);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: var(--s-4);
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-6);
}

.reviews-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #f5a623;
}

.reviews-stars svg {
  width: 24px;
  height: 24px;
}

.reviews-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-red);
}

.reviews-count {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.review-card {
  background: var(--c-beige);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: left;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-2);
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
}

.review-stars svg {
  width: 16px;
  height: 16px;
}

.review-author {
  font-weight: 600;
  color: var(--c-red);
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-text);
  font-style: italic;
}

.reviews-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-red);
  color: var(--c-cream);
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: background var(--ease), transform var(--ease);
}

.reviews-cta svg {
  width: 18px;
  height: 18px;
}

.reviews-cta:hover {
  background: var(--c-red-dark);
  transform: translateY(-2px);
}

/* ============================================
   16. Buttons
============================================ */
.fade-on-hover {
  transition: opacity var(--ease), transform var(--ease);
}

.fade-on-hover:hover {
  opacity: 0.85;
  transform: scale(0.99);
}

/* Dashed Border Utility */
.dashed-border {
  border: 3px dashed var(--c-accent);
  border-radius: var(--r-md);
}

/* ============================================
   17. Footer
============================================ */
footer {
  padding: var(--s-4);
  font-size: 0.75rem;
  text-align: center;
}

footer a {
  color: var(--c-red);
  text-decoration: underline;
}

footer a:hover {
  opacity: 0.8;
}

/* ============================================
   18. Print Styles
============================================ */
@media print {
  html { background: white; }
  .skip-link, #navigation, footer, .map-container { display: none; }
  .foreground { background: none; padding: 0; }
  .menu-row { break-inside: avoid; }
}

/* ============================================
   19. Reduced Motion
============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
