/* ===========================================
   Valles Quarter Horses — Stylesheet
   Brandon: colors are set once below under
   ":root" — change the hex codes there to
   restyle the whole site at once.
   =========================================== */

:root {
  --brown-dark: #3b2a1e;
  --brown: #5c4433;
  --tan: #f1e6d6;
  --cream: #faf6ef;
  --rust: #9c3d24;
  --rust-dark: #7a2f1b;
  --text: #2b2018;
  --border: #d8c9ae;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brown-dark);
  margin: 0 0 0.5em 0;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--brown-dark);
  color: var(--tan);
  border-bottom: 4px solid var(--rust);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img { width: 48px; height: 48px; border-radius: 50%; }

.brand-text h1 {
  color: var(--tan);
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: #cdbba0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* Tab buttons in the header */
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--tan);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 0.3rem 0;
}

.tab-btn:hover,
.tab-btn.active {
  color: #fff;
  border-bottom: 2px solid var(--rust);
}

/* Tab panels (the actual page content, one per tab) */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Plain-looking buttons used for in-page links (footer, "go to tab" CTAs) */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.link-btn:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 12, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero h2 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: #f1e6d6;
}

.page-hero {
  padding: 3.5rem 1.5rem;
}

.page-hero h2 { font-size: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--rust);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.5px;
  margin-top: 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
}

.btn:hover {
  background: var(--rust-dark);
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #fff;
}

.btn.secondary:hover { background: rgba(255,255,255,0.15); }

/* ---------- Sections ---------- */
section {
  padding: 3.5rem 0;
}

section.alt {
  background: var(--tan);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.8rem; }
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title p {
  color: var(--brown);
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.card-body { padding: 1.1rem; }

.card-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }

.tag {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.tag.sold { background: var(--brown); }

/* ---------- Stallion feature ---------- */
.stallion-feature {
  background: var(--brown-dark);
  color: var(--tan);
}

.stallion-feature h2, .stallion-feature h3 { color: #fff; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.stats .num {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: var(--rust);
  font-weight: bold;
}

.stats .label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--brown);
}

/* ---------- Form ---------- */
form.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
}

form.contact-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 1rem;
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--brown-dark);
  color: #cdbba0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

footer.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

footer.site-footer h4 { color: #fff; font-size: 1rem; }

footer.site-footer a { color: #cdbba0; }
footer.site-footer a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #a8967d;
}
