/*
Theme Name: Happier at Home
Theme URI: https://happyathomela.com
Author: Geeks360
Author URI: https://geeks360.net
Description: Custom WordPress theme for the Happier at Home senior care agency. Page content is assembled from ACF Pro Flexible Content layouts, one PHP partial per section.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happier-at-home
*/

:root {
  --cream: #fffcf9;
  --ink: #212121;
  --purple: #300370;
  --purple-dark: #30036f;
  --pink: #aa1f4f;
  --pink-2: #af2e5b;
  --lavender: #f7f4fb;
  --white: #fff;
  --muted: #6d6372;
  --gold: #f0bd37;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: 94px;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 calc((100vw - var(--container)) / 2);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(48, 3, 112, 0.06);
}

.brand img,
.site-header .custom-logo {
  width: 107px;
  height: auto;
}

.brand--text {
  font-size: 24px;
  font-weight: 800;
  color: var(--purple);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 33px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.82;
  letter-spacing: -0.36px;
  text-transform: capitalize;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--pink);
}

.phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 231px;
  height: 58px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--pink);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.936px;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.phone-button:hover{
  transform: translateY(-2px);
  background: #94183f;
}

.phone-button.large {
  min-width: 252px;
  font-size: 25px;
}

.phone-icon {
  display: inline-block;
  width: 28px;
  height: 29px;
  color: var(--white);
}

.phone-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 752px;
  padding-top: 94px;
  padding-bottom: 86px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-color: var(--purple);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(48, 3, 111, 0.4), rgba(48, 3, 111, 0.7));
}

.hero-inner {
  position: relative;
  min-height: 752px;
  padding-top: 84px;
}

.hero-copy {
  max-width: 584px;
}

.hero-copy h1 {
  width: 523px;
  max-width: 100%;
  font-size: 61px;
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -1.159px;
}

.hero-copy p {
  margin-top: 24px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.79;
  letter-spacing: -0.42px;
  text-transform: capitalize;
}

.hero-trust {
  position: absolute;
  left: 594px;
  bottom: 142px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 31px 61px;
  max-width: 500px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.304px;
}

