:root {
  --primary: #a271c6;
  --primary-dark: #a271c6;
  --accent: #a271c6;
  --bg: #ffffff;
  --text: #000000;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e0e4ee;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --hero-video-scale: 1.05;
  --hero-video-offset-y: 0px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-header {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-phone-icon {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-phone-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.header-phone-icon:hover {
  filter: brightness(1.05);
}

.logo-image {
  height: 56px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.22rem;
  background: rgba(162, 113, 198, 0.15);
  border: 1px solid rgba(162, 113, 198, 0.6);
  padding: 0.3rem 0.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.hero {
  position: relative;
  padding: 5rem 0 6rem;
  color: #f9fafb;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000; /* neutral fallback behind video */
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% 60%;
  filter: brightness(0.45);
  transform-origin: center center;
  transform: scale(var(--hero-video-scale)) translateY(var(--hero-video-offset-y));
}


.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.hero-content{
  text-align: center;
  margin-inline: auto;
  max-width: 36rem;
}

.hero-logo {
  margin-bottom: 0.75rem;
}

.hero-logo-image {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content p {
  max-width: 32rem;
  color: #ffffff;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.secondary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1120;
}

.btn.secondary:hover {
  filter: brightness(1.05);
}

/* Prevent CTA links from turning default visited blue/purple */
a.btn:link,
a.btn:visited {
  color: inherit;
}

.btn:focus,
.btn:active {
  outline: none;
}

.btn.block {
  width: 100%;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: #ffffff;
  justify-content: center;
}

.hero-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #a271c6;
  margin-right: 0.4rem;
}

.section {
  padding: 3rem 0;
}

/* Slightly reduce top spacing before the how-it-works section/logo */
#how-it-works {
  padding-top: 0rem;
}

.section-alt {
  background: #ffffff;
  color: var(--text);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-logo {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

/* Tighter spacing in Service Areas section between H2 and subheadings */
#areas .section-header {
  margin-bottom: 0rem;
}

.section-header.align-left {
  text-align: left;
}

/* Center headings in About section */
#about .section-header,
#about .section-header.align-left {
  text-align: center;
}

#about .why-card h3,
#about .care-card h3,
#about .care-reviews-card h3 {
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.35rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.how-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.how-step {
  text-align: center;
}

.how-step-number {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: #f3f4f6;
  color: #000000;
  margin-bottom: 0.6rem;
}

.card {
  background: var(--white);
  padding: 1.3rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.service-card p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
}

/* Visually center lists inside cards */
.card ul {
  display: inline-block;      /* shrink to content so it centers within text-align:center card */
  text-align: left;           /* keep bullet text left-aligned relative to bullets */
}

/* Make default list bullets purple in key sections */
.service-card ul li::marker,
.care-card ul li::marker,
#services ul li::marker,
#areas ul li::marker {
  color: #a271c6;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: stretch;
}

.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1rem;
}

.why-card {
  height: 100%;
}

.care-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.care-reviews {
  margin-top: 1.25rem;
  text-align: center;
}

.care-reviews-panel {
  margin-top: 1rem;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.care-reviews-panel.open {
  display: grid;
}

.care-review-quote {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.care-review-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  text-align: center;              /* center the group within the card */
}

.checklist li {
  display: inline-flex;            /* center each line and its checkmark */
  align-items: flex-start;
  justify-content: center;
}

.checklist li + li {
  margin-top: 0.35rem;
}

.checklist li::before {
  content: "\2713";
  color: #a271c6;                  /* purple checkmark */
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: stretch;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: center;
  justify-items: center;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pill-list li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #000000;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--primary-dark);
  color: white;
  padding: .25rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-links {
  margin: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer a {
  color: rgba(248, 250, 252, 0.9);
}

@media (min-width: 901px) {
  /* Desktop-only tweaks for About section layout */
  #about .care-card {
    margin-top: 1.75rem;          /* space between why-cards and We Care card */
  }

  .about-right {
    align-self: flex-start;
    margin-top: .5rem;             /* push What Our Customers Say lower on desktop */
  }

  /* Desktop: always show reviews, hide toggle button */
  #about .care-reviews-panel {
    display: grid;
  }

  #about .review-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {

  .nav {
    position: fixed;
    inset: 56px 1rem auto 1rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav a {
    color: var(--text);
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    padding-inline: 0.2rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 1.1rem 1rem;
  }
}