/*
 * Home page (index.php) layout. Loaded last on index.php only, so it can
 * override the shared styles without affecting other pages.
 */

:root {
  --home-ink: #1d2530;
  --home-muted: #56636f;
  --home-navy: #03446A;
  --home-line: #e1e7ee;
  --home-tint: #eef7ff;
  --home-soft: #f5f8fb;
}

/* ---------- Hero: graphic background, headline and search ---------- */
/* Hero: a bright room with rental items (party table and chairs, cooler, tools,
   grill, ladder) on the right; the headline and search sit in the open space on
   the left on desktop, full screen. The image sits on .home-hero-bg, which js/parallax.js moves slower
   than the page; a light fade (::after) keeps the headline and search crisp. */
.home-hero {
  position: relative;
  display: flex;
  align-items: flex-start;     /* content near the top; the showroom fills the bottom */
  /* Fill the whole visible screen under the 64px header. svh = the small viewport
     height, so mobile browser toolbars never cover the bottom of the hero. */
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  overflow: hidden;
  padding-block: clamp(32px, 7vh, 88px) 48px;
  background: #eef4fb;
  color: var(--home-ink);
  isolation: isolate;
}

.home-hero > .home-hero-inner {
  width: 100%;
}

.home-hero-bg {
  position: absolute;
  inset: -10% 0 0;             /* extra height above so the drift never shows an edge */
  z-index: -2;
  background: #faf3ea url("../images/hero_rentals.webp") right bottom / cover no-repeat;
  will-change: transform;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* a light wash over the empty left side, behind the headline and search */
  background: linear-gradient(90deg, rgba(255, 250, 244, 0.7) 0%, rgba(255, 250, 244, 0.45) 38%, rgba(255, 250, 244, 0) 56%);
  pointer-events: none;
}

/* Fade the bottom of the photo into the page colour (#f7f7f7) so the hero
   merges into the next section instead of ending on a hard edge. Above the
   photo and wash, below the content. */
.home-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: clamp(90px, 16vh, 180px);
  background: linear-gradient(180deg, rgba(247, 247, 247, 0) 0%, rgba(247, 247, 247, 0.55) 45%, #f7f7f7 100%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

/* Selectors include .hero-text to outrank the legacy .hero-text rules in
   renteez_style.css (positioned, left-aligned, z-index 1000). */
.home-hero .hero-text {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  padding: 0;
  text-align: center;
  z-index: auto;
}

/* One line at every width: the text is ~14.4x its font size wide, so size
   it to the viewport (minus the gutters) and cap it at 3rem. */
.home-hero .hero-text .home-hero-title {
  margin: 0;
  font-size: min(3rem, calc((100vw - 40px) / 14.6));
  white-space: nowrap;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  text-align: center;
}

.home-hero .hero-text .home-hero-sub {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 400;
  color: var(--home-muted);
  text-align: center;
}

.home-hero .home-search-card {
  width: 100%;
  margin: 28px 0 0;
  border: 0;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(3, 68, 106, 0.14);
}

.home-hero .home-search-card:hover {
  box-shadow: 0 18px 44px rgba(3, 68, 106, 0.18);
}

.home-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 22px 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--home-ink);
}

/* Prominent sign-up call to action (the header already has "Log in"). */
.home-hero .home-hero-signup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 145, 255, 0.32);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-hero .home-hero-signup:hover,
.home-hero .home-hero-signup:focus-visible {
  background: #0a7fe0;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 145, 255, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.home-hero .home-hero-signup i {
  transition: transform 0.2s ease;
}

.home-hero .home-hero-signup:hover i {
  transform: translateX(3px);
}

/* Desktop: headline, search and sign-up in a left column over the empty side of
   the photo; the items stay visible on the right. */
