/* =============================
   Base Page & Layout Structure
============================= */

:root{
  --bg: #0e0e0e;
  --text: #f2f2f2;
  --muted: rgba(255,255,255,0.72);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.04);
  --green-glass: rgba(0, 64, 0, 0.25);
  --green-border: rgba(0, 128, 0, 0.30);
  --radius: 20px;
}

/* ✅ Makes widths include padding/border (fixes mobile uneven spacing) */
*, *::before, *::after {
  box-sizing: border-box;
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* keep main flexible */
main {
  min-height: 0;
  grid-row: 2;
}

/* Home only: no scroll (desktop look) */
body.page-home {
  height: 100vh;
  overflow: hidden;
}

body.page-home main {
  overflow: hidden;
}

/* Allow other pages to scroll normally */
body:not(.page-home) {
  height: auto;
  overflow-y: auto;
}

body:not(.page-home) main {
  overflow: visible;
}

/* Prevent iOS zoom jump on inputs */
input, textarea, select {
  font-size: 16px;
}


/* =============================
   Header and Navigation
============================= */

.site-header {
  background-color: var(--green-glass);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  border-bottom: 1px solid var(--green-border);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* HEADER STRUCTURE */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1rem 2rem;
  gap: 12px;
}

.logo {
  flex: 1;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  text-align: center;
  display: inline-block;
}

.logo a:hover {
  opacity: 0.8;
}

/* CENTERED NAVIGATION (desktop) */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 70vw;
}

.main-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* nav sizing */
.main-nav a,
.btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}

.btn:hover,
.btn.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: forestgreen;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
}


/* =============================
   Headings & Text
============================= */

h1, h2, h3 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 30px;
  text-align: left;
}

h2 {
  font-size: 26px;
}

p {
  line-height: 1.8;
  font-size: 18px;
  color: #dddddd;
  margin: 10px 0 25px;
  text-align: left;
}


/* =============================
   Section Containers
============================= */

section {
  max-width: 960px;
  margin: 30px auto;
  padding: 30px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 25px;
}

section img {
  width: 200px;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
  margin: 0;
}

section .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact page sections should NOT use the global section flex layout */
.contact-section,
.contact-form {
  display: block;
  gap: 0;
}

/* Reservation page section should NOT use the global section flex layout */
.reservation-form {
  display: block;
  gap: 0;
}


/* =============================
   Media Display: Images & Video
============================= */

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: flex-start;
  padding-top: 8vh;

  text-align: center;
  padding-left: 24px;
  padding-right: 24px;

  z-index: 2;
}

.hero-image {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0 20px;
  width: min(900px, calc(100% - 32px));
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #0e0e0e;
  margin: 0 0 16px;
  text-align: center;
  white-space: pre-line;
  line-height: 1.15;
}

.hero-subtext {
  font-size: 1rem;
  font-weight: 500;
  color: #0e0e0e;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}


/* =============================
   Forms (Reservation + Contact)
============================= */

.form-card {
  width: min(720px, calc(100% - 40px));
  margin: 80px auto;
  padding: 48px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);

  text-align: center;
  display: block;
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-align: center;
}

.form-card .form-subtext {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  width: 100%;
}

.form-card input,
.form-card textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 16px;
  font-size: 16px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  background: rgba(0, 0, 0, 0.22);
  color: #f2f2f2;

  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: rgba(34, 197, 94, 0.75);
  background: rgba(0, 0, 0, 0.28);
}

.form-card textarea {
  min-height: 170px;
  resize: vertical;
}

.form-card button {
  margin-top: 10px;
  width: 100%;
  padding: 16px;

  border: none;
  border-radius: 14px;

  background: rgba(0, 128, 0, 0.28);
  color: #ffffff;

  font-size: 18px;
  font-weight: 650;
  cursor: pointer;

  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.form-card button:hover {
  background: rgba(0, 128, 0, 0.42);
  box-shadow: 0 10px 24px rgba(0, 128, 0, 0.20);
  transform: translateY(-1px);
}

/* Date picker icon on dark bg */
.form-card input[type="date"] {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
}

/* Ensure the calendar icon stays visible on iOS */
.form-card input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.9;
}

