/* ===== VARIABLES ===== */
:root {
  --color-bg: #faf7f2;
  --color-earth: #8b6244;
  --color-earth-dark: #5c3d1e;
  --color-mustard: #c9973a;
  --color-green: #3d5a3e;
  --color-green-light: #6b8f52;
  --color-cream: #f5efe6;
  --color-text: #2c2319;
  --color-text-soft: #6b5c4c;
  --color-border: #ddd0c0;
  --color-white: #ffffff;

  --font-body: 'Rubik', 'Arial', sans-serif;
  --font-display: 'Heebo', 'Arial', sans-serif;

  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.7;
  direction: rtl;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c1e10;
  overflow: hidden;
}

/* Slideshow background */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 21s infinite;
}

/* Stagger each slide: 7 slides × 3s each = 21s total cycle */
.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 3s;
}

.hero-slide:nth-child(3) {
  animation-delay: 6s;
}

.hero-slide:nth-child(4) {
  animation-delay: 9s;
}

.hero-slide:nth-child(5) {
  animation-delay: 12s;
}

.hero-slide:nth-child(6) {
  animation-delay: 15s;
}

.hero-slide:nth-child(7) {
  animation-delay: 18s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }

  2.5% {
    opacity: 1;
  }

  14.3% {
    opacity: 1;
  }

  16.8% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 5, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 48px 24px;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #f9efe0;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: #e8d5b7;
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--color-mustard);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(201, 151, 58, 0.35);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #b8852a;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201, 151, 58, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 8px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-earth-dark);
  margin-bottom: 28px;
  line-height: 1.3;
}

/* ===== ABOUT ===== */
.about {
  background: var(--color-white);
}

.about-text {
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===== MENU ===== */
.menu {
  background: var(--color-cream);
}

.menu-note {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 36px;
  font-style: italic;
}

.menu-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.menu-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
  color: var(--color-text);
  text-align: center;
}

.menu-list li:last-child {
  border-bottom: none;
}

/* ===== DETAILS ===== */
.details {
  background: var(--color-white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.detail-card {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.detail-card:hover {
  box-shadow: var(--shadow);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.detail-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-earth-dark);
  margin-bottom: 8px;
}

.detail-card p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.dietary-note {
  background: linear-gradient(135deg, #eef4e8 0%, #f0ede6 100%);
  border-right: 4px solid var(--color-green-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 600px;
  margin: 0 auto;
}

.dietary-note h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: 10px;
}

.dietary-note p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* ===== RESERVATION FORM ===== */
.reservation {
  background: var(--color-cream);
}

.form-intro {
  color: var(--color-text-soft);
  margin-bottom: 40px;
  font-size: 1rem;
}

.form {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.form-note {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--color-cream);
  border-radius: var(--radius);
  border-right: 3px solid var(--color-mustard);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-earth-dark);
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-mustard);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b6244' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== ALLERGY QUESTION ===== */
.allergy-options {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.allergy-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: all 0.2s ease;
}

.allergy-radio:hover {
  border-color: var(--color-mustard);
}

.allergy-radio input[type="radio"] {
  display: none;
}

.allergy-radio input[type="radio"]:checked+span,
.allergy-radio:has(input:checked) {
  background: var(--color-mustard);
  border-color: var(--color-mustard);
  color: #fff;
}

.allergy-detail {
  margin-top: 12px;
}

.allergy-warning {
  color: #b45309;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #fef3c7;
  border-right: 3px solid #f59e0b;
  border-radius: 6px;
}

/* ===== CALENDAR PICKER ===== */
.calendar-picker {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  user-select: none;
}

.calendar-picker.error {
  border-color: #c0392b;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-earth-dark);
}

.cal-nav {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.cal-nav:hover {
  background: var(--color-mustard);
  color: var(--color-white);
  border-color: var(--color-mustard);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-day-name {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-soft);
  padding: 6px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.92rem;
  cursor: default;
  color: #c0b8ab;
  transition: background var(--transition), color var(--transition);
}

.cal-day.empty {
  visibility: hidden;
}

.cal-day.available {
  color: var(--color-text);
  cursor: pointer;
  font-weight: 500;
  background: var(--color-cream);
  border: 1.5px solid transparent;
}

.cal-day.available:hover {
  background: var(--color-mustard);
  color: var(--color-white);
}

.cal-day.selected {
  background: var(--color-mustard);
  color: var(--color-white);
  font-weight: 600;
  border-color: #b8852a;
}

.cal-day.past {
  color: #d8d0c5;
}

.cal-day.full {
  background: #f5e6e6;
  color: #c0392b;
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.75rem;
  padding: 2px;
}

.cal-day.full .day-num {
  font-size: 0.95rem;
  text-decoration: line-through;
  opacity: 0.6;
}

.cal-day.full .full-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #c0392b;
}

/* Special event day (e.g. ערב קולנוע ואוכל) */
.cal-day.special-event {
  background: #f0eaff;
  color: #5b21b6;
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.75rem;
  padding: 2px;
  border: 1.5px solid #c4b5fd;
}

.cal-day.special-event .day-num {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.8;
}

.cal-day.special-event .special-event-label {
  font-size: 0.52rem;
  font-weight: 700;
  color: #6d28d9;
  text-align: center;
  line-height: 1.2;
}

.cal-day.today {
  border: 1.5px dashed var(--color-earth);
}

/* ===== DIETARY SECTION ===== */
.dietary-container {
  margin-bottom: 22px;
}

.dietary-label {
  display: block;
  font-weight: 500;
  color: var(--color-earth-dark);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.dietary-hint {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.guest-dietary {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.guest-dietary-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-green);
  margin-bottom: 12px;
}

.dietary-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.dietary-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--color-text-soft);
  user-select: none;
}

.dietary-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-green);
  cursor: pointer;
  flex-shrink: 0;
}

