/* -------------- ENTIRE STYLE.CSS (SERVICES H2 TO WHITE + PROCESS GLASS + ANIMATED BG v2) -------------- */
/*
 Theme Name: LPS Master Theme
 Theme URI: https://lifeline-ps.com/
 Author: LPS
 Description: Custom Lifeline Property Solutions theme with glass header, glass nav tray, and Need Help side drawer.
 Version: 1.0.0
*/

/* Variables */
:root {
  --primary: #4a90e2;
  --accent: #0d47a1;
  --text: #0f172a;
  --light: #94a3b8;
  --bg: #f8fafc;
  --panel: #ffffff;
}

/* Global reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.lps-site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Layout helper */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   HEADER + NAV
   ========================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.brand {
  font-weight: 800;
  color: #0d47a1;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111827;
  margin: 4px 0;
  border-radius: 999px;
}

/* NAV TRAY — NO BACKGROUND CARD */
.primary-nav {
  position: absolute;
  top: 100%;
  right: 16px;
  margin-top: 8px;
  display: none;
  z-index: 999;

  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.primary-nav.open { display: block; }

.primary-nav .menu {
  list-style: none;
  margin: 0;
  padding: 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.primary-nav .menu li { list-style: none; }

/* =========================
   NAV BUTTONS — GLASSMORPHIC (+50% TINT)
   ========================= */
.primary-nav .menu a {
  display: block;
  padding: 9px 22px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(13, 71, 161, 0.585),
    rgba(15, 23, 42, 0.675)
  );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.45);

  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.primary-nav .menu a:hover,
.primary-nav .menu a:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(21, 83, 192, 0.825),
    rgba(15, 23, 42, 0.975)
  );
  border-color: rgba(191, 219, 254, 0.9);
}

.primary-nav .menu a:active { transform: scale(.98); }

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 72px;
  text-align: center;
  background: url("images/hero-bg.jpg") center/cover no-repeat;
}

/* hero-inner centered column */
.hero-inner {
  padding: 32px 16px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: block;

  /* current logo vertical position */
  margin: -125px auto 10px;

  width: clamp(360px, 60vw, 840px);

  /* drop shadow (half size & half glow) */
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 14px rgba(255, 235, 205, 0.49))
    drop-shadow(0 0 40px rgba(255, 180, 90, 0.35));
}

.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  margin: calc(200px + 0.75rem) auto 0.25rem;
  line-height: 1.2;
  max-width: 900px;
  color: #ffffff;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 0 0 1.25rem;
  max-width: 900px;
  color: #ffffff;
  text-align: center;
}

.btn.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.9rem 2.25rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.cta-wrap {
  display: flex;
  justify-content: center;
}

/* =========================
   SECTIONS
   ========================= */
.section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.section h2 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.section p { margin: 0 0 1rem; }

/* ABOUT */
.about {
  background: url("images/who-we-are-background-001.png") center/cover no-repeat;
}

.about .container {
  text-align: center;
  max-width: 900px;
}

.about h2,
.about p {
  color: #ffffff;
}

/* WHAT WE HELP WITH (SERVICES BACKGROUND) */
.services {
  background: url("images/What_we_hlep_with-BG-002.png") center/cover no-repeat;
}

/* MAKE "WHAT WE HELP WITH" TITLE BLUE */
.services h2 {
  color: var(--accent);
}

/* =========================
   OUR WORK (BACKGROUND)
   ========================= */
.works {
  background: url("images/Our_Work-GB-001.png") center/cover no-repeat;
}

/* =========================
   GRID SECTIONS
   ========================= */
.services .grid,
.process .grid,
.works .grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ==== SERVICE BOXES: GLASS (NO TINT) ==== */
.card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

/* SERVICES TEXT TO BLUE */
.services h3,
.services p {
  color: var(--accent);
}

.step,
.works .item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.works .item {
  height: 200px;
  background-position: center;
  background-size: cover;
}

/* FORCE 3/2/1 COLUMNS FOR "WHAT WE HELP WITH" ONLY */
.services .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .services .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   OUR 4-STEP SIMPLE PROCESS
   ANIMATED BACKGROUND + GLASS STEPS
   ========================= */
