/* ============================================================
   HERO — AgadirYOU Premium
   ============================================================ */
.ay-hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#0f172a;margin-top:calc(-1 * var(--hh))}
.ay-hero-bg{position:absolute;inset:0;z-index:0}
.ay-hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.35}
.ay-hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(160deg,rgba(15,23,42,.94) 0%,rgba(15,23,42,.65) 50%,rgba(15,23,42,.9) 100%)}
.ay-hero-content{position:relative;z-index:2;text-align:center;padding:calc(var(--hh) + 60px) 20px 80px;max-width:900px;margin:0 auto}
@media(max-width:640px){.ay-hero-content{padding-top:calc(var(--hh) + 40px)}}

.ay-hero-eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(201,162,39,.12);border:1px solid rgba(201,162,39,.3);border-radius:30px;padding:7px 20px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:var(--gold);margin-bottom:24px}
.ay-hero-eyebrow-dot{width:6px;height:6px;border-radius:50%;background:var(--gold);animation:hero-pulse 2s infinite;flex-shrink:0}
@keyframes hero-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)}}

.ay-hero-title{font-size:clamp(2.8rem,8vw,5.5rem);font-weight:900;color:#fff;line-height:1.02;letter-spacing:-.04em;margin:0 0 22px}
.ay-hero-title em{font-style:normal;color:var(--gold)}

.ay-hero-sub{font-size:clamp(15px,2vw,18px);color:rgba(255,255,255,.55);max-width:620px;margin:0 auto 36px;line-height:1.75}

.ay-hero-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-bottom:36px}
.ay-hero-pill{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:30px;padding:8px 16px;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.75);white-space:nowrap}
.ay-hero-pill svg{width:13px;height:13px;stroke:var(--gold);fill:none;stroke-width:2;stroke-linecap:round;flex-shrink:0}

.ay-hero-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:56px}

.ay-hero-stats{display:flex;justify-content:center;gap:0;max-width:680px;margin:0 auto;border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;background:rgba(255,255,255,.03);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.ay-hero-stat{flex:1;padding:20px 12px;text-align:center;border-right:1px solid rgba(255,255,255,.07)}
.ay-hero-stat:last-child{border:none}
.ay-hero-stat-n{font-size:clamp(20px,3vw,30px);font-weight:900;color:var(--gold);line-height:1;margin-bottom:5px}
.ay-hero-stat-l{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.35)}
@media(max-width:520px){
  .ay-hero-stats{display:grid;grid-template-columns:1fr 1fr}
  .ay-hero-stat{border-right:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}
  .ay-hero-stat:nth-child(2){border-right:none}
  .ay-hero-stat:nth-child(3){border-bottom:none}
  .ay-hero-stat:nth-child(4){border-right:none;border-bottom:none}
}
.ay-hero-scroll{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:8px;color:rgba(255,255,255,.25);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;cursor:pointer;transition:color .2s;border:none;background:none}
.ay-hero-scroll:hover{color:rgba(255,255,255,.5)}
.ay-hero-scroll-line{width:1px;height:40px;background:linear-gradient(to bottom,rgba(255,255,255,.3),transparent);animation:scroll-line 2s ease-in-out infinite}
@keyframes scroll-line{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

/* ============================================================
   QUICK SEARCH BAR (below hero)
   ============================================================ */
.ay-search-bar{background:var(--card);border-bottom:1px solid var(--border);padding:0;position:relative;z-index:10;box-shadow:0 4px 24px rgba(0,0,0,.08)}
.ay-search-bar-inner{max-width:1280px;margin-inline:auto;display:flex;align-items:stretch;gap:0}
.ay-search-field{flex:1;display:flex;flex-direction:column;padding:16px 20px;border-right:1px solid var(--border);min-width:0}
.ay-search-field label{font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:5px;display:flex;align-items:center;gap:5px}
.ay-search-field label svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2}
.ay-search-field input,.ay-search-field select{border:none;background:transparent;font-family:var(--font);font-size:14px;font-weight:600;color:var(--text);width:100%;outline:none}
.ay-search-field input::placeholder{color:var(--muted);font-weight:400}
.ay-search-field select{appearance:none;cursor:pointer}
.ay-search-submit{padding:0 28px;background:var(--gold);border:none;color:#fff;font-family:var(--font);font-size:13px;font-weight:700;letter-spacing:.04em;cursor:pointer;display:flex;align-items:center;gap:8px;white-space:nowrap;transition:background .2s;flex-shrink:0}
.ay-search-submit:hover{background:var(--gold-dk)}
.ay-search-submit svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round}
@media(max-width:768px){
  .ay-search-bar-inner{flex-wrap:wrap}
  .ay-search-field{border-right:none;border-bottom:1px solid var(--border);padding:12px 16px}
  .ay-search-submit{width:100%;justify-content:center;padding:14px}
}

/* ── MOBILE HERO FIXES ────────────────────────────────────── */
@media(max-width:768px){
  .ay-hero-stats{
    grid-template-columns:1fr 1fr!important;
    display:grid!important;
    border-radius:16px;
  }
  .ay-hero-stat{border-right:1px solid rgba(255,255,255,.07)!important;border-bottom:1px solid rgba(255,255,255,.07)!important;padding:16px 10px}
  .ay-hero-stat:nth-child(2){border-right:none!important}
  .ay-hero-stat:nth-child(3){border-bottom:none!important}
  .ay-hero-stat:nth-child(4){border-right:none!important;border-bottom:none!important}
  .ay-hero-ctas{flex-direction:column;align-items:center}
  .ay-hero-ctas .btn{width:100%;max-width:300px}
  .ay-hero-pills{justify-content:flex-start}
  .ay-search-bar-inner{flex-wrap:wrap}
  .ay-search-field{border-right:none!important;border-bottom:1px solid var(--border);padding:12px 16px}
  .ay-search-submit{width:100%;justify-content:center;padding:14px}
}

/* ── Search bar — vertical stack on mobile (only) ─────────── */
@media (max-width: 640px) {
  .ay-search-bar-inner {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .ay-search-field {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 13px 16px !important;
  }
  .ay-search-submit {
    width: 100% !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
  }
}

/* ── Pills always centered on mobile ──────────────────────── */
@media (max-width: 640px) {
  .ay-hero-pills { justify-content: center !important; }
  .ay-hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .ay-hero-title em { display: inline; }
  .ay-hero-ctas { justify-content: center; }
}