.fish-question {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
}

.fish-label {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-earth-dark);
}

.fish-question input[type="radio"],
.extra-question input[type="radio"] {
  accent-color: var(--color-green);
  cursor: pointer;
}

.extra-question {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
}

.meat-other-input {
  padding: 6px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-bg);
  width: 140px;
}

.meat-other-input:focus {
  outline: none;
  border-color: var(--color-mustard);
}

.guest-dietary.error {
  border-color: #c0392b;
}

.fish-question.error,
.extra-question.error {
  border-color: #c0392b;
}

/* ===== FORM MESSAGE ===== */
.form-message {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: center;
}

.form-message.success {
  background: #eef6e8;
  color: #2d6a1f;
  border: 1px solid #b5d9a0;
}

.form-message.error {
  background: #fdf0ee;
  color: #7a1f1f;
  border: 1px solid #e8b0a8;
}

/* ===== PROMO SECTION ===== */
.promo {
  padding: 32px 0;
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
}

.promo-container {
  max-width: 500px;
  text-align: center;
}

.promo-hook {
  font-size: 1rem;
  color: var(--color-text-soft);
  cursor: pointer;
}

.promo-link {
  color: var(--color-green);
  font-weight: 500;
  text-decoration: underline;
  transition: color var(--transition);
}

.promo-link:hover {
  color: var(--color-mustard);
}

.promo-form-wrap {
  margin-top: 20px;
  text-align: right;
}

.promo-form .form-group {
  margin-bottom: 14px;
}

.promo-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  background: var(--color-white);
  transition: border-color var(--transition);
}

.promo-form textarea:focus {
  outline: none;
  border-color: var(--color-green);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-earth-dark);
  color: #d4b896;
  padding: 48px 0 36px;
  text-align: center;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0dfc0;
  margin-bottom: 14px;
}

.footer-contact a {
  color: var(--color-mustard);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-social a {
  color: #d4b896;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-mustard);
}

.sep {
  margin: 0 10px;
  color: #7a5a3a;
}

.footer-copy {
  font-size: 0.8rem;
  color: #7a5a3a;
}

/* ===== LOADING STATE ===== */
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .form {
    padding: 28px 20px;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 80vh;
  }
}

@media (max-width: 400px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SUBMIT WARNING ===== */
.submit-warning {
  background: #fff8e6;
  border: 2px solid #c9973a;
  border-radius: 8px;
  color: #7a4e00;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 18px;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
}