/* Whispering Creek Stables — Static Site */

:root {
  --gold: #c4aa4f;
  --burgundy: #6e2626;
  --cream: #f8f5ec;
  --dark: #28201d;
  --white: #ffffff;
  --overlay: rgba(40, 32, 29, 0.65);
  --font-heading: "Rufina", Georgia, serif;
  --font-body: "Oxygen", system-ui, sans-serif;
  --max-width: 1140px;
  --nav-height: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(40, 32, 29, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--cream);
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header / Nav ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(40, 32, 29, 0.95);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: none;
  list-style: none;
}

.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--gold);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--burgundy);
  color: var(--white);
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
}

.nav-submenu {
  display: none;
  list-style: none;
  background: rgba(110, 38, 38, 0.15);
}

.nav-submenu.open {
  display: block;
}

.nav-submenu a {
  padding-left: 2rem;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-menu li {
    position: relative;
  }

  .nav-menu li a {
    padding: 0.5rem 0.85rem;
    color: var(--white);
    font-size: 0.9rem;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    color: var(--gold);
    background: transparent;
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-toggle {
    display: none;
  }

  .nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0.5rem 0;
  }

  .nav-dropdown:hover .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.6rem 1.25rem;
    color: var(--dark);
  }

  .nav-submenu a:hover {
    background: var(--cream);
    color: var(--burgundy);
  }
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--dark) center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.25rem 4rem;
  max-width: 720px;
}

.hero-logo {
  width: min(280px, 70vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}

.btn-secondary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-outline:hover {
  background: var(--burgundy);
  color: var(--white);
}

/* ── Sections ── */

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: #555;
  margin-top: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About ── */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Features ── */

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 170, 79, 0.3);
}

.feature-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.feature-list {
  list-style: none;
  max-width: 700px;
  margin: 3rem auto 0;
}

.feature-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid rgba(196, 170, 79, 0.2);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* ── Community ── */

.community-panels {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .community-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.community-panel {
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.community-panel h3 {
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

.community-panel .subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.community-callout {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}

.community-callout h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── Boarding ── */

.boarding-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .boarding-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.boarding-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.boarding-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.boarding-card-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.boarding-card-body {
  padding: 2rem;
}

.boarding-card .price {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius);
}

.boarding-note {
  text-align: center;
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--burgundy);
}

/* ── Trainers ── */

.trainers-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .trainers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trainer-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trainer-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.trainer-body {
  padding: 2rem;
  flex: 1;
}

.trainer-body .phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--burgundy);
}

.trainer-services {
  list-style: none;
  margin-top: 1rem;
}

.trainer-services li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.trainer-services li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ── Gallery ── */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40, 32, 29, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(40, 32, 29, 0.2);
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Manure ── */

.manure-content {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .manure-content {
    grid-template-columns: 1fr 1fr;
  }
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 170, 79, 0.25);
}

.benefits-list li strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

/* ── Forms ── */

.forms-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.form-downloads {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-downloads .btn {
  justify-content: center;
  width: 100%;
}

/* ── Contact ── */

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card h3 {
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

.contact-card .role {
  color: var(--gold);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
  text-align: left;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(196, 170, 79, 0.2);
}

.contact-details img,
.contact-icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-details img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-icon {
  min-width: 52px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.mailing-address {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 170, 79, 0.3);
  font-size: 0.95rem;
  color: #555;
}

/* ── Footer ── */

.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer-logo img {
  height: 56px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  list-style: none;
}

.footer-nav a {
  color: var(--cream);
  font-family: var(--font-heading);
}

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

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

/* ── Back to top ── */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--burgundy);
  color: var(--white);
}
