:root {
  --ink: #102033;
  --muted: #5a6770;
  --line: #dbe5e3;
  --paper: #fbfcfa;
  --white: #ffffff;
  --teal: #087c77;
  --teal-dark: #102d57;
  --mint: #dff3ec;
  --coral: #ec6f5a;
  --gold: #d7a13b;
  --shadow: 0 18px 50px rgba(19, 37, 43, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.shell {
  min-height: 100vh;
}

.login-shell,
.admin-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.login-shell {
  display: grid;
  place-items: center;
  padding: 42px 0;
}

.login-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.login-panel h1,
.admin-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero {
  min-height: 72vh;
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0.1) 72%),
    url("assets/cleaning-hero-grey.png");
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(251, 252, 250, 0), var(--paper));
}

.hero__content,
.workspace,
.heritage,
.arranjix-banner,
.location,
.reviews,
.requests {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 78px;
}

.brand,
.phone-link,
.whatsapp-link,
.arranjix-rotator,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(8, 124, 119, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 850;
}

.nav-links a:hover {
  background: var(--mint);
}

.arranjix-rotator {
  width: 260px;
  min-height: 54px;
  justify-content: flex-start;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(16, 45, 87, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
  box-shadow: 0 12px 28px rgba(16, 45, 87, 0.1);
  backdrop-filter: blur(10px);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.arranjix-rotator img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.arranjix-rotator__content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
  text-align: left;
  line-height: 1;
}

.arranjix-rotator small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.arranjix-rotator strong {
  overflow: hidden;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.arranjix-rotator__cta {
  min-height: 28px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.arranjix-rotator.is-changing strong {
  opacity: 0;
  transform: translateY(4px);
}

.arranjix-rotator:hover {
  background: var(--mint);
  transform: translateY(-1px);
}

.brand__logo {
  display: block;
  width: clamp(210px, 26vw, 310px);
  height: auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  font-size: 0.86rem;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-left: 10px;
}

.phone-link {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(8, 124, 119, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.whatsapp-link {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 12px 28px rgba(8, 124, 119, 0.2);
}

.whatsapp-link:hover {
  background: var(--teal-dark);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #19b866;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(25, 184, 102, 0.34);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: #109955;
  box-shadow: 0 22px 46px rgba(25, 184, 102, 0.42);
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.hero__copy {
  width: min(630px, 100%);
  padding: 70px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.hero__copy p:not(.eyebrow) {
  width: min(520px, 100%);
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.service-page {
  background:
    linear-gradient(180deg, rgba(223, 243, 236, 0.72), rgba(251, 252, 250, 0) 360px),
    var(--paper);
}

.service-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.service-topbar {
  margin-bottom: clamp(34px, 7vw, 72px);
}

.service-hero__copy {
  max-width: 900px;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(8, 124, 119, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.service-hero__copy h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
}

.service-hero__copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--teal-dark);
}

.breadcrumbs a:hover {
  color: var(--teal);
}

.landing-content {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
  padding: 0 0 72px;
}

.landing-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100%;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(19, 37, 43, 0.08);
}

.landing-card--wide {
  grid-column: 1 / -1;
}

.landing-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.landing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.landing-card ul,
.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.landing-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
}

.step-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding-left: 0;
}

.step-list li span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--teal-dark);
  font-weight: 850;
}

.faq-list p {
  padding: 0 16px 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(8, 124, 119, 0.22);
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 850;
}

.related-links a:hover {
  background: var(--teal);
  color: var(--white);
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(8, 124, 119, 0.22);
}

.button--primary:hover {
  background: var(--teal-dark);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
  border: 1px solid rgba(8, 124, 119, 0.22);
}

.button--full {
  width: 100%;
  margin-top: 10px;
}

.button[disabled] {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  padding: 30px 0 56px;
}

.booking-panel,
.summary-panel,
.requests {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: clamp(20px, 4vw, 34px);
}

.summary-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.section-heading {
  margin-bottom: 22px;
}

.field-group {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  font-weight: 800;
}

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

.service-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.service-card:has(input:checked) {
  border-color: var(--teal);
  background: var(--mint);
}

.service-card input,
.segmented input {
  position: absolute;
  opacity: 0;
}

.service-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.service-card strong,
.service-card small {
  display: block;
}

.service-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

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

label {
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(236, 111, 90, 0.35);
  outline-offset: 2px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f1;
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
}

.segmented input:checked + span {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 6px 15px rgba(23, 33, 38, 0.1);
}

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

.extras-grid label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.extras-grid input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.estimate {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #0d9288);
  color: var(--white);
}

.estimate .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.estimate strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.estimate span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.summary-list {
  margin: 18px 0 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.trust-strip span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 4px solid var(--gold);
  background: #fff8ea;
  border-radius: 6px;
  font-weight: 800;
}

.heritage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.heritage__copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.heritage__media {
  margin: 0;
}

.heritage__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.arranjix-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-top: 46px;
  margin-bottom: 54px;
  padding: 18px;
  border: 1px solid rgba(16, 45, 87, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8f4 100%);
  box-shadow: 0 18px 44px rgba(16, 45, 87, 0.1);
}

.arranjix-banner__media {
  margin: 0;
}

.arranjix-banner__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.arranjix-banner__copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.arranjix-banner__copy h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.03;
}