.hero-trust div {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 42px;
  gap: 12px;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.trust-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Hero contact form (Formidable, styling disabled in plugin) ---------- */
.form-container {
  position: relative;
  width: 560px;
  max-width: 100%;
  margin-top: 30px;
  padding: 22px 26px 24px;
  border-radius: 21px;
  border: 1px solid rgba(48, 3, 112, 0.18);
  background: linear-gradient(150deg, #f5f3f9 0%, #ebe9f2 100%);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(48, 3, 112, 0.18);
}

/* Progress bar (content injected by script.js) */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  min-height: 14px;
}

.progress-step {
  flex: 0 0 auto;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.progress-track {
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  border-radius: 21px;
  background: #d9d8e2;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  border-radius: 21px;
  background: var(--purple);
  transition: width 320ms ease;
}

/* Page heading (text injected by script.js) */
.form-page-title {
  margin: 0 0 20px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.form-page-title:empty {
  display: none;
}

/* Formidable structural resets */
.form-block .frm_forms,
.form-block form,
.form-block fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-block .frm_screen_reader,
.form-block .frm_hidden,
.form-block legend {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Honeypot anti-spam field — hidden from humans */
.form-block #frm_field_16_container,
.form-block .frm_verify {
  display: none !important;
}

/* Field layout — flex grid; .frm6 = half width */
.form-block .frm_fields_container,
.form-block .frm_combo_inputs_container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-block .frm_form_field {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
}

.form-block .frm6 {
  flex: 1 1 calc(50% - 7px);
}

/* Field labels */
.form-block .frm_primary_label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}

/* Hide the question label where the injected page title already shows it
   (image-option, checkbox-group and the postal-code step). Page 4 keeps its
   Name / Email / Phone labels. */
.form-block .frm_image_options > .frm_primary_label,
.form-block .frm_form_field:has(.frm_checkbox) > .frm_primary_label,
.form-block .frm_form_field:has(input[type="number"]) > .frm_primary_label {
  display: none;
}

.form-block .frm_required {
  color: var(--pink);
  margin-left: 2px;
}

.form-block .frm_description {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* Page 1 — image radio options as pink cards (radio, icon, label, arrow on one row) */
.form-block .frm_image_options .frm_opt_container {
  /* display: grid;
  grid-template-columns: 1fr 1fr;
   */
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.form-block .frm_image_option {
  margin: 0 !important;
  width: calc(50% - 7px) !important;
}

.form-block .frm_image_option label {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 8px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: var(--white);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

/* Native radio restyled as a circle that fills in on selection */
.form-block .frm_image_option input[type="radio"] {
  position: static !important;
  order: 9;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.form-block .frm_image_option input[type="radio"]:checked {
  border-color: #fff;
  background: radial-gradient(circle at center, var(--pink) 0 4px, #fff 5px);
}

/* Icon + label inline in the same row, no stray frames */
.form-block .frm_image_option_container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border: 0;
  background: transparent;
}

.form-block .frm_image_option img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

.form-block .frm_text_label_for_image {
  display: block;
  border: 0;
  background: transparent;
}

.form-block .frm_text_label_for_image_inner {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.32px;
}

/* Arrow pinned to the far right of the same row */
/* .form-block .frm_image_option label::after {
  content: "\2192";
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
} */

.form-block .frm_image_option label:hover {
  transform: translateY(-2px);
  background: #94183f;
}

.form-block .frm_image_option label:has(input:checked) {
  background: #94183f;
  box-shadow: 0 0 0 3px rgba(48, 3, 112, 0.35);
}

/* Page 2 — checkbox options as pink cards (kept on-brand with the screenshot) */
.form-block .frm_form_field:has(.frm_checkbox) .frm_opt_container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-block .frm_checkbox {
  margin: 0;
}

.form-block .frm_checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--pink);
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.form-block .frm_checkbox label:hover {
  transform: translateY(-2px);
  background: #94183f;
}

.form-block .frm_checkbox label:has(input:checked) {
  background: #94183f;
  box-shadow: 0 0 0 3px rgba(48, 3, 112, 0.3);
}

.form-block .frm_checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.form-block .frm_checkbox input[type="checkbox"]:checked {
  background: var(--white);
}

.form-block .frm_checkbox input[type="checkbox"]:checked::after {
  content: "\2713";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--pink);
  font-size: 14px;
  font-weight: 900;
}

/* Pages 3 & 4 — text inputs */
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="number"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(48, 3, 112, 0.18);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-block input::placeholder {
  color: var(--muted);
}

.form-block input[type="text"]:focus,
.form-block input[type="email"]:focus,
.form-block input[type="tel"]:focus,
.form-block input[type="number"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(48, 3, 112, 0.12);
}

/* Validation errors */
.form-block .frm_error {
  margin-top: 6px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
}

.form-block .frm_blank_field input,
.form-block .frm_blank_field .frm_image_option label {
  border-color: var(--pink);
}

/* Buttons */
.form-block .frm_submit {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.form-block .frm_button_submit {
  flex: 1 1 auto;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  /* background: var(--pink); */
  background: #2C4F26;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.form-block .frm_button_submit:hover {
  transform: translateY(-2px);
  /* background: #94183f; */
  background: #132c0e;
}

.form-block .frm_prev_page {
  order: -1;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid rgba(48, 3, 112, 0.4);
  color: var(--purple);
  font-size: 16px;
  font-weight: 800;
  transition: background-color 180ms ease;
}

.form-block .frm_prev_page:hover {
  background: rgba(48, 3, 112, 0.06);
}

/* Phone link below the form */
.form-phone {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.form-phone .phone-button {
  min-width: 0;
  height: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--pink-2);
  font-size: 28px;
  letter-spacing: -1px;
}

.form-phone .phone-button img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(17%) sepia(74%) saturate(3200%) hue-rotate(316deg) brightness(92%) contrast(95%);
}

.frm_image_options .frm_opt_container{
  margin: 0 !important;
}

/* ---------- Generic section ---------- */
.section {
  padding: 86px 0;
}

.section h2 {
  font-size: 45px;
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.855px;
  text-transform: capitalize;
}

.lead {
  max-width: 584px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.79;
  letter-spacing: -0.32px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12px;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 100px;
  margin-top: 86px;
}

.service-grid article {
  min-height: 140px;
}

.service-badge {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
}

.service-badge img {
  object-fit: contain;
}

.service-grid h3 {
  max-width: 290px;
  margin-top: 22px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.53;
  letter-spacing: 0.022px;
}

/* ---------- Steps ---------- */
.steps {
  padding-top: 58px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  margin-top: 72px;
}

.step-grid article {
  min-height: 316px;
  padding: 42px 40px;
  border-radius: 16px;
  background: var(--lavender);
}

.step-icon {
  display: block;
  width: 111px;
  height: 49px;
  object-fit: contain;
}

.step-grid h3 {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.418px;
}

.step-grid p {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.79;
  letter-spacing: -0.32px;
}

/* ---------- Why choose us ---------- */
.purple-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 876px;
  background: var(--purple);
  color: var(--white);
}

.feature-photo {
  grid-column: 1;
  grid-row: 1;
  background-color: #2a0560;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.feature-copy {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 556px;
  margin-left: 69px;
  padding-top: 39px;
  position: relative;
  z-index: 1;
}

.feature-copy .eyebrow {
  text-transform: none;
}

.feature-copy h2 {
  margin-top: 12px;
  max-width: 555px;
  font-size: 45px;
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.855px;
}

.feature-copy p:not(.eyebrow) {
  max-width: 556px;
  margin-top: 25px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.79;
  letter-spacing: -0.32px;
}

.feature-copy ul {
  display: grid;
  gap: 33px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  position: relative;
  display: flex;
  width: 547px;
  max-width: 100%;
  min-height: 123px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 44px;
  border-radius: 6px;
  background: #481492;
}

.feature-copy li strong {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.399px;
}

.feature-copy li small {
  margin-top: 11px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.79;
  letter-spacing: -0.32px;
}

.feature-check {
  position: absolute;
  left: -18px;
  top: 19px;
  display: grid;
  width: 55px;
  height: 49px;
  place-items: center;
  color: var(--white);
}

.feature-check::before {
  position: absolute;
  inset: 0;
  content: "";
  background: #dd477b;
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 82%);
}

.feature-check::after {
  position: relative;
  content: "";
  width: 20px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--cream);
}

/* Reviews slider: viewport spans the full container width; side arrows
   overlay the edges. --review-visible cards show at once (3 desktop / 1 mobile). */
.review-slider {
  --review-visible: 3;
  --review-gap: 26px;
  position: relative;
  margin-top: 42px;
}

.review-viewport {
  width: 100%;
  overflow: hidden;
}

.review-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--review-gap);
  will-change: transform;
}