@media screen and (min-width: 992px) {
  /* Height follows the photo (2000x750, 37.5vw) instead of the full screen, so
     wide screens show the room itself rather than empty wall above it; never
     shorter than the column, never taller than the screen. */
  .home-hero {
    align-items: center;
    min-height: clamp(540px, 37.5vw, calc(100svh - 64px));
    padding-block: 32px;
  }

  .home-hero-inner {
    max-width: 1180px;
    text-align: left;
  }

  .home-hero .hero-text,
  .home-hero .home-search-card,
  .home-hero-links {
    max-width: min(560px, 46vw);
  }

  .home-hero .hero-text,
  .home-hero .hero-text .home-hero-title,
  .home-hero .hero-text .home-hero-sub {
    text-align: left;
  }

  .home-hero .hero-text .home-hero-title {
    font-size: min(2.6rem, calc(min(560px, 46vw) / 14.6));
  }

  .home-hero-links {
    justify-content: flex-start;
  }
}

/* ---------- Search card (also used in the logged-in layout) ---------- */
.home-search-card {
  position: relative;
  width: 90%;
  margin-inline: auto;
  border-color: var(--home-line);
  box-shadow: 0 10px 30px rgba(3, 68, 106, 0.14);
}

.home-search-card:hover {
  box-shadow: 0 12px 34px rgba(3, 68, 106, 0.2);
}

.home-search-card .renteez-title {
  font-size: 1.1rem;
  line-height: 1.8rem;
}

.home-search-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.home-search-actions .btn {
  flex: 1 1 0;
  width: auto;
  min-height: 48px;
  margin: 0;
}

.home-search-actions .home-search-go {
  flex-grow: 2;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.home-text-link:hover,
.home-text-link:focus-visible {
  text-decoration: underline;
}

/* ---------- Section headings ---------- */
.home-section-title,
.home-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--home-ink);
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 16px;
}

/* ---------- Categories: one scrolling row ---------- */
.home-categories {
  margin-top: 32px;
}

.home-categories {
  position: relative;
}

.home-categories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-categories .home-section-title {
  margin: 0;
  text-align: left;
}

.home-chip-nav {
  display: none;
  gap: 8px;
}

.home-categories.is-scrollable .home-chip-nav {
  display: flex;
}

.home-chip-nav button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 50%;
  background: #fff;
  color: var(--home-navy);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.home-chip-nav button:hover:not(:disabled),
.home-chip-nav button:focus-visible {
  border-color: var(--primary);
  background: var(--home-tint);
  outline: none;
}

.home-chip-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Fade the row's edges while there is more to scroll in that direction. */
.home-categories.can-scroll-right .home-chip-row {
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.home-categories.can-scroll-left .home-chip-row {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%);
  mask-image: linear-gradient(90deg, transparent, #000 15%);
}

.home-categories.can-scroll-left.can-scroll-right .home-chip-row {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.home-chip-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.home-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  scroll-padding-inline: 2px;
}

.home-chip-row::-webkit-scrollbar {
  display: none;
}

.home-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: #fff;
  color: var(--home-navy);
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: start;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-chip i {
  color: var(--primary);
}

.home-chip:hover,
.home-chip:focus-visible {
  border-color: var(--primary);
  background: var(--home-tint);
  color: var(--home-navy);
  outline: none;
}

/* Categories inside the search card: part of search, not a separate section. */
.home-search-card .home-categories {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--home-line);
}

.home-search-card .home-categories-head {
  margin-bottom: 10px;
}

.home-search-card .home-categories .home-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--home-muted);
}

.home-search-card .home-chip-nav button {
  width: 32px;
  height: 32px;
}

.home-search-card .home-chip {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.88rem;
  background: var(--home-soft);
}

/* ---------- Illustration slider + intro ---------- */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: 36px;
}

/* No frame and no edge fade: the slides' own background (#f7f7f7, measured
   from images/new_slide1-10) is the page colour, so they sit flush on the page. */
.home-intro-media {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Story player for the new_slide images (js/glyph_story.js). Sketch scenes are
   drawn on by a mask sweeping left to right (mask-size 220%: position 100% hides
   it all, 0% shows it all); card scenes pop in. */
.glyph-story {
  position: relative;
  outline: none;
}

.glyph-story:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.45);
}

