/* Cooper Ridge Equine Center — site styles */
:root {
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --red: #c4161c;
  --red-dark: #9e1015;
  --cream: #f7f4ef;
  --white: #ffffff;
  --muted: #5c5c5c;
  --line: #e4ded4;
  --radius: 10px;
  --max: 1120px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--white); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Header */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand span { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.brand small { display: block; font-size: .75rem; letter-spacing: .2em; color: #cfcfcf; }
.site-nav ul { list-style: none; display: flex; gap: .25rem 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--white); text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; padding: .35rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #ff5a5f; }
.site-nav .nav-call { background: var(--red); padding: .45rem .9rem; border-radius: 999px; }
.site-nav .nav-call:hover { background: var(--red-dark); color: var(--white); }
@media (max-width: 720px) {
  .site-header { position: static; }
  .header-inner { justify-content: center; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: var(--white); font-size: 1rem; transition: background .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Hero */
.hero { background: var(--black); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2.5rem; padding: 3.5rem 0; }
.hero .eyebrow { color: #ff5a5f; }
.hero-lead { font-size: 1.2rem; color: #e6e6e6; max-width: 36rem; }
.hero-img img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-height: 560px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding: 2.25rem 0; }
  .hero-img img { aspect-ratio: 4 / 3; }
}
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--red); margin-bottom: .5rem; display: block; }

/* Page header (inner pages) */
.page-hero { background: var(--black); color: var(--white); padding: 2.75rem 0 2.25rem; }
.page-hero p { color: #e2e2e2; max-width: 44rem; font-size: 1.15rem; }
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: #999; }
.breadcrumbs a { color: #cfcfcf; }
.breadcrumbs [aria-current] { color: #fff; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--black); color: var(--white); }
.section-intro { max-width: 46rem; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); }
.section-dark .section-intro p { color: #d6d6d6; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column;
}
.card p { color: var(--muted); flex: 1; }
.card a.more { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.card a.more::after { content: " →"; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; background: var(--red); border-radius: 2px; transform: rotate(45deg); }

figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.section-dark figcaption { color: #cfcfcf; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.5rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 1.15rem; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding: 3rem 0; text-align: center; }
.cta-band h2 { margin-bottom: .4rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.cta-band .btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.cta-band .btn-outline { background: transparent; color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-list a { font-size: 1.15rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.note { background: var(--cream); border-left: 4px solid var(--red); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Footer */
.site-footer { background: var(--black); color: #d0d0d0; padding: 3rem 0 1.5rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.05rem; color: var(--white); letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer a { color: #f0f0f0; }
.site-footer a:hover { color: #ff5a5f; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .9rem; }

/* Motion (kept subtle; disabled for reduced-motion users) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-grid > div, .page-hero .container { animation: fadeUp .7s ease-out both; }
.hero-grid > .hero-img { animation-delay: .15s; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.btn { transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.hero-img img, .split figure img { transition: transform .5s ease; }
.hero-img:hover img, .split figure:hover img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Contact form */
.contact-form { background: var(--cream); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.75rem; }
.contact-form h2 { font-size: 1.6rem; }
.contact-form > p { color: var(--muted); }
.form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.contact-form label { font-weight: 600; font-size: .95rem; }
.contact-form label span { color: var(--red); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #cfc7ba; border-radius: 8px;
  background: var(--white); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,22,28,.18);
}
.contact-form button { cursor: pointer; }
.contact-form button:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 8px; font-weight: 600; }
.form-status.is-ok { background: #e7f4ea; color: #1d5e2c; }
.form-status.is-error { background: #fbe9e9; color: #8a1014; }
.form-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.contact-grid .map-wrap { margin-bottom: 1rem; }
