/* ============================================================
   HONEYBUTTER FARM — Main Stylesheet
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --gold:        #D8B25B;
  --gold-light:  #E8CC84;
  --green-dark:  #2C4A2E;
  --green-deep:  #1C2E1D;
  --ivory:       #F5EFE2;
  --ivory-dark:  #EDE4D0;
  --earth:       #7A4E2D;
  --text-dark:   #2A1F14;
  --text-mid:    #5a4a36;
  --text-light:  #F5EFE2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Jost', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: clamp(3rem, 8vw, 6rem);
  --nav-height: 72px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; }

.section-label {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.gold-rule.centered { margin-left: auto; margin-right: auto; }

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: var(--section-pad); }

.section--dark {
  background-color: var(--green-dark);
  color: var(--text-light);
}

.section--deeper {
  background-color: var(--green-deep);
  color: var(--text-light);
}

.section--ivory-dark {
  background-color: var(--ivory-dark);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.scrolled {
  background-color: var(--green-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav.scrolled .nav__logo img {
  opacity: 1;
  transform: translateX(0);
}
.nav__logo img:hover { opacity: 0.85; }

.nav__logo-text {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
}

.nav.scrolled .nav__logo-text {
  opacity: 1;
  transform: translateX(0);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.9);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav__drawer a:hover { color: var(--gold); }
.nav__drawer-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--green-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero__bg.loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,32,20,0.45) 0%,
    rgba(20,32,20,0.38) 50%,
    rgba(20,32,20,0.62) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding-inline: 1.5rem;
  max-width: 800px;
}

.hero__logo {
  height: clamp(110px, 20vw, 200px);
  width: auto;
  margin-inline: auto;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.hero__tagline {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.65);
}

.hero__sub {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-inline: auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,239,226,0.6);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(245,239,226,0.5);
  border-bottom: 1px solid rgba(245,239,226,0.5);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ============================================================
   OUR STORY
   ============================================================ */
.story {
  background-color: var(--ivory);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.story__image-wrap {
  position: relative;
}

.story__image {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  border-radius: 2px;
}

.story__image-accent {
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid var(--gold);
  z-index: -1;
  pointer-events: none;
}

.story__text p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.story__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.story__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gold);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth);
}

.story__gallery {
  margin-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 768px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__image { aspect-ratio: 3/2; }
  .story__image-accent { display: none; }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  background-color: var(--green-dark);
  color: var(--text-light);
}

.products__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.products__header .gold-rule { margin-inline: auto; }
.products__header .section-label { justify-content: center; }

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(216,178,91,0.2);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216,178,91,0.7);
}

.product-card__image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-deep);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.product-card:hover .product-card__image {
  filter: brightness(1) saturate(1.05);
  transform: scale(1.04);
}

.product-card__body {
  padding: 1.5rem;
}

.product-card h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: rgba(245,239,226,0.72);
  line-height: 1.65;
}

.product-card--coming-soon { opacity: 0.55; }
.product-card--coming-soon .product-card__image {
  filter: brightness(0.55) saturate(0.3);
}

.coming-soon-tag {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(216,178,91,0.35);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ============================================================
   OUR PRACTICES
   ============================================================ */
.practices {
  background-color: var(--ivory-dark);
}

.practices__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.practices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.practice-item {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--ivory);
  border-top: 3px solid var(--gold);
}

.practice-item__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.practice-item h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 0.65rem;
}

.practice-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================================
   FIND US
   ============================================================ */
.find-us {
  background-color: var(--green-deep);
  color: var(--text-light);
}

.find-us__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.find-us__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  transition: color 0.2s;
  margin-bottom: 0.5rem;
}
.find-us__instagram:hover { color: var(--gold-light); }

.find-us__instagram-divider {
  width: 1px;
  height: 3rem;
  background: rgba(216,178,91,0.25);
  margin: 2rem auto;
}

.find-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.find-us__card {
  border: 1px solid rgba(216,178,91,0.3);
  padding: 2.5rem;
}

.find-us__card h3 {
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.find-us__card .detail {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(245,239,226,0.65);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.find-us__card .detail strong {
  color: var(--text-light);
  font-weight: 600;
}

.find-us__divider {
  width: 100%;
  height: 1px;
  background: rgba(216,178,91,0.2);
  margin: 1.5rem 0;
}

@media (max-width: 900px) {
  .find-us__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .find-us__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background-color: var(--ivory);
}

.gallery__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.6rem;
}

.gallery__item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--ivory-dark);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.92) saturate(0.88);
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.08);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,32,20,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.7);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-light);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 1rem;
}
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
.instagram-strip {
  background-color: var(--green-dark);
  color: var(--text-light);
  text-align: center;
  padding-block: 3.5rem;
}

.instagram-strip__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.5);
  margin-bottom: 0.85rem;
}

.instagram-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  transition: color 0.2s;
}
.instagram-strip__link:hover { color: var(--gold-light); }
.instagram-strip__link svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--green-deep);
  color: rgba(245,239,226,0.45);
  text-align: center;
  padding-block: 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 2;
  border-top: 1px solid rgba(216,178,91,0.12);
}

.footer__logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

/* ============================================================
   LAZY LOAD FADE-IN
   ============================================================ */
img[loading="lazy"] { opacity: 0; transition: opacity 0.6s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* ============================================================
   PLACEHOLDER shown when image file not yet added
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #243b26 0%, #1a2b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(216,178,91,0.3);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   MOBILE FINE-TUNING
   ============================================================ */
@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .practices__grid { grid-template-columns: 1fr; }
  .gallery__grid   { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .gallery__item   { aspect-ratio: 1; }
  .find-us__card   { padding: 1.75rem 1.25rem; }
}