/* Labels & field groups */
.field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.field-group label {
  display: block;
  text-align: left;
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.availability-note {
  margin: 6px 0 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-style: normal;
  text-align: center;
}

/* Contact email and number */
.contact-section {
  width: min(720px, calc(100% - 40px));
  margin: 60px auto 30px;
  padding: 30px;

  background: var(--glass-2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.40);

  text-align: center;
}

.contact-section h2 {
  text-align: center;
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: 0.4px;
}

.contact-info-item {
  padding: 10px 0;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
}

/* Only Contact + Reservation pages get tighter layout */
main.page-contact,
main.page-reservation {
  padding: 28px 0 28px;
}

/* =============================
   Reservation form: smaller size
============================= */

main.page-reservation .form-card {
  width: min(720px, calc(100% - 40px));
  padding: 48px;
  margin: 28px auto 28px;
  border-radius: 22px;
}

main.page-reservation .form-card h2 {
  font-size: 34px;
}

main.page-reservation .availability-note {
  font-size: 13px;
  margin-bottom: 14px;
}

main.page-reservation .form-card form {
  gap: 12px;
}

main.page-reservation .field-group label {
  margin: 0 0 6px;
  font-size: 13px;
}

main.page-reservation .form-card input,
main.page-reservation .form-card textarea {
  padding: 14px;
  border-radius: 12px;
}

main.page-reservation .form-card button {
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
}

/* Contact page spacing */
main.page-contact .contact-section {
  margin: 28px auto 18px;
}

main.page-contact .form-card {
  margin: 18px auto 28px;
}


/* ================================
   Payment
================================= */

.checkout-elegant {
  max-width: 700px;
  margin: 60px auto;
  padding: 20px;
  color: #f0f0f0;
}

.checkout-elegant h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.checkout-elegant p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 40px;
}

.checkout-payment {
  background: linear-gradient(to right, #111, #181818);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.checkout-payment h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

.field-row {
  display: flex;
  gap: 20px;
}

.field-row .field-group {
  flex: 1;
}

.checkout-payment button {
  margin-top: 20px;
  padding: 16px;
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #1db954, #1aa34a);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-payment button:hover {
  background: linear-gradient(to right, #168b3f, #128032);
}


/* =============================
   Gallery
============================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 60px 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-card {
  background-color: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px 24px;
  color: #eaeaea;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #a6f29e;
  font-weight: 600;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}


/* =============================
   Success Payment
============================= */

.success-container {
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  background-color: var(--bg);
}

.success-box {
  background: #1a1a1a;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #4ade80;
}

.success-box h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #4ade80;
}

.success-message {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #ccc;
}

.success-steps p {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.success-steps ul {
  list-style: none;
  padding: 0;
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.success-steps li {
  margin-bottom: 0.75rem;
  text-align: left;
  padding-left: 1.5rem;
  position: relative;
}

.success-steps li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #22c55e;
}

.success-btn {
  background: #166534;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.success-btn:hover {
  background: #15803d;
}


/* =============================
   Footer
============================= */

footer {
  width: 100%;
  margin-top: auto;
  background-color: var(--green-glass);
  backdrop-filter: blur(6px);
  color: #b5b5b5;
  font-size: 0.85em;
  line-height: 1.2;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  grid-row: 3;
  z-index: 1;
}

footer p {
  margin: 0;
  color: gray;
}

footer *,
footer *:hover {
  color: #b5b5b5;
}


/* =============================
   Mobile / Tablet Responsiveness
============================= */

/* Tablet and below */
@media (max-width: 1024px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-container {
    padding: 12px 12px;
  }

  .nav-center {
    max-width: 86vw;
  }

  .main-nav a,
  .btn {
    font-size: 16px;
    padding: 9px 12px;
    border-radius: 12px;
  }

  section {
    max-width: calc(100% - 28px);
    margin: 18px auto;
  }

  .gallery-grid {
    padding: 40px 16px 90px;
    gap: 18px;
  }
}

/* Phone */
@media (max-width: 768px) {

  /* Let the home page scroll on mobile */
  body.page-home {
    height: auto;
    overflow-y: auto;
  }
  @media (max-width: 768px) {
  .form-card {
    width: 100%;
    max-width: 720px;
    margin: 18px auto;
    padding: 20px;
  }
}


  body.page-home main {
    overflow: visible;
  }

  .site-header {
    padding: 12px 12px;
  }

  /* Stack header items cleanly */
  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    gap: 10px;
  }

  /* Remove absolute centering on mobile (prevents overlap) */
  .nav-center {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 6px 0 2px;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 6px 0 0;
  }

  .logo a {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .main-nav a,
  .btn {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 999px;
  }

  /* Hero text scale down */
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 95%;
  }

  /* Sections become stacked */
  section {
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    margin: 16px 14px;
  }

  section img {
    width: 100%;
    max-height: 220px;
  }

  p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Forms fit nicely */
  .form-card {
    padding: 22px;
    margin: 22px auto;
    width: calc(100% - 24px);
  }

  .form-card h2 {
    font-size: 24px;
  }

  /* Payment layout stacks */
  .field-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Gallery 1-column */
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 26px 14px 70px;
  }

  .image-wrapper {
    height: 200px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .main-nav a,
  .btn {
    font-size: 13px;
    padding: 8px 9px;
  }

  .hero-title {
    font-size: 1.9rem;
  }
}