/*=========================================================
    MIGARA CARE
    HOMEPAGE
    Version: 1.0
=========================================================*/

.home-page {
  overflow: hidden;
  background: #ffffff;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page img {
  max-width: 100%;
}

/*=========================================================
                    SHARED HOMEPAGE
=========================================================*/

.home-section-eyebrow {
  display: inline-block;

  margin-bottom: 12px;

  color: #b4871c;

  font-family: "Poppins", sans-serif;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.8px;

  line-height: 1.4;

  text-transform: uppercase;
}

.home-section-heading {
  max-width: 760px;

  margin: 0 auto 52px;

  text-align: center;
}

.home-section-heading h2 {
  margin: 0;

  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: clamp(30px, 4vw, 48px);

  font-weight: 700;

  line-height: 1.16;
}

.home-section-heading h2 span {
  color: #b4871c;
}

.home-section-heading p {
  max-width: 680px;

  margin: 18px auto 0;

  color: #667085;

  font-family: "Inter", sans-serif;

  font-size: 15px;

  line-height: 1.8;
}

/*=========================================================
                            BUTTONS
=========================================================*/

.home-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 48px;

  padding: 13px 20px;

  border-radius: 8px;

  font-family: "Poppins", sans-serif;

  font-size: 13px;

  font-weight: 700;

  line-height: 1.2;

  text-align: center;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn-primary {
  background: #c89b2c;

  color: #ffffff;

  border: 2px solid #c89b2c;

  box-shadow: 0 8px 20px rgba(200, 155, 44, 0.18);
}

.home-btn-primary:hover {
  background: #ae821d;

  border-color: #ae821d;

  color: #ffffff;

  box-shadow: 0 12px 26px rgba(200, 155, 44, 0.25);
}

.home-btn-secondary {
  background: #ffffff;

  color: #17263a;

  border: 2px solid #c89b2c;
}

.home-btn-secondary:hover {
  background: #fffaf0;

  color: #17263a;
}

.home-btn-light {
  background: #ffffff;

  color: #1b2d43;

  border: 2px solid #ffffff;
}

.home-btn-light:hover {
  background: #fffaf0;

  color: #1b2d43;
}

/*=========================================================
                            HERO
=========================================================*/

.home-hero {
  position: relative;

  min-height: 620px;

  display: flex;

  align-items: center;

  padding: 70px 0 84px;

  background: linear-gradient(110deg, #fffaf1 0%, #ffffff 55%, #f7f1e5 100%);

  overflow: hidden;
}

.home-hero-shape {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;
}

.home-hero-shape-one {
  width: 460px;
  height: 460px;

  right: -190px;
  top: -190px;

  border: 1px solid rgba(200, 155, 44, 0.18);
}

.home-hero-shape-two {
  width: 280px;
  height: 280px;

  left: -170px;
  bottom: -170px;

  background: rgba(200, 155, 44, 0.07);
}

.home-hero-grid {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);

  align-items: center;

  gap: 60px;
}

.home-hero-content {
  max-width: 650px;
}

.home-eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 18px;

  color: #a97912;

  font-family: "Poppins", sans-serif;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.7px;

  text-transform: uppercase;
}

.home-eyebrow::before {
  content: "";

  width: 32px;
  height: 2px;

  background: #c89b2c;

  border-radius: 2px;
}

.home-hero h1 {
  max-width: 650px;

  margin: 0;

  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: clamp(42px, 5.1vw, 68px);

  font-weight: 700;

  letter-spacing: -1.5px;

  line-height: 1.06;
}

.home-hero h1 span {
  display: block;

  color: #b4871c;
}

.home-hero-description {
  max-width: 620px;

  margin: 25px 0 0;

  color: #5f6b7a;

  font-family: "Inter", sans-serif;

  font-size: 17px;

  line-height: 1.85;
}

.home-hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;
}

.home-hero-trust {
  display: flex;

  flex-wrap: wrap;

  gap: 22px;

  margin-top: 32px;
}