.review-grid article {
  flex: 0 0
    calc(
      (100% - (var(--review-visible) - 1) * var(--review-gap)) /
        var(--review-visible)
    );
  box-sizing: border-box;
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.review-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-arrow-prev {
  left: -64px;
}

.review-arrow-next {
  right: -64px;
}

.review-arrow[hidden] {
  display: none;
}

.review-grid article,
.team-grid article {
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(48, 3, 112, 0.08);
}

.review-grid article {
  padding: 28px;
}

.review-grid b {
  color: var(--gold);
  letter-spacing: 4px;
}

.review-grid h3 {
  margin-top: 20px;
  color: var(--pink);
  font-size: 18px;
}

.review-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Team ---------- */
.team {
  padding-top: 62px;
  padding-bottom: 103px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 576px);
  gap: 46px;
  max-width: 1200px;
  margin-top: 42px;
}

.team-grid article {
  min-height: 753px;
  padding: 0 49px 42px;
  overflow: hidden;
}

.team-photo {
  display: grid;
  height: 454px;
  margin: 0 -49px 47px;
  place-items: center;
  background: #ddd;
  color: var(--white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.team-grid h3 {
  color: var(--purple);
  font-size: 21px;
  font-weight: 800;
  line-height: 0.99;
}

.team-grid p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.63;
}

.team-grid .team-role {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(170, 31, 79, 0.1);
  color: var(--pink);
  font-weight: 800;
}

/* ---------- Office ---------- */
.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 576px;
}

.office iframe{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map {
  background-color: #d8d8d8;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.office-card {
  padding: 162px 60px 70px;
  background: #222;
  color: var(--white);
}

.office-card h2 {
  margin-top: 12px;
  color: var(--white);
  font-size: 45px;
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.855px;
  text-transform: capitalize;
}

.office-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0 0;
}

.office-card dt {
  color: var(--white);
  font-size: 18px;
  text-transform: uppercase;
}

.office-card dd {
  margin: 8px 0 0;
  font-size: 24px;
}

.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.office-detail-icon {
  flex: 0 0 auto;
  display: inline-flex;
}

.office-detail-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.office-detail-text {
  min-width: 0;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  min-height: 707px;
  overflow: hidden;
  color: var(--white);
}

.cta .form-container{
  margin-top: 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-color: var(--purple);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 3, 111, 0.4), rgba(48, 3, 111, 0.7));
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 707px;
}

.cta h2 {
  max-width: 540px;
  color: var(--white);
  font-size: 61px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.159px;
}

