/* ==========================================================
   SmoKehouse - restaurant landing page
   ========================================================== */

:root {
  --navy: #0f172b;
  --navy-soft: #1a2440;
  --accent: #fea116;
  --accent-dark: #e08e0a;
  --text: #4a5568;
  --heading: #0f172b;
  --light: #f8f9fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 43, 0.1);
}

/* ---------- base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

section[id],
footer[id] {
  scroll-margin-top: 80px;
}

h1, h2, h3 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.2;
}

img {
  max-width: 100%;
}

.text-accent {
  color: var(--accent) !important;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--accent);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- buttons ---------- */
.btn-accent {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 161, 22, 0.35);
}

.btn-outline-light {
  border-radius: 999px;
  font-weight: 700;
}

.btn-outline-light:hover {
  color: var(--navy);
}

.btn-lg {
  padding: 0.8rem 2rem;
}

/* ---------- navbar ---------- */
.site-nav {
  padding: 0.9rem 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled,
.site-nav:has(.navbar-collapse.show) {
  background: rgba(15, 23, 43, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.55rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.brand {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
}

.brand:hover {
  color: var(--accent);
}

.brand i {
  margin-right: 0.35rem;
}

.site-nav .nav-link {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--accent);
}

.navbar-toggler {
  background: #fff;
  border: 0;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  background:
    linear-gradient(rgba(15, 23, 43, 0.9), rgba(15, 23, 43, 0.9)),
    url("./imgs/bg-hero.jpg") center / cover no-repeat;
}

.eyebrow {
  font-family: "Pacifico", cursive;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 auto 1.8rem;
}

@media (min-width: 992px) {
  .hero-text {
    margin-left: 0;
  }
}

.hero-plate {
  width: min(100%, 500px);
  height: auto;
  animation: spin 50s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- features ---------- */
.features {
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.feature-card {
  height: 100%;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, background 0.25s;
}

.feature-card i {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: color 0.25s;
}

.feature-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--accent);
}

.feature-card:hover i,
.feature-card:hover h2,
.feature-card:hover p {
  color: var(--navy);
}

/* ---------- sections ---------- */
.section {
  padding: 90px 12px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Pacifico", cursive;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section-label::after,
.section-label.centered::before {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.2rem;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-grid img:nth-child(even) {
  margin-top: 1.8rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 5px solid var(--accent);
  padding-left: 1rem;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-text {
  display: block;
  line-height: 1.3;
}

.stat-text strong {
  display: block;
  color: var(--heading);
}

/* ---------- menu ---------- */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.menu-tab {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border: 0;
  border-bottom: 2px dashed #cbd2dc;
  padding: 0.6rem 1.4rem;
  color: var(--heading);
  font-weight: 800;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.menu-tab i {
  font-size: 1.8rem;
  color: var(--accent);
}

.menu-tab small {
  display: block;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.menu-tab:hover,
.menu-tab.is-active {
  border-bottom: 2px solid var(--accent);
  background: rgba(254, 161, 22, 0.08);
}

.dish {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.dish img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.dish-body {
  flex: 1;
}

.dish-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed #cbd2dc;
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}

.dish-head h3 {
  font-size: 1.15rem;
  margin: 0;
}

.price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
}

.dish p {
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- reservation ---------- */
.reservation {
  background: var(--navy);
  overflow: hidden;
}

.reservation-img {
  min-height: 320px;
}

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

.reservation-form {
  padding: 3.5rem 2.5rem;
}

.reservation-form .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.reservation-form .form-control,
.reservation-form .form-select {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
}

.reservation-form .form-control:focus,
.reservation-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.reservation-form [aria-invalid="true"] {
  border-color: #ff6b6b;
}

.field-error {
  color: #ff9b9b;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  min-height: 1.5rem;
}

.form-status.success {
  color: #6ee7a8;
}

.form-status.error {
  color: #ff9b9b;
}

/* ---------- team ---------- */
.chef {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.25s;
}

.chef:hover {
  transform: translateY(-6px);
}

.chef-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
}

.chef-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.chef:hover .chef-photo img {
  transform: scale(1.1);
}

.chef h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.chef p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---------- reviews ---------- */
.review {
  height: 100%;
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review > i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.review blockquote {
  flex: 1;
  margin: 0 0 1.4rem;
  font-weight: 600;
  color: var(--heading);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.review figcaption img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review figcaption strong {
  display: block;
  color: var(--heading);
}

.review figcaption small {
  color: var(--text);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 70px 0 30px;
}

.site-footer h2 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-footer h2::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

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

.site-footer address {
  margin: 0;
}

.site-footer address i {
  color: var(--accent);
  width: 1.4rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
}

.newsletter .form-control {
  border-radius: 999px;
  border: 0;
  min-width: 0;
}

.newsletter .btn {
  padding: 0.4rem 1rem;
  white-space: nowrap;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
  margin-bottom: 0.3rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .site-nav {
    background: rgba(15, 23, 43, 0.96);
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .section {
    padding: 70px 12px;
  }

  .reservation-form {
    padding: 2.5rem 1.5rem;
  }

  .features {
    margin-top: -30px;
  }
}

@media (max-width: 575.98px) {
  .brand {
    font-size: 1.4rem;
  }

  .dish img {
    width: 72px;
    height: 72px;
  }

  .menu-tab {
    padding: 0.5rem 0.9rem;
  }

  .newsletter {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-plate {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