.home-trust-item {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #4f5b68;

  font-family: "Inter", sans-serif;

  font-size: 14px;

  font-weight: 600;

  line-height: 1.45;
}

.home-trust-item i {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  background: #fff2d5;

  color: #b4871c;

  border-radius: 50%;

  font-size: 13px;
}

.home-hero-media {
  display: flex;

  justify-content: flex-end;
}

.home-hero-image-wrap {
  position: relative;

  width: min(100%, 560px);
}

.home-hero-image-wrap::before {
  content: "";

  position: absolute;

  inset: 18px -18px -18px 18px;

  background: #e9d8a9;

  border-radius: 30px;

  z-index: 0;
}

.home-hero-image {
  position: relative;
  z-index: 1;

  display: block;

  width: 100%;

  height: 470px;

  object-fit: cover;

  border-radius: 28px 28px 28px 110px;

  box-shadow: 0 24px 60px rgba(31, 43, 57, 0.14);
}

.home-hero-location-card {
  position: absolute;

  z-index: 2;

  left: -28px;
  bottom: 24px;

  display: flex;

  align-items: center;

  gap: 11px;

  max-width: 245px;

  padding: 13px 16px;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid rgba(23, 38, 58, 0.07);

  border-radius: 12px;

  box-shadow: 0 14px 30px rgba(31, 43, 57, 0.12);
}

.home-hero-location-card > i {
  color: #c89b2c;

  font-size: 17px;
}

.home-hero-location-card div {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.home-hero-location-card strong {
  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: 12px;
}

.home-hero-location-card span {
  color: #748091;

  font-family: "Inter", sans-serif;

  font-size: 10px;
}

/*=========================================================
                    THREE CORE SERVICES
=========================================================*/

.home-services {
  padding: 94px 0;

  background: #ffffff;
}

.home-service-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.home-service-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 390px;

  padding: 34px 30px;

  background: #ffffff;

  border: 1px solid #eceff2;
  border-radius: 18px;

  box-shadow: 0 12px 34px rgba(31, 43, 57, 0.06);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.home-service-card:hover {
  transform: translateY(-6px);

  border-color: rgba(200, 155, 44, 0.35);

  box-shadow: 0 20px 42px rgba(31, 43, 57, 0.1);
}

.home-service-card-featured {
  background: linear-gradient(145deg, #fffaf0, #ffffff 70%);

  border-color: rgba(200, 155, 44, 0.28);
}

.home-service-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  margin-bottom: 24px;

  background: #fff2d5;

  color: #b4871c;

  border-radius: 50%;

  font-size: 21px;
}

.home-service-number {
  position: absolute;

  top: 28px;
  right: 28px;

  color: #d7dbe0;

  font-family: "Poppins", sans-serif;

  font-size: 25px;

  font-weight: 700;
}

.home-service-card h3 {
  max-width: 290px;

  margin: 0 0 15px;

  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: 20px;

  line-height: 1.3;
}

.home-service-card p {
  margin: 0;

  color: #697586;

  font-family: "Inter", sans-serif;

  font-size: 15px;

  line-height: 1.8;

  text-align: justify;
}

.home-service-actions {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 13px;

  min-height: 80px;

  margin-top: auto;

  padding-top: 25px;
}
.home-service-card:not(.home-service-card-featured) > .home-text-link {
  margin-top: auto;
}
.home-text-link {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #b4871c;

  font-family: "Poppins", sans-serif;

  font-size: 13px;

  font-weight: 700;

  text-decoration: none;
}

.home-text-link i {
  transition: transform 0.25s ease;
}

.home-text-link:hover {
  color: #9b7417;
}

.home-text-link:hover i {
  transform: translateX(4px);
}

.home-vacancy-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 42px;

  padding: 10px 14px;

  background: var(--primary);

  color: #ffffff;

  border: 2px solid var(--primary-dark);

  border-radius: 7px;

  font-family: "Poppins", sans-serif;

  font-size: 11px;

  font-weight: 700;

  text-decoration: none;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.home-vacancy-button:hover {
  background: #243b55;

  color: #ffffff;

  transform: translateY(-1px);
}

.home-service-note {
  margin-top: 18px;

  padding: 12px 13px;

  background: #f8f6f0;

  border-left: 3px solid #c89b2c;

  color: #5f6670;

  font-family: "Inter", sans-serif;

  font-size: 11px;

  line-height: 1.65;
}
@media (max-width: 650px) {
  .home-service-actions {
    min-height: auto;
  }
}

/*=========================================================
        SERVICE CARD — EQUAL LINK ALIGNMENT
=========================================================*/

.home-service-card {
  display: flex;
  flex-direction: column;
}

.home-service-card > .home-text-link {
  margin-top: auto;
}

/*---------------------------------------------------------
    SIL CARD HAS TWO ACTIONS
---------------------------------------------------------*/

.home-service-card-featured .home-service-actions {
  margin-top: auto;
}

/*---------------------------------------------------------
    OTHER SERVICE CARDS
---------------------------------------------------------*/

.home-service-card:not(.home-service-card-featured) > .home-text-link {
  margin-top: auto;
}

/*=========================================================
                    STATE COVERAGE
=========================================================*/

.home-state-section {
  padding: 0 0 94px;

  background: #ffffff;
}

.home-state-card {
  display: grid;

  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 28px;

  padding: 34px 38px;

  background: #f8f4e9;

  border: 1px solid #eee4cc;

  border-radius: 20px;
}

.home-state-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  background: #ffffff;

  color: #b4871c;

  border-radius: 50%;

  box-shadow: 0 8px 22px rgba(31, 43, 57, 0.06);

  font-size: 22px;
}

