/* =============================================
   HOME PAGE STYLES
   ============================================= */


/* ── Categories Grid ──────────────────────── */
.categories-section { background: var(--cream); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-lg) var(--space-sm);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--grey-pale);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--coral);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--coral);
}
.category-card__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.category-card:hover .category-card__icon { transform: scale(1.2) rotate(-5deg); }
.category-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}

@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  /* An odd card count leaves one alone in the final row: centre it instead
     of leaving it stuck on the left. :nth-child(odd) here means "at an odd
     position", which is only ever true for the last child when the total
     count is itself odd. */
  .categories-grid > .category-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--space-md)) / 2);
  }
}

/* ── Reasons to Book ───────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--grey-pale);
  padding: var(--space-lg);
  text-align: center;
}
.benefit-card__icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.benefit-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.4rem; }
.benefit-card p { font-size: 0.85rem; color: var(--grey-mid); line-height: 1.6; }

@media (max-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ── How it works ─────────────────────────── */
.how-it-works { background: var(--warm-white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--coral) 0, var(--coral) 8px, transparent 8px, transparent 16px);
  pointer-events: none;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.step__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed;
}
/* Four MUM brand colours — one per step */
.steps-grid .step:nth-child(1) .step__number { color: var(--coral);  background: var(--coral-pale);  border-color: var(--coral-light); }
.steps-grid .step:nth-child(2) .step__number { color: var(--sky);    background: var(--sky-pale);    border-color: var(--sky-light); }
.steps-grid .step:nth-child(3) .step__number { color: var(--gold);   background: var(--gold-pale);   border-color: var(--gold-light); }
.steps-grid .step:nth-child(4) .step__number { color: var(--sage);   background: var(--sage-pale);   border-color: var(--sage-light); }
.step__icon { height: 84px; width: auto; max-width: 140px; object-fit: contain; }
.step__title { font-family: var(--font-display); font-size: 1.3rem; }
.step__desc  { font-size: 0.88rem; color: var(--grey-mid); max-width: 200px; line-height: 1.7; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* ── Packages Banner ──────────────────────── */
/* ── Hero Banner ──────────────────────────── */
/* Same full-bleed banner treatment as .packages-banner below, but backed by the
   hero photo instead of a flat ink fill. The scrim keeps the dark copy legible
   over the image. */
.hero-banner {
  position: relative;
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(to right, rgba(255, 251, 246, 0.92) 0%, rgba(255, 251, 246, 0.88) 45%, rgba(255, 251, 246, 0.25) 100%);
}

.hero-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-md);
  max-width: 620px;
}

.packages-banner {
  background: var(--ink);
  padding-block: var(--space-2xl);
  overflow: hidden;
}

.packages-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.packages-banner__text { color: rgba(255,255,255,0.9); }
.packages-banner__text h2 { color: #fff; margin-bottom: var(--space-sm); }
.packages-banner__text h2 em { color: var(--coral-light); }
.packages-banner__text p { color: rgba(255,255,255,0.65); margin-bottom: var(--space-lg); max-width: 420px; }

.packages-banner__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Horizontal zig-zag: a flex row keeps each photo in its own horizontal
   slot (a structural guarantee against left/right overlap), while each
   ".float-slot" carries a static vertical offset (margin-top) that
   staggers the row up/down/up/down into a zig-zag. The float animation's
   transform lives on the ".floating-img" child, kept separate from the
   slot's own offset so the two can never fight each other. */
.packages-banner__float-group {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.float-slot { display: block; }
.slot-top    { margin-top: 0; }
.slot-right  { margin-top: clamp(50px, 6vw, 85px); }
.slot-bottom { margin-top: 0; }
.slot-left   { margin-top: clamp(50px, 6vw, 85px); }

.floating-img {
  display: block;
  height: clamp(90px, 11vw, 150px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}
.fi1 { animation: float-bob 4.5s ease-in-out infinite; }
.fi2 { animation: float-drift 5.5s ease-in-out infinite; animation-delay: 0.6s; height: clamp(85px, 10.5vw, 142px); }
.fi3 { animation: float-sway 5s ease-in-out infinite; animation-delay: 1.1s; height: clamp(100px, 12vw, 160px); }
.fi4 { animation: float-bob-rotate 4.8s ease-in-out infinite; animation-delay: 0.3s; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes float-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(6px, -10px); }
}
@keyframes float-sway {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%      { transform: translateX(-8px) translateY(-6px); }
}
@keyframes float-bob-rotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-3deg); }
}

@media (max-width: 768px) {
  /* Desktop-only section per Woodhouse. */
  .packages-banner { display: none; }
}

/* ── Testimonials ─────────────────────────── */
.testimonials-section { background: var(--warm-white); }

/* ── Trusted Partners Section ─────────────── */
.partners-section {
  background: linear-gradient(135deg, var(--coral-pale) 0%, var(--parchment) 100%);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.partners-text h2 em { color: var(--coral); }
.partners-text p { color: var(--grey-mid); margin: var(--space-sm) 0 var(--space-md); max-width: 480px; }

.partners-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Fixed row height (not just each badge's own min-height) so row 1
     (Balloon Garlands/LED Hire) and row 2 (Custom Backdrops/Mascots) are
     forced to the same height as each other — a 2-column grid only
     auto-stretches items within the SAME row by default, so two separate
     rows could otherwise end up different heights depending on content. */
  grid-auto-rows: 220px;
  gap: var(--space-md);
}

.partner-badge {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--grey-pale);
}
.partner-badge__icon { flex: 1; width: 100%; min-height: 0; object-fit: contain; }
.partner-badge__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-mid); line-height: 1.4; }

