/* =========================================================
   RESPONSIVE NAVIGATION & FOOTER — Atmane Riding Horse
   ========================================================= */

/* Desktop header refinements */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border, #e7e9e5);
  box-shadow: 0 4px 20px rgba(19, 35, 26, .07);
  backdrop-filter: blur(12px);
}
.header-inner { position: relative; }
.menu-toggle { display: none; }
.logo img { max-width: 100%; height: auto; }
.language-nav a {
  min-width: 34px;
  min-height: 34px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .2s ease, border-color .2s ease;
}
.language-nav a:hover,
.language-nav a[aria-current="page"] {
  background: #f3f6f2;
  border-color: #dfe7df;
}
.language-nav img { border-radius: 2px; }

/* Refined footer */
.site-footer {
  padding: 3.6rem 0 1.2rem;
  color: #e5ebe6;
  background: #111d17;
  border-top: 4px solid var(--accent, #b18b57);
}
.footer-inner { display: block; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, .7fr) minmax(250px, 1fr);
  gap: clamp(1.5rem, 4vw, 3.8rem);
  align-items: start;
  padding: 0 0 2.8rem;
}
.footer-brand, .footer-column { min-width: 0; }
.footer-logo { display: inline-flex; align-items: center; max-width: 220px; }
.footer-logo img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .96;
}
.site-footer p { margin: .8rem 0 0; color: #c6d0c8; line-height: 1.7; }
.site-footer .footer-location { color: #e5c99f; font-size: .9rem; font-weight: 650; }
.footer-column h2 {
  margin: .25rem 0 1rem;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: .25rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  width: fit-content;
  color: #dce5de;
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s ease, transform .2s ease;
}
.footer-links a:hover { color: #f0c88f; transform: translateX(3px); }
.footer-cta {
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.footer-cta h2 { margin-top: 0; font-size: 1rem; letter-spacing: .01em; text-transform: none; }
.footer-cta p { margin-top: 0; font-size: .94rem; }
.footer-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 46px;
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: #17231b;
  background: #e7c18d;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.footer-booking:hover { color: #17231b; background: #f0d3a9; transform: translateY(-2px); }
.footer-language-wrap { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-language-wrap h3 { margin: 0 0 .65rem; color: #e5c99f; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-languages { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .35rem .65rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #e5ebe6;
  font-size: .8rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.footer-languages a:hover,
.footer-languages a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(231,193,141,.7); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-bottom .copyright { margin: 0; color: #aebbb1; font-size: .85rem; }
.footer-top-link { color: #e5c99f; font-size: .88rem; font-weight: 700; text-decoration: none; }
.footer-top-link:hover { color: #fff; }

/* Tablet and mobile menu */
@media (max-width: 1100px) {
  .header-inner {
    position: relative;
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    min-height: 76px;
    padding: .35rem 0;
  }
  .logo { order: 1; min-width: 0; }
  .logo img { width: clamp(135px, 26vw, 220px); max-height: 68px; object-fit: contain; }
  .language-nav { order: 2; display: flex; flex: 0 0 auto; gap: .08rem; margin-left: auto; }
  .language-nav a { min-width: 30px; min-height: 34px; padding: .1rem; }
  .language-nav img { width: 22px; height: 15px; }
  .menu-toggle {
    order: 3;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 46px;
    min-height: 46px;
    padding: .55rem .7rem;
    border: 1px solid #dce4dc;
    border-radius: 12px;
    color: #183124;
    background: #f7faf7;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20,40,27,.04);
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle:hover { background: #edf3ed; border-color: #c7d6c8; }
  .menu-toggle:focus-visible { outline: 3px solid var(--accent, #b18b57); outline-offset: 3px; }
  .menu-toggle-icon { display: flex; width: 19px; flex-direction: column; gap: 4px; }
  .menu-toggle-icon span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle.is-open .menu-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open .menu-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav:not(.language-nav) {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: 0;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: .18rem;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .55rem;
    border: 1px solid #e2e9e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(12,30,18,.18);
  }
  .site-header.has-mobile-menu .main-nav:not(.language-nav) { display: none; }
  .site-header.has-mobile-menu.menu-open .main-nav:not(.language-nav) { display: flex; }
  .main-nav:not(.language-nav) a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: .7rem .85rem;
    border-radius: 10px;
    color: #1b2b21;
    font-size: .98rem;
    line-height: 1.35;
    text-decoration: none;
  }
  .main-nav:not(.language-nav) a:hover,
  .main-nav:not(.language-nav) a:focus-visible { color: #173321; background: #f1f6f1; text-decoration: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .site-footer { padding: 2.5rem 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-bottom: 1.8rem; }
  .footer-brand { text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-column h2 { margin-bottom: .65rem; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem .75rem; }
  .footer-links a { width: 100%; min-height: 44px; font-size: .92rem; }
  .footer-cta { grid-column: auto; padding: 1.15rem; text-align: center; }
  .footer-languages { justify-content: center; }
  .footer-bottom { flex-direction: column; justify-content: center; gap: .6rem; text-align: center; }
  .footer-top-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .4rem .8rem; }
}

@media (max-width: 380px) {
  .header-inner { gap: .35rem; }
  .logo img { width: clamp(118px, 39vw, 145px); }
  .language-nav { gap: 0; }
  .language-nav a { min-width: 26px; }
  .language-nav img { width: 19px; height: 13px; }
  .menu-toggle { min-width: 43px; min-height: 43px; padding: .45rem .55rem; }
  .menu-toggle-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-icon span, .footer-links a, .footer-booking, .footer-languages a { transition: none !important; }
}
