/* ==========================================================================
   Ballard's Saddles & Tack — Modern Stylesheet
   Western-themed, responsive, centered layout
   ========================================================================== */

:root {
  --color-leather: #6b3f23;
  --color-leather-dark: #4a2a15;
  --color-leather-light: #8a5a33;
  --color-cream: #f7f1e6;
  --color-cream-dark: #ece2d0;
  --color-paper: #fffdf8;
  --color-ink: #2b2118;
  --color-ink-soft: #5c4f42;
  --color-accent: #a8321f;
  --color-accent-dark: #7d2415;
  --color-gold: #c9a227;
  --color-line: #e0d4c0;
  --shadow-sm: 0 1px 3px rgba(74, 42, 21, 0.12);
  --shadow-md: 0 6px 18px rgba(74, 42, 21, 0.14);
  --radius: 10px;
  --font-head: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  background-image: linear-gradient(180deg, #fbf6ec 0%, var(--color-cream) 100%);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--color-leather-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Layout container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--color-leather-dark) 0%, var(--color-leather) 60%, var(--color-leather-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 20;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: #f0e2c8;
  letter-spacing: 0.4px;
}
.header-contact {
  text-align: right;
  font-size: 0.9rem;
  color: #f0e2c8;
}
.header-contact strong { color: #fff; font-size: 1.05rem; }

/* Navigation */
.site-nav {
  background: var(--color-leather-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nav-inner a {
  color: #f3e7d2;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
}
.nav-inner a:hover,
.nav-inner a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin: 8px 20px;
}

/* ==========================================================================
   Main content
   ========================================================================== */
main { padding: 34px 0 50px; }

.page-hero {
  background: linear-gradient(135deg, var(--color-leather) 0%, var(--color-leather-dark) 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 36px;
}
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { color: #f0e2c8; max-width: 720px; margin: 0; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-leather); }
.breadcrumb span { color: var(--color-ink-soft); }

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; object-fit: cover; }
.card-body { padding: 18px; }
.card-body h3 { margin-bottom: 0.3em; }
.card-body .price { color: var(--color-accent); font-weight: 700; font-size: 1.05rem; }
.card-body p { color: var(--color-ink-soft); font-size: 0.95rem; margin-bottom: 0.6em; }

/* Sections */
.section { margin-bottom: 44px; }
.section-title {
  text-align: center;
  margin-bottom: 26px;
}
.section-title h2 { font-size: 1.9rem; }
.section-title p { color: var(--color-ink-soft); max-width: 640px; margin: 0 auto; }

/* Hero (homepage) */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 44px;
}
.hero-text { padding: 36px; }
.hero-text h1 { font-size: 2.4rem; }
.hero-text .lead { font-size: 1.15rem; color: var(--color-ink-soft); }
.hero-text .highlight { color: var(--color-accent); font-weight: 700; }
.hero-img { min-height: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }
.btn-gold { background: var(--color-gold); color: var(--color-leather-dark); }
.btn-gold:hover { background: #b8921f; color: var(--color-leather-dark); }

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.feature {
  text-align: center;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
}
.feature .icon { font-size: 2rem; margin-bottom: 8px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.feature p { font-size: 0.9rem; color: var(--color-ink-soft); margin: 0; }

/* Call to action band */
.cta-band {
  background: linear-gradient(135deg, var(--color-leather) 0%, var(--color-leather-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  margin: 44px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0e2c8; max-width: 640px; margin: 0 auto 20px; }

/* Testimonials */
.testimonial {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 10px; font-style: italic; color: var(--color-ink-soft); }
.testimonial .author { font-weight: 700; color: var(--color-leather-dark); }
.testimonial .location { font-size: 0.85rem; color: var(--color-ink-soft); }

/* Product list (saddles/accessories) */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-item {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.product-item h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.product-item .seat { color: var(--color-ink-soft); font-size: 0.9rem; }
.product-item .price { color: var(--color-accent); font-weight: 700; font-size: 1.1rem; }

/* Tables (pricing) */
.price-table { width: 100%; border-collapse: collapse; background: var(--color-paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-line); }
.price-table th { background: var(--color-leather); color: #fff; font-family: var(--font-head); }
.price-table tr:nth-child(even) { background: #faf5ea; }
.price-table td.price { color: var(--color-accent); font-weight: 700; }

/* Contact / info blocks */
.info-block { background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.info-block h3 { margin-bottom: 0.4em; }
.info-block address { font-style: normal; color: var(--color-ink-soft); line-height: 1.7; }

/* FAQ */
.faq-item { background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.faq-item p { margin: 0; color: var(--color-ink-soft); }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-leather-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--color-gold); border-color: var(--color-gold); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-leather-dark);
  color: #e8d9c0;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-inner h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer-inner a { color: #e8d9c0; }
.footer-inner a:hover { color: #fff; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #cbb894;
}
.footer-bottom a { color: #e8d9c0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid-4, .features { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-height: 320px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 1.7rem; }
  .grid-2, .grid-3, .grid-4, .features, .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-contact { text-align: left; }
  .nav-toggle { display: inline-block; }
  .nav-inner { display: none; flex-direction: column; align-items: stretch; }
  .nav-inner.open { display: flex; }
  .nav-inner a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-text { padding: 24px; }
  .hero-text h1 { font-size: 1.9rem; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
