/* Cedar Farm Living — modern farm aesthetic */

:root {
  --cf-sage: #5c7a5c;
  --cf-earth: #8b7355;
  --cf-forest: #1e3a2f;
  --cf-cream: #f7f5f0;
  --cf-accent: #c9a227;
  --cf-accent-hover: #b8921f;
  /* Unsplash — hero background */
  --hero-bg: url("https://images.unsplash.com/photo-1500382017468-9049fed42ef1?auto=format&fit=crop&w=1920&q=80");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2c2c2c;
}

/* Typography */
.letter-space {
  letter-spacing: 0.2em;
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* Navbar */
#mainNav {
  background: transparent !important;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#mainNav.nav-scrolled {
  background: rgba(30, 58, 47, 0.96) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

#mainNav .navbar-brand {
  color: #fff !important;
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem;
  transition: color 0.2s, background 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.brand-leaf {
  color: var(--cf-accent);
}

/* Accent button */
.btn-accent {
  --bs-btn-bg: var(--cf-accent);
  --bs-btn-border-color: var(--cf-accent);
  --bs-btn-hover-bg: var(--cf-accent-hover);
  --bs-btn-hover-border-color: var(--cf-accent-hover);
  --bs-btn-color: #1a1a1a;
  --bs-btn-hover-color: #1a1a1a;
  font-weight: 600;
}

.bg-accent-subtle {
  background: rgba(201, 162, 39, 0.2) !important;
}

.text-accent {
  color: var(--cf-accent) !important;
}

/* Hero — countryside field (Unsplash) */
.hero {
  background-color: #1a3028;
  background-image: linear-gradient(135deg, rgba(30, 58, 47, 0.88) 0%, rgba(45, 90, 71, 0.82) 45%, rgba(26, 48, 40, 0.92) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (min-width: 992px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.12), transparent 50%);
  pointer-events: none;
}

.z-1 {
  z-index: 1;
}

.hero-card.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.hero-scroll {
  opacity: 0.7;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Sections */
.section-cream {
  background-color: var(--cf-cream);
}

/* About image fills ratio box */
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(92, 122, 92, 0.2);
  color: var(--cf-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Experience cards */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(30, 58, 47, 0.12) !important;
}

/* Experience card images (Unsplash) */
.exp-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.exp-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.exp-card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 47, 0.55), transparent 45%);
  pointer-events: none;
}

.card.position-relative .exp-card-icon {
  pointer-events: none;
}

.exp-card-icon {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cf-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gallery intro — “Sunrise over fields” showcase image */
.gallery-showcase {
  margin: 0;
}

.gallery-showcase-img {
  display: block;
  height: auto;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

@media (min-width: 992px) {
  .gallery-showcase-img {
    min-height: 320px;
    max-height: 480px;
  }
}

.gallery-showcase-caption {
  background: linear-gradient(to top, rgba(30, 58, 47, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

.gallery-showcase-caption .badge {
  pointer-events: auto;
}

/* Gallery — Unsplash photos with overlay */
.gallery-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  overflow: hidden;
}

.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: inherit;
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30, 58, 47, 0.15), rgba(30, 58, 47, 0.65));
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.gallery-tile .badge {
  position: relative;
  z-index: 2;
}

.gallery-tile-lg {
  min-height: 380px;
}

.gallery-tile-sm {
  min-height: 180px;
}

.gallery-tile-wide {
  min-height: 240px;
}

.min-h-200 {
  min-height: 200px;
}

/* Testimonials */
.text-white-75 {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Contact form */
.form-control:focus,
.form-select:focus {
  border-color: var(--cf-sage);
  box-shadow: 0 0 0 0.2rem rgba(92, 122, 92, 0.2);
}

/* Footer */
.bg-forest {
  background-color: var(--cf-forest) !important;
}

footer a:hover {
  color: var(--cf-accent) !important;
}

/* Inner pages (About, etc.) */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 3rem;
  background-color: #1a3028;
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1500382017468-9049fed42ef1?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px) {
  .page-hero {
    min-height: 48vh;
    padding-top: 7rem;
  }
}

.page-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.page-hero-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95);
}

.value-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(30, 58, 47, 0.1) !important;
}

/* Experience detail / hub heroes */
.page-hero--experiences {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1920&q=80");
}

.page-hero--farm-stays {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1518780664687-26e0d1d36e66?auto=format&fit=crop&w=1920&q=80");
}

.page-hero--harvest {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1542838134-782c9822a34a?auto=format&fit=crop&w=1920&q=80");
}

.page-hero--trails {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1920&q=80");
}

.page-hero--gallery {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1472214103451-9374bd1c798e?auto=format&fit=crop&w=1920&q=80");
}

.page-hero--stories {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1920&q=80");
}

.page-hero--contact {
  background-image: linear-gradient(
      135deg,
      rgba(30, 58, 47, 0.92) 0%,
      rgba(45, 90, 71, 0.85) 50%,
      rgba(26, 48, 40, 0.95) 100%
    ),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80");
}

.gallery-filter .nav-link {
  color: var(--cf-forest);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.gallery-filter .nav-link:hover {
  background: rgba(30, 58, 47, 0.08);
}

.gallery-filter .nav-link.active {
  background: var(--cf-forest) !important;
  color: #fff !important;
}

.story-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.35) !important;
}

.contact-map {
  border: 0;
  border-radius: 1rem;
  min-height: 280px;
}

.border-accent {
  border-color: var(--cf-accent) !important;
}

.exp-detail-sidebar {
  position: sticky;
  top: 6rem;
}

.exp-itinerary-time {
  min-width: 5.5rem;
  font-variant-numeric: tabular-nums;
}
