/* Samosa Kitchen - shared skeleton styles */

:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5a1620;
  --saffron: #e8912d;
  --gold: #c99a3a;
  --cream: #fdf6ec;
  --text: #2b1c1c;
  --muted: #7a6a5f;
  --card-bg: #ffffff;
  --border: #e8dcc9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Header / Nav */
.site-header {
  background: var(--maroon);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.brand-text .subtitle {
  font-size: 0.75rem;
  color: var(--saffron);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--saffron);
  color: var(--saffron);
}

/* Page container */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: 60vh;
}

.page-title {
  font-size: 2rem;
  color: var(--maroon-dark);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Hero (home page) */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero > img {
  height: 110px;
  width: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  flex-shrink: 0;
}

.hero-content {
  flex: 1 1 auto;
}

.hero-content h1 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
}

.hero-content p {
  margin: 0;
  color: #f3d9c4;
  max-width: 40ch;
}

.hero-dishes {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hero-dishes a {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hero-dishes a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.hero-dishes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge (hygiene rating) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #3a2a00;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge-row .badge {
  margin-top: 0;
}

.badge-halal {
  background: #1f7a3f;
  color: #fff;
}

/* Cards / placeholders */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
  color: var(--maroon-dark);
}

.placeholder-text {
  color: var(--muted);
  font-style: italic;
}

/* About page sections */
.about-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.about-section h2 {
  margin-top: 0;
  color: var(--maroon-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
}

.about-section p {
  max-width: 70ch;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Menu categories */
.menu-category {
  margin-bottom: 2rem;
}

.menu-category h2 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.4rem;
  color: var(--maroon-dark);
}

/* Menu grid (image | name | price) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.menu-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.menu-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(122, 31, 43, 0.15);
  border-color: var(--gold);
}

.menu-grid-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.menu-grid-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-grid-item-name {
  font-weight: 700;
  color: var(--maroon-dark);
}

.menu-grid-item-price {
  color: var(--saffron);
  font-weight: 700;
}

/* Item detail page */
.item-detail {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.item-detail-image {
  flex: 0 0 280px;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
}

.item-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-detail-info {
  flex: 1 1 320px;
  min-width: 280px;
}

.item-detail-price {
  color: var(--saffron);
  font-weight: 700;
  font-size: 1.2rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--maroon);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--saffron);
}

/* Form */
form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 640px;
}

.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-weight: 600;
}

input,
textarea,
select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

input.invalid,
textarea.invalid,
select.invalid {
  border-color: #b3261e;
  background: #fdf1f0;
}

.field-error {
  display: block;
  min-height: 1.1em;
  color: #b3261e;
  font-size: 0.85rem;
}

.required-mark {
  color: #b3261e;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.6rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

.checkbox-option input {
  width: auto;
}

button,
.btn {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

button:hover,
.btn:hover {
  background: var(--maroon);
}

/* Reviews */
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Contact */
.social-links {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--maroon-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-dishes {
    justify-content: center;
  }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-wrap {
    padding: 0.6rem 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0.25rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1.75rem 1rem 3rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .hero {
    padding: 1.75rem 1.25rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-dishes a {
    width: 90px;
    height: 90px;
  }

  .menu-grid,
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .item-detail-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  form {
    padding: 1.1rem;
  }
}

/* Footer */
.site-footer {
  background: var(--maroon-dark);
  color: #f3d9c4;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--saffron);
}