.glyph-stage {
  position: relative;
  aspect-ratio: 604 / 340;
  overflow: hidden;
  perspective: 1400px;
  background: #f7f7f7;
  cursor: pointer;
  transition: background-color 0.6s ease;
}

/* sketch paper: warm off-white with a faint dot grid */
.glyph-stage.is-sketch {
  background:
    radial-gradient(circle, rgba(3, 68, 106, 0.09) 1px, transparent 1.2px) 0 0 / 18px 18px,
    #f7f7f7;
}

.glyph-story .glyph-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Before the script runs, show only the first image. */
.glyph-story:not(.is-ready) .glyph-scene:first-child {
  position: relative;
  opacity: 1;
}

.glyph-story .glyph-scene.is-active {
  opacity: 1;
  z-index: 2;
}

/* The outgoing scene stays on top while it animates away, so the incoming one
   is revealed underneath (or, for clip reveals, drawn over it: z-index 3). */
.glyph-story .glyph-scene.is-leaving {
  opacity: 1;
  z-index: 3;
  backface-visibility: hidden;
  animation: var(--out-anim) both;
}

.glyph-story .glyph-scene.is-leaving[data-out="page"]    { --out-anim: glyph-out-page 0.9s cubic-bezier(0.55, 0, 0.75, 0.4); }
.glyph-story .glyph-scene.is-leaving[data-out="circle"]  { --out-anim: glyph-out-soft 1s ease; z-index: 1; }
.glyph-story .glyph-scene.is-leaving[data-out="diagonal"]{ --out-anim: glyph-out-left 1s ease; z-index: 1; }
.glyph-story .glyph-scene.is-leaving[data-out="cube"]    { --out-anim: glyph-out-cube 0.95s cubic-bezier(0.65, 0, 0.35, 1); transform-origin: 100% 50%; }
.glyph-story .glyph-scene.is-leaving[data-out="zoom"]    { --out-anim: glyph-out-zoom 0.8s cubic-bezier(0.4, 0, 1, 1); }

.glyph-story .glyph-scene[data-kind="sketch"].is-active {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 220% 100%;
  mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation:
    glyph-draw 1.8s linear both,
    glyph-boil 0.6s steps(1) 1.8s infinite;
}

/* Card scenes: the entrance (data-fx, rotated by js/glyph_story.js), then a
   slow zoom. Clip reveals sit above the outgoing scene. */
.glyph-story .glyph-scene[data-kind="card"].is-active {
  animation:
    var(--in-anim) both,
    glyph-zoom 5s ease-out 1s both;
}

.glyph-story .glyph-scene.is-active[data-fx="circle"]   { --in-anim: glyph-in-circle 1s cubic-bezier(0.65, 0, 0.35, 1); z-index: 4; }
.glyph-story .glyph-scene.is-active[data-fx="diagonal"] { --in-anim: glyph-in-diagonal 1s cubic-bezier(0.65, 0, 0.35, 1); z-index: 4; }
.glyph-story .glyph-scene.is-active[data-fx="cube"]     { --in-anim: glyph-in-cube 0.95s cubic-bezier(0.65, 0, 0.35, 1); transform-origin: 0 50%; }
.glyph-story .glyph-scene.is-active[data-fx="zoom"]     { --in-anim: glyph-in-zoom 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s; }

/* a sketch starts drawing once the previous page has lifted away */
.glyph-story .glyph-scene[data-kind="sketch"].is-active.after-leave {
  animation-delay: 0.45s, 2.25s;
}

/* light sheen across card scenes */
.glyph-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  pointer-events: none;
  opacity: 0;
}

.glyph-stage:not(.is-sketch)::after {
  animation: glyph-sheen 1.4s ease 0.5s both;
}

/* sketches carry their own sheet of paper, so a page lifting away is solid */
.glyph-story .glyph-scene[data-kind="sketch"] {
  background:
    radial-gradient(circle, rgba(3, 68, 106, 0.09) 1px, transparent 1.2px) 0 0 / 18px 18px,
    #f7f7f7;
}

@keyframes glyph-draw {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}

