/* ==========================================================================
   LLBFarm.com — Stylesheet
   ========================================================================== */

/* Custom Properties */
:root {
  --bg:            #F9F6F1;
  --text:          #2A2218;
  --heading:       #1A3320;
  --accent:        #8B6325;
  --accent-light:  #C8A84B;
  --muted:         #6B6050;
  --border:        #D9D0C0;
  --surface:       #ffffff;
  --nav-bg:        #1A3320;
  --nav-text:      #F9F6F1;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --max-width: 1200px;
  --radius:    6px;
  --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; }
ul    { list-style: none; }
button { font-family: inherit; }

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { color: var(--muted); }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  gap: 3px;
}

.logo__llb {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--nav-text);
  letter-spacing: 0.04em;
}

.logo__farm {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-light);
}

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

.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 246, 241, 0.75);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent-light);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 0.75rem 0 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .nav__links.open { display: flex; }

  .nav__links a {
    padding: 0.8rem 1.5rem;
    width: 100%;
    display: block;
  }
}

/* ==========================================================================
   Hero (Homepage)
   ========================================================================== */

.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/img-sunset1.jpg');
  background-size: cover;
  background-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 20, 10, 0.20) 0%,
    rgba(10, 20, 10, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 680px;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero__content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero__content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  animation: heroScroll 2.4s ease-in-out infinite;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
}

@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #9E7230;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 99, 37, 0.35);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn--outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.btn--dark {
  background: var(--heading);
  color: #fff;
}
.btn--dark:hover {
  background: #25492D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 51, 32, 0.35);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--space-xl) 0; }
.section--alt { background: #F2EDE4; }
.section--dark {
  background: var(--heading);
  color: #fff;
}

.section__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--space-lg);
}

.section__header p {
  margin-top: 0.875rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid var(--border);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 0.625rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ==========================================================================
   Photo Strip (homepage preview)
   ========================================================================== */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.photo-strip__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-strip__item:hover img {
  transform: scale(1.05);
}

.photo-strip__cta {
  text-align: center;
}

@media (max-width: 600px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  background: var(--heading);
  text-align: center;
  padding: var(--space-lg) 1.5rem;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Page Hero (About / Gallery)
   ========================================================================== */

.page-hero {
  position: relative;
  height: 48vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,20,10,0.15) 0%,
    rgba(10,20,10,0.65) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero__content h1 {
  color: #fff;
}

.page-hero__content .eyebrow {
  color: var(--accent-light);
}

/* ==========================================================================
   About Sections
   ========================================================================== */

.about-intro {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.about-block:last-of-type {
  border-bottom: none;
}

.about-block--reverse .about-block__image { order: 2; }
.about-block--reverse .about-block__text  { order: 1; }

.about-block__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-block__image:hover img {
  transform: scale(1.04);
}

.about-block__text h2 {
  margin-bottom: 1rem;
}

.about-block__text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-block--reverse .about-block__image,
  .about-block--reverse .about-block__text { order: unset; }
}

/* Contact card on about page */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.contact-card h2 {
  margin-bottom: 0.75rem;
}

.contact-card p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-card .email-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-light);
  padding-bottom: 2px;
  transition: color var(--transition);
}

.contact-card .email-link:hover {
  color: var(--heading);
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.gallery-intro {
  text-align: center;
  max-width: 540px;
  margin: 0 auto var(--space-lg);
}

.gallery-intro p {
  font-size: 1.05rem;
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  border-radius: var(--radius);
}

.gallery-item:hover::after {
  background: rgba(26,51,32,0.18);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 460px) {
  .gallery-grid { columns: 1; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.lightbox__close:hover { color: #fff; }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 480px) {
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--heading);
  padding: 2.5rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.25rem;
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--accent-light); }

.footer__copy {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 580px) {
  .footer__inner { flex-direction: column; }
  .footer__nav { gap: 1.5rem; }
}
