/* =============================================
   RANCHO LOS POTRILLOS — STYLESHEET
   Rustic / Traditional Theme
   ============================================= */

:root {
  --cream:      #f5efe6;
  --brown-dark: #3b2a1a;
  --brown-mid:  #6b4c2a;
  --brown-light:#a07040;
  --gold:       #c9a84c;
  --rust:       #8b3a1c;
  --text-dark:  #2c1a0e;
  --text-mid:   #5a3e28;
  --text-light: #f5efe6;
  --section-dark-bg: #2c1a0e;
  --section-light-bg: #f5efe6;
  --nav-height: 70px;
  --focus-ring: 3px solid #c9a84c;
  --focus-ring-offset: 2px;
}

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

html { scroll-behavior: smooth; }

/* Respect user motion preferences (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .carousel-track { transition: none !important; }
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ---- SKIP NAVIGATION (ADA: WCAG 2.4.1) ---- */
.skip-link {
  position: absolute;
  top: -999px;
  left: 8px;
  z-index: 10000;
  background: var(--gold);
  color: var(--brown-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--brown-dark);
}
.skip-link:focus {
  top: 8px;
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* ---- GLOBAL FOCUS STYLES (ADA: WCAG 2.4.7 / 2.4.11) ---- */
/* Visible keyboard focus for all interactive elements */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 2px;
}

/* Remove focus outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-height);
  background: rgba(43, 26, 14, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--gold);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  border-radius: 4px;
}
.nav-logo:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover {
  background: var(--gold);
  color: var(--brown-dark);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('Pictures/Dad%20home%20page.jpeg') center center / cover no-repeat,
    linear-gradient(135deg, #3b2a1a 0%, #6b4c2a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,15,5,0.55) 0%, rgba(30,15,5,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-tagline {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(245, 239, 230, 0.9);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #b8942e;
  transform: translateY(-2px);
}
.btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ── HERO CTA GROUP ── */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid rgba(245,239,230,0.7);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-maps:hover {
  background: rgba(245,239,230,0.12);
  border-color: var(--cream);
  transform: translateY(-2px);
}
.btn-maps:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hero-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  color: rgba(245,239,230,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ── CONTACT MAPS LINK ── */
.contact-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: rgba(245,239,230,0.55);
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  border-radius: 2px;
}
.contact-maps-link:hover {
  color: var(--gold);
}
.contact-maps-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 30px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

.section-dark .btn-secondary {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---- SECTIONS ---- */
.section {
  display: flex;
  align-items: center;
  min-height: 560px;
}

.section-light { background: var(--section-light-bg); }
.section-dark  { background: var(--section-dark-bg); }

.section-dark h2,
.section-dark .section-label,
.section-dark p,
.section-dark .feature-list li {
  color: var(--cream);
}

.section-text {
  flex: 1;
  padding: 80px 60px;
  max-width: 560px;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brown-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-dark .section-text h2 { color: var(--cream); }

.section-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 32px;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 5px 0;
  letter-spacing: 0.02em;
}

/* ---- SECTION IMAGES / CAROUSEL ---- */
.section-img-left,
.section-img-right {
  flex: 1;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

/* ---- CAROUSEL ---- */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 560px;
  background-size: cover;
  background-position: center;
}

/* Section carousel images */
.img-salon-1        { background: url('Pictures/event%20hall%201.jpg') center/cover no-repeat; }
.img-salon-2        { background: url('Pictures/event%20hall%202.jpg') center/cover no-repeat; }
.img-salon-3        { background: url('Pictures/event%20hall%203.jpg') center/cover no-repeat; }
.img-salon-4        { background: url('Pictures/event%20hall%204.jpeg') center/cover no-repeat; }
.img-salon-5        { background: url('Pictures/event%20hall%207%20.jpeg') center/cover no-repeat; }
.img-salon-6        { background: url('Pictures/event%20hall%208%20.jpeg') center/cover no-repeat; }
.img-salon-7        { background: url('Pictures/event%20hall%209%20.jpeg') center/cover no-repeat; }
.img-salon-8        { background: url('Pictures/event%20hall%2010.jpeg') center/cover no-repeat; }
.img-salon-9        { background: url('Pictures/landscape%201.JPG') center/cover no-repeat; }
.img-salon-10       { background: url('Pictures/New%20Pictures/Venue%201.jpg') center/cover no-repeat; }
.img-salon-11       { background: url('Pictures/New%20Pictures/venue%202.jpg') center/cover no-repeat; }
.img-salon-12       { background: url('Pictures/New%20Pictures/venue%203.jpg') center/cover no-repeat; }
.img-salon-13       { background: url('Pictures/New%20Pictures/venue%204.jpg') center/cover no-repeat; }

.img-caballerizas-1 { background: url('Pictures/stable%201.JPG') center/contain no-repeat; }
.img-caballerizas-2 { background: url('Pictures/stable%202.JPG') center/contain no-repeat; }
.img-caballerizas-3 { background: url('Pictures/stable%203.JPG') center/contain no-repeat; }

.img-sesiones-1     { background: url('Pictures/New%20Pictures/Horse%20Sessions%201.jpg') center/contain no-repeat; }
.img-sesiones-2     { background: url('Pictures/New%20Pictures/horse%20sessions%202.jpg') center/contain no-repeat; }
.img-sesiones-3     { background: url('Pictures/New%20Pictures/horse%20session%203.jpg') center/contain no-repeat; }
.img-sesiones-4     { background: url('Pictures/New%20Pictures/horse%20session%204.jpg') center/contain no-repeat; }
.img-sesiones-5     { background: url('Pictures/New%20Pictures/horse%20session%205.jpg') center/contain no-repeat; }
.img-sesiones-6     { background: url('Pictures/New%20Pictures/horse%20sesion%206.jpg') center/contain no-repeat; }
.img-sesiones-7     { background: url('Pictures/horse%201.PNG') center/cover no-repeat; }
.img-sesiones-8     { background: url('Pictures/horse%202.jpg') center/cover no-repeat; }
.img-sesiones-9     { background: url('Pictures/horse%203.JPG') center/cover no-repeat; }
.img-sesiones-10    { background: url('Pictures/horse%204.jpg') center/cover no-repeat; }

.img-taquizas-1     { background: url('Pictures/taquiza%201.jpg') center/cover no-repeat; }
.img-taquizas-2     { background: url('Pictures/taquiza%202.jpg') center/cover no-repeat; }
.img-taquizas-3     { background: url('Pictures/taquiza%203.jpg') center/cover no-repeat; }
.img-taquizas-4     { background: url('Pictures/taquiza%204.jpeg') center/cover no-repeat; }

.img-equipo-1       { background: url('Pictures/chairs%20and%20table%201.jpg') center/cover no-repeat; }
.img-equipo-2       { background: url('Pictures/chairs%20and%20table%202.jpg') center/cover no-repeat; }
.img-equipo-3       { background: url('Pictures/chairs%20and%20table%203.jpg') center/cover no-repeat; }

/* Carousel navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(20, 10, 4, 0.55);
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.carousel-btn:hover {
  background: rgba(201, 168, 76, 0.8);
  color: var(--brown-dark);
  border-color: var(--gold);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Carousel pause/play button (ADA: WCAG 2.2.2 Pause, Stop, Hide) */
.carousel-pause {
  position: absolute;
  bottom: 14px;
  right: 12px;
  z-index: 11;
  background: rgba(20, 10, 4, 0.65);
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  font-size: 0.65rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  letter-spacing: -1px;
  transition: background 0.2s;
}
.carousel-pause:hover {
  background: rgba(201, 168, 76, 0.8);
  color: var(--brown-dark);
}
.carousel-pause[aria-pressed="true"] {
  background: rgba(201, 168, 76, 0.25);
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  /* leave room for pause button on right */
  padding-right: 36px;
}

/* Carousel dots — now <button> elements for keyboard access */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 239, 230, 0.55);
  border: 1px solid rgba(245, 239, 230, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.carousel-dot.active,
.carousel-dot[aria-selected="true"] {
  background: var(--gold);
  transform: scale(1.4);
  border-color: var(--gold);
}
.carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- CONTACT ---- */
.contact-section {
  background:
    url('images/contact-bg.jpg') center / cover no-repeat,
    var(--brown-dark);
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 4, 0.82);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.contact-inner .section-label.light,
.contact-inner .section-label {
  color: var(--gold);
}

.contact-inner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  margin-bottom: 16px;
}

