/* Breaux Ranch Rescue and Rehab — site styles */

:root {
    --walnut: #2B1A0E;
    --saddle: #3A2414;
    --night: #1E1209;
    --copper: #C98446;
    --copper-hi: #D9955A;
    --rust: #8A4F22;
    --rust-dark: #5E3312;
    --hay: #EBDDC8;
    --hay-deep: #E2CFB4;
    --cream: #F5EDE1;
    --ink: #2B1A0E;
    --ink-soft: #5E4632;
    --tan: #CDB79A;
    --sand: #E4D3BC;
    --line: #D9C4A6;
    --line-dark: #5A3A22;
    --link-light: #E4B88C;
    --muted-dark: #A8906F;

    --font-display: 'Alfa Slab One', Georgia, serif;
    --font-body: 'Alegreya Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-script: 'Alegreya', Georgia, serif;

    --gutter: clamp(16px, 4.5vw, 64px);
    --section-y: clamp(56px, 8vw, 112px);
    --radius: 10px;
    --header-h: 88px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(17px, 1.1vw + 12px, 20px);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: calc(1312px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--copper); color: var(--walnut); padding: 10px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 26px; border-radius: 6px;
    font: 700 18px/1.2 var(--font-body); text-decoration: none; text-align: center;
    border: 2px solid transparent; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 20px; }
.btn-copper { background: var(--copper); color: var(--walnut); }
.btn-copper:hover { background: var(--copper-hi); color: var(--walnut); }
.btn-outline-light { background: transparent; border-color: var(--tan); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(245,237,225,.08); color: var(--cream); }
.btn-pending { border: 2px dashed #8A6A4A; color: var(--tan); cursor: default; }

/* ---------- Text helpers ---------- */
.eyebrow {
    font-size: clamp(13px, 1vw, 16px); letter-spacing: .25em; font-weight: 700;
    text-transform: uppercase; color: var(--rust);
}
.eyebrow-copper { color: var(--copper); }
.muted { color: var(--ink-soft); }
.script { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: clamp(20px, 1.4vw + 12px, 26px); line-height: 1.45; }
.script-light { color: var(--cream); }
.section { padding-block: var(--section-y); }
.section-dark { background: var(--walnut); color: var(--sand); }
.section-dark h2 { color: var(--cream); }
.section-hay { background: var(--hay); }
.section h2 { font-size: clamp(30px, 2.4vw + 14px, 46px); }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-center { margin-inline: auto; text-align: center; align-items: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--walnut); border-bottom: 3px solid var(--copper);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; color: var(--cream); line-height: 1; text-transform: uppercase; }
.brand-sub { font-size: 13px; letter-spacing: .23em; color: var(--tan); margin-top: 5px; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 18px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--cream); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--cream); border-bottom-color: var(--copper); }

.menu-toggle {
    display: none; width: 44px; height: 44px; padding: 0;
    align-items: center; justify-content: center;
    background: none; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--cream); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
    :root { --header-h: 72px; }
    .brand img { height: 42px; }
    .brand-name { font-size: 18px; }
    .brand-sub { display: none; }
    .menu-toggle { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--walnut); border-bottom: 3px solid var(--copper);
        padding: 8px var(--gutter) 20px;
        box-shadow: 0 16px 32px rgba(0,0,0,.35);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--saddle); font-size: 19px; }
    .site-nav a:not(.btn):hover { border-bottom-color: var(--saddle); color: var(--copper-hi); }
    .nav-cta { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--saddle); padding-block: clamp(32px, 5vw, 72px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { color: var(--cream); font-size: clamp(34px, 3.4vw + 12px, 62px); line-height: 1.08; }
.hero-lede { color: var(--sand); font-size: clamp(18px, .6vw + 14px, 21px); line-height: 1.55; max-width: 590px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero-badge { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.45); }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-badge { order: -1; max-width: 560px; }
}
@media (max-width: 520px) {
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Welcome ---------- */
.welcome-inner { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.welcome-no-photo .welcome-inner { grid-template-columns: minmax(0, 860px); justify-content: center; }
.welcome-photo { width: 100%; aspect-ratio: 560 / 440; object-fit: cover; border-radius: var(--radius); }
.welcome-copy { display: flex; flex-direction: column; gap: 22px; }
.welcome-copy > p:not(.eyebrow):not(.script) { color: var(--ink-soft); }
.welcome-copy .script { color: var(--rust); }
@media (max-width: 900px) { .welcome-inner { grid-template-columns: 1fr; } }

/* ---------- Mission ---------- */
.mission-inner { max-width: calc(1040px + 2 * var(--gutter)); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.mission-lead { font-family: var(--font-display); color: var(--cream); font-size: clamp(24px, 1.8vw + 12px, 36px); line-height: 1.3; }
.mission-body { font-size: clamp(18px, .5vw + 14px, 21px); line-height: 1.65; }
.rule { width: 80px; height: 3px; background: var(--copper); }
.mission .script { font-size: clamp(21px, 1.2vw + 14px, 28px); }
@media (max-width: 640px) { .mission-inner { text-align: left; align-items: flex-start; } }

/* ---------- How we care ---------- */
.care-cols { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.care-intro, .care-detail { display: flex; flex-direction: column; gap: 22px; }
.care-detail { padding-top: 48px; gap: 24px; }
.care-quote {
    margin-top: clamp(32px, 4vw, 48px);
    background: var(--cream); border-radius: var(--radius);
    padding: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 48px);
    display: flex; gap: 28px; align-items: center; color: var(--rust);
}
.care-quote svg { flex-shrink: 0; }
.care-quote .script { color: var(--ink); font-size: clamp(19px, 1vw + 12px, 24px); line-height: 1.5; }
@media (max-width: 900px) {
    .care-cols { grid-template-columns: 1fr; gap: 22px; }
    .care-detail { padding-top: 0; }
}
@media (max-width: 640px) {
    .care-quote { flex-direction: column; align-items: flex-start; gap: 14px; }
    .care-quote svg { width: 36px; height: 36px; }
}

/* ---------- Horses ---------- */
.horse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.horse-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; }
.horse-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: #fff; }
.horse-photos.photos-1 { grid-template-columns: 1fr; }
.horse-photo { position: relative; margin: 0; background: var(--hay); aspect-ratio: 1200 / 930; }
.photos-1 .horse-photo { aspect-ratio: 1200 / 480; }
.horse-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
    position: absolute; left: 12px; top: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 4px;
    background: rgba(43,26,14,.82); color: var(--cream);
}
.photo-tag-after { background: rgba(201,132,70,.95); color: var(--walnut); }
.horse-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.horse-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.horse-title h3 { font-size: clamp(22px, 1vw + 14px, 26px); }
.horse-body p { font-size: 18px; line-height: 1.55; }
.pill {
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
    padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--rust);
}
/* An odd horse out at the end (e.g. 5 horses) spans the full row, photo beside the story */
@media (min-width: 901px) {
    .horse-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
    .horse-card:last-child:nth-child(odd) .horse-photos { flex: 0 0 calc(50% - 16px); }
    .horse-card:last-child:nth-child(odd) .photos-1 .horse-photo { aspect-ratio: 1200 / 930; }
    .horse-card:last-child:nth-child(odd) .horse-body { flex: 1; justify-content: center; padding: 40px 48px; }
}
@media (max-width: 900px) {
    .horse-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .horse-photos { grid-template-columns: 1fr; }
    .photos-1 .horse-photo { aspect-ratio: 1200 / 930; }
    .horse-body { padding: 20px; }
    .horse-body p { font-size: 17px; }
}

