/* Bearse Farm – Custom styles layered on top of Tailwind */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── Scroll behaviour ── */
html { scroll-behavior: smooth; }

/* ── Utility: clamp heading sizes ── */
.hero-heading { font-size: clamp(2.2rem, 5vw, 4rem); }
.section-heading { font-size: clamp(1.6rem, 3vw, 2.5rem); }

/* ── Nav link hover underline ── */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #f0a500;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Active nav link ── */
.nav-link.active::after { width: 100%; }

/* ── Service card hover ── */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ── Hero overlay ── */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10,40,15,0.72) 0%,
    rgba(10,40,15,0.35) 60%,
    rgba(0,0,0,0.1) 100%
  );
}

/* ── Ribbon badge ── */
.ribbon {
  position: absolute;
  top: 16px; right: -8px;
  background: #f0a500;
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  border-radius: 2px;
  text-transform: uppercase;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}
.ribbon::before {
  content: '';
  position: absolute;
  bottom: -8px; right: 0;
  border-width: 4px 8px;
  border-style: solid;
  border-color: #b07a00 transparent transparent #b07a00;
}

/* ── Section divider ── */
.wave-divider svg { display: block; }

/* ── Gallery image hover ── */
.gallery-img {
  transition: transform 0.35s ease;
  overflow: hidden;
}
.gallery-img img {
  transition: transform 0.35s ease;
}
.gallery-img:hover img { transform: scale(1.06); }

/* ── Stat counter ── */
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* ── Mobile menu slide ── */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── Scroll-to-top button ── */
#scroll-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Breadcrumb ── */
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero entrance animation ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
}
.hero-animate-d1 { animation-delay: 0.1s; }
.hero-animate-d2 { animation-delay: 0.28s; }
.hero-animate-d3 { animation-delay: 0.46s; }
.hero-animate-d4 { animation-delay: 0.62s; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.15s; }
.reveal-d3 { transition-delay: 0.25s; }
.reveal-d4 { transition-delay: 0.35s; }

/* ── Form focus ring ── */
.form-field:focus {
  outline: none;
  border-color: #2d6a35;
  box-shadow: 0 0 0 3px rgba(45,106,53,0.15);
}