.process {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.process::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 10% 0%, rgba(96, 165, 250, 0.45) 0, transparent 55%),
    radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.65) 0, transparent 60%),
    radial-gradient(circle at 20% 85%, rgba(56, 189, 248, 0.45) 0, transparent 55%),
    linear-gradient(135deg, #0b172b 0%, #1d4f8c 45%, #0b172b 100%);
  opacity: 0.98;
  background-size: 140% 140%;
  animation: lpsProcessBg 18s ease-in-out infinite alternate;
  z-index: -1;
}

.process .container {
  position: relative;
  z-index: 1;
}

/* all text in this section white */
.process h2,
.process h3,
.process p {
  color: #ffffff;
}

/* glassmorphic step cards, no icons */
.process .step {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  color: #e5edff;
}

/* hide the step icons in this section only */
.process .step img {
  display: none;
}

/* keyframes for slow gradient movement */
@keyframes lpsProcessBg {
  0% {
    transform: translate3d(-8%, -6%, 0) scale(1.03);
    background-position: 0% 0%;
    filter: hue-rotate(0deg) saturate(1.1);
  }
  50% {
    transform: translate3d(6%, 4%, 0) scale(1.06);
    background-position: 50% 40%;
    filter: hue-rotate(8deg) saturate(1.22);
  }
  100% {
    transform: translate3d(-4%, 2%, 0) scale(1.02);
    background-position: 100% 80%;
    filter: hue-rotate(-6deg) saturate(1.15);
  }
}

/* TESTIMONIALS */
.testimonials .container { max-width: 800px; }

.testimonial-card { margin-top: 12px; }

.testimonial-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  margin: 0 0 8px;
  font-style: italic;
  color: #475569;
}

/* CONTACT */
.contact {
  background: var(--primary);
  color: #ffffff;
}

.contact h2 { color: #ffffff; }

.contact-copy {
  max-width: 900px;
  margin: 0 auto 1rem;
  text-align: center;
}

/* FOOTER */
.site-footer {
  padding: 20px 0;
  text-align: center;
  background: #0f172a;
  color: #cbd5f5;
}

.footer-inner { font-size: 0.875rem; }

/* =========================
   OFF-CANVAS DRAWER + TAB
   ========================= */
#offcanvasPanel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100vh;

  background: linear-gradient(
    135deg,
    rgba(13, 71, 161, 0.39),
    rgba(15, 23, 42, 0.45)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.6);

  padding: 52px 20px 24px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1400;

  color: #ffffff;
}

#offcanvasPanel.open { transform: translateX(0); }

#offcanvasPanel h3 { margin: 0 0 0.5rem; }

#offcanvasPanel .required-note {
  font-size: 0.85rem;
  margin: 0 0 1rem;
  color: #ffffff;
}

/* Glass Sticky Tab */
.offcanvas-toggle {
  position: fixed;
  top: 50%;
  right: 17px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;

  background: linear-gradient(
    135deg,
    rgba(13, 71, 161, 0.39),
    rgba(15, 23, 42, 0.45)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.45);

  color: #ffffff;
  padding: 10px 24px;
  border-radius: 999px 999px 0 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
  white-space: nowrap;
  z-index: 1500;
  transition: right 0.28s ease;
}

body.drawer-open .offcanvas-toggle {
  right: calc(min(420px, 90vw) + 17px);
}

#offcanvasClose {
  position: absolute;
  top: 10px;
  left: 10px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: #ffffff;
}

#offcanvasPanel .contact-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

#offcanvasPanel .contact-form label {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

#offcanvasPanel .contact-form input,
#offcanvasPanel .contact-form select,
#offcanvasPanel .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

#offcanvasPanel .contact-form input::placeholder,
#offcanvasPanel .contact-form textarea::placeholder {
  color: #94a3b8;
}

.form-error-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #ffffff;
  font-size: 0.9rem;
  border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { grid-template-columns: 1fr auto; }

  .primary-nav {
    right: 16px;
    transform: none;
  }

  .hero { background-attachment: scroll !important; }
}

@media (max-width: 600px) {
  .offcanvas-toggle {
    padding: 9px 20px;
    font-size: 0.85rem;
  }
}