/* ============ The Rock Farm — Stylesheet ============ */

:root {
  --forest: #2d4a3a;
  --forest-dark: #1c2f25;
  --gold: #c9974a;
  --gold-light: #e0b876;
  --cream: #faf6ef;
  --cream-2: #f2ece1;
  --text: #24312a;
  --text-muted: #66756c;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(28, 47, 37, 0.10);
  --shadow-sm: 0 4px 14px rgba(28, 47, 37, 0.08);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.2;
}

h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 8px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }
.eyebrow.light { color: var(--gold-light); }
.center { text-align: center; }
.center h2 { max-width: 620px; margin-left: auto; margin-right: auto; }
h2.light, p.light { color: var(--white); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--gold-light); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--forest);
}
.section-dark .btn-outline, .hero .btn-outline { color: var(--white); }
.btn-outline:hover { background: rgba(0,0,0,0.05); transform: translateY(-2px); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 74, 58, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(28, 47, 37, 0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--forest-dark);
}
.logo span { color: var(--gold); }
.nav-desktop {
  display: flex;
  gap: 32px;
}
.nav-desktop a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav-desktop a:hover { color: var(--gold); }
.nav-cta { padding: 11px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--forest-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: var(--cream);
  border-top: 1px solid rgba(45, 74, 58, 0.08);
}
.nav-mobile a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid rgba(45, 74, 58, 0.06);
}
.nav-mobile .btn { margin-top: 12px; text-align: center; }
.nav-mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,151,74,0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(224,184,118,0.25), transparent 50%),
    linear-gradient(155deg, #1c2f25 0%, #2d4a3a 45%, #3c5a46 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,47,37,0.15) 0%, rgba(28,47,37,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 76px;
  max-width: 720px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  color: var(--white);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 22px;
  opacity: 0.7;
  animation: bounce 2.2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-tint { background: var(--cream-2); }
.section-dark {
  background: linear-gradient(160deg, var(--forest-dark), var(--forest));
  color: var(--white);
}

/* ============ Placeholder images ============ */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream-2), #e3dccd);
  border: 1.5px dashed rgba(45, 74, 58, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 16px;
}
.img-placeholder.tall { min-height: 380px; height: 100%; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { color: var(--text-muted); margin-bottom: 16px; }
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--font-head); font-size: 24px; color: var(--forest); }
.about-stats span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
}

/* ============ Amenities ============ */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.amenity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.amenity-icon { font-size: 32px; margin-bottom: 14px; }
.amenity-card p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 860px) { .amenity-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr; } }

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  margin-top: 48px;
}
.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item { min-height: unset; height: 100%; }
.gallery-note, .pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

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

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--forest);
  color: var(--white);
  transform: scale(1.04);
  box-shadow: var(--shadow);
}
.price-card.featured h3, .price-card.featured .price { color: var(--white); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
}
.price {
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--forest);
  margin: 6px 0 22px;
}
.price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-card.featured .price span { color: rgba(255,255,255,0.7); }
.price-card ul { margin-bottom: 28px; flex: 1; }
.price-card li {
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.price-card.featured li { border-bottom-color: rgba(255,255,255,0.14); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .price-card.featured { transform: none; }
}

/* ============ Events ============ */
.events-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.events-copy p { color: var(--text-muted); margin-bottom: 20px; }
.events-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.events-tag {
  background: var(--cream-2);
  border: 1px solid rgba(45, 74, 58, 0.12);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
}
@media (max-width: 860px) {
  .events-grid { grid-template-columns: 1fr; }
  .events-media { order: -1; }
}

/* ============ Booking form ============ */
.booking-sub { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 44px; }
.booking-form {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.85);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.form-field select option { color: var(--text); }
.form-note {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
}
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-list { margin: 24px 0 28px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-muted);
}
.contact-list a:hover { color: var(--gold); }
.contact-icon { font-size: 17px; }
.social-links { display: flex; gap: 16px; }
.social-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  border: 1px solid rgba(45,74,58,0.2);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-links a:hover { background: var(--forest); color: var(--white); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { order: -1; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.6);
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
