/* AutoMart Premium Header + Hero V8.0
   Exact implementation pass based on the user-approved premium header/hero direction.
   Scope: public header + homepage hero only. */
:root{
  --v8-green:#07945a;
  --v8-green-dark:#057246;
  --v8-green-bright:#16c978;
  --v8-ink:#0a1520;
  --v8-muted:#64726c;
  --v8-white:#fff;
}

/* ---------- premium floating header ---------- */
.premium-topbar{position:relative;z-index:90;padding:14px 0;background:#fff;border-bottom:1px solid #edf1ef}
.home-page .premium-topbar{position:absolute;left:0;right:0;top:0;background:transparent;border:0;padding:28px 0 0}
.premium-nav-shell{width:min(1280px,calc(100% - 64px));min-height:76px;margin:0 auto;display:flex;align-items:center;gap:28px;padding:0 20px;border:1px solid rgba(223,231,227,.94);border-radius:22px;background:rgba(255,255,255,.95);box-shadow:0 18px 48px rgba(5,25,16,.16),inset 0 1px 0 rgba(255,255,255,.85);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:min-height .22s ease,box-shadow .22s ease,transform .22s ease,border-radius .22s ease}
.premium-topbar.is-scrolled{position:fixed;left:0;right:0;top:0;padding:8px 0;background:transparent;animation:v8SlideDown .2s ease both}
.premium-topbar.is-scrolled .premium-nav-shell{min-height:64px;box-shadow:0 14px 38px rgba(7,24,17,.18);border-radius:18px}
@keyframes v8SlideDown{from{transform:translateY(-16px);opacity:.35}to{transform:translateY(0);opacity:1}}
.premium-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;color:var(--v8-ink);text-decoration:none}
.premium-brandmark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:#fff;font-size:25px;font-weight:800;letter-spacing:-.08em;background:linear-gradient(145deg,#15b76d,#057848);box-shadow:0 9px 20px rgba(7,148,90,.28),inset 0 1px 0 rgba(255,255,255,.3)}
.premium-brandword{font-size:25px;font-weight:800;letter-spacing:-.04em;color:#0a1520}
.premium-nav-divider,.premium-actions-divider{display:block;width:1px;height:34px;background:#e8ecea}
.premium-desktop-nav{display:flex;align-items:center;gap:8px;flex:1}
.premium-desktop-nav a{position:relative;padding:12px 15px;border-radius:999px;color:#1f2a36;font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap;transition:.2s ease}
.premium-desktop-nav a:hover,.premium-desktop-nav a.active{color:#086f46;background:#eff9f4}
.premium-desktop-nav a.active:after{content:"";position:absolute;left:18px;right:18px;bottom:5px;height:2px;border-radius:2px;background:#0ca765}
.premium-nav-actions{display:flex;align-items:center;gap:9px;margin-left:auto}
.premium-icon-btn{position:relative;display:grid;place-items:center;width:45px;height:45px;border-radius:50%;border:1px solid #e7ece9;background:#fff;color:#0c1720;box-shadow:0 6px 16px rgba(8,27,18,.07);text-decoration:none;transition:.2s ease}
.premium-icon-btn:hover{transform:translateY(-2px);border-color:#cde7d8;box-shadow:0 10px 22px rgba(8,27,18,.12)}
.premium-icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.premium-favorite-dot{position:absolute;width:8px;height:8px;border-radius:50%;right:8px;top:7px;background:#ef4444;box-shadow:0 0 0 2px #fff}
.premium-login{display:flex;align-items:center;justify-content:center;min-height:45px;padding:0 16px;border-radius:13px;color:#15202a;font-size:14px;font-weight:650;text-decoration:none}
.premium-login:hover{background:#f5f7f6}
.premium-signup{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 23px;border-radius:14px;background:linear-gradient(135deg,#07945a,#057a49);color:#fff!important;font-size:14px;font-weight:750;text-decoration:none;box-shadow:0 10px 23px rgba(7,148,90,.23);transition:.2s ease}
.premium-signup:hover{transform:translateY(-2px);box-shadow:0 14px 29px rgba(7,148,90,.31)}

/* ---------- rich premium hero ---------- */
.premium-home-hero{padding:0 0 24px;background:#fff}
.premium-hero-stage{position:relative;isolation:isolate;overflow:hidden;min-height:790px;padding:190px 54px 42px;border-radius:0 0 28px 28px;color:#fff;background-image:linear-gradient(90deg,rgba(3,18,13,.96) 0%,rgba(4,22,15,.83) 36%,rgba(5,19,14,.37) 58%,rgba(5,18,13,.10) 79%),linear-gradient(0deg,rgba(3,14,10,.44),rgba(3,14,10,0) 48%),url('https://images.pexels.com/photos/19758141/pexels-photo-19758141/free-photo-of-black-toyota-land-cruiser-prado-on-road.jpeg?auto=compress&cs=tinysrgb&w=1800');background-size:cover;background-position:center 52%;box-shadow:0 26px 60px rgba(9,27,19,.14)}
.premium-hero-stage:before{content:"";position:absolute;z-index:-1;inset:-1px;background:radial-gradient(circle at 72% 28%,rgba(255,198,119,.23),transparent 26%),radial-gradient(circle at 24% 75%,rgba(8,148,90,.18),transparent 28%);pointer-events:none}
.premium-hero-copy{width:min(780px,59%)}
.premium-hero-kicker{display:flex;align-items:center;gap:13px;margin-bottom:18px;color:#d3e2dc;text-transform:uppercase;letter-spacing:.26em;font-size:12px;font-weight:650}
.premium-hero-kicker span{width:44px;height:2px;border-radius:5px;background:linear-gradient(90deg,#18cf7c,#8bf0b5)}
.premium-hero-copy h1{margin:0 0 12px;color:#fff;font-size:76px;font-weight:800;line-height:.98;letter-spacing:-.055em;text-shadow:0 4px 20px rgba(0,0,0,.22)}
.premium-hero-copy h1 strong{display:inline-block;font:inherit;color:transparent;background:linear-gradient(100deg,#70efa8 0%,#18cb79 66%,#10ae66 100%);-webkit-background-clip:text;background-clip:text}
.premium-hero-copy h2{margin:0 0 11px;color:#fff;font-size:26px;font-weight:650;letter-spacing:-.025em}
.premium-hero-copy>p{max-width:650px;margin:0;color:#d4dfda;font-size:16px;line-height:1.62}

.premium-search-panel{width:min(850px,100%);margin-top:30px;padding:0 18px 17px;border:1px solid rgba(255,255,255,.56);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 24px 55px rgba(0,0,0,.26);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.premium-search-tabs{display:flex;align-items:center;gap:8px;margin:0 -4px 12px;padding:8px 0 0}
.premium-search-tabs button{position:relative;display:flex;align-items:center;gap:8px;min-width:104px;height:51px;padding:0 18px;border:0;background:transparent;color:#26312d;font-size:13px;font-weight:700;cursor:pointer}
.premium-search-tabs button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.premium-search-tabs button.active{color:#087f50}
.premium-search-tabs button.active:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;border-radius:3px;background:linear-gradient(90deg,#08a15f,#24d68a)}
.premium-hero-search{display:grid;grid-template-columns:1fr 1fr 1.05fr 170px;gap:11px;align-items:end}
.premium-hero-search label{display:flex;flex-direction:column;gap:6px;color:#56645e;font-size:12px;font-weight:650}
.premium-hero-search select{width:100%;height:52px;padding:0 42px 0 14px;border:1px solid #dfe5e2;border-radius:11px;background:#fff;color:#1b2822;font-size:14px;font-weight:550;box-shadow:0 3px 12px rgba(13,39,27,.035);outline:none}
.premium-hero-search select:focus{border-color:#9fd1b8;box-shadow:0 0 0 3px rgba(9,148,90,.10)}
.premium-search-button{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;border:0;border-radius:12px;background:linear-gradient(135deg,#08985c,#057747);color:#fff;font-size:15px;font-weight:750;box-shadow:0 12px 25px rgba(6,130,77,.24);cursor:pointer;transition:.2s ease}
.premium-search-button:hover{transform:translateY(-1px);box-shadow:0 15px 28px rgba(6,130,77,.31)}
.premium-search-button svg,.premium-more-filters svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.premium-more-filters{display:inline-flex;align-items:center;gap:8px;margin-top:10px;color:#08794b;font-size:12px;font-weight:700;text-decoration:none}
.premium-more-filters span{font-size:17px}

.premium-hero-trust{display:flex;gap:42px;margin-top:24px}
.premium-hero-trust>div{display:flex;align-items:center;gap:10px;min-width:0}
.trust-icon{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(114,235,165,.28);border-radius:10px;background:rgba(8,148,90,.14);color:#6ce5a0;font-size:16px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.premium-hero-trust p{display:flex;flex-direction:column;margin:0;line-height:1.25}
.premium-hero-trust strong{color:#f5faf7;font-size:12px;font-weight:700}
.premium-hero-trust small{margin-top:3px;color:#aebbb5;font-size:12px}

.premium-hero-glass-card{position:absolute;right:36px;bottom:64px;width:300px;padding:22px;border:1px solid rgba(255,255,255,.19);border-radius:20px;background:linear-gradient(145deg,rgba(5,23,16,.83),rgba(8,27,20,.58));box-shadow:0 22px 46px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.10);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.glass-topline{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:#bcebd0;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}
.glass-shield{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#0ea666;color:#fff}
.premium-hero-glass-card>strong{display:block;color:#fff;font-size:22px;line-height:1.15;letter-spacing:-.03em}
.premium-hero-glass-card>p{margin:9px 0 14px;color:#c0cbc6;font-size:12px;line-height:1.55}
.glass-rating{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-top:1px solid rgba(255,255,255,.10);border-bottom:1px solid rgba(255,255,255,.10)}
.glass-rating span{color:#39d98a;font-size:16px;letter-spacing:.12em}
.glass-rating small{color:#aebcb5;font-size:12px}
.premium-hero-glass-card>a{display:flex;align-items:center;justify-content:space-between;margin-top:13px;color:#fff;font-size:12px;font-weight:700;text-decoration:none}
.premium-hero-glass-card>a b{font-size:18px}
.premium-scroll-cue{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;color:#bbc8c2;font-size:12px;text-transform:uppercase;letter-spacing:.28em}
.premium-scroll-cue i{display:block;width:18px;height:18px;border-right:1px solid #dce7e2;border-bottom:1px solid #dce7e2;transform:rotate(45deg)}

@media(max-width:1180px){
  .premium-nav-shell{width:calc(100% - 28px);gap:18px}.premium-nav-divider{display:none}.premium-desktop-nav{gap:2px}.premium-desktop-nav a{padding:11px 10px;font-size:13px}.premium-brandword{font-size:22px}
  .premium-hero-stage{min-height:720px;padding:170px 34px 36px;background-position:58% center}.premium-hero-copy{width:66%}.premium-hero-copy h1{font-size:62px}.premium-hero-copy h2{font-size:22px}
  .premium-hero-glass-card{right:24px;width:260px}.premium-search-panel{max-width:760px}.premium-hero-search{grid-template-columns:1fr 1fr 1fr 145px}.premium-hero-trust{gap:24px}
}

@media(max-width:920px){
  .premium-topbar,.home-page .premium-topbar{padding:10px 0 0}.premium-nav-shell{min-height:64px;border-radius:17px;padding:0 13px}.premium-brandmark{width:39px;height:39px;border-radius:10px}.premium-brandword{font-size:21px}.premium-desktop-nav{display:none}.premium-actions-divider{display:none}.premium-login{padding:0 10px}.premium-signup{min-height:43px;padding:0 17px}
  .premium-hero-stage{min-height:760px;padding:140px 28px 35px;background-position:61% center}.premium-hero-copy{width:74%}.premium-hero-copy h1{font-size:58px}.premium-hero-glass-card{display:none}.premium-search-panel{max-width:720px}.premium-hero-search{grid-template-columns:1fr 1fr}.premium-search-button{grid-column:2}.location-field{grid-column:1}.premium-hero-trust{flex-wrap:wrap}
}

@media(max-width:720px){
  .premium-topbar,.home-page .premium-topbar{padding:8px 0 0}.premium-topbar.is-scrolled{padding:6px 0}.premium-nav-shell{width:calc(100% - 16px);min-height:58px;border-radius:15px;padding:0 9px;gap:8px}.premium-topbar.is-scrolled .premium-nav-shell{min-height:56px;border-radius:14px}.premium-brand{gap:8px}.premium-brandmark{width:36px;height:36px;border-radius:9px;font-size:20px}.premium-brandword{font-size:19px}.premium-icon-btn{width:38px;height:38px}.premium-icon-btn svg{width:19px;height:19px}.premium-nav-actions{gap:5px}.premium-login{display:none}.premium-signup{min-height:39px;padding:0 13px;border-radius:10px;font-size:12px}.favorite-btn{display:none}
  .premium-home-hero{padding-bottom:12px}.premium-hero-stage{width:100%;min-height:710px;border-radius:0;padding:112px 14px 26px;align-items:flex-end;background-image:linear-gradient(180deg,rgba(3,15,10,.10) 0%,rgba(3,15,10,.26) 24%,rgba(3,15,10,.82) 58%,rgba(3,15,10,.98) 78%),url('https://images.pexels.com/photos/19758141/pexels-photo-19758141/free-photo-of-black-toyota-land-cruiser-prado-on-road.jpeg?auto=compress&cs=tinysrgb&w=900');background-position:center top;box-shadow:none}.premium-hero-copy{width:100%;align-self:flex-end}.premium-hero-kicker{margin-bottom:12px;font-size:12px;letter-spacing:.19em}.premium-hero-kicker span{width:30px}.premium-hero-copy h1{font-size:44px;line-height:.98}.premium-hero-copy h2{font-size:18px}.premium-hero-copy>p{font-size:13px;line-height:1.5;max-width:95%}
  .premium-search-panel{margin-top:18px;padding:0 11px 12px;border-radius:14px}.premium-search-tabs{margin-bottom:8px}.premium-search-tabs button{min-width:auto;flex:1;height:45px;padding:0 8px;justify-content:center;font-size:12px}.premium-search-tabs button svg{width:16px;height:16px}.premium-hero-search{grid-template-columns:1fr;gap:8px}.premium-hero-search label,.location-field,.premium-search-button{grid-column:auto}.premium-hero-search label span{display:none}.premium-hero-search select,.premium-search-button{height:46px}.premium-search-button{font-size:14px}.premium-more-filters{margin-top:9px;font-size:12px}.premium-hero-trust{display:none}.premium-scroll-cue{display:none}
}
