/* Happy Horses — Natural Hoofcare & Horsecare */

:root {
  --green-dark: #102804;
  --green-primary: #274e13;
  --green-light: #3d6b28;
  --green-muted: #5a7d4a;
  --cream: #f7f4ef;
  --cream-dark: #e8e3da;
  --warm-white: #fdfcfa;
  --text: #2c2c2c;
  --text-muted: #5c5c5c;
  --accent: #8b6914;
  --shadow: 0 4px 24px rgba(16, 40, 4, 0.12);
  --shadow-lg: 0 12px 48px rgba(16, 40, 4, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --nav-height: 72px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }

/* ── Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(16, 40, 4, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream) !important;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--cream) !important;
  opacity: 0.9;
}

.logo span { color: #a8c48a !important; }

.logo:hover span { color: #c8dfa8 !important; }

.site-header--logo-only .nav-inner--center {
  justify-content: center;
}

.site-header--logo-only .nav-toggle,
.site-header--logo-only .nav-links {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(247, 244, 239, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cream);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg--contain {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
}

.hero--fit-image {
  background-color: var(--green-dark);
}

.hero--fit-image .hero-bg::after {
  background: linear-gradient(
    180deg,
    rgba(16, 40, 4, 0.35) 0%,
    rgba(16, 40, 4, 0.65) 100%
  );
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 40, 4, 0.55) 0%,
    rgba(16, 40, 4, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Home page hero (logo bar + inline nav buttons) ── */
.home-page .hero--home {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

.home-page .hero-content {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.home-page .hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.home-page .hero-actions .btn {
  margin: 0;
  padding: 0.6875rem 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--cream);
  color: var(--green-dark);
  border-color: var(--cream);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 244, 239, 0.6);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--green-dark);
  border-color: var(--cream);
}

.btn-green {
  background: var(--green-primary);
  color: var(--cream);
  border-color: var(--green-primary);
}

.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--cream);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.page-hero .hero-bg { transform: none; }

.page-hero .hero-bg::after {
  background: linear-gradient(
    180deg,
    rgba(16, 40, 4, 0.3) 0%,
    rgba(16, 40, 4, 0.85) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--cream);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.page-hero .breadcrumb {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

/* ── Sections ── */
section { padding: 5rem 1.5rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.bg-cream { background: var(--cream); }
.bg-white { background: var(--warm-white); }
.bg-green { background: var(--green-dark); color: var(--cream); }
.bg-green .section-title { color: var(--cream); }
.bg-green .section-label { color: #a8c48a; }

/* ── Contact bar ── */
.contact-bar {
  background: var(--green-primary);
  color: var(--cream);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.contact-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.85;
}

.contact-item a { color: var(--cream); }
.contact-item a:hover { color: #c8dfa8; }

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-body { padding: 1.75rem; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Two-column content ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.split-content h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.split-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-primary);
  margin: 1.75rem 0 0.75rem;
}

.split-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.split-content p:first-of-type {
  font-size: 1.125rem;
  color: var(--text);
}

/* ── Home welcome section ── */
.welcome-section {
  padding: 3.5rem 1.5rem;
}

.welcome-split {
  gap: 2rem;
  align-items: center;
}

.welcome-split .section-label {
  margin-bottom: 0.5rem;
}

.welcome-split .section-title {
  margin-bottom: 0.875rem;
}

.welcome-split .split-content p {
  margin-bottom: 1.25rem;
}

.welcome-cta {
  margin-top: 0;
}

.welcome-split .split-image img {
  min-height: 0;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

@media (min-width: 901px) {
  .welcome-split .split-image img {
    max-height: 300px;
  }
}

/* ── Feature blocks ── */
.feature-block {
  padding: 2rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-primary);
  margin-bottom: 1.5rem;
}

.feature-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.feature-block p { color: var(--text-muted); }

/* ── Prose / story content ── */
.prose {
  max-width: 740px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.prose h2:not(:first-child) {
  margin-top: 2.5rem;
}

.prose p {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--center {
  text-align: center;
}

.prose--center .section-label {
  display: block;
}

.prose--philosophy {
  text-align: center;
}

.prose--philosophy .section-label {
  display: block;
  margin-bottom: 1.25rem;
}

.prose--philosophy p:not(.section-label) {
  text-align: left;
  text-indent: 2em;
  margin-bottom: 1.5rem;
}

.prose--philosophy p:not(.section-label):last-child {
  margin-bottom: 0;
}

.page-hero--tall {
  min-height: 420px;
}

.page-hero--tall .hero-bg {
  background-position: center center;
  background-size: cover;
}

/* Natural Trim — 4:3 hero (2048×1535); zoom out ~10% while keeping full width */
.page-hero--natural-trim {
  min-height: 460px;
}

.page-hero--natural-trim .hero-bg {
  background-size: cover;
  background-position: center 70%; /* shifted down ~20% from center to reveal upper scene/text */
  /* Slightly larger than container, scaled down = more of the photo visible */
  width: 112%;
  height: 112%;
  left: -6%;
  top: -6%;
}

@media (min-width: 768px) {
  .page-hero--natural-trim {
    min-height: 500px;
  }
}

/* Contact page — vertical portrait hero */
.page-hero--contact {
  min-height: 380px;
}

.page-hero--contact .hero-bg {
  background-size: cover;
  background-position: 38% 42%;
}

@media (min-width: 768px) {
  .page-hero--contact {
    min-height: 460px;
  }

  .page-hero--contact .hero-bg {
    background-position: 40% 38%;
  }
}

/* ── Quote ── */
blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--green-dark);
  border-left: 4px solid var(--accent);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  line-height: 1.6;
}

blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--cream);
}

.contact-detail h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 1.0625rem;
  color: var(--text);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-dark);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.contact-map p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(247, 244, 239, 0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(247, 244, 239, 0.7);
  font-size: 0.9375rem;
}

.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(247, 244, 239, 0.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .split,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; }

  .split-image { order: -1; }
  .split-image img { min-height: 260px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
  }

  section { padding: 3.5rem 1.25rem; }

  .hero { min-height: 70vh; }
}
