/* Kiowa Equine — colors from the logo's warm taupe line art, Iowa field gold and sage */
:root {
  --ink: #2b221c;
  --ink-soft: #4c3f35;
  --brown: #6e5646;
  --taupe: #95847a;
  --sand: #d9c7ad;
  --cream: #f8f3ea;
  --paper: #fffcf7;
  --sage: #6f7f61;
  --sage-soft: #e6eadf;
  --rust: #a2502c;
  --rust-dark: #853f20;
  --line: #e7dccb;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(43, 34, 28, .45);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(.88rem, .85rem + .1vw, .94rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-dark); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: "SOFT" 60, "opsz" 72; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h1 em, h2 em { font-style: italic; color: var(--brown); }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.brand small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-top: .3rem; }
#menu { display: flex; align-items: center; gap: 1.6rem; }
#menu a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
#menu a:not(.btn):hover, #menu a[aria-current="page"] { color: var(--rust-dark); }
#menu a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: .5rem; }
  #menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
  #menu.open { display: flex; }
  #menu a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  #menu a.btn { margin-top: 1rem; border: 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; background: var(--rust); color: #fff !important; font-weight: 600; text-decoration: none !important; border: 2px solid var(--rust); transition: background .2s, transform .2s; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.btn.light { background: var(--cream); color: var(--ink) !important; border-color: var(--cream); }
.btn.light:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--sage); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream), var(--paper)); padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 40%; border-radius: 240px 240px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-photo .mark { position: absolute; left: -2rem; bottom: 2rem; width: 120px; padding: .9rem; background: var(--paper); border-radius: 50%; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: contain; }
.hero .badges { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: var(--ink-soft); }
.hero .badges li { display: flex; align-items: center; gap: .45rem; }
.hero .badges svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 520px; }
  .hero-photo img { aspect-ratio: 4 / 3.3; border-radius: 180px 180px var(--radius) var(--radius); }
  .hero-photo .mark { width: 88px; left: auto; right: 1rem; bottom: -1.5rem; }
}

/* Page header (inner pages) */
.page-head { background: var(--cream); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-4); margin-bottom: .3em; }
.page-head .lead { max-width: 680px; margin: 0; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tint { background: var(--cream); }
.section.sage { background: var(--sage-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; color: var(--brown); line-height: 1.1; margin-bottom: .3rem; }
.facts span { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); margin-bottom: 1.1rem; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: .45em; }
.card p { font-size: .97rem; color: var(--ink-soft); flex: 1; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brown); color: #fff; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
.steps h3 { font-size: var(--step-1); font-weight: 600; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Services page */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: .45rem 1rem; border: 1px solid var(--sand); border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .92rem; background: var(--paper); }
.jump a:hover { border-color: var(--rust); color: var(--rust-dark); }
.service { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service:nth-of-type(even) { background: var(--cream); }
.service .split img { aspect-ratio: 4 / 5; max-height: 560px; }
.service .num { font-family: var(--font-display); font-style: italic; color: var(--taupe); font-size: 1.1rem; }
.service h2 { font-size: var(--step-3); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.service:nth-of-type(odd) .panel { background: var(--cream); }
.panel h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sage); margin-bottom: .6rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: .35rem; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.extras li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.extras strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: .2rem; }
.extras span { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--rust); outline-offset: -3px; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { padding: .7rem 1rem .9rem; font-size: .9rem; color: var(--ink-soft); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.strip img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; width: 100%; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(20, 15, 12, .88); }
dialog.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
dialog.lightbox p { color: #f3ece2; text-align: center; margin: .8rem 0 0; }
dialog.lightbox .close { position: fixed; top: 1rem; right: 1rem; background: var(--cream); border: 0; border-radius: 999px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }

/* Band */
.band { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.band h2 em { color: var(--sand); }
.band p { color: #e5dccf; }
.band .logo-watermark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 340px; opacity: .08; pointer-events: none; }
.band .eyebrow { color: var(--sand); }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; }
.band .cta-row { justify-content: flex-end; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } .band .cta-row { justify-content: flex-start; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.call-card { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2rem; }
.call-card .eyebrow { color: var(--sand); }
.call-card a.phone { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); color: #fff; text-decoration: none; line-height: 1.1; margin: .2rem 0 1rem; }
.call-card .cta-row { margin-top: 0; }
.call-card dl { margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.call-card dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); font-weight: 600; }
.call-card dd { margin: .15rem 0 0; }
.call-card dd a { color: #fff; }
form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
form.contact .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.contact { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
label .req { color: var(--rust-dark); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cdbfab; border-radius: 10px; padding: .75rem .9rem; }
input:focus, select:focus, textarea:focus { border-color: var(--rust); outline: 3px solid rgba(162, 80, 44, .2); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.radio-row label { display: flex; align-items: center; gap: .45rem; font-weight: 400; margin: 0; }
.radio-row input { width: auto; accent-color: var(--rust); }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.form-status { grid-column: 1 / -1; background: var(--sage-soft); border-radius: 12px; padding: 1rem 1.2rem; margin: 0; }
.form-status[hidden] { display: none; }

/* Footer */
.site-footer { background: #211a15; color: #d9cfc2; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 84px; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: .9rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #f3ece2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .legal { border-top: 1px solid #3c3129; margin-top: 2.5rem; padding-top: 1.4rem; font-size: .85rem; color: #a99c8e; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sticky call bar on phones */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem 0 .55rem; color: var(--cream); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .03em; }
  .callbar a.main { background: var(--rust); color: #fff; }
  .callbar svg { width: 20px; height: 20px; }
  body { padding-bottom: 64px; }
}
.facts.five { grid-template-columns: repeat(5, 1fr); }
.facts.five strong { font-size: var(--step-1); }
@media (max-width: 960px) { .facts.five { grid-template-columns: 1fr 1fr; } }