.cta p {
  max-width: 576px;
  margin-top: 28px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.39;
  letter-spacing: 0.21px;
}

.cta .phone-button {
  margin-top: 34px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.cta .phone-button:hover{
  transform: translateY(-2px);
  background: #94183f;
}

.cta .phone-button{
  max-width: 540px;
}

.cta .cta-form-btn{
  background: #2C4F26;
}

.cta .cta-form-btn:hover{
  background: #132c0e;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 47px 0 64px;
  border-top: 6px solid var(--pink);
  background: var(--purple-dark);
  color: var(--white);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 90px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.footer-logo img {
  width: 155px;
  height: auto;
}

.site-footer p {
  max-width: 443px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.63;
}

.site-footer h2 {
  margin-bottom: 24px;
  font-size: 38px;
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.722px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-menu a {
  display: block;
  margin-bottom: 13px;
  font-size: 18px;
  font-weight: 700;
  line-height: 2.07;
  letter-spacing: 0.18px;
}

.site-footer .footer-menu a:hover {
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .site-header {
    height: 76px;
    padding: 0 18px;
    gap: 0;
  }

  .brand img,
  .site-header .custom-logo {
    width: 94px;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 22px 18px 28px;
    background: var(--white);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-header.menu-open .main-nav {
    display: block;
  }

  .site-header > .phone-button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    width: 36px;
    height: 30px;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 36px;
    height: 2px;
    background: var(--purple);
  }

  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 46px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-trust {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .form-container {
    width: 100%;
  }

  .form-block .frm_image_options .frm_opt_container {
    grid-template-columns: 1fr;
  }

  .form-page-title {
    font-size: 23px;
  }

  .section {
    padding: 58px 0;
  }

  .section h2,
  .feature-copy h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .service-grid,
  .step-grid,
  .team-grid,
  .footer-grid,
  .office,
  .purple-feature {
    grid-template-columns: 1fr;
  }

  .review-slider {
    --review-visible: 1;
  }

  .review-arrow-prev {
    left: 8px;
  }

  .review-arrow-next {
    right: 8px;
  }

  .service-grid {
    gap: 34px;
    margin-top: 46px;
  }

  .service-grid article {
    display: grid;
    min-height: auto;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 18px;
  }

  .service-badge {
    width: 76px;
    height: 76px;
  }

  /* .service-badge img {
    width: 36px;
    height: 36px;
  } */

  .service-grid h3 {
    margin-top: 0;
    font-size: 19px;
  }

  .step-grid {
    margin-top: 42px;
  }

  .feature-photo {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
  }

  .feature-copy,
  .office-card {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
    padding: 44px 24px;
  }

  .feature-copy {
    margin-left: 0;
  }

  .feature-copy li {
    width: 100%;
    min-height: 118px;
    padding: 22px 24px 22px 38px;
  }

  .feature-check {
    left: -8px;
  }

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

  .map {
    min-height: 280px;
  }

  .cta-inner {
    min-height: auto;
    padding: 58px 0;
  }

  .cta h2 {
    font-size: 42px;
  }

  .footer-grid {
    gap: 36px;
  }
}

@media (max-width: 475px) {

  .form-block .frm_image_option{
    width: 100% !important;
  }

  .form-block .frm6{
    flex: unset;
    width: 100%;
  }

  .form-block .frm_button_submit{
    font-size: 16px;
  }

  .feature-check{
    top: -20px;
    width: 48px;
    height: 44px;
  }

  .review-arrow{
    transform: none;
    top: unset;
    bottom: -64px;
  }

  .review-arrow-next{
    right: 110px;
  }

  .review-arrow-prev{
    left: 110px;
  }

  .team-grid article{
    padding: 0 24px 42px;
  }

  .office-card dl{
    gap: 42px;
  }
  
  .cta .cta-form-btn{
    font-size: 20px;
  }

}

/* ---------- Thank You page template ---------- */
.thank-you {
  /* clear the fixed 94px header */
  padding: calc(94px + 100px) 0 120px;
  min-height: 50vh;
}

.thank-you-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thank-you-title {
  font-size: 45px;
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.855px;
  text-transform: capitalize;
  color: var(--purple);
}

.thank-you-text {
  max-width: 584px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.79;
  letter-spacing: -0.32px;
  color: var(--ink);
}

.thank-you-text p + p {
  margin-top: 1em;
}

@media (max-width: 768px) {
  .thank-you {
    padding: calc(94px + 48px) 0 72px;
  }

  .thank-you-title {
    font-size: 34px;
    line-height: 1.08;
  }
}