/* Grand G Ranch: hand-built replacement for the Mobirise site.
   Same look as the original: Jost type, light grey sticky menu, photo-backed sections. */
:root {
  --ink: #232323;
  --ink-soft: #555555;
  --menu: #d5d4d4;
  --link: #3f6fc6;      /* the original theme blue, a shade darker for contrast */
  --cream: #faf5e8;     /* sale listing panels */
  --paper: #ecede8;     /* story pages */
  --card: #ffffff;
  --wrap: 72rem;
  --font: "Jost", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 1.1rem; line-height: 1.6; color: var(--ink); background: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 56rem; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* ---------- Menu ---------- */
.menu { position: sticky; top: 0; z-index: 50; background: var(--menu); box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.menu .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.brand img { width: 52px; height: 52px; }
.menu nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 34px; align-items: center; }
.menu nav a, .menu nav button.sub { color: var(--ink); text-decoration: none; font: inherit; font-size: 1.05rem; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.menu nav a:hover, .menu nav button.sub:hover { color: #000; text-decoration: underline; }
.menu nav a[aria-current="page"] { font-weight: 600; }
.has-sub { position: relative; }
.has-sub button.sub::after { content: ""; display: inline-block; margin-left: 7px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.has-sub ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -14px; min-width: 190px; background: var(--menu); box-shadow: 0 6px 16px rgba(0,0,0,0.12); display: none; }
.has-sub ul a { display: block; padding: 6px 16px; }
.has-sub:hover ul, .has-sub:focus-within ul, .has-sub.open ul { display: block; }
.toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.toggle span { display: block; width: 26px; height: 3px; background: #000; margin: 5px 0; }

@media (max-width: 860px) {
  .toggle { display: block; }
  .menu nav { display: none; width: 100%; padding-bottom: 12px; }
  .menu nav.open { display: block; }
  .menu .wrap { flex-wrap: wrap; }
  .menu nav > ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  .has-sub ul { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; background: none; }
  .has-sub button.sub::after { display: none; }
}

/* ---------- Photo-backed sections ---------- */
.photo-bg { position: relative; background-size: cover; background-position: center; }
.photo-bg::before { content: ""; position: absolute; inset: 0; background: var(--overlay, rgba(53,53,53,0.6)); }
.photo-bg > * { position: relative; }
.section { padding-block: 72px; }
.center { text-align: center; }

/* Home hero */
.hero { min-height: 520px; display: flex; align-items: flex-end; padding-block: 135px 75px; color: #fff; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 700; margin-bottom: 0.25em; }
.hero p { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 34rem; }

/* Card rows (home) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.card img { width: 100%; height: 300px; object-fit: cover; }
.card .body { padding: 22px 24px 26px; }
.card h2 { font-size: 1.35rem; margin-bottom: 0.5em; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { font-size: 1.02rem; color: var(--ink-soft); }

/* Page titles */
.page-title { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 700; text-align: center; margin-bottom: 0.8em; }

/* Sale listings */
.listing { background: var(--cream); border-radius: 12px; padding: 40px; margin-bottom: 40px; }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.listing-grid > div { padding: 0 32px; min-width: 0; }
.listing-grid > div + div { border-left: 1px solid #000; }
.listing h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; text-align: center; }
.listing img { border-radius: 12px; margin: 0 auto 24px; width: 100%; object-fit: cover; }
.listing .facts { list-style: none; padding: 0; margin: 0 0 1em; font-size: 1.05rem; }
.listing .price { font-size: 1.4rem; font-weight: 600; }
.sold-tag { display: inline-block; font-size: 0.6em; font-weight: 600; letter-spacing: 0.12em; color: #9b2c1c; border: 2px solid #9b2c1c; padding: 0 10px; margin-left: 10px; vertical-align: middle; }
.subhead { font-size: 1.7rem; font-weight: 600; margin: 56px 0 24px; text-align: center; }

/* Placeholders for content Rick is sending */
.todo { border: 2px dashed #b0a070; background: #fffdf3; border-radius: 12px; padding: 28px; text-align: center; color: #6b5d2f; }
.todo strong { display: block; font-size: 1.25rem; color: #4a3f1c; margin-bottom: 6px; }

/* Two-column text + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: 8px; width: 100%; }

/* Herd cards (about) */
.herd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.herd .card img { height: 320px; }
.herd .card .todo { height: 100%; display: flex; flex-direction: column; justify-content: center; min-height: 320px; }
.herd .role { font-weight: 600; color: var(--ink); margin-bottom: 0.3em; }

/* Story pages */
.story-page { background: var(--paper); }
.story-box { background: #f6f6f6; padding: 40px; border-radius: 4px; }
.story-box h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.story-photo { float: right; width: 42%; margin: 4px 0 20px 32px; border-radius: 6px; }

/* Contact */
.contact { min-height: 70vh; display: flex; align-items: center; --overlay: rgba(255,255,255,0.5); }
.contact-box { background: #fff; padding: 44px; max-width: 34rem; margin: 0 auto; text-align: center; }
.contact-box p { font-size: 1.15rem; }

/* Footer */
footer { background: var(--menu); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
footer a { color: var(--ink); }

@media (max-width: 860px) {
  .cards, .herd { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .listing { padding: 24px 18px; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-grid > div { padding: 0; }
  .listing-grid > div + div { border-left: 0; border-top: 1px solid #000; padding-top: 24px; margin-top: 8px; }
  .story-box { padding: 24px 18px; }
  .story-photo { float: none; width: 100%; margin: 0 0 20px; }
  .section { padding-block: 48px; }
  .hero { min-height: 380px; padding-block: 90px 48px; }
}
.pair { text-align: center; font-size: 1.2rem; margin: -8px 0 48px; }
.listing-grid .todo { text-align: left; }
.hero.hero-top { align-items: flex-start; padding-block: 64px 200px; min-height: 560px; }
@media (max-width: 860px) { .hero.hero-top { padding-block: 40px 160px; min-height: 420px; } }
.hero h1, .hero p { text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
@media (min-width: 861px) { .menu nav > ul > li.has-sub:last-child ul { left: auto; right: -14px; } }
