/* =========================================================
   Riverview Farm — stylesheet
   Colors, fonts, and spacing are defined once at the top
   so this file is easy to tweak without touching the HTML.
   ========================================================= */

:root {
  --color-bg: #fbf7f0;
  --color-cream: #f4ecdf;
  --color-text: #3a2f22;
  --color-text-soft: #6b5c46;
  --color-green: #2f4a2e;
  --color-green-dark: #23361f;
  --color-terracotta: #c1622f;
  --color-terracotta-dark: #a44f22;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1eb956;
  --color-white: #ffffff;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(58, 47, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-green-dark);
}

p { margin: 0 0 1em; }

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

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 40px;
}

.section-title.center { text-align: center; }
.section-title.light { color: var(--color-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 18px 40px; font-size: 1.1rem; }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-green-dark);
  border-color: var(--color-green-dark);
}
.btn-outline-dark:hover { background: var(--color-green-dark); color: var(--color-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(58, 47, 34, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo, .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-green-dark);
}
.logo span, .footer-logo span { color: var(--color-terracotta); }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content { max-width: 720px; }

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero p {
  color: var(--color-white);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 2em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Welcome ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.welcome-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-text p { color: var(--color-text-soft); font-size: 1.05rem; }

/* ---------- Amenities ---------- */
.amenities { background: var(--color-cream); }

.amenities-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.amenities-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.card-icon { font-size: 1.8rem; margin-bottom: 10px; }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.card p { color: var(--color-text-soft); font-size: 0.95rem; margin: 0; }

.amenities-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.amenities-photos img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* ---------- Photo Gallery ---------- */
.gallery-intro {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 620px;
  margin: 0 auto 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 200px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  background: var(--color-cream);
}

.gallery-item.featured { grid-row: span 2; }

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

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.94);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-image {
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 0 80px;
}

/* ---------- Pricing ---------- */
.pricing {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.pricing .section-title { color: var(--color-white); }

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.price-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 32px 40px;
  text-align: center;
  min-width: 220px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
}

.price-label { font-size: 0.95rem; opacity: 0.85; margin-bottom: 10px; }

.price-card p { margin: 0; font-weight: 700; font-size: 1.05rem; }

.pricing-notes {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.92;
}

.pricing-notes p { margin-bottom: 6px; }

.pricing-cta { text-align: center; }

/* ---------- Good to know ---------- */
.info-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 16px;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 1.02rem;
}

.info-icon { font-size: 1.4rem; }

/* ---------- Location ---------- */
.location-intro {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto 32px;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.location-cta {
  text-align: center;
  margin-top: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0;
  text-align: center;
}

.footer-inner p { margin-bottom: 6px; }

.footer-logo { color: var(--color-white); margin-bottom: 14px; }
.footer-logo span { color: #e8a06a; }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-image { order: -1; }

  .amenities-layout { grid-template-columns: 1fr; }
  .amenities-photos { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 180px;
  }
}

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

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-caption { padding: 0 50px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.featured { grid-row: span 1; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .amenities-cards { grid-template-columns: 1fr; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .header-inner { flex-direction: column; gap: 12px; padding-top: 14px; }
}
