/* 480 Ranch — site styles
   Earthy western palette, designed to ship as plain CSS on Cloudflare Pages. */

:root {
  --ink: #1a120c;
  --espresso: #241610;
  --leather: #3a2318;
  --saddle: #6b3e22;
  --rust: #9a4d2e;
  --clay: #c27a4a;
  --gold: #c4a06a;
  --gold-soft: #d4b483;
  --wheat: #e8d5b0;
  --cream: #f3ece1;
  --parchment: #faf7f1;
  --paper: #fffdf8;
  --sage: #5c6750;
  --muted: #6e5f52;
  --line: rgba(36, 22, 16, 0.12);
  --line-strong: rgba(36, 22, 16, 0.2);
  --line-gold: rgba(196, 160, 106, 0.55);
  --overlay: rgba(26, 14, 8, 0.42);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-brand: Cinzel, "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
  --header-h: 4.25rem;
  --content: 72rem;
  --radius: 0.4rem;
  --shadow: 0 18px 40px rgba(26, 18, 12, 0.12);
  --ease: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--saddle);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(107, 62, 34, 0.45);
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--espresso);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--espresso);
  color: var(--cream);
  border-bottom: 1px solid rgba(196, 160, 106, 0.28);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--wheat);
}

.wordmark-mark {
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 auto;
}

.wordmark-text {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(196, 160, 106, 0.4);
  background: transparent;
  color: var(--cream);
  border-radius: 0.3rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 15%,
    linear-gradient(currentColor, currentColor) 0 50%,
    linear-gradient(currentColor, currentColor) 0 85%;
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--wheat);
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(20rem, 1.18fr);
  min-height: calc(100vh - var(--header-h));
  min-height: max(32rem, calc(100svh - var(--header-h)));
  background: var(--espresso);
  color: var(--cream);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.75rem, 5vw, 5rem);
}

.kicker {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.15rem;
  color: var(--parchment);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  color: var(--wheat);
  margin: 0 0 0.9rem;
  max-width: 28rem;
}

.hero-lede {
  margin: 0 0 2rem;
  color: rgba(243, 236, 225, 0.82);
  max-width: 28.5rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
}

.hero-photo {
  position: relative;
  min-height: 22rem;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  position: absolute;
  inset: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.3rem;
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.15rem;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover {
  text-decoration: none;
}

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

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-soft);
  color: var(--espresso);
}

.btn-ghost {
  background: transparent;
  color: var(--wheat);
  border-color: rgba(196, 160, 106, 0.65);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold-soft);
  color: var(--parchment);
  background: rgba(196, 160, 106, 0.1);
}

.btn-on-light {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.btn-on-light:hover,
.btn-on-light:focus-visible {
  background: var(--leather);
  color: var(--cream);
}

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

.section {
  padding: clamp(3.75rem, 8vw, 6.25rem) 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.6rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0.35rem 0 0.7rem;
  color: var(--espresso);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.flourish {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.flourish::before,
.flourish::after {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  display: none;
}

.flourish-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.flourish svg {
  display: block;
}

/* ---------- Services ---------- */

.services {
  background: var(--parchment);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.service-card {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.55rem 1.4rem 1.65rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.service-card:hover {
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  color: var(--saddle);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--espresso);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* 5 cards: last two centered on a 6-col grid */
.service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* ---------- Image band ---------- */

.image-band {
  position: relative;
  min-height: clamp(16rem, 42vw, 28rem);
  color: var(--parchment);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 14, 8, 0.55) 0%,
    rgba(26, 14, 8, 0.28) 45%,
    rgba(26, 14, 8, 0.22) 100%
  );
}

.image-band blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.3;
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- About ---------- */

.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: start;
}

.about-photo {
  position: relative;
  margin: 0.7rem 0.7rem 0 0;
}

@media (min-width: 961px) {
  .about-photo {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  border: 1px solid var(--gold);
  z-index: 0;
}

.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  /* Natural 2:3 portrait — no crop, so Shelby's face stays fully in frame */
  object-fit: contain;
}

.about-copy {
  max-width: 40rem;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0.35rem 0 1.1rem;
  color: var(--espresso);
}

.about-intro {
  font-size: 1.1rem;
  color: var(--leather);
  margin: 0 0 1.5rem;
}

.about-bio p {
  margin: 0 0 1.1rem;
  color: #3f342c;
  line-height: 1.7;
}

.about-pull {
  margin: 1.65rem 0 1.85rem;
  padding: 0.15rem 0 0.15rem 1.3rem;
  border-left: 2px solid var(--gold);
}

.about-pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--espresso);
  margin: 0;
}

.about-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--espresso);
  margin: 1.6rem 0 0;
}


/* ---------- Gallery ---------- */

.gallery {
  background: var(--parchment);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--espresso);
  aspect-ratio: 1 / 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

/* Palomino paddock shot is a tighter portrait; keep the horse centered */
.gallery-grid figure:nth-child(7) img {
  object-position: center 45%;
}

/* B&W rider: keep the face and horse's head in frame */
.gallery-grid figure:nth-child(6) img {
  object-position: center 35%;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--espresso);
  color: var(--cream);
}

.contact .section-header h2,
.contact .section-header p {
  color: inherit;
}

.contact .section-header p {
  color: rgba(243, 236, 225, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact dt {
  font-family: var(--font-brand);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

.contact dd {
  margin: 0 0 1.5rem;
  color: var(--cream);
}

.contact dd:last-child {
  margin-bottom: 0;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 160, 106, 0.28);
  padding: 1.6rem 1.5rem;
}

.contact-panel p {
  margin: 0 0 1rem;
  color: rgba(243, 236, 225, 0.82);
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  background: #1a110c;
  color: rgba(243, 236, 225, 0.72);
  padding: 1.6rem 0;
  border-top: 1px solid rgba(196, 160, 106, 0.2);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--wheat);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

.footer-name {
  font-family: var(--font-brand);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

/* ---------- 404 ---------- */

.page-404 {
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at top, rgba(196, 160, 106, 0.08), transparent 50%),
    var(--parchment);
}

.page-404-inner {
  padding: clamp(3rem, 8vw, 6rem) 0;
  max-width: 36rem;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
  color: var(--espresso);
}

.page-404 p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.error-code {
  font-family: var(--font-brand);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.72rem;
  margin: 0;
}

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

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-photo {
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-photo {
    min-height: 0;
    height: min(70vw, 22rem);
    order: -1;
  }

  .hero-copy {
    padding: 2.25rem 1.35rem 2.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #1a110c;
    border-bottom: 1px solid rgba(196, 160, 106, 0.28);
    padding: 0.5rem 0 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    width: min(calc(100% - 2.5rem), var(--content));
    margin-inline: auto;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(196, 160, 106, 0.15);
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 2rem), var(--content));
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .btn,
  .gallery-grid img {
    transition: none;
  }

  .gallery-grid figure:hover img {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact a {
  color: var(--gold-soft);
  text-decoration-color: rgba(212, 180, 131, 0.55);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--wheat);
  text-decoration-color: currentColor;
}
