:root {
  --v2-bg: #eef2f8;
  --v2-surface: #ffffff;
  --v2-text: #0f2138;
  --v2-muted: #4a5c76;
  --v2-primary: #c44c35;
  --v2-primary-strong: #a83b25;
  --v2-border: #d4dceb;
  --v2-overlay: rgba(8, 18, 36, 0.62);
  --v2-radius: 14px;
  --v2-shadow: 0 18px 36px rgba(4, 12, 24, 0.16);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  padding-bottom: 76px;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  min-width: 0;
}

.card {
  background: var(--v2-surface);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  padding: 0.74rem 1rem;
  min-height: 46px;
}

.btn-primary {
  color: #fff;
  background: var(--v2-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--v2-primary-strong);
}

.btn-outline {
  color: #fff;
  border-color: #d8e3ff;
  background: rgba(16, 32, 64, 0.32);
}

.v2-top-shell {
  position: sticky;
  top: 0;
  z-index: 95;
  background: #fff;
  border-bottom: 1px solid var(--v2-border);
}

.v2-top-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
}

.v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  font-weight: 700;
  color: #173252;
  min-width: 0;
}

.v2-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d7deeb;
  background: #fff;
}

.v2-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-nav-desktop {
  display: none;
}

.v2-menu details {
  position: relative;
}

.v2-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  font-weight: 700;
  padding: 0.52rem 0.82rem;
  background: #fff;
}

.v2-menu summary::-webkit-details-marker {
  display: none;
}

.v2-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 16px 28px rgba(4, 12, 24, 0.2);
  padding: 0.45rem;
  z-index: 95;
}

.v2-menu-list a {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.52rem 0.68rem;
  color: #163050;
  font-weight: 600;
}

.v2-menu-list a:hover,
.v2-menu-list a:focus-visible {
  background: #edf2fa;
}

.v2-phone-btn {
  white-space: nowrap;
  font-weight: 700;
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  background-image: url("../uploads/hero_appliance_repair_service.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2.2rem 0 2.6rem;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--v2-overlay);
  z-index: 0;
}

.hero-grid,
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.2rem;
}

.hero-copy,
.page-hero-copy {
  max-width: 44rem;
}

.home-hero-copy {
  max-width: 552px;
}

.hero-badge,
.page-hero-badge {
  display: inline-block;
  border: 1px solid rgba(245, 251, 255, 0.6);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.85rem;
  background: rgba(20, 35, 62, 0.45);
}

.hero-title,
.page-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 6.2vw, 3.4rem);
  line-height: 1.08;
}

.hero-text,
.page-hero-text {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  max-width: 42ch;
}

.hero-ctas,
.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wsite-page-index .hero-ctas .btn {
  width: 100%;
}

@media (min-width: 480px) and (max-width: 959px) {
  .wsite-page-index .hero-ctas .btn {
    width: calc(50% - 0.38rem);
  }
}

.book-card {
  padding: 1rem;
  width: 100%;
}

.book-card h3 {
  color: #152d4e;
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
}

.form-stack {
  display: grid;
  gap: 0.68rem;
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bcc9de;
  border-radius: 8px;
  min-height: 45px;
  padding: 0.6rem 0.78rem;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 104px;
  resize: vertical;
}

.book-card .btn {
  width: 100%;
}

.contact-form-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.home-highlight {
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
}

.home-highlight-grid {
  display: grid;
  gap: 1rem;
}

.wsite-page-index .home-mobile-stack {
  display: flex;
  flex-direction: column;
}

.wsite-page-index .home-hero {
  order: 1;
}

.wsite-page-index .home-highlights {
  order: 3;
}

.wsite-page-index .home-services {
  order: 3;
}

.wsite-page-index .home-service-areas {
  order: 4;
}

.wsite-page-index .home-appliance-brands {
  order: 5;
}

.wsite-page-index .home-trust {
  order: 6;
}

.home-highlight .card {
  padding: 1rem;
}

.home-highlight h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: #173352;
}

.home-highlight p {
  margin: 0;
  color: #263e61;
}

.home-trust-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
}

.home-trust-logos img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.home-accordion {
  width: min(1120px, 100% - 2rem);
  margin: 1rem auto 0;
}

.wsite-page-index .home-affordable-section {
  order: 7;
}

.home-accordion > summary {
  list-style: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow);
  color: #183455;
  font-weight: 800;
  padding: 0.9rem 1rem;
}

.home-accordion > summary::-webkit-details-marker {
  display: none;
}

.home-accordion > summary::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  line-height: 1;
}

.home-accordion[open] > summary::after {
  content: "-";
}

.wsite-page-index .home-accordion > :not(summary) {
  display: none;
}