@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* ── Insurance / Deposit Strip ─────────────── */
.reassurance-strip {
  background: var(--ink);
  color: #fff;
  padding-block: var(--space-xl);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.reassurance-item__icon { font-size: 1.6rem; line-height: 1.2; flex-shrink: 0; }
.reassurance-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.reassurance-item p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0; }

.reassurance-strip__serving {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .reassurance-grid { grid-template-columns: 1fr; }
}

/* ── CTA Section ──────────────────────────── */
.cta-section {
  background: var(--coral);
  padding-block: var(--space-2xl);
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
}
.cta-inner h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-inner h2 em { color: var(--gold-light); }
.cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-lg); }
/* Base .cta-actions layout (display/gap/wrap, and the equal-width mobile
   rule) lives in css/style.css, shared with pages/about.html's CTA. These
   are just this page's coral-background colour overrides. */
.cta-actions .btn--primary {
  background: #fff;
  color: var(--coral);
  border-color: #fff;
}
.cta-actions .btn--primary:hover { background: var(--cream); }
.cta-actions .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.cta-actions .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── Weather Widget ───────────────────────── */
.weather-section { background: var(--cream); }

.weather-widget {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.weather-widget__header { margin-bottom: var(--space-lg); }
.weather-widget__eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.weather-widget__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.weather-widget__sub {
  font-size: 0.9rem;
  color: var(--grey-mid);
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}
.weather-forecast--loading .weather-day {
  min-height: 148px;
  background: linear-gradient(90deg, var(--parchment) 25%, var(--grey-pale) 50%, var(--parchment) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.weather-day {
  background: var(--warm-white);
  border: 1px solid var(--grey-pale);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.weather-day:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.weather-day__name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-mid);
}
.weather-day__icon { font-size: 2.2rem; line-height: 1; }
.weather-day__label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.3;
  text-align: center;
}
.weather-day__temps {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: 0.2rem;
}
.weather-day__hi {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1;
}
.weather-day__lo {
  font-size: 0.9rem;
  color: var(--grey-mid);
}
.weather-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--grey-mid);
  font-size: 0.9rem;
  padding: var(--space-lg);
}

@media (max-width: 640px) {
  .weather-forecast { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .weather-forecast { grid-template-columns: repeat(2, 1fr); }
  /* Same odd-count-leaves-one-alone fix as .categories-grid above. */
  .weather-forecast > .weather-day:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--space-sm)) / 2);
  }
}

/* ── Area Checker Widget ──────────────────── */
.area-checker-section { background: var(--warm-white); }

.area-checker {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.area-checker__header { margin-bottom: var(--space-lg); }
.area-checker__eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.area-checker__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.area-checker__sub {
  font-size: 0.9rem;
  color: var(--grey-mid);
}

.area-checker__form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.area-checker__input {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--ink);
}
.area-checker__input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-pale);
}

.area-checker__msg {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.3rem;
}
.area-checker__msg--success { color: var(--success); }
.area-checker__msg--error { color: var(--coral-dark); }
.area-checker__msg--info { color: var(--ink); }

.area-checker__note {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--grey-mid);
}

@media (max-width: 500px) {
  .area-checker__form { flex-direction: column; align-items: stretch; }
  .area-checker__input { max-width: none; }
}

/* ── Loading skeleton ─────────────────────── */
.loading-skeleton {
  height: 360px;
  background: linear-gradient(90deg, var(--parchment) 25%, var(--grey-pale) 50%, var(--parchment) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Featured In carousel: 3D rotating-drum style, matching a
   MagicScroll "carousel" layout (items ringed around a vertical axis,
   translateZ giving real perspective depth, rotateY facing each item
   outward, opacity fading items on the far side of the ring) ── */
.featured-in-section { padding-block: var(--space-lg); }
.featured-in-section .section-header { margin-bottom: var(--space-md); }

.featured-carousel {
  position: relative;
  width: 100%;
  height: 264px;
  overflow: hidden;
  perspective: 1000px;
  cursor: grab;
}
.featured-carousel:active { cursor: grabbing; }

.featured-carousel__track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.featured-carousel__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 355px;
  height: 244px;
  margin-top: -122px;
  margin-left: -177.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Lets an <a> wrap a logo (e.g. the Happity badge, which links out) without
   affecting the flex centering above — the anchor takes no box of its own. */
.featured-carousel__item a { display: contents; }

.featured-carousel__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  -webkit-box-reflect: below 4px linear-gradient(to bottom, transparent, transparent calc(100% - 40px), rgba(255, 255, 255, 0.35));
}

@media (max-width: 640px) {
  .featured-carousel { height: 199px; }
  .featured-carousel__item { width: 253px; height: 179px; margin-top: -89.5px; margin-left: -126.5px; }
}
