/* =============================
   Base Layout & Utilities
   ============================= */

/* Smooth scrolling with offset for fixed header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* Header / Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

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

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.hero__content {
  padding: 2rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero .btn {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Forms */
input,
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.reservation__form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Honeypot — hidden from real users */
.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__feedback {
  text-align: center;
  color: var(--color-accent);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form__feedback.is-visible {
  opacity: 1;
}

/* Menu items */
.menu__category-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.menu__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.menu__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
}

.menu__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.menu__price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  margin-left: 1rem;
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Legal pages */
.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal ul {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal__updated {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal__table th,
.legal__table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

.legal__table th {
  background-color: var(--color-bg);
  font-weight: 600;
}

.legal__table code {
  font-size: 0.85rem;
  background: #f5f5f5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

/* Footer legal links */
.footer__legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.footer__legal a {
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

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

/* Form consent checkbox */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.form__consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form__consent a {
  color: var(--color-accent);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-text);
  color: var(--color-bg);
  z-index: 200;
  padding: 1rem 1.5rem;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner__inner p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-banner__inner a {
  color: var(--color-accent);
}

.cookie-banner__btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* =============================
   Responsive
   ============================= */

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

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

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    background-color: var(--color-bg);
  }

  .nav__list.is-open {
    display: flex;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}
