/* The Hose Barn - myhosebarn.com. One stylesheet, no web fonts, no scripts. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --muted: #57524b;
  --line: #e2dacd;
  --brand: #9e2b1f;        /* barn red: 7.4:1 on white */
  --brand-dark: #7d2118;
  --charcoal: #24211d;
  --charcoal-ink: #f3efe8;
  --charcoal-muted: #c9c2b6;
  --radius: 10px;
  --wrap: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #e0a43a; outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--charcoal); color: var(--charcoal-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--charcoal-ink); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand:hover { color: #fff; }
.brand svg { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-nav a { color: var(--charcoal-ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-nav .nav-phone { white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--brand); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }

/* Home */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { display: inline-block; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 10px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 46rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 24px; margin-top: 8px; }
.callout p { max-width: 50rem; }
.callout .callout-action { margin: 8px 0 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.contact-grid .card h3 { margin-bottom: 6px; }
.contact-grid .card p { color: var(--ink); }
address { font-style: normal; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-info .card p, .contact-info address { color: var(--ink); margin: 0; }
.card-title { font-size: 1.2rem; margin-bottom: 8px; }
.note { color: var(--muted); font-size: 0.95rem; margin: 0; }
.form-card { padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9b0a3; border-radius: 8px; padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid #e0a43a; outline-offset: 1px; border-color: var(--brand); }
.field-help { color: var(--muted); font-size: 0.95rem; margin: 6px 0 0; }
.field.consent { display: flex; gap: 12px; align-items: flex-start; }
.field.consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.field.consent label { font-weight: 400; margin: 0; }
.alert { border-radius: 8px; padding: 12px 16px; font-weight: 600; }
.alert-success { background: #e8f3ea; border: 1px solid #9cc8a5; color: #1d4d27; }
.alert-error { background: #fbeceb; border: 1px solid #e3a8a2; color: #7d2118; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Legal pages */
.page-header { padding: 40px 0 24px; border-bottom: 1px solid var(--line); }
.page-header p { color: var(--muted); margin: 0; }
.legal { max-width: 46rem; padding: 32px 0 56px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; scroll-margin-top: 16px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal-updated { color: var(--muted); font-weight: 600; }
.legal-callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 14px 18px; }
.legal-toc { margin: 0 0 1.5em; }
.legal-section { scroll-margin-top: 16px; }
.legal-terms dt { font-weight: 700; margin-top: 1em; }
.legal-terms dd { margin: 0.2em 0 0; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--charcoal-muted); padding: 36px 0 28px; font-size: 0.95rem; }
.site-footer a { color: var(--charcoal-ink); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal-ink); margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid p { margin: 0; }
.copyright { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid #3a352f; }

@media (max-width: 560px) {
  .hero { padding: 40px 0 36px; }
  .section { padding: 36px 0; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}

@media print {
  .site-header, .site-nav, .actions, .skip { display: none; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}
