/* Rafter K2 Farms website - Prairie Heritage
   The main colours and fonts are in the ":root" block of the version styles further down. */

/* ===== Shared layout (same in all three versions) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--heading); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: 14px 28px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-btn, var(--font-body)); font-size: 16px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Topbar */
.topbar { font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; margin-left: 20px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* Header + navigation */
.site-header { position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--heading); white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent-text); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a { display: block; text-decoration: none; padding: 10px 14px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; width: 46px; height: 46px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 6px; }
.nav-button span { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; background-size: cover; background-position: center; }
.hero h1 { margin-bottom: .35em; }

/* Sections */
.section { padding: 90px 0; }
.section-head { margin-bottom: 40px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--accent-text); }
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-text .btn { margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ticks .icon { color: var(--accent-text); margin-top: 4px; }

.feature h3, .card h3, .step h3, .cut-group h3 { font-size: 21px; }
.feature-num { display: none; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media { overflow: hidden; }
.card-body { padding: 24px; flex: 1; }
.card-link { font-weight: 700; color: var(--accent-text); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 10px 2px; font-size: 15px; }

.cut-group ul { list-style: none; padding: 0; margin: 0; }
.cut-group li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.note { margin-top: 30px; font-style: italic; }

.step-list { list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; font-weight: 700; font-size: 22px; margin-bottom: 16px; font-family: var(--font-head); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-head); color: var(--heading); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent-text); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; }

.cta { padding: 70px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; }
.contact-list strong { display: block; font-family: var(--font-head); }
.contact-list a { word-break: break-word; }
.contact-form { padding: 36px; }
.contact-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; border: 1px solid var(--line); background: #fff; color: #222; }
.contact-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 14px; margin: 14px 0 0; opacity: .8; }
.map { position: relative; }
.map-link { margin: 0; text-align: center; padding: 14px 18px; font-weight: 700; }
.map-link a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; background: var(--line); }

/* Footer */
.site-footer { font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.footer-grid h4 { font-size: 18px; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.site-footer a { text-decoration: none; }
.footer-brand p { margin-top: 18px; max-width: 380px; }
.footer-bottom { padding: 18px 0; font-size: 14px; }

/* ===== Tablet ===== */
@media (max-width: 1000px) {
  .nav-button { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav a { padding: 14px 4px; }
  .nav-toggle:checked ~ .site-nav { max-height: 520px; }
  .nav-toggle:checked + .nav-button span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle:checked + .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-button span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--accent-text); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split-inner { gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; }
}

/* ===== Phone ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .grid-3, .grid-4, .split-inner, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner > span:first-child { display: none; }
  .topbar a { margin: 0 8px; }
  .brand { font-size: 20px; }
  .brand img { width: 42px; height: 42px; }
  .contact-form { padding: 24px 18px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 420px) {
  .topbar a:last-child { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
}


/* ===== Version 1: Prairie Heritage (warm and rustic) ===== */
:root {
  --font-head: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --bg: #f7f1e3;          /* cream */
  --paper: #fffaf0;
  --text: #4a3b2e;
  --heading: #3b2a1e;     /* dark brown */
  --red: #8b2e1d;         /* barn red */
  --red-dark: #6e2315;
  --wheat: #d9a441;       /* wheat gold */
  --sage: #7d8f69;
  --link: #8b2e1d;
  --accent-text: #8b2e1d;
  --line: #dccfb4;
  --max: 1180px;
}

.topbar { background: var(--heading); color: #eadfc8; }
.topbar a { color: #eadfc8; }
.topbar a:hover { color: var(--wheat); }

.site-header { background: var(--paper); border-bottom: 4px solid var(--red); }
.brand { color: var(--heading); font-weight: 900; }
.site-nav a { color: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--red); border-bottom-color: var(--wheat); }
.nav-button { color: var(--heading); border: 2px solid var(--line); }

.btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--heading); }
.btn-accent { background: var(--wheat); color: var(--heading); }
.btn-accent:hover { background: #f0bd58; }

.hero { color: #fff; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(40, 24, 14, .55), rgba(40, 24, 14, .7)); }
.hero-inner { position: relative; padding-top: 150px; padding-bottom: 160px; max-width: 900px; }
.hero-page .hero-inner { padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: #fff; font-size: 54px; font-weight: 900; }
.hero-page h1 { font-size: 46px; }
.hero .kicker { color: var(--wheat); }
.hero-text { font-size: 20px; max-width: 700px; margin: 0 auto 30px; color: #f5ecd9; }
.hero .btn-row { justify-content: center; }
.hero-inner::after { content: ""; display: block; width: 90px; height: 4px; background: var(--wheat); margin: 34px auto 0; }

.section-head { text-align: center; }
.split .section-head { text-align: left; }
.section-head h2 { font-size: 36px; }
.section-head h2::after { content: ""; display: block; width: 70px; height: 3px; background: var(--wheat); margin: 18px auto 0; }
.split .section-head h2::after { margin-left: 0; }

.split:nth-of-type(even) { background: var(--paper); }
.split-media img { border: 8px solid #fff; box-shadow: 0 10px 30px rgba(59, 42, 30, .18); border-radius: 4px; }

.features { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { text-align: center; padding: 36px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.feature-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; border: 4px solid var(--wheat); }
.feature-icon .icon { width: 34px; height: 34px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(59, 42, 30, .08); }
.card-body h3 { color: var(--heading); }

.gallery-grid figure { background: #fff; padding: 10px; box-shadow: 0 6px 18px rgba(59, 42, 30, .12); }
.gallery-grid figcaption { text-align: center; font-family: var(--font-head); font-style: italic; }

.cuts { background: var(--paper); }
.cut-group { background: var(--bg); padding: 28px; border-top: 5px solid var(--red); border-radius: 4px; }
.note { text-align: center; }

.step { text-align: center; padding: 10px 20px; }
.step-num { background: var(--wheat); color: var(--heading); border: 3px solid var(--red); }

.faq { background: var(--paper); }

.cta { background: var(--red); color: #f8e9d6; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px); }
.cta h2 { color: #fff; font-size: 32px; }
.cta a:not(.btn) { color: var(--wheat); font-weight: 700; }

.contact-list .icon { background: var(--red); color: #fff; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { border-radius: 4px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--wheat); border-color: var(--wheat); }

.site-footer { background: var(--heading); color: #d9ccb4; }
.site-footer h4, .site-footer .brand { color: #fff; }
.site-footer .brand em { color: var(--wheat); }
.site-footer a { color: #eadfc8; }
.site-footer a:hover { color: var(--wheat); }
.footer-contact .icon { color: var(--wheat); }
.footer-bottom { background: #2b1e15; text-align: center; color: #b9a98d; }

@media (max-width: 1000px) {
  .site-nav { background: var(--paper); border-bottom: 4px solid var(--red); }
  .site-nav a { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero-inner { padding-top: 90px; padding-bottom: 100px; }
  .hero h1 { font-size: 34px; }
  .hero-page h1 { font-size: 32px; }
  .hero-text { font-size: 17px; }
  .section-head h2 { font-size: 28px; }
}
