/* ========================================
   MAIN STYLES – CLS = 0, NO ATKINSON
   Restaurant Website Generator
   Optimized for Segoe UI + System Fonts
   ======================================== */

/* --- Global Reset & Layout Foundation --- */
* {
  box-sizing: border-box;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 1em;
}

/* CSS Custom Properties */
:root {
  --accent: #2337ff;
  --accent-dark: #000d8a;
  --black: 15, 18, 25;
  --gray: 96, 115, 159;
  --gray-light: 229, 233, 240;
  --gray-dark: 34, 41, 57;
  --gray-gradient: rgba(var(--gray-light), 50%), #fff;
  --box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%), 0 16px 32px rgba(var(--gray), 33%);
}

/* --- METRIC-MATCHED FALLBACK FOR SEGOE UI --- */
@font-face {
  font-family: "Segoe UI Fallback";
  src: local("Roboto"), local("Helvetica"), local("Arial"), local(system-ui);
  ascent-override: 78%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 94.5%; /* Matches Segoe UI x-height */
  font-display: swap;
}

//* --- SYSTEM FONTS ONLY --- */
body {
  font-family: "System Fallback", system-ui, -apple-system, Roboto, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  text-align: left;
  background: linear-gradient(var(--gray-gradient)) no-repeat;
  background-size: 100% 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: rgb(var(--gray-dark));
  font-size: 20px;
  line-height: 1.7;
  overflow-x: hidden;
}

.hero-description {
  font-family: "System Fallback", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2em;
  color: #555;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5rem;
  color: rgb(var(--black));
  line-height: 1.2;
}

h1 {
  font-size: 3.052em;
  text-align: center;
  margin-bottom: 1em;
}

h2 {
  font-size: 2.441em;
  text-align: center;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.953em;
}

h4 {
  font-size: 1.563em;
}

h5 {
  font-size: 1.25em;
}

strong, b {
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

p {
  margin-bottom: 1em;
  line-height: 1.7;
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 3em 1em;
  margin-bottom: 3em;
}

.hero-logo {
  width: 400px;
  height: 400px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 2em;
  border-radius: 8px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: #333;
}

.hero-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1em;
}

.btn-primary {
  background: #ffe102;
  color: #1a1a1a;
  border: 2px solid #ffe102;
}

.btn-primary:hover {
  background: #e7cda0;
  border-color: #e7cda0;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 2px solid #333;
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.6em 1.2em;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 3em 0;
  scroll-margin-top: 100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

/* --- Featured Items Section --- */
.featured-items {
  padding: 3em 0;
  background: #f9f9f9;
}

.featured-items h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #333;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.food-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.food-card:hover {
  transform: translateY(-10px);
}

.food-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
}

.food-content {
  padding: 1.5em;
}

.food-content h3 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #333;
}

.food-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
}

.food-content li {
  padding: 0.5em 0;
  padding-left: 1.5em;
  position: relative;
}

.food-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* --- Hours Section --- */
.hours-section {
  padding: 3em 0;
  background: #fff;
}

.hours-section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 2em;
  color: #333;
}

.hours-table {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.hours-table thead {
  background: #335b3e;
  color: #fff;
}

.hours-table th {
  padding: 1em;
  text-align: left;
  font-weight: 700;
  font-size: 1.1em;
}

.hours-table td {
  padding: 1em;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1em;
}

.hours-table tbody tr:last-child td {
  border-bottom: none;
}

.hours-table tbody tr:hover {
  background: #f9f9f9;
}

/* --- About Preview Section --- */
.about-preview {
  padding: 3em 0;
  text-align: center;
}

.about-preview h2 {
  font-size: 2.5em;
  margin-bottom: 1em;
  color: #333;
}

.about-preview p {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2em;
  color: #555;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-content h2 {
  text-align: left;
  font-size: 2em;
  margin: 2em 0 1em;
  color: #333;
}

.about-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

/* --- Location Preview Section --- */
.location-preview {
  padding: 3em 0;
  background: #f9f9f9;
}

.location-preview h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 2em;
  color: #333;
}

/* --- Contact Section --- */
.contact-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-phone {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 1.5em;
}

.contact-phone a {
  color: var(--accent);
  text-decoration: none;
}

.contact-phone a:hover {
  color: var(--accent-dark);
}

/* --- Address Section --- */
.address-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.address-text {
  font-size: 1.3em;
  margin-bottom: 2em;
  color: #333;
  font-weight: 500;
}

.map-embed-large {
  margin: 2em 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.map-embed-large iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 15px;
}

/* --- Map Embed --- */
.map-embed {
  margin-top: 1em;
  border-radius: 10px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

/* --- Hours --- */
.hours {
  background: #fff;
  padding: 1.5em;
  border-radius: 10px;
}

.hours p {
  margin: 0.8em 0;
  font-size: 1em;
  color: #333;
  font-weight: 500;
}

/* --- Contact CTA --- */
.contact-cta {
  text-align: center;
}

.contact-cta a[href^="tel"] {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 1em;
  color: var(--accent);
}

/* --- Contact Page Specific --- */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  max-width: 1000px;
  margin: 2em auto;
}

.contact-details {
  background: #fff;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-details h2 {
  text-align: left;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #333;
}

.contact-details p {
  margin: 0.5em 0 1.5em 0;
}

.map-container {
  background: #fff;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container h2 {
  text-align: left;
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #333;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 1em;
}

.map-container p {
  text-align: center;
}

/* --- Menu Page Specific --- */
.menu-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3em;
  max-width: 1200px;
  margin: 3em auto;
}

.food-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.food-item:hover {
  transform: translateY(-10px);
}

.food-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
}

.food-item h3 {
  font-size: 1.5em;
  margin: 1em 0 0.5em;
  padding: 0 1em;
  color: #333;
}

.food-item ul {
  list-style: none;
  padding: 0 2em;
  margin: 1em 0 2em;
  text-align: left;
}

.food-item li {
  padding: 0.5em 0;
  padding-left: 1.5em;
  position: relative;
}

.food-item li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.order-cta {
  text-align: center;
  margin: 2em 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .food-grid,
  .menu-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
  }
  
  .location-info {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
    padding-top: 80px;
  }
  
  main {
    padding: 1em;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  .hero-description {
    font-size: 1em;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .food-grid,
  .menu-items {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .location-info {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .hours-table {
    font-size: 0.9em;
  }
  
  .hours-table th,
  .hours-table td {
    padding: 0.8em 0.5em;
  }
  
  h1 {
    font-size: 2.5em;
  }
  
  h2 {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .hero h1 {
    font-size: 1.8em;
  }
  
  .hero-logo {
    max-width: 300px;
  }
  
  .btn {
    padding: 0.7em 1.2em;
    font-size: 0.95em;
  }
  
  .container {
    padding: 0 1em;
  }
  
  .hours-table {
    font-size: 0.85em;
  }
  
  .hours-table th,
  .hours-table td {
    padding: 0.6em 0.4em;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.8em;
  }
}

/* --- Accessibility --- */
.sr-only {
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Print Styles --- */
@media print {
  body {
    padding-top: 0;
  }
  
  header, footer {
    display: none;
  }
}