/* =========================================================
   Centro Hípico Santa Maria — stylesheet
   Palette: #8F0000 (bordô) / #06402B (verde) / #DBA400 (dourado)
   ========================================================= */

:root{
  --maroon: #8F0000;
  --maroon-dark: #6e0000;
  --forest: #06402B;
  --forest-dark: #043020;
  --gold: #DBA400;
  --gold-light: #f0c34d;
  --sand: #F6EFDD;
  --sand-deep: #EDE2C6;
  --ink: #241A12;
  --ink-soft: #4a3d2e;
  --paper: #FFFDF8;
  --navbar-h: 92px;

  --bs-primary: var(--maroon);
  --bs-secondary: var(--forest);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--sand);
  --bs-link-color: var(--maroon);
  --bs-link-hover-color: var(--maroon-dark);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --font-script: 'Permanent Marker', cursive;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(36,26,18,0.12);
}

/* =========================================================
   GLOBAL OVERFLOW SAFEGUARD
   Fixes the white vertical bar on the right on mobile: it is
   almost always caused by an element (SVG at width:100%, a
   fixed-width row, a flex item) rendering a fraction of a
   pixel wider than the viewport. html/body get a hard clip
   and a max-width lock so nothing can push the page sideways.
   ========================================================= */
html{
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}
body{
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg{ max-width: 100%; }

.container, .container-fluid{ max-width: 100%; }

h1,h2,h3,h4, .display{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--maroon);
}

a{ text-decoration: none; }

