/* Legado Suero Farms — rustic family premium */

:root {
  --burgundy: #4A0E1D;
  --burgundy-deep: #2f0a14;
  --gold: #C6A664;
  --cream: #F8F3E7;
  --cream-shade: #efe8d6;
  --charcoal: #3B2F2F;
  --charcoal-soft: #5a4c4c;
  --white: #fffdf8;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Lora, Georgia, "Times New Roman", serif;
  --font-sub: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: var(--charcoal);
  --bg: var(--cream);
  --measure: 38rem;
  --page: 70rem;
  --wide: 84rem;
  --header-h: 4.75rem;
  --rule: 1px solid var(--gold);
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background:
    url("../img/paper.png") repeat,
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }
figure { margin: 0; }

a {
  color: var(--burgundy);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, var(--burgundy));
}
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--burgundy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header
   ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 94%, white);
  border-bottom: var(--rule);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--burgundy);
  min-width: 0;
}
.brand img,
.brand svg {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.2rem;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: var(--burgundy);
  margin: 0.28rem 0 0 auto;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1.15rem;
  height: 1px;
  background: var(--burgundy);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav {
  display: none;
}
.nav.is-open { display: block; }

@media (max-width: 1079px) {
  .nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--cream);
    border-bottom: var(--rule);
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .nav-list a {
    display: block;
    padding: 0.55rem 0;
    text-decoration: none;
    color: var(--burgundy);
    font-size: 1.05rem;
  }
  .nav-list a[aria-current="page"] {
    font-weight: 600;
  }
  .lang-switch {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: var(--rule);
  }
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1.5rem;
  }
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.15rem;
  }
  .nav-list a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    color: var(--burgundy);
    border-bottom-color: var(--gold);
  }
}

.lang-switch {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.lang-switch a,
.lang-switch span {
  text-decoration: none;
  color: var(--charcoal-soft);
  padding: 0.15rem 0.1rem;
}
.lang-switch [aria-current="true"] {
  color: var(--burgundy);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}

/* Type
   ----------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.7em;
}
h1 {
  font-size: clamp(2rem, 1.6rem + 2.2vw, 3.5rem); /* 32–56, within 32-40 mobile / 48-60 desktop */
}
h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.2rem); /* ~28–35, near 30-36 */
}
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--charcoal);
  max-width: var(--measure);
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.kicker {
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--burgundy);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.85rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.caption {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
  margin-top: 0.55rem;
  font-style: italic;
  font-family: var(--font-sub);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--burgundy);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.btn:hover {
  background: var(--burgundy-deep);
  color: var(--cream);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: color-mix(in srgb, var(--gold) 70%, var(--cream));
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--burgundy) 40%, transparent);
  color: var(--cream);
}

/* Layout
   ----------------------------------------------- */
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}
.section + .section {
  border-top: var(--rule);
}
@media (min-width: 800px) {
  .section { padding: 5.5rem 0; }
}

.split {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .split-top { align-items: start; }
  .split.split-text-wide {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split.split-photo-wide {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

.prose { max-width: var(--measure); }
.prose-wide { max-width: 42rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(68vh, 42rem);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--burgundy-deep);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(47, 10, 20, 0.72) 0%,
    rgba(47, 10, 20, 0.28) 42%,
    rgba(47, 10, 20, 0.08) 70%,
    rgba(47, 10, 20, 0.12) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 3.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero .kicker,
.hero h1 { color: var(--cream); }
.hero .kicker::before { background: var(--gold); }
.hero h1 {
  max-width: 14ch;
  margin-bottom: 0.4em;
}
.hero .standfirst {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 28rem;
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

/* Page title band (inner pages) */
.page-head {
  padding: 3.25rem 0 2.5rem;
}
.page-head h1 { margin-bottom: 0.45em; }

/* Family portrait frame — 3:4 matches the source; object-position keeps faces if cropped later */
.family-frame {
  position: relative;
}
.family-frame .portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-shade);
}
.family-frame .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.family-frame .caption { text-align: left; }

/* Small inline photo (beekeeper) */
.inset-photo {
  max-width: 16.5rem;
  margin: 1.4rem 0 0.2rem;
}
.inset-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}

/* Photo blocks */
.photo img,
.photo picture img {
  width: 100%;
  background: var(--cream-shade);
}
.photo-portrait img { aspect-ratio: 3 / 4; }
.photo-landscape img { aspect-ratio: 3 / 2; }
.photo-wide img { aspect-ratio: 16 / 9; }
.photo-natural img { aspect-ratio: auto; object-fit: contain; }

.gallery {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .gallery-2 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .gallery-3 { grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; }
  .gallery-river {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }
  .gallery-river .span-row { grid-row: 1 / span 2; }
}

/* Experiences video */
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--burgundy-deep);
}
.video-stage video,
.video-stage img.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .video-stage video { display: none; }
}

/* Contact / form */
.form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}
.form label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--burgundy);
}
.form input,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--charcoal));
  padding: 0.65rem 0.75rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .hint {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-top: 0.3rem;
}
.email-plain {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.email-plain:hover { border-bottom-width: 2px; }

.contact-panel {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .contact-panel { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* Footer */
.site-footer {
  background: var(--burgundy);
  color: var(--cream);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.site-footer a { color: var(--cream); text-decoration-color: var(--gold); }
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--cream);
}
.footer-brand img { width: 3.25rem; height: 3.25rem; }
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  display: block;
}
.footer-brand span {
  display: block;
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 0.2rem;
  color: color-mix(in srgb, var(--cream) 85%, var(--gold));
}
.site-footer h2 {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 0.35rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { border-bottom: 1px solid var(--gold); }
.footer-meta {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, var(--burgundy));
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--cream) 75%, var(--gold));
}

.note-soon {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--charcoal-soft);
}

/* Utility */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.6rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.photo-modest {
  max-width: 22rem;
}
.photo-modest img {
  aspect-ratio: 3 / 4;
}
.photo-medium {
  max-width: 32rem;
}
.photo-medium img {
  aspect-ratio: 3 / 4;
}

/* Keep long wordmark from colliding with the toggle on narrow phones */
@media (max-width: 420px) {
  .brand-name { font-size: 0.95rem; }
}

.page-lead {
  padding-bottom: 0.5rem;
}

.video-stage img.poster,
.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-stage video { z-index: 1; }

.section-flush {
  border-top: 0;
  padding-top: 0;
}
