@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --forest: #1a3a2a;
  --forest-mid: #2d5a3f;
  --forest-light: #4a8a5c;
  --earth: #8b6914;
  --earth-light: #c9973d;
  --cream: #f7f3ec;
  --cream-dark: #ede6d9;
  --bark: #5c3d1e;
  --stone: #8a8070;
  --white: #ffffff;
  --shadow: rgba(26, 58, 42, 0.15);
  --radius: 4px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--forest);
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(26, 58, 42, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--earth-light); }

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

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

nav a:hover { color: var(--earth-light); }

.btn-admin {
  background: var(--earth-light);
  color: var(--forest) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.btn-admin:hover { background: var(--white) !important; color: var(--forest) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-mid) 50%, #1e4a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74, 138, 92, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 151, 61, 0.1) 0%, transparent 40%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-badge {
  display: inline-block;
  background: rgba(201, 151, 61, 0.2);
  border: 1px solid rgba(201, 151, 61, 0.4);
  color: var(--earth-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--earth-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}

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

.btn-primary {
  background: var(--earth-light);
  color: var(--forest);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--earth-light);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── SECTIONS ── */
section { padding: 6rem 5vw; }

.section-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 0.8rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--stone);
  line-height: 1.7;
  max-width: 520px;
}

/* ── FEATURES ── */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--forest-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--forest);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.6;
}

/* ── RESERVATION SECTION ── */
.reservation-section {
  background: var(--cream);
}

.reservation-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .reservation-layout { grid-template-columns: 1fr; gap: 3rem; }
}

.reservation-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.price-display {
  background: var(--forest);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.price-display .price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--earth-light);
}

.price-display .price-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

.reservation-rules {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reservation-rules li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--stone);
}

.reservation-rules li::before {
  content: '✓';
  color: var(--forest-light);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FORM ── */
.reservation-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 40px var(--shadow);
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--forest);
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--stone);
  margin-bottom: 2rem;
}

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

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--forest);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 138, 92, 0.1);
}

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

.availability-box {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  display: none;
}

.availability-box.show { display: block; }
.availability-box.available { border-color: var(--forest-light); background: rgba(74,138,92,0.05); }
.availability-box.unavailable { border-color: #e76f51; background: rgba(231,111,81,0.05); }

.availability-box .avail-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  font-family: 'Playfair Display', serif;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin: 1.5rem 0;
}

.btn-submit {
  width: 100%;
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: var(--forest-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow);
}

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

/* ── TOAST ── */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--white);
  border-left: 4px solid var(--forest-light);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 0.9rem;
  max-width: 340px;
  animation: slideIn 0.3s ease;
}

.toast.error { border-color: #e76f51; }
.toast.success { border-color: var(--forest-light); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  color: rgba(255,255,255,0.6);
  padding: 3rem 5vw;
  text-align: center;
}

footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

footer .footer-logo span { color: var(--earth-light); }

footer p { font-size: 0.85rem; margin-top: 0.3rem; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,58,42,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-icon { font-size: 3rem; text-align: center; margin-bottom: 1rem; }

.modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  text-align: center;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.modal p { text-align: center; color: var(--stone); font-size: 0.95rem; line-height: 1.6; }

.modal-actions { display: flex; justify-content: center; margin-top: 2rem; }

/* ── LOADER ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

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