.home-state-content .home-section-eyebrow {
  margin-bottom: 7px;
}

.home-state-content h2 {
  margin: 0;

  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: clamp(21px, 2.4vw, 30px);

  line-height: 1.25;
}

.home-state-content p {
  max-width: 760px;

  margin: 11px 0 0;

  color: #697586;

  font-family: "Inter", sans-serif;

  font-size: 14px;

  line-height: 1.75;
}

.home-state-badges {
  display: flex;

  flex-direction: column;

  gap: 8px;
}

.home-state-badges span {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  min-width: 150px;

  padding: 8px 11px;

  background: #ffffff;

  color: #465261;

  border-radius: 7px;

  font-family: "Poppins", sans-serif;

  font-size: 13px;

  font-weight: 600;
}

.home-state-badges i {
  color: #c89b2c;
}

/*=========================================================
                    WHY CHOOSE
=========================================================*/

.home-why {
  padding: 96px 0;

  background: #f9fafb;
}

.home-why-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.home-why-card {
  display: flex;

  align-items: flex-start;

  gap: 18px;

  min-height: 190px;

  padding: 28px;

  background: #ffffff;

  border: 1px solid #e9edf1;

  border-radius: 16px;

  box-shadow: 0 10px 30px rgba(31, 43, 57, 0.045);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.home-why-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 18px 38px rgba(31, 43, 57, 0.08);
}

.home-why-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  background: #fff2d5;

  color: #b4871c;

  border-radius: 12px;

  font-size: 17px;
}

.home-why-card h3 {
  margin: 2px 0 9px;

  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: 17px;

  line-height: 1.35;
}

.home-why-card p {
  margin: 0;

  color: #697586;

  font-family: "Inter", sans-serif;

  font-size: 15px;

  line-height: 1.75;
}

/*=========================================================
                    SIL VACANCIES
=========================================================*/

.home-vacancies {
  padding: 96px 0;

  background: #ffffff;
}

.home-vacancy-panel {
  position: relative;

  display: grid;

  grid-template-columns: 1fr 0.72fr;

  align-items: center;

  background: var(--primary-dark);

  border-radius: 24px;

  overflow: hidden;

  box-shadow: 0 22px 48px rgba(23, 38, 58, 0.16);
}

