/* ============================================
   HOPX Restaurant - Main Stylesheet
   Production-ready, responsive design
   ============================================ */

/* --------------------------------------------
   1. RESET & BASE
   -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --------------------------------------------
   CSS VARIABLES
   -------------------------------------------- */
:root {
  /* Colors - warm, appetizing palette */
  --primary: #D4AF37;
  --primary-dark: #B8962E;
  --primary-light: #E5C76B;
  --secondary: #2C3E50;
  --accent: #E74C3C;
  --bg-light: #FAFAF8;
  --bg-dark: #1a1a1a;
  --bg-section: #FFFFFF;
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-muted: #7F8C8D;
  --border-color: #E8E8E8;
  --success: #27AE60;
  --error: #E74C3C;
  --warning: #F39C12;
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Open Sans', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  /* Spacing */
  --container-max: 1200px;
  --section-padding: clamp(3rem, 6vw, 5rem);
  --gap: 1.5rem;
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* --------------------------------------------
   SKIP LINK (A11y)
   -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
  z-index: 10000;
  border-radius: var(--radius);
  transition: top 0.3s ease;
}

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

/* --------------------------------------------
   PRELOADER
   -------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* --------------------------------------------
   SCROLL PROGRESS
   -------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  z-index: 9998;
  transition: width 0.1s ease;
}

/* --------------------------------------------
   LAYOUT - CONTAINER
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------
   HEADER / NAVIGATION
   -------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

/* When logo.png is missing, onerror in HTML shows .logo-text */
.logo-text {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.btn-reserve {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------
   BUTTONS
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--bg-section);
  border: 2px solid var(--bg-section);
}

.btn-secondary:hover {
  background: var(--bg-section);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* --------------------------------------------
   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;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--bg-section);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--primary-light);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bg-section);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

.hero-scroll:hover {
  color: var(--primary);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* --------------------------------------------
   SECTION COMMON
   -------------------------------------------- */
.section {
  padding: var(--section-padding) 0;
  background: var(--bg-section);
}

.section:nth-of-type(even) {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --------------------------------------------
   ABOUT
   -------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-text {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.about-mission h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.about-mission p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-gallery img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform var(--transition);
}

.about-gallery img:hover {
  transform: scale(1.02);
}

.about-gallery img:first-child {
  grid-column: span 2;
  max-height: 220px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.highlight-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section:nth-of-type(even) .highlight-card {
  background: #fff;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.highlight-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------
   MENU
   -------------------------------------------- */
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  border-radius: 2rem;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section:nth-of-type(even) .menu-card {
  background: #fff;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.menu-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.05);
}

.menu-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.menu-favorite:hover,
.menu-favorite.active {
  color: var(--accent);
  background: #fff;
}

.menu-favorite.active i {
  font-weight: 900;
}

.menu-favorite i {
  font-size: 1.1rem;
}

.menu-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.menu-badge.vegetarian { background: var(--success); }
.menu-badge.vegan { background: #1E8449; }
.menu-badge.spicy { background: var(--accent); }
.menu-badge.gluten-free { background: var(--primary); }
.menu-badge.special-badge { background: var(--primary); }

.menu-card-body {
  padding: 1.25rem;
}

.menu-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.menu-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.menu-price {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.menu-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Menu card hide for filter */
.menu-card.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   SPECIAL OFFERS
   -------------------------------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.offer-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}

.offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.offer-card .offer-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  color: #fff;
}

.offer-content h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.offer-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
}

.offer-card.highlight {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-countdown {
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.countdown-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.countdown-item span {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-item small {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.offer-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------
   GALLERY
   -------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  border-radius: 2rem;
  transition: all var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay i {
  font-size: 2rem;
  color: #fff;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.hidden {
  display: none;
}

/* --------------------------------------------
   LIGHTBOX
   -------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------
   TESTIMONIALS
   -------------------------------------------- */
.overall-rating {
  margin-top: 1rem;
}

.overall-rating .stars {
  color: var(--primary);
  font-size: 1.25rem;
}

.rating-text {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.section:nth-of-type(even) .testimonial-card {
  background: #fff;
}

.testimonial-stars {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--secondary);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.testimonial-arrow:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background var(--transition);
}

.testimonial-dot.active {
  background: var(--primary);
  width: 28px;
}

/* --------------------------------------------
   RESERVATION FORM
   -------------------------------------------- */
.reservation-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-section);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input.error-field,
.form-group select.error-field,
.form-group textarea.error-field {
  border-color: var(--error);
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.form-submit {
  margin-top: 1.5rem;
  text-align: center;
}

.form-success {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  color: var(--success);
  text-align: center;
}

.form-success i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-success[hidden] {
  display: none !important;
}

/* --------------------------------------------
   CONTACT
   -------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--primary-dark);
}

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

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact-social a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 3rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.logo-footer .logo-text {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #999;
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  font-family: var(--font-accent);
}

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

.footer-links a,
.footer-contact a {
  color: #bbb;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--primary);
  width: 18px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border: 1px solid #444;
  border-radius: var(--radius);
  background: #333;
  color: #fff;
}

.newsletter-form input::placeholder {
  color: #888;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #888;
}

.footer-legal a {
  color: #aaa;
}

.footer-legal a:hover {
  color: var(--primary);
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 9995;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-light);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

/* --------------------------------------------
   WHATSAPP FLOAT
   -------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  z-index: 9997;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.7); }
}

/* --------------------------------------------
   COOKIE CONSENT
   -------------------------------------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: #eee;
  padding: 1rem 2rem;
  z-index: 9996;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.cookie-consent[hidden] {
  transform: translateY(100%);
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* --------------------------------------------
   MODAL
   -------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  display: flex;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: var(--bg-section);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.modal-content h2 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  color: var(--secondary);
}

.modal-content p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.modal-content a {
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------
   SCROLL REVEAL (utility classes for JS)
   -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------
   RESPONSIVE - TABLET & BELOW
   -------------------------------------------- */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-section);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .btn-reserve {
    display: none;
  }

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

  .about-gallery img:first-child {
    max-height: 280px;
  }

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

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

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

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .menu-filters {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .contact-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
  }

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

  .lightbox-prev,
  .lightbox-next {
    left: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery img:first-child {
    grid-column: span 1;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .countdown-timer {
    gap: 0.5rem;
  }

  .countdown-item {
    min-width: 50px;
    padding: 0.5rem;
  }

  .countdown-item span {
    font-size: 1.35rem;
  }

  .back-to-top {
    left: 16px;
    bottom: 20px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 320px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

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

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

/* --------------------------------------------
   PRINT STYLES
   -------------------------------------------- */
@media print {
  .preloader,
  .scroll-progress,
  .header,
  .hero-scroll,
  .whatsapp-float,
  .cookie-consent,
  .back-to-top,
  .btn,
  .menu-favorite,
  .gallery-overlay,
  .lightbox,
  .filter-btn,
  .gallery-filter-btn,
  .testimonials-nav {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }

  a[href]::after {
    content: none;
  }
}
