/* Property Medics — public site. Palette sampled from the logo:
   navy #243748 · steel #C7D6DF · orange #DC4D1F · gray #7D878C */

:root {
  --navy: #243748;
  --navy-deep: #1A2937;
  --steel: #C7D6DF;
  --steel-light: #EEF3F7;
  --orange: #DC4D1F;
  --orange-dark: #C0431B;
  --gray: #7D878C;
  --ink: #22313F;
  --line: #DCE4EA;
  --radius: 12px;
  --font-head: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .btn { font-family: var(--font-head); }
h1 { font-weight: 800; font-size: clamp(1.9rem, 5.4vw, 3.1rem); line-height: 1.14; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.35rem, 3.4vw, 1.85rem); color: var(--navy); line-height: 1.2; }
h3 { font-weight: 700; font-size: 1.06rem; color: var(--navy); }

/* The signature orange rule from the logo */
.rule { width: 64px; height: 5px; background: var(--orange); border-radius: 2px; margin: 14px 0 18px; }
.rule.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 10px; border: 2px solid transparent;
  transition: background 0.15s, transform 0.06s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(220, 77, 31, 0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Landing ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 34px 0 64px;
}
.hero .logo { width: min(320px, 72vw); margin-bottom: 40px; }
.event-pill {
  display: inline-block; font-size: 0.86rem; font-weight: 600;
  color: var(--steel); border: 1px solid rgba(199, 214, 223, 0.4);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero p.sub {
  color: var(--steel); font-size: clamp(1.02rem, 2.6vw, 1.22rem);
  max-width: 640px; margin: 18px 0 32px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.section { padding: 58px 0; }
.section.tint { background: var(--steel-light); }
.section .lead { color: var(--gray); max-width: 660px; margin-top: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 30px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card svg { width: 38px; height: 38px; margin-bottom: 14px; }
.card p { color: var(--gray); font-size: 0.97rem; margin-top: 8px; }

.services { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.service-chip {
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: 0.94rem;
  padding: 10px 18px; border-radius: 999px;
}
.service-chip.flag { background: var(--navy); color: #fff; border-color: var(--navy); }

.trust { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px; color: var(--gray); font-size: 0.94rem; }
.trust strong { color: var(--navy); font-weight: 600; }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 54px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--steel); margin: 10px 0 26px; }

.footer { background: var(--navy-deep); color: var(--steel); padding: 38px 0 46px; font-size: 0.94rem; }
.footer .logo { width: 190px; margin-bottom: 18px; opacity: 0.95; }
.footer a { color: #fff; text-decoration: none; }
.footer .lic { margin-top: 14px; color: var(--gray); font-size: 0.85rem; }

/* ---------- Estimate form ---------- */

.topbar { background: var(--navy); padding: 16px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar .logo { width: 200px; }
.topbar a.call { color: var(--steel); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }

.form-page { background: var(--steel-light); min-height: 100vh; }
.form-shell { max-width: 720px; margin: 0 auto; padding: 30px 18px 70px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; margin-top: 18px; }

.emergency {
  margin-top: 18px; background: #FDEFE9; border: 1px solid #F3CDBE; border-radius: 10px;
  padding: 13px 16px; font-size: 0.95rem; color: var(--ink);
}
.emergency a { font-weight: 700; white-space: nowrap; }

fieldset { border: 0; margin-top: 26px; }
fieldset:first-child { margin-top: 0; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
legend + .hint { margin-bottom: 12px; }
.hint { color: var(--gray); font-size: 0.88rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

label.f { display: block; margin-top: 14px; }
label.f span { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 5px; }
label.f span em { color: var(--orange); font-style: normal; }
input[type=text], input[type=email], input[type=tel], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff;
  min-height: 46px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--steel); border-color: var(--navy); }
textarea { resize: vertical; min-height: 110px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; user-select: none;
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.window-seg { display: flex; gap: 8px; margin-top: 6px; }
.window-seg .chip { flex: 1; text-align: center; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-add {
  border: 2px dashed var(--steel); border-radius: 10px; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.78rem; font-weight: 600; cursor: pointer; gap: 4px; text-align: center;
}
.photo-add svg { width: 22px; height: 22px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.uploading::after {
  content: '…'; position: absolute; inset: 0; background: rgba(36, 55, 72, 0.55);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.thumb .rm {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(26, 41, 55, 0.8); color: #fff; font-size: 0.85rem; line-height: 1; cursor: pointer;
}

.form-error { display: none; margin-top: 16px; background: #FBE9E7; border: 1px solid #F0B9AC; color: #A33115; border-radius: 8px; padding: 12px 14px; font-size: 0.95rem; }
.form-error.show { display: block; }
.submit-row { margin-top: 26px; }
.submit-row .hint { text-align: center; margin-top: 10px; }

.success { text-align: center; padding: 26px 6px; display: none; }
.success.show { display: block; }
.success svg { width: 58px; height: 58px; margin: 0 auto 16px; }
.success p { color: var(--gray); max-width: 460px; margin: 10px auto 0; }
.success .contact-lines { margin-top: 22px; font-size: 1.02rem; color: var(--ink); }
.success .contact-lines a { font-weight: 700; text-decoration: none; }
