:root {
  --blue: #1f6ed4;
  --navy: #113c78;
  --deep: #0b2447;
  --red: #c92127;
  --green: #5fae88;
  --mint: #e9f6f0;
  --gray: #f5f7fa;
  --line: #dce5ef;
  --text: #243244;
  --muted: #64748b;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(17, 60, 120, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(95, 174, 136, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--deep);
  color: var(--white);
}

.skip-link:focus {
  left: 12px;
}

.topbar {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.topbar .wrap,
.nav .wrap,
.section,
.footer .wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.15;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.menu a {
  position: relative;
  padding: 8px 0;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 110, 212, 0.2);
}

.btn.secondary {
  background: var(--green);
}

.btn.light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn.red {
  background: var(--red);
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
}

.hero {
  --hero-image: url("photos/hero-home-care.jpg");
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 31, 63, 0.88), rgba(17, 60, 120, 0.65) 48%, rgba(17, 60, 120, 0.18)),
    var(--hero-image) center/cover;
  color: var(--white);
}

.hero .section {
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 90px 0 120px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 7vw, 5.35rem);
  max-width: 780px;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.28rem;
}

.hero-buttons,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.call-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.call-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-strip {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-strip div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.hero-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--gray);
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(17, 60, 120, 0.06);
  overflow: hidden;
}

.card.pad {
  padding: 28px;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--navy);
  font-weight: 900;
  font-size: 1.35rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 20px;
  margin: 14px 0 0;
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.feature-image {
  border-radius: 28px;
  min-height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
}

.process .card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.page-hero {
  --page-hero-image: url("photos/page-warm-care.jpg");
  background:
    linear-gradient(90deg, rgba(11, 36, 71, 0.92), rgba(17, 60, 120, 0.62)),
    var(--page-hero-image) center/cover;
  color: var(--white);
}

.page-hero.about-hero {
  --page-hero-image: url("photos/about-home-care.jpg");
}

.page-hero.services-hero {
  --page-hero-image: url("photos/services-support.jpg");
}

.page-hero.request-hero {
  --page-hero-image: url("photos/personal-care.jpg");
}

.page-hero.careers-hero {
  --page-hero-image: url("photos/careers-team.jpg");
}

.page-hero.faq-hero,
.page-hero.contact-hero {
  --page-hero-image: url("photos/page-warm-care.jpg");
}

.page-hero .section {
  padding: 100px 0;
}

.page-hero h1 {
  max-width: 850px;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.service-list {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.service-list .card {
  scroll-margin-top: 110px;
}

.service-list .card h3 {
  color: var(--navy);
}

.form-shell {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.form-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
}

.check-field input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

label {
  color: var(--deep);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--deep);
  font-weight: 800;
}

.form-note {
  padding: 14px 16px;
  border: 1px solid #d7e4f2;
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--text);
  font-size: 0.96rem;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.consent-row input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.legal-content p,
.legal-content li {
  color: var(--text);
}

.legal-content a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  color: var(--deep);
  font-weight: 900;
  font-size: 1.08rem;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta {
  background: linear-gradient(135deg, var(--deep), var(--navy));
  color: var(--white);
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
}

.footer {
  background: #071b35;
  color: rgba(255, 255, 255, 0.82);
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.footer a {
  display: block;
  margin: 8px 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
}

.footer .social-link {
  display: inline-flex;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  line-height: 1;
}

.facebook-icon {
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
}

.instagram-icon {
  background: radial-gradient(circle at 30% 110%, #fdf497 0 16%, #fd5949 42%, #d6249f 65%, #285aeb 100%);
  font-size: 1rem;
}

.resource-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
}

.resource-card img {
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer .brand {
  margin-bottom: 18px;
}

.footer .brand strong,
.footer .brand span {
  color: var(--white);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.footer-bottom a {
  display: inline;
  margin: 0 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-placeholder {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(245, 247, 250, 0.88), rgba(245, 247, 250, 0.88)),
    repeating-linear-gradient(45deg, #dbe5ef 0 1px, transparent 1px 24px);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.map-card {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff, var(--mint));
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 34px;
}

.map-card h3 {
  font-size: 1.8rem;
}

.mini {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1040px) {
  .mobile-toggle {
    display: block;
  }

  .menu,
  .nav-actions {
    display: none;
  }

  .nav.open .menu,
  .nav.open .nav-actions {
    display: flex;
    width: 100%;
  }

  .nav.open .wrap {
    flex-wrap: wrap;
  }

  .nav.open .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav.open .nav-actions {
    flex-wrap: wrap;
  }

  .hero-strip,
  .grid.four,
  .grid.three,
  .feature,
  .form-shell,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar .wrap,
  .hero-buttons,
  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .section {
    min-height: auto;
    padding: 72px 0 280px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip div {
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .feature,
  .form-shell,
  .footer-grid,
  .form-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .topbar .wrap,
  .nav .wrap,
  .footer .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .btn {
    width: 100%;
  }

  .resource-card {
    grid-template-columns: 1fr;
  }

  .resource-card img {
    width: 100%;
    max-height: 260px;
  }
}
