/* ==========================================================================
   The Good Evening Ranch — canvas, West Virginia
   Single stylesheet for every page (pure static, no external dependencies)
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  --brand:        #2f5d3a;
  --brand-dark:   #1d3b25;
  --brand-light:  #e7efe6;
  --accent:       #b0632b;
  --accent-dark:  #8c4c1f;
  --accent-light: #f6ece1;
  --ink:          #1c2620;
  --body:         #3c4a41;
  --muted:        #6b7a70;
  --sand:         #faf7f0;
  --sand-2:       #f1ece0;
  --line:         #ddd6c6;
  --white:        #ffffff;
  --focus:        #a8541a;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(28, 38, 32, .06), 0 8px 24px rgba(28, 38, 32, .08);
  --shadow-lg: 0 2px 4px rgba(28, 38, 32, .08), 0 18px 44px rgba(28, 38, 32, .14);
  --wrap:      1200px;
  --gap:       clamp(1rem, 2.5vw, 2rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, .35vw + .93rem, 1.0625rem);
  line-height: 1.7;
  color: var(--body);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); margin-top: 1.8em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-top: 1.5em; }
h4 { font-size: 1.05rem; margin-top: 1.3em; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

strong { color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

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

/* --- Helpers ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 1.75rem); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-dark); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 68ch; }
.measure { max-width: 72ch; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--brand-dark); background: transparent; }
.btn-ghost:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

/* --- Header ------------------------------------------------------------- */
.topbar {
  background: var(--brand-dark); color: #d9e6da; font-size: .875rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffd9b3; text-decoration: underline; }
.topbar-list { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar-list li { margin: 0; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .75rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand-logo { height: auto; width: clamp(148px, 17vw, 215px); border-radius: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand-tag  { font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  background: var(--brand); color: #f6e3c9;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
}

.nav-toggle {
  display: none; background: var(--sand-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .55rem .75rem; font: inherit; color: var(--ink); cursor: pointer;
}
.main-nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block; padding: .5rem .6rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.main-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.main-nav .nav-cta a { background: var(--accent); color: #fff; margin-left: .35rem; }
.main-nav .nav-cta a:hover { background: var(--accent-dark); color: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff;
              border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem clamp(1rem, 3vw, 1.75rem) 1.25rem; gap: .1rem; }
  .main-nav a { padding: .7rem .6rem; }
  .main-nav .nav-cta a { margin: .5rem 0 0; text-align: center; justify-content: center; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  /* The ranch's own sunset palette, drawn in CSS so no low-resolution
     2003 photograph has to be stretched across a modern screen. */
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(255, 176, 78, .55) 0%, rgba(255, 176, 78, 0) 55%),
    radial-gradient(90% 70% at 12% 88%, rgba(47, 93, 58, .60) 0%, rgba(47, 93, 58, 0) 60%),
    linear-gradient(160deg, #6b2f11 0%, #a8541a 32%, #1d3b25 100%);
}
.hero::before {
  /* soft ridge line, echoing the ranch masthead */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 50% 118%, rgba(12, 26, 17, .55) 0%, rgba(12, 26, 17, 0) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(12, 26, 17, .35) 100%);
}
.hero .wrap { position: relative; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero h1, .hero h2 { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); max-width: 20ch; }
.hero p { color: #f2ece2; max-width: 62ch; font-size: 1.1rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.hero .eyebrow { color: #ffd9b3; }
.hero-logo {
  width: clamp(200px, 34vw, 340px); height: auto; margin-bottom: 1.5rem;
  border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.eyebrow {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem;
}

/* Compact page banner for interior pages */
.page-hero { background: var(--brand-dark); color: #fff; }
.page-hero .wrap { padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #dbe7dc; margin: 0; max-width: 70ch; }
.page-hero .eyebrow { color: #ffd9b3; }

/* --- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs { background: var(--sand-2); border-bottom: 1px solid var(--line); font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: .65rem 0; }
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--accent-dark); }

/* --- Sections & cards --------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tint { background: var(--sand-2); }
.section-white { background: var(--white); }
.section-brand { background: var(--brand-dark); color: #dbe7dc; }
.section-brand h2, .section-brand h3 { color: #fff; }
.section-brand a { color: #ffd9b3; }
.section-head { max-width: 74ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; background: var(--sand-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-body h3 { margin-top: 0; font-size: 1.2rem; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-body .card-link { margin-top: auto; font-weight: 600; }
.card-price { font-weight: 700; color: var(--brand); font-size: .95rem; margin: 0 0 .6rem; }

.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-light);
  border-radius: 999px; padding: .2rem .7rem; margin-bottom: .6rem;
}

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.feature-list li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: 0 0 auto; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.1rem .9rem; }
.stat b { display: block; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; line-height: 1.1; }
.stat span { font-size: .85rem; color: #c9dcc9; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--brand-light); color: var(--brand-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fcfbf7; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* --- Callouts ----------------------------------------------------------- */
.callout {
  border-left: 5px solid var(--accent); background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.35rem; margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3, .callout h2 { margin-top: 0; font-size: 1.15rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-list { display: grid; gap: .75rem; max-width: 80ch; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
.faq-item summary {
  cursor: pointer; font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  padding: 1rem 0; font-size: 1.08rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-family: var(--font-sans); color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding-bottom: 1rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* --- Gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand-2); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(12, 20, 15, .92); padding: 3rem 1rem; text-align: center;
}
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; width: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #e8efe8; margin-top: .9rem; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: .75rem; right: 1rem; background: transparent; border: 0;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: .4rem .6rem;
}
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14);
  border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: .4rem .9rem; border-radius: 999px; }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
.lightbox-nav:hover { background: rgba(255,255,255,.28); }

/* --- Content images ----------------------------------------------------- */
.figure { margin: 0 0 1.5rem; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
/* Tall, narrow source images stay at a sensible width instead of being blown up. */
.figure--narrow { max-width: 280px; }
.figure--narrow img { width: 100%; }
.figure--logo img { box-shadow: none; border-radius: 4px; max-width: 420px; }
.img-round { border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Printed menu ------------------------------------------------------- */
.menu-course { margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.menu-course:last-of-type { border-bottom: 0; padding-bottom: 0; }
.menu-course > h3 {
  font-size: 1.3rem; color: var(--brand-dark); margin: 0 0 .15rem;
  letter-spacing: .01em;
}
.menu-blurb { font-size: .92rem; color: var(--muted); font-style: italic; margin: 0 0 1.2rem; }
.menu-item { margin: 0 0 1.3rem; }
.menu-item > h4 { margin: 0; font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink); }
.menu-item > p { margin: .15rem 0 .45rem; font-size: .95rem; color: var(--body); max-width: 72ch; }
.menu-prices {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem 2rem;
}
.menu-prices li { display: flex; align-items: baseline; gap: .55rem; font-size: .95rem; color: var(--body); }
.menu-prices strong { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.menu-price-note { font-size: .88rem; color: var(--muted); font-style: italic; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--brand-dark); color: #c9dcc9; margin-top: 0; }
.site-footer a { color: #eaf3ea; text-decoration: none; }
.site-footer a:hover { color: #ffd9b3; text-decoration: underline; }
.footer-main { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .45rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-block: 1rem; }

/* --- Utility bars ------------------------------------------------------- */
.notice { background: var(--accent-light); border-bottom: 1px solid var(--line); font-size: .9rem; }
.notice .wrap { padding-block: .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: center; text-align: center; }

/* --- Responsive --------------------------------------------------------- */
body { overflow-x: clip; }

@media (max-width: 1100px) {
  .main-nav a { font-size: .85rem; padding: .45rem .45rem; }
  .brand-logo { width: 178px; }
  .topbar { font-size: .82rem; }
}

@media (max-width: 960px) {
  .site-header .wrap { padding-block: .6rem; }
  .topbar .wrap { justify-content: center; }
  .topbar-list { justify-content: center; }
  .hero h1 { max-width: none; }
  .hero p, .page-hero p, .lede { max-width: none; }
  .split { align-items: stretch; }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(1.6rem, 7.5vw, 2.1rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.65rem); }
  h3 { font-size: 1.12rem; }
  .lede { font-size: 1.03rem; }

  .topbar { font-size: .8rem; }
  .topbar-list { gap: .2rem .9rem; }
  .brand-logo { width: 152px; }

  /* Every multi-column grid collapses to a single readable column. */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .6rem; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom .wrap { justify-content: center; text-align: center; }

  .section-head, .faq-list { max-width: none; }
  .figure--narrow { max-width: min(280px, 100%); }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content: center; width: 100%; }

  .menu-prices { gap: .2rem 1.1rem; }
  .hero .wrap, .page-hero .wrap { padding-block: 2rem; }
}

@media (max-width: 420px) {
  .topbar { font-size: .74rem; }
  .topbar-list { gap: .1rem .7rem; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media print {
  .site-header, .topbar, .site-footer, .breadcrumbs, .btn { display: none !important; }
  body { background: #fff; }
}
