/* Make It Ring — shared styles for the site pages
   (home, about, moving, cleaning, restoration, results, book-a-call, privacy, terms) */

:root {
  --accent: #FF5A1F;
  --card-pad-tablet: 48px 40px;
  --card-pad-desktop: 68px 60px;
  --lede-mb-desktop: 42px;
}

html { -webkit-text-size-adjust: 100%; }
/* clip (not hidden) — `hidden` makes the page a scroll container and breaks position:sticky */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body { margin: 0; background: #e9e9e7; font-family: 'Archivo', Helvetica, Arial, sans-serif; color: #111; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #111; text-decoration: none; }
a:hover { color: #000; opacity: .75; }
img { max-width: 100%; }
input, button, select { font-family: inherit; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .plus { transform: rotate(45deg); }
.plus { transition: transform 160ms ease; display: inline-block; }

.shell {
  padding: calc(10px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px))
           calc(16px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px));
}
@media (min-width: 700px) {
  .shell {
    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px))
             calc(20px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
  }
}
.card { border-radius: 28px; padding: 26px 20px; }
@media (min-width: 700px) { .card { padding: var(--card-pad-tablet); } }
@media (min-width: 1000px) { .card { padding: var(--card-pad-desktop); } }
.pad { border-radius: 20px; padding: 22px 20px; }
@media (min-width: 700px) { .pad { padding: 30px 26px; } }

.h2 { font-size: clamp(30px, 6.6vw, 50px); letter-spacing: -0.05em; font-weight: 900; line-height: 1.02; margin: 0 0 10px; }
.lede { font-size: clamp(17.5px, 4vw, 19.5px); color: #555; line-height: 1.55; margin: 0 0 26px; }
@media (min-width: 700px) { .lede { margin-bottom: var(--lede-mb-desktop); } }
.badge { display: inline-block; border-radius: 8px; padding: 7px 13px; font-size:13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.label { font-size:13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #999; margin: 0 0 14px; }

.g2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g3 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g4 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats3 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wide { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .wide { gap: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 940px) { .hero { gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero.hero--trade { align-items: center; }
@media (min-width: 940px) { .hero.hero--trade { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 150px 150px; }
@media (min-width: 560px) { .mosaic { grid-template-rows: 1fr 1fr; min-height: 380px; } }
@media (min-width: 940px) { .mosaic { min-height: 460px; } }
.mosaic > div { position: relative; overflow: hidden; border-radius: 18px; background: #f1f1ef; }
.mosaic > div:first-child { grid-row: 1 / span 2; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.inputrow { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px; max-width: 540px; flex-wrap: wrap; }
.selectwrap { position: relative; flex: 1 1 190px; min-width: 0; display: block; }
.selectwrap select { width: 100%; height: 48px; border: 1.5px solid #d8d8d4; border-radius: 999px; background: #fff; font-size:17.5px; font-weight: 600; color: #111; outline: none; appearance: none; -webkit-appearance: none; padding: 0 44px 0 18px; cursor: pointer; }
.selectwrap select:focus { border-color: #111; }
.selectwrap .caret { position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2.5px solid #111; border-bottom: 2.5px solid #111; transform: rotate(45deg); pointer-events: none; }
.gobtn { border: 0; border-radius: 999px; padding: 0 24px; height: 48px; font-size:16.5px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: 0 0 auto; background: var(--accent); color: #fff; }
.gobtn:hover { opacity: .85; }
@media (max-width: 520px) { .inputrow { border-radius: 20px; } .selectwrap { flex: 1 1 100%; } .gobtn { flex: 1 1 100%; } }

.assurances { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
@media (min-width: 620px) { .assurances { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.navlinks { display: none; }
@media (min-width: 1000px) { .navlinks { display: flex; align-items: center; gap: 22px; font-size:16.5px; font-weight: 500; } }
.navphone { display: none; }
@media (min-width: 620px) { .navphone { display: inline-flex; } }
@media (max-width: 560px) { button, select, input { min-height: 44px; } }

/* Results page case layout */
.caseinner { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .caseinner { gap: 36px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); } }

/* Privacy / Terms layout */
.terms { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.full { grid-column: 1 / -1; }
.body { font-size: 18px; line-height: 1.62; color: #555; margin: 0 0 14px; }
.body:last-child { margin-bottom: 0; }

/* Book a call form */
.stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 12px; }
.sheet { width: 100%; max-width: 560px; background: #fff; border-radius: 28px; padding: 26px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.10); }
@media (min-width: 620px) { .sheet { padding: 44px 40px; } }
.field { display: grid; gap: 7px; }
.field input { height: 54px; font-size:18px; padding: 0 18px; border: 1.5px solid #d8d8d4; border-radius: 999px; background: #fff; color: #111; outline: none; width: 100%; }
.field input:focus { border-color: #111; }


/* Lead form validation */
[data-lead-form] input.is-invalid,
[data-lead-form] select.is-invalid {
  border-color: #D92C07 !important;
  background: #FFF7F5 !important;
}
[data-lead-form] .field-error {
  margin: 0;
  color: #C42506;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
[data-lead-form] .form-alert {
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: #FDECE8;
  border: 1.5px solid #F3B5A6;
  border-radius: 16px;
  padding: 13px 15px;
  color: #A81F04;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}
[data-lead-form] .form-alert::before {
  content: "!";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D92C07;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Vetted signal in the hero */
.vetted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #666;
}
.vetted-stars {
  font-size: 15px;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
}

/* Testimonial video */
.vid {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  transition: transform 140ms ease, background 140ms ease;
}
.vid-play svg { margin-left: 3px; }
.vid-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.vid-play:focus-visible { outline: 3px solid var(--accent, #FF5A1F); outline-offset: 3px; }
.vid.is-playing .vid-play { display: none; }

/* The four consultation cards sat two-up on phones, which squeezed each one to
   about 170px and made the headings wrap to four lines. One column, with the
   number as a marker beside the text, reads as a list instead of a grid. */
@media (max-width: 619px) {
  #consult .g4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #consult .g4 > .pad {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 15px;
    align-items: start;
    padding: 18px 18px 20px;
  }
  #consult .g4 > .pad > .mono {
    grid-row: 1 / span 2;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    /* the markup sets colour, size and margin inline, so these have to win */
    margin: 0 !important;
    color: #fff !important;
    font-size: 13.5px !important;
  }
  #consult .g4 > .pad > h3 { margin: 4px 0 7px; font-size: 18.5px; }
  #consult .g4 > .pad > p { margin: 0; font-size: 16px; }
}

/* Three chips in a two-column grid left an orphan on the last row, and the
   labels were being cut off with an ellipsis at that width. One per row on
   phones: full text, even rows. */
@media (max-width: 619px) {
  .assurances { grid-template-columns: minmax(0, 1fr); }
  .assurances > span { height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}