.arranjix-banner__copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.arranjix-banner__messages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arranjix-banner__messages span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(16, 45, 87, 0.08);
}

.arranjix-banner__button {
  width: fit-content;
  background: var(--teal-dark);
  color: var(--white);
}

.arranjix-banner__button:hover {
  background: var(--teal);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.metrics div {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metrics strong {
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.reviews {
  padding: 8px 0 64px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  min-height: 238px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(19, 37, 43, 0.08);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.review-card.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.review-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.review-card strong {
  margin-top: 8px;
}

.review-card span {
  color: var(--muted);
  font-weight: 700;
}

.stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1.22fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  padding: 62px 0 68px;
  border-top: 1px solid var(--line);
}

.location__copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.location__copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.map-frame {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(19, 37, 43, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.requests {
  margin-bottom: 58px;
  padding: 28px;
  position: relative;
}

.requests__toolbar {
  position: absolute;
  top: 24px;
  right: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--coral);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 900;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-card__title {
  display: block;
  margin-bottom: 5px;
}

.request-card__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.request-card__notes {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.request-card--admin {
  align-items: flex-start;
}

.stats-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(223, 243, 236, 0.74), rgba(251, 252, 250, 0) 360px),
    var(--paper);
}

.stats-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.stats-login {
  margin: min(12vh, 110px) auto 0;
}

.stats-note,
.stats-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.stats-login__form {
  display: grid;
  gap: 14px;
}

.stats-dashboard {
  display: grid;
  gap: 20px;
}

.stats-header,
.stats-panel,
.kpi-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.stats-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
}

.stats-header h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.kpi-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.kpi-card strong {
  color: var(--teal-dark);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1;
}

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

.stats-panel {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
}

.stats-panel--wide {
  grid-column: 1 / -1;
}

.stats-panel h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.stats-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.stats-panel__header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.92rem;
}

.stats-table th,
.stats-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.stats-table th {
  background: #eef7f3;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-table td {
  color: var(--muted);
}

.stats-table td strong,
.stats-table td a {
  color: var(--teal-dark);
}

.bar-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-row__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 750;
}

.bar-row__label strong {
  color: var(--teal-dark);
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efec;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}

.stats-empty {
  margin: 0;
  color: var(--muted);
}

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

.status-card {
  min-height: 82px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.status-card span {
  color: var(--muted);
  font-weight: 800;
}

.status-card strong {
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
}

.status-card--ganho {
  border-color: rgba(8, 124, 119, 0.24);
  background: var(--mint);
}

.status-card--perdido {
  border-color: rgba(236, 111, 90, 0.28);
  background: #fff1ed;
}

.stats-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stats-form--campaign {
  grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
  align-items: end;
}

.stats-form .button {
  align-self: end;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff2ee;
  color: #a04434;
  font-size: 0.82rem;
  font-weight: 900;
}

.status-pill--contactado,
.status-pill--orcamento {
  background: #fff8ea;
  color: #805b14;
}

.status-pill--ganho {
  background: var(--mint);
  color: var(--teal-dark);
}

.status-pill--perdido {
  background: #fff1ed;
  color: #9b321f;
}

.empty-state {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.submit-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .hero {
    min-height: 640px;
  }

  .hero__media {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.24) 100%),
      url("assets/cleaning-hero-grey.png");
    background-position: center bottom;
  }

  .hero__copy {
    padding: 48px 0 210px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .heritage {
    grid-template-columns: 1fr;
  }

  .arranjix-banner {
    grid-template-columns: 1fr;
  }

  .location {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .landing-content {
    grid-template-columns: 1fr;
  }

  .stats-header {
    grid-template-columns: 1fr;
  }

  .stats-actions {
    justify-content: flex-start;
  }

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

  .stats-grid,
  .stats-form,
  .stats-form--campaign {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero__content,
  .workspace,
  .heritage,
  .arranjix-banner,
  .location,
  .reviews,
  .requests {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .arranjix-rotator {
    width: min(100%, 260px);
    min-height: 50px;
    padding: 6px 8px 6px 6px;
  }

  .arranjix-rotator img {
    width: 38px;
    height: 38px;
  }

  .contact-stack {
    margin-left: auto;
  }

  .whatsapp-link {
    font-size: 0.78rem;
    padding: 0 12px;
  }

  .brand__logo {
    width: 190px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .service-grid,
  .form-grid,
  .form-grid--wide,
  .metrics,
  .review-grid,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .arranjix-banner {
    padding: 14px;
  }

  .arranjix-banner__button {
    width: 100%;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .request-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }

  .service-hero {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .service-topbar {
    margin-bottom: 24px;
  }

  .service-hero__copy {
    padding: 20px;
  }

  .service-hero__copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.25rem);
  }

  .landing-content {
    width: min(100% - 24px, 1180px);
    padding-bottom: 52px;
  }

  .stats-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 16px;
  }

  .stats-header {
    gap: 16px;
  }

  .stats-actions .button,
  .stats-form .button {
    width: 100%;
  }

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

  .stats-panel__header {
    flex-direction: column;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}