/* ---------- Needs ---------- */
.needs-inner { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.needs-intro { display: flex; flex-direction: column; gap: 22px; }
.needs-lead { font-weight: 700; margin-bottom: 14px; }
.needs-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.need { background: var(--cream); border-radius: var(--radius); padding: 22px 28px; display: flex; gap: 20px; align-items: flex-start; color: var(--rust); }
.need svg { flex-shrink: 0; }
.need h3 { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.need p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 900px) {
    /* Stack: intro text, then the list, then the thank-you line */
    .needs-inner { display: flex; flex-direction: column; gap: 22px; }
    .needs-intro { display: contents; }
    .needs-list { order: 1; margin-top: 8px; }
    .needs-intro .script { order: 2; margin-top: 8px; }
}
@media (max-width: 640px) {
    .need { padding: 18px 20px; gap: 14px; }
    .need svg { width: 30px; height: 30px; }
    .need h3 { font-size: 20px; }
    .need p { font-size: 17px; }
}

/* ---------- Ways to help ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.help-card {
    background: var(--saddle); border: 1px solid var(--line-dark); border-radius: var(--radius);
    padding: clamp(24px, 2.5vw, 36px); display: flex; flex-direction: column; gap: 16px; color: var(--copper-hi);
}
.help-card h3 { color: var(--cream); font-size: clamp(22px, .6vw + 16px, 26px); }
.help-card p { flex-grow: 1; font-size: 18px; line-height: 1.55; color: var(--tan); }
.help-card .btn { width: 100%; }
.help-thanks { text-align: center; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 900px) {
    .help-grid { grid-template-columns: 1fr; gap: 16px; }
    .help-thanks { text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--tan); padding: clamp(48px, 5vw, 64px) 0 clamp(36px, 4vw, 48px); }
.footer-top { display: flex; gap: 64px; align-items: flex-start; }
.footer-brand { display: flex; gap: 20px; align-items: center; width: min(520px, 100%); }
.footer-brand img { height: 88px; width: auto; }
.footer-name { font-family: var(--font-display); font-size: 26px; color: var(--cream); text-transform: uppercase; }
.footer-tagline { font-size: 16px; }
.footer-cols { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; font-size: 18px; line-height: 1.7; }
.footer-heading { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: var(--cream); margin-bottom: 6px; }
.site-footer a { color: var(--link-light); }
.site-footer a:hover { color: var(--cream); }
.footer-legal { border-top: 1px solid var(--saddle); margin-top: 40px; padding-top: 24px; font-size: 15px; color: var(--muted-dark); }
@media (max-width: 900px) {
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-brand img { height: 64px; }
    .footer-name { font-size: 20px; }
}
@media (max-width: 520px) {
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .site-footer a { display: inline-block; padding-block: 8px; }
    .footer-cols p { line-height: 1.5; }
}
