/* The Outlaw Horsey Wales Foundation — outlawhw.com */

:root {
  --black: #0d0b08;
  --black-soft: #171310;
  --gold: #c69749;
  --gold-light: #ddb573;
  --cream: #f4efe3;
  --cream-dark: #e9e2d2;
  --ink: #241d14;
  --ink-soft: #4d4437;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

a { color: var(--gold); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
}

.brand .brand-name {
  color: var(--cream);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand .brand-name span { color: var(--gold); }

.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 4px;
}

.site-nav a:hover { color: var(--gold-light); }

.site-nav a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}

.site-nav a.nav-donate {
  background: var(--gold);
  color: var(--black);
  border-radius: 4px;
  border-bottom: none;
}

.site-nav a.nav-donate:hover { background: var(--gold-light); color: var(--black); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.45;
}

.hero .wrap {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 860px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--gold); }

.hero p.lede {
  font-size: 1.15rem;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 30px;
  color: #efe8d8;
}

.star-divider {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  margin: 0 auto 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover { background: rgba(198, 151, 73, 0.15); }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section.dark {
  background: var(--black);
  color: var(--cream);
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 8px;
}

.section .kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col .photo img {
  border-radius: 8px;
  border: 3px solid var(--gold);
}

.two-col p + p { margin-top: 14px; }

/* ---------- Help cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--black-soft);
  border: 1px solid rgba(198, 151, 73, 0.35);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

.card .card-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.card h3 { color: var(--gold-light); margin-bottom: 8px; font-size: 1.15rem; }

.card p { color: #d9d2c1; font-size: 0.97rem; }

/* ---------- Photo strip / gallery ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-grid a { display: block; }

.photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--cream-dark);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-grid a:hover img {
  transform: scale(1.02);
  border-color: var(--gold);
}

.gallery-note {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 26px;
}

/* ---------- Banner CTA ---------- */

.banner {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
  text-align: center;
  padding: 56px 0;
}

.banner h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 6px;
}

.banner p { margin-bottom: 22px; font-size: 1.05rem; }

.banner .btn {
  background: var(--black);
  color: var(--gold);
}

.banner .btn:hover { background: var(--black-soft); }

/* ---------- Donate page ---------- */

.donate-frame-card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13, 11, 8, 0.10);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}

.donate-frame-card iframe {
  width: 100%;
  height: 1200px;
  border: 0;
  display: block;
}

.donate-fallback {
  text-align: center;
  margin: 26px auto 0;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: #cfc8b6;
  border-top: 3px solid var(--gold);
  padding: 44px 0 34px;
  text-align: center;
}

.site-footer img {
  width: 84px;
  margin: 0 auto 14px;
}

.site-footer .foot-name {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.site-footer .foot-tag {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.site-footer .foot-links { margin-bottom: 16px; }

.site-footer .foot-links a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer .foot-links a:hover { color: var(--gold-light); }

.site-footer .foot-fine { font-size: 0.82rem; color: #8f8877; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border: 3px solid var(--gold);
  border-radius: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid img { height: 220px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .site-header .wrap { flex-direction: column; padding-bottom: 12px; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
}
