/* ---------------------------------------------------------------
   Wilhardt Woods — static site styles
     Headings: Fraunces (H1 60px, H2 40px, H3 38px, H4 35px, H5 27px, H6 25px)
     Body:     Nunito Sans Light (P1 22px, P2 18px, P3 14px)
   --------------------------------------------------------------- */

:root {
  --bg: #e9e7e7;            /* unified light gray — main bg & section bands */
  --bg-alt: #e9e7e7;        /* same as --bg (kept for any rules still referencing it) */
  --ink: #2f3a2d;           /* deep forest green-black for text */
  --ink-soft: #6b6b66;      /* muted gray for secondary/active-nav */
  --accent: #6b8453;        /* herb green */
  --accent-dark: #4f6840;
  --rule: #cdc3b0;          /* soft hairline (rare; we mostly avoid borders) */
  --shadow: 0 2px 12px rgba(47, 58, 45, 0.06);
  --max-w: 1120px;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  /* Old paragraph scale — used for utility classes */
  --p1: 22px;
  --p2: 18px;
  --p3: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;                 /* Nunito Sans Light */
  font-size: 18px;                  /* matches Old Paragraph 2, the default body size */
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Headings — match Old sizes on desktop, scale down gracefully -- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 60px); line-height: 1.1; }   /* Old H1 = 60px */
h2 { font-size: clamp(2rem, 4vw, 40px); }                          /* Old H2 = 40px */
h3 { font-size: clamp(1.9rem, 3.8vw, 38px); }                      /* Old H3 = 38px */
h4 { font-size: clamp(1.75rem, 3.5vw, 35px); }                     /* Old H4 = 35px */
h5 { font-size: clamp(1.4rem, 2.6vw, 27px); }                      /* Old H5 = 27px */
h6 { font-size: clamp(1.3rem, 2.4vw, 25px); line-height: 1.25; }   /* Old H6 = 25px */

/* ---- Paragraph utilities ------------------------------------- */

.p1 { font-size: var(--p1); line-height: 1.5; }   /* Old Paragraph 1 — 22px, used for lede text */
.p2 { font-size: var(--p2); }                     /* Old Paragraph 2 — 18px (default) */
.p3 { font-size: var(--p3); }                     /* Old Paragraph 3 — 14px, small */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------- Header / Nav ------------------------------------------- */

.site-header {
  background: var(--bg-alt);
  border-bottom: none;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.brand-wordmark img {
  height: 48px;       /* larger to match Old */
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo img { height: 50px; }
  .brand-wordmark img { height: 36px; }
}

nav.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--p2);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav.main-nav a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

nav.main-nav a.active {
  color: var(--ink-soft);          /* current page is dimmed, not bold/underlined */
}

/* -------- Hero --------------------------------------------------- */

.hero {
  padding: 2.5rem 1.5rem 5rem;
  text-align: center;
}

.hero h1 {
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.2rem, 5vw, 56px);   /* larger to match Old */
  font-weight: 600;                       /* heavier */
  color: #000;                            /* pure black */
  line-height: 1.15;
}

.hero p.lede {
  max-width: 36ch;
  margin: 0 auto 0;
  font-family: var(--font-display);
  font-size: 26px;                   /* larger to match Old */
  line-height: 1.5;
  color: #000;                        /* pure black */
  font-weight: 500;                   /* heavier */
}

/* Full-bleed image bands between sections.
   The image's full pixel data is loaded; CSS just shows a horizontal strip
   through the middle. Vertical position defaults to center via object-fit. */
.full-bleed {
  width: 100%;
  margin: 0;
}

.full-bleed img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 640px) {
  .full-bleed img { height: 265px; }
}

/* -------- Section base ------------------------------------------ */

section {
  padding: 4rem 0;
}

section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 { margin: 0 0 1rem; font-weight: 400; }

.section-head p {
  margin: 0 auto 1rem;
  font-size: var(--p2);
  color: var(--ink);
  line-height: 1.6;
}

.section-head .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;                  /* Old H6 */
  color: var(--ink);
  margin: 1rem 0;
  letter-spacing: 0;
}

.section-head .cta-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--p2);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-head .cta-link:hover {
  color: var(--accent-dark);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--p2);
  letter-spacing: 0;
  text-transform: none;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}

.btn:hover {
  background: #000;
  color: var(--bg);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

/* -------- Tea grid ---------------------------------------------- */

.teas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .teas {
    grid-template-columns: 1fr 1fr;
  }
}

.tea-card {
  text-align: center;
  padding: 0 0.5rem;
}

