/* HomeVet landing page. Loads after styles.css: re-colors the booking widget to Guy's brand
   and lays out the page around it. Brand from homevet.co.il: maroon #5E1A1B, Rubik. */

:root {
  --bg: #fbf6f1;
  --card: #ffffff;
  --ink: #2b1d1c;
  --muted: #6f5f5d;
  --line: #eadfd6;
  --brand: #5e1a1b;
  --brand-deep: #3f1112;
  --brand-ink: #ffffff;
  --brand-soft: #f6e9e4;
  --sand: #efe3d6;
  --sage: #dfe8dc;
  --error: #a3271f;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(63, 17, 18, 0.35), 0 2px 6px rgba(63, 17, 18, 0.06);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body.lp { background: var(--bg); font-size: 17px; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Re-color pieces of styles.css that carry fixed colors */
.lp .primary { background: var(--brand); border-radius: 12px; }
.lp .primary:hover { background: var(--brand-deep); }
.lp input:focus, .lp select:focus, .lp textarea:focus, .lp button:focus-visible, .lp a:focus-visible {
  outline: 3px solid rgba(94, 26, 27, 0.28);
  border-color: var(--brand);
}
.lp .pills input:focus-visible + span { outline-color: rgba(94, 26, 27, 0.28); }
.lp .day.in-zone { background: #fdf8f6; border-color: var(--brand); }
.lp .slot:hover { background: var(--brand-soft); border-color: var(--brand); }
.lp .check input { accent-color: var(--brand); }
.lp .eyebrow { color: var(--brand); }

/* Header */
.lp-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lp-header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-logo { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.lp-logo img { width: 44px; height: 44px; border-radius: 50%; background: #e6dcd2; }
.lp-logo strong { display: block; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.lp-logo small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.lp-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.lp-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.lp-nav a:hover { color: var(--brand); }
.lp-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--brand); color: var(--brand);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.lp-call svg { width: 17px; height: 17px; fill: currentColor; }
.lp-call:hover { background: var(--brand); color: #fff; }
.lp-wa {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; background: #25d366; color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.lp-wa svg { width: 19px; height: 19px; fill: currentColor; }
.lp-wa:hover { background: #1ebe5b; }
.lp-wa + .lp-call { margin-inline-start: -14px; }
.lp-contact a.lp-contact-wa { display: inline-flex; align-items: center; gap: 7px; background: #25d366; border-color: #25d366; color: #fff; }
.lp-contact a.lp-contact-wa:hover { background: #1ebe5b; color: #fff; }
.lp-contact-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero: a full-width photo, the title on its soft lower edge, then the story next to the scheduler */
.lp-hero { padding: 0 0 64px; }
.lp-hero-band {
  position: relative; overflow: hidden; background: var(--sand);
  height: min(47.6vw, calc(100svh - 84px)); min-height: 420px;
}
.lp-hero-slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transition: opacity 1.8s ease-in-out;
}
.lp-hero-slide.is-active { opacity: 1; }
.lp-hero-slide img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 29%;
}
/* The photo melts into the page, so the title reads on it without a dark overlay */
.lp-hero-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 100% 100%, rgba(251, 246, 241, 0.9) 0%, rgba(251, 246, 241, 0) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(251, 246, 241, 0.72) 13%, rgba(251, 246, 241, 0) 40%);
}
.lp-hero-title { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding-bottom: 34px; }
.lp h1 {
  margin: 0; font-size: clamp(36px, 5.2vw, 72px); line-height: 0.98;
  font-weight: 800; letter-spacing: -0.025em; color: var(--brand-deep);
}
.lp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start;
  position: relative; z-index: 2; padding-top: 30px;
}
.lp-about { display: grid; grid-template-columns: 132px 1fr; gap: 30px; align-items: start; padding-top: 10px; }
.lp-avatar { width: 132px; height: 132px; border-radius: 50%; background: #e6dcd2; box-shadow: var(--shadow); }
.lp-about p { font-size: 18px; line-height: 1.7; margin: 0 0 14px; color: var(--muted); }

/* The booking widget, the star of the page */
.booking {
  position: sticky; top: 88px; margin-top: -170px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #efe4dc;
  padding: 22px 22px 20px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.booking-head { padding-bottom: 4px; }
.booking-title { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 700; color: var(--brand-deep); letter-spacing: -0.01em; }
.booking-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.booking-head a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.booking-head a:hover { text-decoration: underline; }
.booking .steps { margin: 16px 0 14px; }
.booking .card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.booking .step-title { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.booking .step-title:focus { outline: none; }
.booking .hint { margin-bottom: 14px; }
.booking .primary { margin-top: 10px; }
.booking .days { max-height: none; }
.more { margin: 0 0 12px; }
.more summary { cursor: pointer; color: var(--brand); font-size: 15px; font-weight: 500; padding: 2px 0 10px; }
.more[open] summary { padding-bottom: 12px; }

/* Sections */
.lp-section { padding: 76px 0; }
.lp-section h2 {
  margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  font-weight: 700; letter-spacing: -0.02em; color: var(--brand-deep);
}
.lp-section p { color: var(--muted); }

.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.lp-card { background: var(--card); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.lp-card picture { display: block; }
.lp-card img { display: block; width: 100%; aspect-ratio: 4 / 3.4; height: auto; object-fit: cover; }
.lp-card h3 { margin: 0; padding: 18px 20px 20px; font-size: 19px; line-height: 1.35; color: var(--brand); text-align: center; }
.lp-services { padding-top: 0; }
.lp-cards { margin-top: 0; }
.lp-cta {
  display: table; margin: 34px auto 0; padding: 14px 30px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
}
.lp-cta:hover { background: var(--brand-deep); }


.lp-footer { background: var(--card); border-top: 1px solid var(--line); padding: 36px 0 96px; }
.lp-footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-footer strong { font-size: 19px; color: var(--brand-deep); }
.lp-footer p { margin: 4px 0 0; color: var(--muted); }
.lp-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-contact a {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500; background: var(--bg);
}
.lp-contact a:hover { border-color: var(--brand); color: var(--brand); }
.lp-copy { max-width: 1160px; margin: 26px auto 0; padding: 0 16px; color: var(--muted); font-size: 14px; }

.lp-sticky { display: none; }

/* Tablet */
@media (max-width: 980px) {
  .lp-hero-band { height: min(62vw, calc(100svh - 68px)); }
  .lp-hero-title { padding-bottom: 92px; }
  .lp-hero-grid { display: flex; flex-direction: column; gap: 34px; padding-top: 0; }
  .lp-hero-grid .booking { order: -1; margin-top: -70px; }
  .booking { position: static; max-height: none; overflow: visible; }
  .lp-cards { grid-template-columns: 1fr 1fr; }
  .lp-nav { display: none; }
  .lp-wa { margin-inline-start: auto; }
}

/* Phone */
@media (max-width: 640px) {
  body.lp { font-size: 16px; }
  .lp-header-row { height: 60px; gap: 12px; }
  .lp-logo img { width: 38px; height: 38px; }
  .lp-logo strong { font-size: 19px; }
  .lp-logo small { font-size: 11.5px; }
  .lp-call span, .lp-wa span { display: none; }
  .lp-call, .lp-wa { padding: 9px; }
  .lp-wa + .lp-call { margin-inline-start: -4px; }
  .lp-hero { padding: 0 0 40px; }
  .lp-hero-band { height: min(104vw, 58svh); min-height: 300px; }
  .lp-hero-slide img { object-position: 30% 22%; }
  .lp-hero-title { padding-bottom: 58px; }
  .lp-hero-band::after { background: linear-gradient(to top, var(--bg) 0%, rgba(251, 246, 241, 0.86) 20%, rgba(251, 246, 241, 0) 54%); }
  .lp-hero-grid .booking { margin-top: -40px; }
  .lp-about { grid-template-columns: 1fr; gap: 18px; }
  .lp-avatar { width: 104px; height: 104px; }
  .booking { padding: 18px 16px 16px; border-radius: 20px; }
  .lp-section { padding: 52px 0; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-sticky {
    display: flex; gap: 10px;
    position: fixed; inset-inline: 12px; bottom: 12px; z-index: 30;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .lp-sticky.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .lp-sticky-book {
    flex: 1; padding: 15px; border-radius: 14px; text-align: center;
    background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 30px -10px rgba(63, 17, 18, 0.6);
  }
  .lp-sticky-call {
    display: grid; place-items: center; width: 54px; border-radius: 14px;
    background: #fff; border: 1.5px solid var(--brand); color: var(--brand);
  }
  .lp-sticky-call svg { width: 22px; height: 22px; fill: currentColor; }
  .lp-sticky-wa {
    display: grid; place-items: center; width: 54px; border-radius: 14px;
    background: #25d366; color: #fff; box-shadow: 0 12px 30px -10px rgba(18, 140, 60, 0.6);
  }
  .lp-sticky-wa svg { width: 26px; height: 26px; fill: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-hero-slide { transition: none; }
  .lp-sticky { transition: none; }
}