.home-vacancy-panel::before {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  right: -170px;
  top: -160px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 50%;
}

.home-vacancy-panel::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  right: 120px;
  bottom: -125px;

  border: 1px solid rgba(200, 155, 44, 0.35);

  border-radius: 50%;
}

.home-vacancy-content {
  position: relative;

  z-index: 2;

  max-width: 610px;
}
.home-vacancy-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;

  overflow: hidden;
  border-radius: 30px;
}

.home-vacancy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding-left: 40px;
}

.home-vacancy-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.home-vacancy-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.home-vacancy-label {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: #ffffff;

  font-family: "Poppins", sans-serif;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.2px;

  text-transform: uppercase;
}

.home-vacancy-label > span {
  padding: 4px 7px;

  background: #c89b2c;

  color: #ffffff;

  border-radius: 999px;

  font-size: 8px;

  letter-spacing: 0.7px;
}

.home-vacancy-content h2 {
  margin: 18px 0 13px;

  color: #ffffff;

  font-family: "Poppins", sans-serif;

  font-size: clamp(30px, 4vw, 48px);

  line-height: 1.1;
}

.home-vacancy-content p {
  max-width: 580px;

  margin: 0 0 26px;

  color: rgba(255, 255, 255, 0.78);

  font-family: "Inter", sans-serif;

  font-size: 14px;

  line-height: 1.8;
}

.home-vacancy-visual {
  position: relative;

  min-height: 250px;
}

.home-vacancy-house {
  position: absolute;

  right: 18%;

  top: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 150px;
  height: 150px;

  transform: translateY(-50%);

  background: rgba(255, 255, 255, 0.09);

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 50%;

  color: #e7c66d;

  font-size: 62px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

.home-vacancy-dot {
  position: absolute;

  display: block;

  width: 10px;
  height: 10px;

  background: #c89b2c;

  border-radius: 50%;
}

.home-vacancy-dot-one {
  top: 18%;
  right: 10%;
}

.home-vacancy-dot-two {
  bottom: 16%;
  right: 35%;
}

.home-vacancy-dot-three {
  top: 35%;
  right: 48%;

  width: 6px;
  height: 6px;

  background: #ffffff;
}

/*=========================================================
                    REFERRAL CTA
=========================================================*/

.home-referral {
  padding: 0 0 100px;

  background: #ffffff;
}

.home-referral-card {
  display: grid;

  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 28px;

  padding: 36px 40px;

  background: #fff7e7;

  border: 1px solid #ead8aa;

  border-radius: 20px;
}

.home-referral-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  background: #c89b2c;

  color: #ffffff;

  border-radius: 50%;

  font-size: 22px;
}

.home-referral-content .home-section-eyebrow {
  margin-bottom: 5px;
}

.home-referral-content h2 {
  margin: 0;

  color: #17263a;

  font-family: "Poppins", sans-serif;

  font-size: clamp(23px, 3vw, 32px);

  line-height: 1.25;
}

.home-referral-content p {
  max-width: 720px;

  margin: 9px 0 0;

  color: #667085;

  font-family: "Inter", sans-serif;

  font-size: 15px;

  line-height: 1.75;
}

/*=========================================================
                    ANIMATION
=========================================================*/