.btn{
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  letter-spacing: 0.01em;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover{ transform: translateY(-2px); }

.btn-maroon{ background: var(--maroon); border: 1px solid var(--maroon); color: #fff; }
.btn-maroon:hover{ background: var(--maroon-dark); color:#fff; box-shadow: var(--shadow-soft); }

.btn-outline-cream{ background: transparent; border: 1.5px solid var(--paper); color: var(--paper); }
.btn-outline-cream:hover{ background: var(--paper); color: var(--forest); }

.btn-gold{ background: var(--gold); border: 1px solid var(--gold); color: var(--ink); }
.btn-gold:hover{ background: var(--gold-light); color: var(--ink); box-shadow: var(--shadow-soft); }

.btn-whatsapp{ background: #1f7a3d; border: 1px solid #1f7a3d; color: #fff; }
.btn-whatsapp:hover{ background:#186331; color:#fff; }

/* ============ NAV ============ */
.navbar-custom{
  background: var(--forest);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  width: 100%;
}
.navbar-custom .container{
  flex-wrap: nowrap;
}
.navbar-brand-wrap{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  min-width: 0; /* allow text to shrink/ellipsis instead of forcing overflow */
}
.navbar-brand-wrap .brand-title{
  font-family: var(--font-display);
  font-weight:700;
  font-size: clamp(0.85rem, 3.6vw, 1.15rem);
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62vw;
}
.navbar-brand-wrap .brand-script{
  font-family: var(--font-script);
  font-size: clamp(0.75rem, 2.6vw, 0.95rem);
  color: var(--gold);
  margin-top:-2px;
}

.navbar-toggler{
  border: none;
  padding: 0.35rem 0.5rem;
  box-shadow: none !important;
  flex: 0 0 auto;
}
.navbar-toggler:focus{ box-shadow: none; }
.menu-toggle-label{
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  white-space: nowrap;
}
.navbar-toggler-icon{
  width: 1.4em;
  height: 1.4em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom .nav-link{
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0.35rem;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active{ color: var(--gold); }

/* ============ MOBILE MENU: full-screen solid overlay ============
   Fixed navbars don't push page flow when they expand, so the
   default Bootstrap collapse just floats over whatever content is
   underneath — letting bits of the hero/section text peek through
   mid-sentence. Turning the open panel into a solid, full-height
   overlay (instead of a translucent inline dropdown) removes that
   "bug-looking" overlap entirely. */
@media (max-width: 991.98px){
  .navbar-custom .navbar-collapse{
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--forest);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
    z-index: 1040;
    box-shadow: inset 0 12px 20px -12px rgba(0,0,0,0.35);
  }
  .navbar-custom .navbar-nav{
    height: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
  }
  .navbar-custom .nav-link{
    font-size: 1.2rem;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .navbar-custom .lang-switch{
    justify-content: flex-start;
    margin-top: 1rem;
  }
  /* prevents the page behind the overlay from scrolling while open */
  body.nav-open{ overflow: hidden; }
}

/* ============ NAV LANG SWITCH ============ */
.lang-switch{
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 3px;
  justify-content: center;
  max-width: 100%;
}
.lang-switch button{
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-switch button.active{ background: var(--gold); color: var(--ink); }

/* ============ WAVE DIVIDERS (signature element) ============ */
.wave-divider{
  display:block;
  width:100%;
  line-height:0;
  margin-top:-1px;
  overflow: hidden; /* clip any sub-pixel SVG overshoot that causes horizontal scroll */
}
.wave-divider svg{ width:100%; height: 60px; display:block; }
@media (min-width: 768px){ .wave-divider svg{ height: 90px; } }

/* ============ HERO ============ */
.hero{
  position: relative;
  /* 100vh breaks on iOS Safari because the address bar resizes the
     viewport after load, causing content to jump/clip. 100dvh tracks
     the *actual* visible viewport; svh/vh stacked as fallbacks for
     older browsers. */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display:flex;
  align-items:center;
  color: var(--paper);
  overflow: hidden;
  width: 100%;
}
.hero .hero-bg-placeholder{
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(219,164,0,0.18), transparent 45%),
    linear-gradient(135deg, #123d2c 0%, #06402B 55%, #4d0505 140%);
  z-index:-1;
}
.hero-eyebrow{
  color: var(--gold-light);
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-size:0.8rem;
}
.hero h1{
  color:#fff;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  line-height:1.08;
}
.hero .script-accent{
  font-family: var(--font-script);
  color: var(--gold);
  font-size: clamp(1.6rem, 6vw, 3rem);
  display:block;
  margin-top: 0.2rem;
}
.hero p.lead{
  color: rgba(255,255,255,0.88);
  max-width: 40rem;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
}

.hero-card-float{
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem;
  color: var(--ink);
  max-width: 100%;
}
.hero-card-float .stat{
  font-family: var(--font-display);
  font-weight:700;
  color: var(--maroon);
  font-size:1.6rem;
  line-height:1;
}
.hero-card-float small{
  color: var(--ink-soft);
  display:block;
  margin-top:2px;
}

/* Reliable spacing under the fixed navbar. --navbar-h is measured
   live in JS (syncNavbarHeight); these values are just the
   first-paint fallback before JS runs. */
.hero-content{
  width: 100%;
  padding-top: calc(var(--navbar-h) + 2rem);
  padding-bottom: 2rem;
}
@media (max-width: 575.98px){
  :root{ --navbar-h: 100px; }
  .hero-content{ padding-top: calc(var(--navbar-h) + 1.25rem); }
}

/* ============ SECTION SPACING ============ */
section{ padding: 4.5rem 0; overflow: hidden; }
.section-tight{ padding: 3rem 0; }

.section-title{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.section-lead{ color: var(--ink-soft); max-width: 42rem; }

/* ============ IMAGE PLACEHOLDERS ============ */
.img-ph{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  background: linear-gradient(135deg, var(--sand-deep), var(--sand));
  border: 1.5px dashed rgba(6,64,43,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height: 220px;
  width: 100%;
}
.img-ph .ph-inner{ padding: 1rem; color: var(--forest); }
.img-ph svg{ width:34px; height:34px; opacity:0.55; margin-bottom:0.4rem; }
.img-ph .ph-label{
  font-size:0.78rem;
  font-style:italic;
  color: var(--ink-soft);
  display:block;
  max-width: 15rem;
  margin:0 auto;
}
.img-ph.ratio-hero{ min-height: 420px; }
.img-ph.ratio-square{ aspect-ratio: 1/1; min-height: unset; }
.img-ph.ratio-wide{ aspect-ratio: 16/9; min-height: unset; }

/* ============ ABOUT ============ */
.about-badge{
  background: var(--forest);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight:700;
  letter-spacing:0.06em;
  display:inline-block;
}

.about-photo-frame{
  position: relative;
  padding: 0 18px 18px 0;
  max-width: 100%;
}
.about-photo-frame::before{
  content: "";
  position: absolute;
  top: 22px; left: 22px;
  width: 100%; height: 100%;
  background: var(--gold);
  border-radius: var(--radius);
  z-index: 0;
}
.about-photo{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}

.feature-block{ padding-top: 1.1rem; border-top: 3px solid var(--gold); }
.feature-icon{ width: 32px; height: 32px; color: var(--maroon); margin-bottom: 0.6rem; display: block; }
.feature-block h3{ margin-bottom: 0.35rem; }

/* ============ EXPERIENCE / PRICING CARDS ============ */
.exp-card{
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.7rem;
  height:100%;
  border-top: 5px solid var(--gold);
  transition: transform .2s ease;
}
.exp-card:hover{ transform: translateY(-6px); }
.exp-card .exp-icon{ width:46px; height:46px; color: var(--maroon); margin-bottom: 0.8rem; }
.exp-card h3{ font-size:1.3rem; margin-bottom:0.5rem; }
.exp-card ul{ list-style:none; padding:0; margin: 1rem 0 0 0; }
.exp-card ul li{
  display:flex;
  justify-content:space-between;
  color: var(--maroon);
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(36,26,18,0.15);
  font-size:0.95rem;
}
.exp-card ul li:last-child{ border-bottom:none; }
.exp-card ul li .price{ font-weight:700; color: var(--maroon); font-family: var(--font-display); }
.exp-card .exp-note{ font-size:0.8rem; color: var(--ink-soft); margin-top:0.8rem; }

.transfer-standalone{
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(219,164,0,0.5);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
}
.transfer-standalone strong{ color: var(--gold-light); }

/* ============ COMING SOON CARD ============
   Usado nas secções ainda sem conteúdo definitivo (ex: Competições,
   Aniversários). Segue o mesmo padrão visual dos placeholders de imagem
   (moldura tracejada a dourado) para se manter consistente com o resto
   do site. Basta apagar o bloco no HTML quando o conteúdo real chegar. */
.coming-soon-card{
  max-width: 30rem;
  margin-top: 2.5rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(219,164,0,0.55);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
}
.coming-soon-card .cs-icon{
  width: 42px;
  height: 42px;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.coming-soon-pill{
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.coming-soon-card p{
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============ GALLERY ============ */
.gallery-grid .img-ph{ margin-bottom: 1.4rem; }
.gallery-grid{ margin-bottom: -1.4rem; }

.gallery-filters{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.filter-btn{
  border: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover{ background: rgba(6,64,43,0.08); }
.filter-btn.active{
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
} /* offsets the frame's own bottom margin below */

.gallery-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
  background: var(--sand-deep); /* shows while the photo loads */
}
/* Blurred copy of the same photo behind it, filling the square frame edge to
   edge. Sits UNDER the sharp image (z-index 0) so cropping never removes
   anyone from the shot — it just fills the leftover space around whatever
   doesn't fit the square. --bg-img is set per-frame by main.js. */
.gallery-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.82);
  transform: scale(1.15); /* hides the blur's soft edge from peeking past the frame */
  z-index: 0;
}
.gallery-frame img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.gallery-frame:hover img{ transform: scale(1.06); }

/* ============ STEPS (booking flow) ============ */
.step-item{ display:flex; gap: 1rem; align-items:flex-start; }
.step-num{
  flex:0 0 auto;
  width:44px; height:44px;
  border-radius:50%;
  background: var(--gold);
  color: var(--ink);
  font-weight:700;
  font-family: var(--font-display);
  display:flex; align-items:center; justify-content:center;
}

/* ============ MAP / LOCATION ============ */
.map-embed-ph{ min-height: 340px; border-radius: var(--radius); overflow:hidden; width: 100%; }
.contact-info-list{ list-style:none; padding:0; margin:0; }
.contact-info-list li{
  display:flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-info-list svg{ width:20px; height:20px; flex:0 0 auto; color: var(--gold); margin-top:2px; }

/* ============ BOOKING FORM ============ */
.booking-section{ background: var(--forest); color: var(--paper); }
.booking-section .form-label{ color: rgba(255,255,255,0.85); font-weight:600; font-size:0.88rem; }
.booking-section .form-control,
.booking-section .form-select{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  max-width: 100%;
}
.booking-section .form-control::placeholder{ color: rgba(255,255,255,0.45); }
.booking-section .form-control:focus,
.booking-section .form-select:focus{
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(219,164,0,0.25);
  color:#fff;
}
.booking-section .form-select option{ color:#111; }

.alt-call-box{
  background: rgba(255,255,255,0.07);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align:center;
}
.alt-call-box .call-cost-note{ font-size:0.76rem; color: rgba(255,255,255,0.6); margin-top:0.5rem; }

/* ============ FOOTER ============ */
footer.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.4rem;
  font-size:0.92rem;
  width: 100%;
}
footer.site-footer a{ color: rgba(255,255,255,0.75); }
footer.site-footer a:hover{ color: var(--gold); }
footer.site-footer h5{ color:#fff; font-family: var(--font-display); font-size:1.05rem; margin-bottom:0.9rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner{
  position: fixed;
  left: 1rem; right:1rem; bottom:1rem;
  max-width: 560px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  background: var(--ink);
  color:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.3rem;
  z-index: 1080;
  font-size: 0.88rem;
  display:none;
  /* respect iPhone home-indicator safe area so the banner never
     sits under it */
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
}
.cookie-banner.show{ display:block; }
.cookie-banner a{ color: var(--gold-light); }

.cookie-modal-content{ background: var(--paper); border-radius: var(--radius); }
.cookie-category{ margin-bottom: 0.4rem; }
.form-check-input:checked{ background-color: var(--gold); border-color: var(--gold); }
.form-check-input:focus{ box-shadow: 0 0 0 0.2rem rgba(219,164,0,0.25); }

/* ============ MISC ============ */
.divider-gold{ height:3px; width:60px; background: var(--gold); border-radius:3px; margin: 0.6rem 0 1.2rem; }
.badge-rgpd{
  background: rgba(219,164,0,0.15);
  color: var(--gold);
  border: 1px solid rgba(219,164,0,0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight:700;
}

[data-i18n], [data-i18n-html]{ transition: opacity .12s ease; }

.skip-link{
  position:absolute; left:-9999px; top:auto;
  background: var(--gold); color:var(--ink); padding: 0.6rem 1rem; z-index: 2000;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Legal page */
.legal-page h2{ margin-top:2rem; font-size:1.4rem; }
.legal-page p, .legal-page li{ color: var(--ink-soft); }
.legal-hero{ background: var(--forest); color:#fff; padding: 3.2rem 0 2.4rem; width: 100%; }