/* hand-drawn "line boil": tiny jumps between three poses */
@keyframes glyph-boil {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(0.6px, -0.5px) rotate(0.15deg); }
  66%  { transform: translate(-0.5px, 0.4px) rotate(-0.12deg); }
}

@keyframes glyph-in-circle {
  from { clip-path: circle(0% at 50% 55%); }
  to   { clip-path: circle(75% at 50% 55%); }
}

@keyframes glyph-in-diagonal {
  from { clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%); }
  to   { clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%); }
}

@keyframes glyph-in-cube {
  from { transform: translateX(100%) rotateY(-90deg); filter: brightness(0.75); }
  to   { transform: none; filter: none; }
}

@keyframes glyph-in-zoom {
  from { opacity: 0; transform: scale(1.18); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes glyph-out-page {
  0%   { transform: none; box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  30%  { transform: translate(-2%, -3%) rotate(-2deg); box-shadow: 0 18px 30px rgba(3, 68, 106, 0.25); }
  100% { transform: translate(-115%, -8%) rotate(-10deg); box-shadow: 0 18px 30px rgba(3, 68, 106, 0.25); }
}

@keyframes glyph-out-soft {
  from { opacity: 1; transform: none; filter: none; }
  to   { opacity: 0.2; transform: scale(1.08); filter: blur(4px); }
}

@keyframes glyph-out-left {
  from { opacity: 1; transform: none; }
  to   { opacity: 0.3; transform: translateX(-8%); }
}

@keyframes glyph-out-cube {
  from { transform: none; filter: none; }
  to   { transform: translateX(-100%) rotateY(90deg); filter: brightness(0.75); }
}

@keyframes glyph-out-zoom {
  from { opacity: 1; transform: none; filter: none; }
  to   { opacity: 0; transform: scale(0.82); filter: blur(6px); }
}

@keyframes glyph-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

@keyframes glyph-sheen {
  0%   { opacity: 1; background-position: 150% 0; }
  100% { opacity: 1; background-position: -60% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph-story .glyph-scene.is-active,
  .glyph-story .glyph-scene.is-leaving,
  .glyph-stage::after {
    animation: none !important;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .glyph-story .glyph-scene {
    transition: opacity 0.5s ease;
  }
}

.home-intro-copy .renteez-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.home-intro-copy p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--home-muted);
}

/* ---------- Benefits: compact tile grid ---------- */
.home-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: #fff;
}

.home-benefit img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.home-benefit h3 {
  margin: 0 0 4px;
  text-transform: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-ink);
}

.home-benefit p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--home-muted);
}

/* ---------- Testimonials: compact cards ---------- */
.home-testimonials {
  margin-top: 40px;
  padding-block: 40px 28px;
  border-top: 1px solid var(--home-line);
  background: #fff;
}

.home-testimonials-head {
  max-width: 1140px;
  margin: 0 auto 16px;
  padding-inline: 20px;
  text-align: center;
}

.home-testimonials-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--home-ink);
}

/* The section has no .container, so cancel the Bootstrap row's negative gutters. */
.home-testimonials > .row {
  max-width: 1180px;
  margin-inline: auto;
}

.home-testimonials > .row > .col-12 {
  padding-inline: 8px;
}

/* renteez_style.css fixes every .owl-stage at 500px tall. */
#customers-testimonials .owl-stage {
  display: flex;
  height: auto;
}

#customers-testimonials .owl-item {
  display: flex;
}

/* All visible cards look the same (no shrunken, faded side cards). */
#customers-testimonials .item,
#customers-testimonials .owl-item.active.center .item {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 4px;
  background: transparent;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: var(--home-soft);
  color: var(--home-ink);
  text-align: left;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Beats the carousel's .owl-carousel .owl-item img (184px, 32px white border, sepia). */
#customers-testimonials .testimonial-person img {
  display: block;
  width: 44px !important;
  height: 44px;
  max-width: 44px;
  margin: 0;
  border: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  filter: none !important;
}

#customers-testimonials .testimonial-name {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--home-ink);
  text-align: left;
}