.tea-card h3 {
  font-size: 30px;                  /* Old H5 */
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.tea-card .ingredients {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: var(--p4);             /* 14px */
  letter-spacing: 0.0em;
  color: var(--ink);
  margin: 0 0 1.2rem;
  line-height: 1.55;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.tea-card p {
  margin: 0;
  font-size: var(--p2);             /* 18px */
  line-height: 1.55;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

/* -------- About -------------------------------------------------- */

.about-grid {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.about-text p {
  margin: 0 0 1rem;
  font-size: var(--p2);
  line-height: 1.6;
}

.about-text .tagline {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  font-size: 25px;                  /* Old H6 */
  line-height: 1.35;
  margin: 0 auto 1.8rem;
  max-width: 32ch;
  letter-spacing: -0.005em;
}

.farmers-label {
  text-align: center;
  margin: 2.5rem 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;                  /* Old H6 */
  color: var(--ink);
  letter-spacing: 0;
}

.farmer-photos {
  max-width: 520px;
  margin: 0 auto;
}

.farmer-photos img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* -------- Mailing list ------------------------------------------ */

.mailing {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-alt);
}

.mailing h3 {
  font-size: 27px;                  /* Old H5 */
  margin: 0 auto 1.8rem;
  max-width: 30ch;
  font-weight: 400;
}

.mailing form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  max-width: 880px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 700px) {
  .mailing form {
    grid-template-columns: 1fr 1fr 1.4fr auto;
  }
}

.mailing input {
  padding: 0.75rem 0.9rem;
  border: 1px solid #b8b3a7;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--p2);
  color: var(--ink);
  border-radius: 0;
}

.mailing input:focus {
  outline: none;
  border-color: var(--ink);
}

.mailing .btn {
  white-space: nowrap;
}

/* -------- Contact form ------------------------------------------ */

.contact {
  padding: 4.5rem 0;
}

.contact-grid {
  max-width: 720px;
  margin: 0 auto;
}

.contact h3 {
  font-size: 35px;                  /* Old H4 — matches "Send us a note..." */
  text-align: left;
  margin: 0 0 1.5rem;
}

.contact form {
  display: grid;
  gap: 0.9rem;
}

.row-2 {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
}

.contact label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--p3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.3rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b8b3a7;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--p2);
  color: var(--ink);
  border-radius: 0;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.contact textarea {
  min-height: 140px;
  resize: vertical;
}

.form-feedback {
  display: none;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--p1);
  color: var(--accent-dark);
}

.form-feedback.show { display: block; }

/* -------- Footer ------------------------------------------------- */

.site-footer {
  background: var(--bg-alt);
  color: var(--ink);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.site-footer nav ul {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--p2);
  letter-spacing: 0;
  text-transform: none;
}

.site-footer a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.footer-wordmark {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.footer-wordmark img {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .footer-wordmark img { height: 18px; }
}

/* -------- Photo gallery (photos.html) --------------------------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .gallery {
    /* 6-column grid: normal images span 2 (1/3 width), wide images span 3 (1/2 width) */
    grid-template-columns: repeat(6, 1fr);
  }
}

.gallery img {
  width: 100%;
  display: block;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  cursor: pointer;
  /* Old delivers all gallery images at 16:9. Aspect-ratio enforces the shape
     without object-fit:cover, so no additional clipping happens. */
}

.gallery img:hover { transform: scale(1.02); }

@media (min-width: 900px) {
  .gallery img { grid-column: span 2; }
  .gallery .wide { grid-column: span 3; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 20, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-out;
}

.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
}

/* Close button (top-right) */
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-display);
  transition: background 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Prev/Next navigation buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--font-display);
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
  padding-bottom: 4px;  /* visually center the ‹ › glyphs */
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }

/* Counter (bottom-center) */
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  user-select: none;
  z-index: 2;
}

/* On smaller screens, tighten the nav button positions */
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
  .lightbox-counter { bottom: 0.75rem; font-size: 12px; }
}

/* -------- Press page -------------------------------------------- */

.press-article {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.press-article h2 {
  max-width: 22ch;
  margin: 0 auto 1.2rem;
  font-weight: 400;
}

.press-article .source {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 2rem;
  line-height: 1.4;
}

.press-image-link {
  display: inline-block;
  margin: 0 auto 2.5rem;
}

.press-article img {
  max-width: 420px;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
  border-radius: 0;
}

.press-article .excerpt {
  font-style: italic;
  font-size: var(--p2);
  color: var(--ink);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.press-article .read-more {
  margin: 2rem 0 0;
  font-size: var(--p2);
}

.press-article .read-more a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.press-article .read-more a:hover {
  color: var(--accent-dark);
}

/* -------- Small utility ----------------------------------------- */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
