/* Ayers Farm — shared styles for the preview_v4 site */
:root {
  --green-dark: #1a3a1a;
  --green: #2d5a2d;
  --green-hover: #1e3f1e;
  --green-deep: #121c12;
  --cream: #f4f7f2;
  --cream-2: #e8efe4;
  --paper: #ffffff;
  --text: #2c3e2d;
  --text-muted: #3d4f3d;
  --pecan: #c45c26;
  --pecan-hover: #a34a1e;
  --line: #d5dfd2;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --nav-h: 68px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-dark);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.nav-brand span {
  font-size: 1.05rem;
}

.nav-toggle {
  position: absolute;
  left: -9999px;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--green-dark);
  height: 2px;
  width: 22px;
  position: relative;
  transition: 0.2s;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus {
  background: var(--cream);
  color: var(--green-dark);
}
.site-nav a[aria-current="page"] {
  color: var(--green);
  background: var(--cream-2);
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
    gap: 0;
  }
  .site-nav a {
    padding: 12px 14px;
  }
}

/* ---------- Layout ---------- */
main {
  flex: 1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  text-align: center;
  padding: 36px 20px 10px;
}
.page-header h1 {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}
.page-header .location {
  font-size: 1.1rem;
  color: #5a6b5a;
}

.section {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  margin: 25px 0;
  box-shadow: var(--shadow);
}
.section h2 {
  color: var(--green-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.section p {
  margin-bottom: 12px;
  color: var(--text-muted);
}
.section ul {
  margin: 8px 0 20px 1.2em;
  color: var(--text-muted);
}
.section li {
  margin-bottom: 10px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 8px;
  max-width: 36em;
}

/* ---------- Buttons ---------- */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn:hover,
.btn:focus {
  background: var(--green-hover);
  color: #fff;
}
.btn.secondary {
  background: var(--pecan);
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--pecan-hover);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: var(--green-dark);
  background-image: url("../images/hero-orchard.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 16, 8, 0.48) 0%,
    rgba(8, 16, 8, 0.38) 45%,
    rgba(8, 16, 8, 0.62) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 24px 64px;
  max-width: 780px;
}
.hero .logo {
  width: 220px;
  max-width: 70vw;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero .location {
  font-size: 1.2rem;
  color: #eef3ea;
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero .tagline {
  font-size: 1.15rem;
  color: #f4f7f2;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- Photo wallpaper sections ---------- */
.wallpaper {
  position: relative;
  padding: 48px 20px;
  background-color: #2a1a10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 10, 6, 0.52);
}
.wallpaper .container {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
}
.wallpaper .section {
  margin: 0 auto;
  max-width: 800px;
}

.wallpaper-party {
  background-image: url("../images/party-23-string-lights.jpg");
  background-position: center 40%;
}
.wallpaper-party::before {
  background: rgba(8, 12, 8, 0.55);
}
.wallpaper-pecans {
  background-image: url("../images/pecans-bg.jpg");
  background-position: center 35%;
}

/* ---------- Photo grids ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.photo-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.photo-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.photo-grid figure {
  margin: 0;
}
.photo-grid img,
.photo-grid a img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.pos-lower { object-position: center 80%; }
.pos-mid { object-position: center 40%; }
.pos-machine { object-position: 45% 25%; }
.pos-sign { object-position: center 35%; }
.photo-grid figcaption {
  font-size: 0.9rem;
  color: #5a6b5a;
  margin-top: 8px;
  line-height: 1.4;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.gallery.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: #1a1a1a;
}
.gallery figcaption {
  font-size: 0.9rem;
  color: #5a6b5a;
  padding: 10px 12px 14px;
  line-height: 1.4;
}
.gallery .wide {
  grid-column: 1 / -1;
}
.gallery .wide img {
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
}
.gallery .tall img {
  object-position: center 30%;
}

/* Stella */
.stella {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.stella img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.stella div {
  flex: 1;
  min-width: 220px;
}

/* Contact */
.contact p {
  margin-bottom: 6px;
}
.contact a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.contact a:hover {
  text-decoration: underline;
}

.flyer-wrap {
  text-align: center;
  margin: 24px 0 8px;
}
.flyer {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-block {
  margin-top: 8px;
}
.contact-block p {
  margin-bottom: 6px;
}
.contact-block a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.contact-block a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #d7e0d6;
  padding: 40px 20px 28px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.seasonal {
  display: inline-block;
  background: var(--pecan);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-size: 0.98rem;
}
.footer-address,
.footer-people {
  margin-bottom: 16px;
  line-height: 1.55;
}

.footer-person {
  display: block;
  margin: 0 0 12px;
}
.footer-person:last-child { margin-bottom: 0; }


.footer-address strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.site-footer a {
  color: #e8f0e6;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 22px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.social-btn:hover,
.social-btn:focus {
  transform: scale(1.06);
  opacity: 0.92;
  text-decoration: none;
}
.social-fb { background: #1877f2; }
.social-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-mark {
  font-size: 0.95rem;
  color: #9aab99;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .gallery,
  .gallery.cols-2,
  .photo-grid.cols-2,
  .photo-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .page-header h1 { font-size: 1.8rem; }
  .section { padding: 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .logo { width: 170px; }
  .gallery,
  .gallery.cols-2,
  .photo-grid.cols-2,
  .photo-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .gallery img { height: 320px; }
  .gallery .wide img { height: 260px; }
  .photo-grid img { aspect-ratio: 4 / 5; }
  .footer-person { display: block; margin: 0 0 14px; }
  .footer-person:last-child { margin-bottom: 0; }
}

@media (min-width: 801px) {
  .gallery .feature {
    grid-column: span 2;
  }
  .gallery .feature img {
    height: 420px;
  }
}

.page-banner {
  position: relative;
  padding: 48px 20px 44px;
  background-color: #2a1a10;
  background-image: url("../images/pecans-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 10, 6, 0.55);
}
.page-banner .page-header {
  position: relative;
  z-index: 1;
  padding: 0;
}
.page-banner h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.page-banner .location {
  color: #eef3ea;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hang-tag img {
  width: 220px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  background: #fff;
}

.hang-tag {
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
}
