/* =========================================================
   Eden Park Village – site styles
   Colours live in :root below; change them there to restyle
   the whole site.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Felipa&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root {
  --green: #0f3d22;
  --green-dark: #0b301a;
  --gold: #c99a2e;
  --gold-light: #e0b44a;
  --cream: #f4f1ea;
  --text: #333;
  --muted: #777;
  --header-h: 68px;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Felipa', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* ===== Header bar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: var(--green);
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Home page: header floats over the photo until you scroll */
.site-header.over-hero {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.site-header.over-hero.scrolled,
.site-header.over-hero.nav-open {
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}

.brand-name small {
  display: block;
  margin-top: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

/* ===== Language picker ===== */
.language-toggle {
  position: relative;
  flex-shrink: 0;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.lang-button:hover,
.language-toggle.open .lang-button {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: var(--green-dark);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.language-toggle.open .lang-menu {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

.lang-option[aria-checked="true"] {
  color: var(--gold-light);
  font-weight: 700;
}

.lang-option[aria-checked="true"]::after {
  content: " ✓";
}

/* Narrower screens: menu links fold into the ☰ button */
@media (max-width: 1100px) {
  .site-header {
    padding: 0 16px;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--green);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a.active {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 420px) {
  .brand img {
    height: 38px;
  }

  .brand-name {
    font-size: 1.1rem;
  }
}

/* ===== Home page hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  background: url('assets/Stables_BW.jpg') center / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.15) 65%),
              linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 40%);
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding: 0 64px 80px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 30px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .hero::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.2));
  }

  .hero-content {
    padding: 0 20px 48px;
  }

  .hero p {
    font-size: 1.05rem;
  }
}

/* ===== Inner page photo banner ===== */
.page-banner {
  position: relative;
  min-height: 34vh;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  background: url('assets/Stables_BW.jpg') center 60% / cover no-repeat;
  color: #fff;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page-banner h1 {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.page-banner h1::after,
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--gold);
}

.content-photo {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0.5rem auto 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: #1b1b1b;
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}

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

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}

.btn-secondary:hover {
  border-color: var(--gold);
}

/* ===== Page content ===== */
main {
  padding: 3rem 16px 4rem;
}

.section-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: var(--green);
  margin: 0 0 1.75rem;
}

.intro {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.75;
}

.intro:empty {
  display: none;
}

.intro p {
  margin: 0 0 1.1rem;
}

.intro p:first-child {
  font-size: 1.25rem;
  color: #222;
}

@media (max-width: 768px) {
  main {
    padding-top: 2rem;
  }

  .intro {
    font-size: 1.05rem;
  }

  .intro p:first-child {
    font-size: 1.12rem;
  }
}

/* ===== Horse & pony cards ===== */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.animal-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 1rem;
}

.animal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.animal-card h3 {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--green);
  margin: 0.75rem 0 0;
}

.animal-soon {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #8a8a8a;
}

@media (max-width: 480px) {
  .animal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .animal-card h3 {
    font-size: 1.3rem;
  }
}

/* ===== Team Endurance table ===== */
.endurance-history {
  max-width: 1000px;
  margin: 2rem auto 0;
}

.endurance-history h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--green);
}

.table-wrap {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
}

.results-table th,
.results-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.results-table thead tr {
  background-color: var(--green);
  color: #fff;
}

/* ===== Accommodation ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-list li {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓ ";
  color: var(--gold-light);
}

.booking {
  max-width: 800px;
  margin: 2.5rem auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.booking h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--green);
  margin: 0 0 0.25rem;
}

.booking-lead {
  margin-top: 0;
  color: #555;
}

#booking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 1rem;
  flex: 1;
  min-width: 0;
}

#booking-form input,
#booking-form textarea {
  font: inherit;
  font-weight: normal;
  padding: 10px 12px;
  border: 1px solid #c9c3b6;
  border-radius: 8px;
  background: #fbfaf6;
  width: 100%;
}

#booking-form input:focus,
#booking-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

#booking-form small {
  font-weight: normal;
  color: var(--muted);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.nights {
  margin: -0.5rem 0 1rem;
  color: var(--green);
  font-weight: 600;
  min-height: 1.2em;
}

.form-error {
  background: #fbeaea;
  color: #8a1f1f;
  border-radius: 8px;
  padding: 10px 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .booking {
    padding: 1.25rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ===== WhatsApp button ===== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 90;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-info p {
  margin: 0.5rem 0;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Per-page banner photos ===== */
.banner-accommodation {
  background-image: url('assets/accommodation/sunset-unit.jpg');
  background-position: center 45%;
}

.banner-ponyclub {
  background-image: url('assets/ponies/lesson-arena.jpg');
  background-position: center 30%;
}

/* ===== Photo gallery ===== */
.gallery-section {
  max-width: 1000px;
  margin: 3rem auto 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.gallery a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery a:hover img {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
}

/* Full-screen photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox .lb-close {
  top: 16px;
  right: 16px;
}

.lightbox .lb-prev {
  left: 16px;
}

.lightbox .lb-next {
  right: 16px;
}

/* ===== Facilities (home page) ===== */
.facilities {
  max-width: 1000px;
  margin: 3.5rem auto 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.facility-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.facility-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facility-body {
  padding: 1.1rem 1.4rem 1.4rem;
}

.facility-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--green);
  margin: 0 0 0.4rem;
}

.facility-body p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

@media (max-width: 800px) {
  .facility-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

.gallery-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--green);
  margin: 2rem 0 0.75rem;
}

.gallery-label:first-of-type {
  margin-top: 0;
}

.banner-accommodation::before {
  background: rgba(0, 0, 0, 0.3);
}

/* ===== Lesson request form ===== */
.lesson-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 1rem;
  flex: 1;
  min-width: 0;
}

.lesson-form input:not([type="checkbox"]),
.lesson-form select,
.lesson-form textarea {
  font: inherit;
  font-weight: normal;
  padding: 10px 12px;
  border: 1px solid #c9c3b6;
  border-radius: 8px;
  background: #fbfaf6;
  width: 100%;
}

.lesson-form input:focus,
.lesson-form select:focus,
.lesson-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.chip-group {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.chip-group legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-form .chip {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #c9c3b6;
  border-radius: 999px;
  background: #fbfaf6;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover span {
  border-color: var(--green);
}

.chip input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