.testimonial-role {
  display: block;
  font-size: 0.82rem;
  color: var(--home-muted);
}

.testimonial-text {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--home-ink);
}

#customers-testimonials .testimonial-play {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  width: auto !important;
  height: auto;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

#customers-testimonials .testimonial-play:hover,
#customers-testimonials .testimonial-play:focus-visible {
  text-decoration: underline;
  outline: none;
}

#customers-testimonials.owl-carousel .owl-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: rgba(3, 68, 106, 0.22);
}

#customers-testimonials.owl-carousel .owl-dots .owl-dot.active span,
#customers-testimonials.owl-carousel .owl-dots .owl-dot:hover span {
  background: var(--home-navy);
}

/* ---------- Cookie notice heading (all widths) ---------- */
.cookie_wrapper header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Hover tooltips ([data-tooltip] pseudo-elements) can't be triggered by touch,
   and near the screen edge they widened the page and caused sideways scrolling. */
@media (hover: none) {
  [data-tooltip]::before,
  [data-tooltip]::after {
    display: none !important;
  }
}

/* ---------- Tablets ---------- */
@media screen and (max-width: 991.98px) {
  .home-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Phones ---------- */
@media screen and (max-width: 767.98px) {
  [data-tooltip]::before,
  [data-tooltip]::after {
    display: none !important;
  }

  /* Header nav was 375px wide plus 10px padding. */
  .nav_wrapper nav {
    box-sizing: border-box;
  }

  .home-hero {
    padding-block: 32px;
  }

  .home-hero-bg {
    /* the items as a strip along the bottom, under the sign-up button */
    background: #f6ede3 url("../images/hero_rentals_mobile.webp") center bottom / 100% auto no-repeat;
  }

  .home-hero::after {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.6) 0%, rgba(255, 250, 244, 0.35) 60%, rgba(255, 250, 244, 0) 80%);
  }

  .home-hero-inner {
    padding-inline: 16px;
  }

  .home-hero::before {
    height: 70px;
  }


  .home-hero .home-search-card {
    margin: 22px 0 0;
    padding: 16px;
  }

  /* Logged-in layout: the search column has inline padding:0. */
  .container .home-search-card {
    width: auto;
    margin: 16px 16px 12px;
    padding: 16px;
  }

  .home-search-card input,
  .home-search-card select {
    font-size: 16px; /* stops iOS zooming into the field on focus */
  }

  .home-categories {
    margin-top: 24px;
  }

  .home-chip-row {
    margin-inline: -12px;
    padding-inline: 12px;
    scroll-padding-inline: 12px; /* snap the first chip to the padding, not the edge */
  }

  .home-section-head {
    margin: 28px 0 12px;
  }

  .home-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
    text-align: center;
  }

  .home-benefit {
    padding: 14px;
  }

  .home-testimonials {
    margin-top: 28px;
    padding-block: 28px 20px;
  }


  /* Cookie notice: a slim bottom sheet instead of a panel over the page. */
  .cookie_wrapper {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 14px 16px;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  }

  .cookie_wrapper.show {
    right: 12px;
    transform: none;
  }

  .cookie_wrapper header i {
    font-size: 20px;
  }

  .cookie_wrapper .data {
    margin-top: 6px;
  }

  .cookie_wrapper .data p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .cookie_wrapper .cookie_buttons {
    gap: 10px;
    margin-top: 12px;
  }

  .cookie_wrapper .cookie_buttons .cookie_button {
    flex: 1 1 0;
    width: auto;
    min-height: 44px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-chip,
  .cookie_wrapper {
    transition: none;
  }
}

/* Home page background = the slideshow's background: the illustrated slides
   (images/new_slide1-10) are drawn on #f7f7f7, and the transparent sketch
   slides sit on the same colour, so every slide is flush with the page. */
body.home-body {
  background: #f7f7f7;
}

/* The benefits section has its own light-grey panel (renteez_style.css);
   on the white home page it showed as a grey box, so let it inherit white. */
body.home-body .renteez_advantages-service-sec {
  background: transparent;
}
