/* MP Pool Cleaning: brand tokens and layout, taken from the approved drafts. */
:root {
  --ink: #160628;
  --navy: #1F2441;
  --slate: #253B5A;
  --steel: #2A567F;
  --blue: #2771A9;
  --mist: #D8DEE5;
  --sky: #B1C2DC;
  --wash: #F3F6FA;
  --wash-blue: #EEF4FA;
  --white: #FFFFFF;
  --ok-bg: #E7F4EC; --ok: #1E6B3A;
  --warn-bg: #FEF4E6; --warn: #7A3A05;
  --err-bg: #FDECEA; --err: #B42318;
  --radius: 14px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); line-height: 1.5; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: -0.3px; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.bg-wash { background: var(--wash); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue h2 { color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--steel); }
.lead { font-size: 19px; color: var(--slate); line-height: 1.55; max-width: 720px; }
.muted { color: var(--steel); font-size: 15px; }
.h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.h3 { font-size: 20px; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; text-align: center; min-height: 44px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--steel); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--sky); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.link-btn { background: none; border: 0; font: inherit; color: var(--blue); cursor: pointer; padding: 10px 0; font-weight: 600; text-decoration: underline; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--mist); background: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; font-weight: 500; }
.site-header nav a { color: var(--navy); text-decoration: none; padding: 10px 0; }
.site-header nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.logo img { height: 28px; width: auto; display: block; }
.site-footer { background: var(--ink); color: var(--mist); font-size: 15px; }
.site-footer a { color: var(--mist); }
.site-footer strong { color: var(--white); }
.site-footer .grid { padding: 56px 0 24px; --min: 220px; gap: 32px; }
.site-footer .small { font-size: 13px; color: var(--sky); padding-bottom: 32px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 24px; }
.card-wash { background: var(--wash); border-radius: 10px; padding: 16px 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check svg { flex-shrink: 0; margin-top: 2px; }
.price { font-size: 34px; font-weight: 800; color: var(--navy); }
.price small { font-size: 16px; font-weight: 500; color: var(--steel); }
.step-num { width: 44px; height: 44px; border-radius: 22px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }

/* Hero */
.hero { background: var(--wash); }
.hero .grid { --min: 340px; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 460px; object-fit: cover; border-radius: 16px; display: block; }
.hero-badge { position: absolute; left: 16px; bottom: 16px; background: var(--white); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 20px rgba(22, 6, 40, .15); }
.photo-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.photo-strip img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; display: block; }

/* Tables */
.table-box { overflow-x: auto; border: 1.5px solid var(--mist); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; }
.price-table { font-size: 17px; min-width: 520px; }
.price-table thead tr { background: var(--navy); color: var(--white); }
.price-table th, .price-table td { padding: 16px 20px; }
.price-table tbody tr { border-top: 1px solid var(--mist); }
.price-table tbody tr:first-child { border-top: 0; }
.price-table tbody tr:nth-child(even) { background: #F7F9FB; }
.num { text-align: right; }
.data-table { font-size: 15px; min-width: 520px; }
.data-table th { color: var(--steel); font-size: 13px; padding: 8px 10px; }
.data-table td { padding: 12px 10px; border-top: 1px solid var(--mist); vertical-align: top; }

/* Forms */
form.stack { gap: 20px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1.5px solid var(--sky); border-radius: 8px; background: var(--white); color: var(--ink); min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(39, 113, 169, .35); border-color: var(--blue); }
.hint { font-size: 13px; font-weight: 400; color: var(--steel); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; color: var(--navy); margin-bottom: 12px; padding: 0; }
.choice { border: 1.5px solid var(--mist); border-radius: 10px; padding: 14px 16px; display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--blue); background: var(--wash-blue); }
.choice input, .consent input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.price-box { background: var(--navy); color: var(--white); border-radius: 12px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.price-box .amount { font-size: 30px; font-weight: 800; }

/* Messages */
.notice { border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.err { background: var(--err-bg); color: var(--err); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.info { background: var(--wash-blue); color: var(--steel); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }

/* App (portal and back-office) */
.app-header { background: var(--navy); color: var(--white); }
.app-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; max-width: 1280px; }
.app-header img { height: 24px; width: auto; display: block; }
.app-header .who { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--mist); }
.app-header button { background: none; border: 0; color: var(--white); font: inherit; font-weight: 600; cursor: pointer; padding: 10px 0; text-decoration: underline; }
.app-body { background: var(--wash); min-height: calc(100vh - 60px); }
.app-layout { max-width: 1280px; margin: 0 auto; padding: 28px 24px 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.app-nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; background: var(--white); border-radius: var(--radius); padding: 12px; border: 1px solid var(--mist); }
.app-nav a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 15px; text-decoration: none; color: var(--slate); font-weight: 500; }
.app-nav a[aria-current="page"] { background: var(--wash-blue); color: var(--navy); font-weight: 700; }
.app-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: .8px; }
.stat { font-size: 20px; font-weight: 700; color: var(--navy); }
.thumbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.thumbs figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.thumbs img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; display: block; }
.auth-box { max-width: 440px; margin: 48px auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .wrap { padding: 0 16px; }
  .hero .grid { padding-top: 32px; padding-bottom: 32px; gap: 28px; --min: 260px; }
  .hero-photo img { height: 260px; }
  .site-header nav { gap: 14px; font-size: 14px; }
}

/* Guided request form */
.step { display: flex; flex-direction: column; gap: 16px; }
.step legend { margin-bottom: 4px; outline: none; }
.card-choice { align-items: flex-start; min-height: 72px; }
.card-choice input { margin-top: 3px; }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-bar { height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
[hidden] { display: none !important; }
.areas { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.areas ul { margin: 0; padding-left: 18px; line-height: 1.8; color: var(--slate); }
