/* ELAAM demo — responsive rules */
/* Never let any element widen the page past the viewport.
   `clip` (not a scroll container, so the sticky header keeps working)
   with `hidden` as the fallback for older browsers. */
html,body{overflow-x:hidden;overflow-x:clip}
@media (max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .testi-grid{grid-template-columns:repeat(2,1fr)}
  .gal{columns:2}
  .gal-strip{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .mobile-bar{display:flex}
  body{padding-bottom:54px}
  .head-call{display:none}
}
@media (max-width:860px){
  /* The header's backdrop-filter makes it the containing block for fixed
     descendants, which trapped the panel inside the header box (short
     background, links spilling onto the hero, panel widening the page).
     Dropping the blur at this size lets the panel anchor to the viewport;
     the header background is 96% opaque ivory, so nothing visibly changes. */
  .site-head{backdrop-filter:none;-webkit-backdrop-filter:none}
  .main-nav{position:fixed;top:0;right:0;bottom:0;left:auto;width:min(340px,86vw);max-width:340px;height:100vh;height:100dvh;background:var(--ivory);z-index:65;transform:translateX(105%);visibility:hidden;transition:transform .35s ease,visibility 0s linear .35s;box-shadow:-14px 0 40px rgba(61,10,21,.2);padding:96px 30px 30px;overflow-y:auto;overscroll-behavior:contain}
  .main-nav.open{transform:translateX(0);visibility:visible;transition:transform .35s ease}
  /* Decorative offsets on the split photo must stay inside the wrap margins */
  .split .ph::before{left:-8px}
  .split .ph .badge{right:8px}
  .main-nav ul{flex-direction:column;gap:6px}
  .main-nav a{display:block;padding:12px 4px;font-size:1rem;border-bottom:1px solid var(--line)}
  .main-nav a.active{border-color:var(--line);color:var(--maroon)}
  .burger{display:block;z-index:66;position:relative}
  .burger.x span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .burger.x span:nth-child(2){opacity:0}
  .burger.x span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .head-cta .btn{padding:11px 16px;font-size:.85rem}
  .split{grid-template-columns:1fr;gap:36px}
  .split .ph img{height:400px}
  .duo{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  section{padding:62px 0}
  .hero{min-height:86vh}
  .hero-meta{right:auto;left:4%;bottom:20px}
}
@media (max-width:560px){
  .grid-3,.grid-2,.testi-grid{grid-template-columns:1fr}
  .gal{columns:1}
  .gal-strip{grid-template-columns:1fr}
  .gal-strip figure{height:220px}
  .frow{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr;gap:28px;padding:48px 0 34px}
  .hero-in{padding:90px 0 84px}
  .hero-btns .btn{width:100%;justify-content:center}
  .trust-in{gap:14px 22px}
  .trust .t-sep{display:none}
  .split .ph .badge{right:8px}
  .cta-in{padding:48px 0}
  .cta-btns .btn{width:100%;justify-content:center}
  .form-card{padding:24px 20px}
  .logo .l-name{font-size:1.5rem}
}