.home-page .home-hero-content,
.home-page .home-hero-media,
.home-page .home-service-card,
.home-page .home-why-card,
.home-page .home-state-card,
.home-page .home-vacancy-panel,
.home-page .home-referral-card {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.home-page .home-hero-content,
.home-page .home-hero-media {
  opacity: 1;

  transform: none;
}

.home-page .home-service-card.show,
.home-page .home-why-card.show,
.home-page .home-state-card.show,
.home-page .home-vacancy-panel.show,
.home-page .home-referral-card.show {
  opacity: 1;

  transform: translateY(0);
}

/*=========================================================
                    RESPONSIVE
=========================================================*/

@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: 1fr 0.9fr;

    gap: 38px;
  }

  .home-hero h1 {
    font-size: clamp(40px, 5vw, 58px);
  }

  .home-hero-image {
    height: 420px;
  }

  .home-service-grid,
  .home-why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-service-card:first-child {
    grid-column: 1 / -1;
  }

  .home-state-card {
    grid-template-columns: auto 1fr;
  }

  .home-state-badges {
    grid-column: 2;

    flex-direction: row;
  }

  .home-referral-card {
    grid-template-columns: auto 1fr;
  }

  .home-referral-card > .home-btn {
    grid-column: 2;

    justify-self: start;
  }
}

@media (max-width: 850px) {
  .home-hero {
    min-height: auto;

    padding: 62px 0 76px;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;

    gap: 42px;
  }

  .home-hero-content {
    max-width: 720px;

    text-align: center;

    margin: 0 auto;
  }

  .home-eyebrow {
    justify-content: center;
  }

  .home-hero h1 {
    margin-left: auto;
    margin-right: auto;

    font-size: clamp(40px, 7vw, 56px);
  }

  .home-hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-actions {
    justify-content: center;
  }

  .home-hero-trust {
    justify-content: center;
  }

  .home-hero-media {
    justify-content: center;
  }

  .home-hero-image-wrap {
    width: min(100%, 620px);
  }

  .home-hero-image {
    height: 390px;
  }

  .home-state-card {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .home-state-icon {
    margin: 0 auto;
  }

  .home-state-badges {
    grid-column: auto;

    justify-content: center;
  }

  .home-vacancy-panel {
    grid-template-columns: 1fr;

    gap: 25px;

    padding: 45px 38px;
  }

  .home-vacancy-visual {
    min-height: 170px;
  }

  .home-vacancy-house {
    right: 50%;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 650px) {
  .home-services,
  .home-why,
  .home-vacancies {
    padding: 70px 0;
  }

  .home-referral {
    padding-bottom: 70px;
  }

  .home-section-heading {
    margin-bottom: 36px;
  }

  .home-section-heading h2 {
    font-size: 31px;
  }

  .home-section-heading p {
    font-size: 14px;
  }

  .home-hero {
    padding: 48px 0 62px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 9vw, 45px);

    letter-spacing: -0.8px;
  }

  .home-hero-description {
    font-size: 15px;

    line-height: 1.75;
  }

  .home-hero-actions {
    flex-direction: column;

    width: min(100%, 360px);

    margin-left: auto;
    margin-right: auto;
  }

  .home-btn {
    width: 100%;
  }

  .home-hero-trust {
    flex-direction: column;

    align-items: center;

    gap: 12px;
  }

  .home-hero-image {
    height: 300px;

    border-radius: 22px 22px 22px 70px;
  }

  .home-hero-image-wrap::before {
    inset: 10px -8px -10px 8px;

    border-radius: 22px;
  }

  .home-hero-location-card {
    left: 12px;

    bottom: 12px;

    max-width: 220px;

    padding: 10px 12px;
  }

  .home-service-grid,
  .home-why-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card:first-child {
    grid-column: auto;
  }

  .home-service-card {
    min-height: auto;

    padding: 28px 24px;
  }

  .home-state-card {
    padding: 28px 22px;
  }

  .home-state-content h2 {
    font-size: 23px;
  }

  .home-state-badges {
    flex-direction: column;

    align-items: stretch;
  }

  .home-state-badges span {
    justify-content: center;
  }

  .home-vacancy-panel {
    padding: 36px 24px;

    border-radius: 20px;
  }

  .home-vacancy-content h2 {
    font-size: 32px;
  }

  .home-referral-card {
    grid-template-columns: 1fr;

    padding: 30px 24px;

    text-align: center;
  }

  .home-referral-icon {
    margin: 0 auto;
  }

  .home-referral-card > .home-btn {
    grid-column: auto;

    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