.wsite-page-index .home-accordion[open] > :not(summary) {
  display: block;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  background: rgba(9, 20, 38, 0.95);
  backdrop-filter: blur(6px);
  padding: 0.62rem 0.85rem;
  border-top: 1px solid #33445f;
}

.sticky-cta a {
  text-decoration: none;
  text-align: center;
}

body[class*="wsite-page-"] #header-wrap,
body[class*="wsite-page-"] #banner-wrap {
  display: none;
}

#main-wrap {
  padding-top: 1.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

#main-wrap #page {
  width: min(1120px, 100% - 2rem);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

#main-wrap #main,
#main-wrap #content,
#wsite-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

#wsite-content {
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow);
  padding: 1rem;
  box-sizing: border-box;
}

#wsite-content .wsite-content-title {
  margin: 0 0 1rem;
  color: #183455;
}

#wsite-content .paragraph {
  color: #1d3657;
}

/* Hide the right sidebar column in the first home content block */
.wsite-page-index #wsite-content > div:first-of-type .wsite-multicol-col:last-child {
  display: none !important;
}

.wsite-page-index #wsite-content > div:first-of-type .wsite-multicol-col:first-child {
  width: 100% !important;
}

.wsite-form-container,
.formlist,
.wsite-form-input,
.wsite-input,
.wsite-form-input-container {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

.wsite-button {
  display: inline-flex;
  min-height: 44px;
  border-radius: 10px;
  background: var(--v2-primary);
  color: #fff !important;
}

.wsite-button .wsite-button-inner {
  color: #fff;
  padding: 0.7rem 1rem;
}

.wsite-image img,
#wsite-content img {
  max-width: 100% !important;
  height: auto !important;
}

.wsite-multicol,
.wsite-multicol-table-wrap,
.wsite-multicol-table,
.wsite-multicol-tbody,
.wsite-multicol-tr,
.wsite-multicol-col {
  width: 100% !important;
  max-width: 100% !important;
}

.wsite-multicol-table {
  border-collapse: separate;
}

.wsite-multicol-col {
  display: block;
  padding: 0 !important;
  margin-bottom: 0.9rem;
}

#footer-wrap #page {
  width: min(1120px, 100% - 2rem);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

#footer-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

#footer {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 1rem;
  box-sizing: border-box;
  margin: 1rem 0 1.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}

#footer-wrap,
#footer-wrap .wsite-elements,
#footer-wrap .paragraph,
#footer-wrap table,
#footer-wrap td {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* MOBILE: hero must be 1 column */
@media (max-width: 959px) {
  #footer-wrap,
  #footer-wrap > #page,
  #footer-wrap > #page > #footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  #footer-wrap > #page {
    margin: 0 auto !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  #footer-wrap .paragraph,
  #footer-wrap .wsite-elements,
  #footer-wrap table,
  #footer-wrap td {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #main-wrap,
  #main-wrap > #page,
  #main-wrap > #page > #main,
  #main-wrap > #page > #main > #content,
  #main-wrap > #page > #main > #content > #wsite-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  #main-wrap > #page {
    margin: 0 auto !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  .container.hero-grid,
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* let grid children actually shrink */
  .hero-copy,
  .book-card,
  .page-hero-copy,
  .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }
}

/* Optional safety net if some theme still causes sideways scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .v2-menu {
    display: none;
  }

  .v2-nav-desktop {
    display: block;
    justify-self: center;
  }

  .v2-nav-desktop ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .v2-nav-desktop a {
    text-decoration: none;
    color: #173150;
    font-weight: 700;
    padding: 0.25rem 0.45rem;
  }

  .v2-top-row {
    grid-template-columns: auto 1fr auto;
    gap: 1.1rem;
  }

  .hero,
  .page-hero {
    padding: 2.8rem 0;
    min-height: 74vh;
    display: grid;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 640px) minmax(0, 400px);
    align-items: center;
    gap: 2.3rem;
  }

  .wsite-page-index .home-booking-card {
    justify-self: start;
    width: min(100%, 460px);
    margin-right: auto;
  }

  .wsite-page-index .hero-ctas .btn {
    width: auto;
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-card {
    padding: 1.35rem;
  }

  .contact-form-card {
    max-width: 620px;
  }

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

  .sticky-cta {
    display: none;
  }

  .home-accordion > summary {
    display: block;
    cursor: pointer;
    margin-bottom: 0.75rem;
  }

  .home-accordion > :not(summary) {
    display: block !important;
  }

  #wsite-content {
    padding: 1.45rem;
  }

  .wsite-multicol-table {
    display: table;
  }

  .wsite-multicol-tbody {
    display: table-row-group;
  }

  .wsite-multicol-tr {
    display: table-row;
  }

  .wsite-multicol-col {
    display: table-cell;
    margin: 0;
    padding: 0 10px !important;
    vertical-align: top;
  }
}