.contact-inner > p {
  /* Increased from 0.8 alpha to 0.95 for WCAG AA contrast */
  color: rgba(245, 239, 230, 0.95);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  margin: 0;
}

.contact-phone {
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}

/* Clickable phone number */
.contact-phone a {
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
}
.contact-phone a:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 16px 36px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}
.whatsapp-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.wa-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* ---- FOOTER ---- */
.footer {
  background: #1a0e06;
  border-top: 2px solid var(--gold);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  text-decoration: none;
  /* Increased from 0.6 to 0.85 alpha for WCAG AA contrast (≥4.5:1) */
  color: rgba(245, 239, 230, 0.85);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  border-radius: 2px;
  padding: 2px 4px;
}
.footer-links a:hover { color: var(--gold); }

/* Increased from 0.35 to 0.7 alpha for WCAG AA contrast (≥4.5:1) */
.footer-copy {
  color: rgba(245, 239, 230, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.footer-accessibility {
  color: rgba(245, 239, 230, 0.65);
  font-size: 0.74rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.footer-accessibility-link {
  color: rgba(201, 168, 76, 0.85);
  text-decoration: underline;
  border-radius: 2px;
}
.footer-accessibility-link:hover {
  color: var(--gold);
}

/* ---- DIVIDER ---- */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 32px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .section {
    flex-direction: column;
    min-height: unset;
  }
  .section-dark {
    flex-direction: column-reverse;
  }
  .section-img-left,
  .section-img-right {
    width: 100%;
    min-height: 280px;
  }
  .carousel,
  .carousel-slide { min-height: 280px; }
  .section-text {
    padding: 60px 30px;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .hamburger { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(43, 26, 14, 0.98);
    padding: 20px 0;
    border-bottom: 2px solid var(--gold);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.95rem; padding: 10px 28px; }

  .form-row { flex-direction: column; }

  .logo-img { height: 32px; }
}

/* ── FAQ SECTION ── */
.faq-section { padding: 80px 24px; }
.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}
.faq-inner h2 { margin-bottom: 40px; }

.faq-list { margin: 0; padding: 0; }

.faq-item {
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item dt {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 10px;
  cursor: default;
}

.faq-item dd {
  margin: 0;
  color: var(--cream);
  font-size: 0.97rem;
  line-height: 1.75;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .faq-section { padding: 60px 20px; }
  .faq-item dt { font-size: 1rem; }
}
