/* ==========================================================================
   Clean Ride Limo - Party Bus Rental Florida landing page
   ========================================================================== */

:root{
  --red:#da291c;
  --red-dark:#b21f14;
  --ink:#0a0a10;
  --ink-2:#12121b;
  --navy:#151a33;
  --white:#fff;
  --body:#4a4a55;
  --line:#e6e6ec;
  --green:#2fb457;
  --gold:#fbbc04;
  --wrap:1180px;
  --radius:10px;
  --font:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  color:var(--body);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{margin:0 0 .5em;line-height:1.2;color:var(--ink);font-weight:800}
p{margin:0 0 1em}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:.5rem;
  padding:16px 30px;
  border:2px solid transparent;
  border-radius:var(--radius);
  font:inherit;font-weight:700;font-size:1.0625rem;
  text-decoration:none;text-align:center;
  cursor:pointer;
  transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease,color .18s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.btn--red{background:var(--red);color:#fff;box-shadow:0 8px 22px rgba(218,41,28,.32)}
.btn--red:hover{background:var(--red-dark)}
.btn--dark{background:var(--ink);color:#fff;border-color:#000}
.btn--dark:hover{background:#000}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn--ghost:hover{background:#fff;color:var(--ink);border-color:#fff}

/* ---------- Header ---------- */
.topbar{background:var(--ink);padding:14px 0}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.topbar__logo img{width:230px}
.topbar__right{display:flex;align-items:center;gap:26px}
.topbar__nla{width:110px}
.topbar__call{text-align:right;line-height:1.2}
.topbar__calllabel{display:block;color:var(--red);font-size:.8125rem;font-weight:600;letter-spacing:.02em}
.topbar__phone{
  display:inline-flex;align-items:center;gap:8px;
  color:#fff;font-size:1.75rem;font-weight:800;text-decoration:none;
}
.topbar__phone svg{width:24px;height:24px;fill:var(--red);flex:none}
.topbar__phone:hover{color:var(--red)}

/* ---------- Trust strip ---------- */
.trust{background:var(--navy);border-top:1px solid rgba(255,255,255,.07)}
.trust__inner{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:10px;padding-top:14px;padding-bottom:14px;
}
.trust__item{
  display:flex;align-items:center;justify-content:center;gap:10px;
  color:#fff;font-size:.875rem;font-weight:500;
}
.trust__item svg{width:18px;height:18px;fill:#fff;opacity:.9;flex:none}

/* ---------- Hero ---------- */
.hero{position:relative;background:var(--ink);color:#fff;overflow:hidden}
.hero__bg{
  position:absolute;inset:0;
  background:url("/assets/hero-limo-dark.png?v=2") center/cover no-repeat;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,8,14,.9) 0%,rgba(8,8,14,.72) 42%,rgba(8,8,14,.42) 100%);
}
.hero__inner{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;
  padding-top:64px;padding-bottom:64px;
}
.hero h1{
  color:#fff;font-size:clamp(2.1rem,4.4vw,3.5rem);
  letter-spacing:-.01em;margin-bottom:.35em;
}
.hero__sub{font-size:1.0625rem;color:rgba(255,255,255,.82);max-width:36em;margin-bottom:1.6em}

.checks{list-style:none;margin:0 0 32px;padding:0;display:grid;gap:14px}
.checks li{display:flex;align-items:center;gap:12px;font-size:1.1875rem;font-weight:500;color:#fff}
.checks svg{width:22px;height:22px;fill:var(--green);flex:none}

.hero__ctas{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:28px}
.hero__nla{width:150px;opacity:.95}

.hero__aside{display:grid;gap:22px}
.hero__photo{position:relative;margin:0;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.55)}
.hero__photo img{width:100%}
.hero__photo .hero__photo-nla{display:none} /* mobile-only overlay, see media query */
.badge{
  position:absolute;top:16px;left:16px;z-index:2;
  width:78px;height:78px;border-radius:50%;
  background:var(--red);color:#fff;
  display:flex;align-items:center;justify-content:center;
  text-align:center;font-weight:800;font-size:1.125rem;line-height:1.05;
  box-shadow:0 8px 20px rgba(0,0,0,.4);
}

/* ---------- Google rating badge ---------- */
.gbadge{
  display:inline-flex;align-items:center;gap:12px;
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:9px 20px 9px 13px;margin-bottom:26px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.gbadge__g{width:26px;height:26px;flex:none}
.gbadge__body{display:grid;gap:2px;text-align:left}
.gbadge__top{display:flex;align-items:center;gap:7px;line-height:1}
.gbadge__rating{font-size:1.0625rem;font-weight:800;color:var(--ink)}
.gbadge .stars{font-size:.9375rem;letter-spacing:1px}
.gbadge__on{font-size:.8125rem;color:var(--body)}
.gbadge__sub{font-size:.75rem;color:#8a8a97;line-height:1.2}

/* rating stars filled to the real score, not a full five */
.stars--rated{position:relative;display:inline-block;white-space:nowrap}
.stars--rated .stars__bg{color:#d5d5dd}
.stars--rated .stars__fill{
  position:absolute;left:0;top:0;overflow:hidden;
  width:92%;                 /* 4.6 of 5 */
  color:var(--gold);
}

/* ---------- Review cards ---------- */
.review{
  margin:0;background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:24px;color:var(--body);
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.review__g{width:34px;height:34px;margin:0 auto 10px}
.review blockquote{margin:0 0 16px;font-size:.9375rem;line-height:1.65;text-align:center}
.review figcaption{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.review__name{font-weight:700;color:var(--ink);font-size:.9375rem}
.avatar{
  width:34px;height:34px;border-radius:50%;
  background:#f0913c;color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1rem;flex:none;
}
.stars{color:var(--gold);letter-spacing:2px;font-size:1rem}
.review--hero{box-shadow:0 18px 44px rgba(0,0,0,.35)}

/* ---------- Fleet ---------- */
.fleet{padding:80px 0 64px;background:#fff}
.vehicle{
  display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;
  padding-bottom:64px;margin-bottom:56px;border-bottom:1px solid var(--line);
}
.vehicle--flip .vehicle__gallery{order:2}
.vehicle__gallery{display:grid;gap:16px}
.vehicle__gallery figure{position:relative;margin:0;border-radius:12px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.14)}
.vehicle__gallery img{width:100%}
.vehicle__gallery figcaption{
  position:absolute;left:12px;bottom:12px;
  background:rgba(10,10,16,.82);color:#fff;
  padding:5px 12px;border-radius:6px;
  font-size:.6875rem;font-weight:700;letter-spacing:.12em;
}
.vehicle__body h2{font-size:clamp(1.6rem,2.6vw,2.25rem);margin-bottom:.4em}
.vehicle__body p{font-size:.9875rem;line-height:1.75}
.vehicle__body .btn{margin-top:12px}
.capacity{
  display:inline-flex;align-items:center;gap:8px;
  background:#f4f4f8;border-radius:999px;padding:7px 16px;
  font-size:.875rem;color:var(--ink);margin-bottom:14px;
}
.capacity svg{width:17px;height:17px;fill:var(--red)}
.capacity strong{font-size:1.0625rem}

.vehicle:last-of-type{border-bottom:0;padding-bottom:24px;margin-bottom:32px}

.fleet__outro{text-align:center;max-width:760px;margin:0 auto}
.fleet__outro h2{font-size:clamp(1.6rem,3vw,2.375rem)}
.fleet__outro p{font-size:1.125rem;margin:0}

/* ---------- CTA bands ---------- */
.band{background:var(--ink);color:#fff;padding:56px 0}
.band--alt{
  background:linear-gradient(rgba(8,8,14,.86),rgba(8,8,14,.86)),url("/assets/hero-limo-dark.png?v=2") center/cover no-repeat;
}
.band__inner{text-align:center}
.band h2{color:#fff;font-size:clamp(1.5rem,2.8vw,2.125rem);max-width:22ch;margin:0 auto .5em}
.band p{color:rgba(255,255,255,.8);margin-bottom:1.5em}
.band__ctas{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}

/* ---------- Reviews section ---------- */
.reviews{padding:80px 0;background:#f7f7fa}
.section-head{text-align:center;max-width:720px;margin:0 auto 44px}
.section-head h2{font-size:clamp(1.7rem,3vw,2.375rem)}
.section-head p{font-size:1.0625rem;margin:0}
.reviews__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.reviews__grid .review{display:flex;flex-direction:column;align-items:center;padding:28px 24px}
.reviews__grid .stars{margin-bottom:14px}
.reviews__grid blockquote{flex:1}

/* ---------- About ---------- */
.about{padding:80px 0;background:#fff}
.about__inner{max-width:760px;margin-inline:auto;text-align:center}
.about__copy h2{font-size:clamp(1.7rem,3vw,2.375rem)}
.about__copy p{font-size:1.0125rem;line-height:1.75}
.about__copy .band__ctas{justify-content:center;margin-top:26px}

/* ---------- Footer ---------- */
.footer{background:var(--ink);color:rgba(255,255,255,.75);padding:52px 0 100px}
.footer__inner{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;align-items:start}
.footer img{width:220px}
.footer__logo{width:230px}
.footer a{color:#fff;text-decoration:none}
.footer a:hover{color:var(--red)}
.footer__copy{margin-top:18px;font-size:.875rem}
/* own row so each link can carry a 44px touch target without breaking the
   copyright line */
.footer__links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:2px 0 0}
.footer__links a{padding:11px 2px;display:inline-block}
.footer address{font-style:normal;display:grid;gap:10px;justify-items:start;font-size:.9375rem}
.footer__phone{display:inline-flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700}
.footer__phone svg{width:20px;height:20px;fill:var(--red)}
.footer address p{margin:0}
.footer__col--right{justify-self:end}
.footer__col--right img{width:170px}

/* ---------- Sticky mobile bar ---------- */
.mobilebar{
  display:none;
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  gap:10px;padding:10px 12px;
  background:rgba(10,10,16,.96);
  border-top:1px solid rgba(255,255,255,.12);
  /* always on screen, so the call and book actions are never more than a tap
     away; the page reserves room for it below so nothing sits underneath */
  padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
}
.mobilebar .btn{flex:1;padding:14px 10px;font-size:.9375rem;white-space:nowrap}
/* narrow handsets: keep the phone number on one line, or the bar grows to
   two rows and stops matching the space reserved for it at the page foot */
@media (max-width:389px){.mobilebar .btn{font-size:.875rem;padding:14px 6px}}


/* ---------- Lead form popup ----------
   The iframe is loaded with the page and simply revealed on click, so there is
   no wait when someone taps a Book button. */
.formpop{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;overflow-y:auto}
.formpop[hidden]{display:none}
.formpop__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}
.formpop__panel{position:relative;width:100%;max-width:min(94vw,560px);margin:auto}
/* transparent: the form renders its own white card, so a background here
   would show as a second panel behind it */
.formpop__frame{width:100%;height:min(84vh,700px);border:0;background:transparent;display:block}

/* off-screen until opened, so it never blocks the page while preloading */
.formpop--preloading{position:fixed;left:-99999px;top:0;width:560px;height:640px;opacity:0;pointer-events:none}

@media (max-width:720px){
  .formpop{padding:14px 10px}
  .formpop__frame{height:min(88vh,700px)}
  
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:960px){
  .hero__inner{grid-template-columns:1fr;gap:36px;padding-top:44px;padding-bottom:48px}
  .hero__copy{text-align:center}
  .hero__sub{margin-inline:auto}
  .checks{justify-items:center}
  .hero__ctas{justify-content:center}
  .hero__nla{margin-inline:auto}
  .vehicle,.vehicle--flip .vehicle__gallery{grid-template-columns:1fr;order:0}
  .vehicle__gallery{grid-template-columns:1fr 1fr}
  .reviews__grid{grid-template-columns:1fr}
  .footer__inner{grid-template-columns:1fr;justify-items:center;text-align:center;gap:26px}
  .footer__col img{margin-inline:auto} /* images are display:block, so text-align cannot centre them */
  .footer__links{justify-content:center}
  .footer address{justify-items:center}
  .footer__phone{padding:7px 0}
  .footer address a[href^="mailto"]{padding:10px 0}
  .footer__col--right{justify-self:center}
}

/* --------------------------------------------------------------------------
   Mobile: the hero inverts to a light theme below a dark header bar, and is
   reordered to  headline > subhead > photo > call > book > checks > review.
   -------------------------------------------------------------------------- */
@media (max-width:720px){
  /* dark bar, as the brand uses this logo everywhere else - cleanridelimo.com
     runs the same wordmark on a black header, so no recolouring is needed */
  .topbar{background:var(--ink);padding:16px 0}
  .topbar__inner{justify-content:center;text-align:center}
  .topbar__logo img{width:224px}
  /* logo only - the sticky bar and the hero button both carry the phone number */
  .topbar__right{display:none}

  /* trust strip is desktop-only */
  .trust{display:none}

  /* hero: light background, no photographic backdrop */
  .hero{background:#fff}
  .hero__bg{display:none}
  .hero::after{display:none}
  .hero__inner{padding-top:16px;padding-bottom:30px;gap:14px}

  /* flatten both columns so the seven blocks can be ordered freely */
  .hero__copy,.hero__aside{display:contents}
  /* social proof leads on mobile, above the headline */
  .gbadge{order:1}
  .hero h1{order:2;color:var(--ink);font-size:1.625rem;margin:0}
  .hero__sub{order:3;color:var(--body);font-size:1rem;margin:0}
  /* no drop shadow on the light background - the photo sits flat */
  /* plain on mobile: no card, no shadow, no outline - it sits on the white hero */
  .gbadge{margin:0 auto;padding:8px 16px 8px 11px;border-radius:12px;box-shadow:none;border:0}
  .gbadge__g{width:23px;height:23px}
  .hero__photo{order:4;box-shadow:none}
  .hero__ctas{order:5;flex-direction:column;gap:14px;margin:0}
  .checks{order:6;margin:0;gap:10px;width:100%;justify-items:center}
  .checks li{color:var(--ink);justify-content:center}
  .review--hero{order:7;box-shadow:0 8px 24px rgba(0,0,0,.08)}
  /* the badge rides on the hero photo instead, so it lands above the fold.
     white artwork on a translucent dark chip stays legible over the neon shot */
  .hero__nla{display:none}
  /* selector must outrank .hero__photo img{width:100%} */
  .hero__photo .hero__photo-nla{
    display:block;position:absolute;z-index:2;
    right:14px;bottom:14px;
    width:110px;
    /* sits bare on the photo - the shadow keeps white artwork legible
       where the neon interior goes bright behind it */
    filter:drop-shadow(0 2px 5px rgba(0,0,0,.9)) drop-shadow(0 0 12px rgba(0,0,0,.6));
  }

  /* both hero buttons share one treatment: same box, same neutral shadow */
  .hero__ctas .hero__cta--call,
  .hero__ctas .hero__cta--book{
    padding:13px 24px;
    border-radius:8px;
    box-shadow:0 3px 8px rgba(0,0,0,.22);
  }
  /* call is the red primary and sits above the black book button */
  .hero__ctas .hero__cta--call{order:1;background:var(--red);color:#fff;border-color:transparent}
  .hero__ctas .hero__cta--call:hover{background:var(--red-dark);color:#fff}
  .hero__ctas .hero__cta--book{order:2;background:var(--ink);color:#fff;border-color:#000}
  .hero__ctas .hero__cta--book:hover{background:#000}

  .hero__ctas .btn,.band__ctas .btn{width:100%}
  .checks li{font-size:1.0625rem}
  .fleet{padding:56px 0 40px}
  .vehicle{gap:28px;padding-bottom:44px;margin-bottom:40px}
  .vehicle__gallery{grid-template-columns:1fr}
  /* vehicle copy centres too, so the whole mobile page shares one axis */
  .vehicle__body{text-align:center}
  .vehicle__body .btn{width:100%}
  .reviews,.about{padding:56px 0}
  .mobilebar{display:flex}
  /* clear the fixed bar so the last footer row is still reachable */
  body{padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px))}
}

/* Short phones (iPhone SE/8 and similar) ---------------------------------
   The sticky bar owns the bottom 77px of the viewport, which on anything
   shorter than about 750px lands squarely on the hero's two CTAs. This tightens the stack
   above them - spacing first, then type, then a crop on the photo - so
   both buttons sit clear of the bar rather than half behind it.
------------------------------------------------------------------------ */
@media (max-width:720px) and (max-height:750px){
  .hero__inner{padding-top:4px;padding-bottom:20px;gap:8px}
  .gbadge{padding:5px 14px 5px 9px}
  .gbadge__g{width:20px;height:20px}
  .gbadge__rating{font-size:1rem}
  .gbadge__sub{font-size:.6875rem}
  .hero h1{font-size:1.375rem}
  .hero__sub{font-size:.875rem;line-height:1.45}
  .hero__photo img:not(.hero__photo-nla){max-height:165px;object-fit:cover}
  .hero__ctas{gap:10px}
  .hero__ctas .btn{padding:15px 12px}
}

/* Very short phones (360x640 and similar): the same squeeze, taken further.
   Below roughly 600px of viewport height the hero cannot fit above the bar
   at any sensible type size, and the CTAs fall to a scroll - which is normal
   mobile behaviour, and the bar carries the same two actions regardless. */
@media (max-width:720px) and (max-height:660px){
  .hero__inner{gap:6px}
  .hero__sub{font-size:.8125rem}
  .hero__photo img:not(.hero__photo-nla){max-height:120px}
  .hero__ctas{gap:8px}
  .hero__ctas .btn{padding:13px 12px}
}

/* 320x568 and the like - the last squeeze that still leaves both CTAs clear. */
@media (max-width:720px) and (max-height:600px){
  .hero__photo img:not(.hero__photo-nla){max-height:96px}
  .hero__sub{font-size:.78125rem}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
  .btn:hover{transform:none}
}
