/*
Theme Name: Ride Fresh
Theme URI: https://ridefresh.in
Description: GeneratePress child theme for the Ride Fresh single-page site. All content editable via ACF.
Author: Vischari Solutions LLP
Template: generatepress
Version: 1.0.0
Text Domain: ridefresh
*/

:root {
  --orange: #ea580c;
  --orange-bright: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #fff7ed;
  --orange-line: #fed7aa;
  --ink: #16130f;
  --ink-card: #211c16;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --green: #16a34a;
  --wa: #25d366;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* NOTE: keep html overflow untouched (visible). body's overflow-x:hidden then
   propagates to the viewport (clipping + mobile layout-viewport sizing) while
   body itself stays a non-scroll-container — position:sticky keeps working.
   Putting overflow on html breaks that propagation and kills sticky. */
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, .num { font-family: "Sora", "Plus Jakarta Sans", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 999px; padding: 6px 16px; margin-bottom: 18px; }
h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 660px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 14px; padding: 16px 30px; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 12px 36px rgba(234,88,12,0.45); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost-dark { border: 2px solid rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.06); backdrop-filter: blur(4px); }
.btn-ghost-dark:hover { border-color: var(--orange-bright); color: var(--orange-bright); }
.btn-wa { background: var(--wa); color: #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(28,25,23,0.1); }

/* ghost word behind sections */
/* overflow hidden on the ghost itself: its nowrap text must never reach layout
   (it was the element inflating the mobile layout viewport). */
.ghost { position: absolute; top: 30px; left: 0; right: 0; font-family: "Sora", sans-serif; font-size: clamp(80px, 14vw, 190px); font-weight: 800; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(28,25,23,0.07); white-space: nowrap; overflow: hidden; pointer-events: none; user-select: none; line-height: 1; z-index: 0; }
/* Sections hosting a ghost clip horizontally: the GSAP drift (xPercent ±6)
   pushes the ghost's transformed bounds past the viewport, which inflates the
   mobile layout viewport (430px phone laid out at 456px). `clip`, not
   `hidden` — hidden would create scroll containers and break child sticky. */
#how, .services, #gallery, .contact { overflow-x: clip; }
.ghost.light { -webkit-text-stroke-color: rgba(255,255,255,0.07); }
section > .wrap { position: relative; z-index: 2; }

/* top bar */
.topbar { background: var(--ink); color: #d6d3d1; font-size: 13px; padding: 8px 0; position: relative; z-index: 101; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tag-in { color: #fdba74; font-weight: 700; }

/* header — transparent over hero, solid on scroll.
   At page top it sits below the top bar (--topbar-h is measured by JS);
   once solid it snaps to the viewport top as the top bar scrolls away. */
header.site-head { position: fixed; top: var(--topbar-h, 37px); left: 0; right: 0; z-index: 100; transition: background 0.35s ease, box-shadow 0.35s ease, top 0.35s ease; background: transparent; }
header.site-head.solid { top: 0; background: rgba(22,19,15,0.92); backdrop-filter: blur(14px); box-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #fff; font-family: "Sora", sans-serif; }
.logo .mark { width: 40px; height: 40px; background: var(--orange); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 21px; box-shadow: 0 4px 18px rgba(234,88,12,0.55); }
.logo .fresh { color: var(--orange-bright); }
.menu { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: #e7e5e4; }
.menu a { position: relative; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--orange-bright); transition: width 0.25s ease; }
.menu a:hover { color: #fff; }
.menu a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: #fff; }

/* ── HERO — full-screen background video ── */
/* Height subtracts the top bar so the hero bottom (and scroll cue) sits exactly at the fold.
   Desktop: zero padding — flex centering leaves clearance under the fixed header and keeps
   the scroll cue on the fold. When hero content is taller than the viewport (phones/tablets,
   short windows) centering collapses to the top, so those cases get explicit top padding
   to clear the fixed header — see the media queries below. */
.hero { min-height: calc(100vh - var(--topbar-h, 37px)); min-height: calc(100dvh - var(--topbar-h, 37px)); display: flex; flex-direction: column; justify-content: center; color: #fff; padding: 0; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: -8% 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,19,15,0.82) 0%, rgba(22,19,15,0.52) 45%, rgba(22,19,15,0.9) 100%); }
.hero .wrap { position: relative; z-index: 2; text-align: center; max-width: 920px; }
.hero .eyebrow { background: rgba(234,88,12,0.2); border-color: rgba(249,115,22,0.55); color: #fdba74; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,0.45); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--orange-bright); }
.hero p { font-size: clamp(16px, 2vw, 20px); color: #e7e5e4; margin: 0 auto 34px; max-width: 620px; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: #d6d3d1; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px; margin: 0 auto 8px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange-bright); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; position: relative; z-index: 2; }
.stat { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: 24px 20px; text-align: center; backdrop-filter: blur(10px); }
.stat .num { font-size: 34px; font-weight: 800; color: var(--orange-bright); }
.stat .lbl { font-size: 13px; color: #d6d3d1; font-weight: 600; margin-top: 4px; }
/* Short desktop windows: hero content cannot centre clear of the fixed header — pad instead. */
@media (min-width: 901px) and (max-height: 760px) {
  .hero { padding: calc(var(--topbar-h, 37px) + 92px) 0 60px; }
}

/* marquee ticker */
.ticker { background: var(--orange); color: #fff; padding: 16px 0; overflow: hidden; white-space: nowrap; position: relative; z-index: 3; }
.ticker-track { display: inline-flex; gap: 48px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; will-change: transform; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }

/* steps */
.step { position: relative; overflow: hidden; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.step .big-n { position: absolute; top: -14px; right: 6px; font-family: "Sora", sans-serif; font-size: 92px; font-weight: 800; color: rgba(234,88,12,0.08); line-height: 1; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-bright)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.step:hover::before { transform: scaleX(1); }
.step .ico { font-size: 40px; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* image band — parallax break */
.video-band { padding: 0; height: 64vh; min-height: 420px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.video-band img { position: absolute; inset: 0; width: 100%; height: 124%; object-fit: cover; top: -12%; will-change: transform; }
.video-band::after { content: ""; position: absolute; inset: 0; background: rgba(22,19,15,0.66); }
.video-band .vb-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px; }
.video-band h2 { color: #fff; font-size: clamp(28px, 4.4vw, 48px); }
.video-band p { color: #e7e5e4; font-size: 18px; max-width: 560px; margin: 0 auto; }

/* services */
.services { background: #faf8f6; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.svc .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--orange-soft); border: 1px solid var(--orange-line); display: flex; align-items: center; justify-content: center; font-size: 29px; margin-bottom: 18px; transition: transform 0.3s ease; }
.svc:hover .ico { transform: scale(1.12) rotate(-6deg); }
.svc h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.svc p { font-size: 15px; color: var(--ink-2); }

/* about */
.about .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.about-visual-wrap { position: sticky; top: 110px; overflow: hidden; border-radius: 24px; box-shadow: 0 30px 60px rgba(28,25,23,0.18); }
.about-visual-wrap img { width: 100%; height: 560px; object-fit: cover; transform: scale(1.12); }
.about p { color: var(--ink-2); margin-bottom: 16px; font-size: 16px; }
.about strong { color: var(--ink); }

/* locations — photo cards */
.locations { background: var(--ink); color: #fff; overflow: hidden; }
.locations::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 460px at 88% 8%, rgba(234,88,12,0.16), transparent 60%); pointer-events: none; }
.locations h2 { color: #fff; }
.locations .lead { color: #d6d3d1; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.loc { background: var(--ink-card); border: 1px solid #3b342b; border-radius: 20px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.loc:hover { transform: translateY(-8px); border-color: var(--orange); box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.loc-img { height: 200px; overflow: hidden; background: linear-gradient(135deg, #292318, #3b342b); }
.loc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.loc:hover .loc-img img { transform: scale(1.08); }
.loc-body { padding: 22px; }
.loc .soon { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fdba74; border: 1px solid #7c2d12; background: rgba(234,88,12,0.12); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.loc h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.loc .addr { font-size: 14px; color: #a8a29e; margin-bottom: 10px; }
.loc .hrs { font-size: 13px; color: #d6d3d1; font-weight: 600; }
.loc .hrs span { color: #4ade80; }

/* gallery — masonry-ish photo grid */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; margin-top: 48px; }
.gal-item { border-radius: 18px; overflow: hidden; position: relative; }
.gal-item.tall { grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gal-item:hover img { transform: scale(1.07); }
.gal-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,19,15,0.55)); opacity: 0; transition: opacity 0.3s ease; }
.gal-item:hover::after { opacity: 1; }

/* franchise */
.franchise { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); color: #fff; overflow: hidden; }
.franchise .blob-f1 { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,0.08); top: -100px; right: -70px; }
.franchise .blob-f2 { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.07); bottom: -60px; left: 8%; }
.franchise .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.franchise h2 { color: #fff; }
.franchise p { color: #ffedd5; font-size: 17px; margin-bottom: 28px; }
.franchise .btn-white { background: #fff; color: var(--orange-dark); }
.fr-points { display: grid; gap: 14px; }
.fr-points div { background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.28); border-radius: 16px; padding: 18px 22px; font-size: 15.5px; font-weight: 600; backdrop-filter: blur(4px); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.contact .card { text-align: center; }
.contact .card .ico { font-size: 36px; margin-bottom: 12px; }
.contact .card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.contact .card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.contact .card a.link { color: var(--orange); font-weight: 700; font-size: 15px; }
.contact-note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--muted); }

/* footer */
footer.site-foot { background: var(--ink); color: #a8a29e; padding: 60px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #292318; }
footer.site-foot h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
footer.site-foot a:hover { color: #fdba74; }
.foot-links { display: grid; gap: 8px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: #78716c; }

/* floating whatsapp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 29px; box-shadow: 0 10px 28px rgba(0,0,0,0.35); transition: transform 0.2s ease; }
.wa-float:hover { transform: scale(1.08); }

/* GSAP initial states (visible if JS fails or reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  body.gsap-on .gs-up { opacity: 0; transform: translateY(56px); }
  body.gsap-on .gs-fade { opacity: 0; }
  body.gsap-on .gs-scale { opacity: 0; transform: scale(0.93); }
}

/* responsive */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .menu, .nav-cta .btn-ghost-dark { display: none; }
  .hamburger { display: block; }
  .menu.open { display: grid; position: absolute; top: 78px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 18px 24px; gap: 14px; z-index: 99; }
  /* Mobile hero: clear the fixed header, then keep everything tight so the
     stat cards sit on-screen instead of spilling past the fold. */
  .hero { padding: calc(var(--topbar-h, 70px) + 40px) 0 44px; }
  .scroll-cue { display: none; } /* mobile scrolling is intuitive without the cue */
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 16px; }
  .hero p { margin: 0 auto 24px; }
  .hero-ctas .btn { padding: 14px 24px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
  .stat { padding: 16px 14px; border-radius: 14px; }
  .stat .num { font-size: 27px; }
  .stat .lbl { font-size: 12px; }
  .steps-grid, .svc-grid, .loc-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .about .wrap, .franchise .wrap { grid-template-columns: 1fr; }
  .about-visual-wrap { position: static; }
  .about-visual-wrap img { height: 320px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .ghost { font-size: 22vw; }
}
@media (max-width: 560px) {
  .steps-grid, .svc-grid, .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .video-band { height: 48vh; min-height: 320px; }
  /* Smaller headline so it wraps to fewer lines and frees vertical space. */
  .hero h1 { font-size: 33px; }
  .hero p { font-size: 15.5px; }
}

/* WP admin bar offset so the fixed header is not hidden behind it */
body.admin-bar header.site-head { top: calc(var(--topbar-h, 37px) + 32px); }
body.admin-bar header.site-head.solid { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.site-head { top: calc(var(--topbar-h, 37px) + 46px); }
  body.admin-bar header.site-head.solid { top: 46px; }
}
