/* Mid Ohio Home Watch */

:root {
  --frost: #EDF2F4;
  --frost-deep: #DDE6EA;
  --slate: #1E2F3D;
  --slate-soft: #4A5B68;
  --pine: #2F5D50;
  --amber: #E3A13B;
  --amber-ink: #8A5A10;
  --amber-wash: #FBF0DC;
  --paper: #FFFFFF;
  --rule: #C9D5DB;

  --sans: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  /* Modular scale, ratio 1.25 */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--slate);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--slate); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--slate);
  color: var(--paper);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 242, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--slate);
  text-decoration: none;
}
.brand-mark { width: 1.9rem; height: 1.9rem; }
.porch-light { fill: var(--amber); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
}
.site-nav a { color: var(--slate); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--pine); text-decoration: underline; }
.nav-call {
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--slate);
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--slate); color: var(--paper); }
.btn-primary:hover { background: var(--pine); color: var(--paper); }
.btn-quiet { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-quiet:hover { background: var(--paper); color: var(--slate); }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 var(--section); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.hero-note { font-size: var(--step--1); color: var(--slate-soft); font-style: italic; }

/* The visit report: the one bold element */
.report {
  margin: 0;
  background: var(--paper);
  border-radius: 4px;
  border-top: 6px solid var(--pine);
  box-shadow:
    0 1px 0 var(--rule),
    0 18px 40px -18px rgba(30, 47, 61, 0.35);
  padding: 1.5rem 1.5rem 1.25rem;
  font-family: var(--sans);
  transform: rotate(0.6deg);
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.report-title { font-size: var(--step-1); font-weight: 800; margin: 0 0 0.2rem; }
.report-meta { font-size: var(--step--1); color: var(--slate-soft); margin: 0; line-height: 1.45; }
.report-temp {
  margin: 0;
  text-align: right;
  font-size: var(--step--1);
  color: var(--slate-soft);
  line-height: 1.1;
  white-space: nowrap;
}
.report-temp span {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--slate);
}
.report-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.report-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2.1rem;
  border-bottom: 1px dashed var(--frost-deep);
}
.report-list li:last-child { border-bottom: 0; }
.report-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
}
.report-list .ok::before {
  background-color: var(--pine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.report-list .flag {
  background: var(--amber-wash);
  margin: 0.25rem -0.75rem;
  padding-left: 2.85rem;
  padding-right: 0.75rem;
  border-radius: 4px;
  border-bottom: 0;
}
.report-list .flag::before {
  left: 0.75rem;
  background-color: var(--amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v5.5' stroke='%231E2F3D' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.3' r='1.4' fill='%231E2F3D'/%3E%3C/svg%3E");
}
.report-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--slate-soft);
}

/* One orchestrated moment: checks tick in on load */
@media (prefers-reduced-motion: no-preference) {
  .js .report-list li::before {
    transform: scale(0);
    animation: tick 320ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .js .report-list li:nth-child(1)::before { animation-delay: 400ms; }
  .js .report-list li:nth-child(2)::before { animation-delay: 560ms; }
  .js .report-list li:nth-child(3)::before { animation-delay: 720ms; }
  .js .report-list li:nth-child(4)::before { animation-delay: 880ms; }
  .js .report-list li:nth-child(5)::before { animation-delay: 1040ms; }
  .js .report-list li:nth-child(6)::before { animation-delay: 1300ms; }
  .js .report-list li:nth-child(7)::before { animation-delay: 1460ms; }
}
@keyframes tick { to { transform: scale(1); } }

/* Sections */
.section { padding: var(--section) 0; }
.section-intro { font-size: var(--step-1); line-height: 1.55; color: var(--slate-soft); margin-bottom: 2.5rem; }

/* Checklists */
.check-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.check-columns h3 {
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--slate);
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--pine);
  border-bottom: 2.5px solid var(--pine);
  transform: rotate(-45deg);
}

/* Seasons */
.seasons-section { background: var(--slate); color: var(--frost); }
.seasons-section .section-intro { color: #B9C7CF; }
.seasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(237, 242, 244, 0.25);
}
.season {
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem) 0.5rem 0;
}
.season + .season {
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid rgba(237, 242, 244, 0.25);
}
.season h3 { font-size: var(--step-2); font-weight: 800; }
.season p { font-size: 1rem; color: #D6E0E5; }
.season-winter h3 { color: #A9CBE0; }
.season-spring h3 { color: #9FCFA9; }
.season-summer h3 { color: var(--amber); }
.season-fall h3 { color: #E59A73; }

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.who-list { margin: 0; }
.who-list dt {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-1);
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.who-list dt:first-child { border-top: 3px solid var(--slate); }
.who-list dd { margin: 0.3rem 0 1.1rem; color: var(--slate-soft); }

/* Steps */
.how-section { background: var(--paper); }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--frost);
  border: 2px solid var(--slate);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps li:last-child::before { background: var(--amber); border-color: var(--amber); }
.steps p { font-size: 1rem; color: var(--slate-soft); }

/* Scope + questions */
.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.not-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.not-list li { padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.not-list li:last-child { border-bottom: 1px solid var(--rule); }
.not-list strong { font-family: var(--sans); font-weight: 600; }
.aside {
  font-size: 1rem;
  padding: 1rem 1.25rem;
  background: var(--amber-wash);
  border-left: 4px solid var(--amber);
  border-radius: 0 4px 4px 0;
}
.questions {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.questions dl { margin: 1.25rem 0 0; }
.questions dt {
  font-family: var(--sans);
  font-weight: 600;
  padding-top: 0.9rem;
  border-top: 1px solid var(--frost-deep);
}
.questions dd { margin: 0.25rem 0 0.9rem; color: var(--slate-soft); }

/* Area */
.area-section { background: var(--frost-deep); }
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.towns {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.towns li {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.8rem;
  background: var(--paper);
  border-radius: 999px;
}
.towns li:first-child { background: var(--slate); color: var(--paper); }
.plans { margin: 1.25rem 0 0; }
.plans dt {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-1);
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.plans dd { margin: 0.25rem 0 0.9rem; color: var(--slate-soft); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-direct {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-direct a { color: var(--slate); text-decoration-thickness: 2px; }
.contact-direct a + br + a { font-size: var(--step-0); font-weight: 600; }

.contact-form {
  background: var(--paper);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 6px;
  border-top: 6px solid var(--pine);
  box-shadow: 0 18px 40px -24px rgba(30, 47, 61, 0.35);
}
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--slate);
  padding: 0.7rem 0.8rem;
  background: var(--frost);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(227, 161, 59, 0.45);
  background: var(--paper);
}
.field input[aria-invalid="true"] { border-color: #B3412E; }
.form-status { margin: 0.9rem 0 0; font-family: var(--sans); font-size: var(--step--1); min-height: 1.4em; }
.form-status.is-error { color: #B3412E; }
.form-status.is-ok { color: var(--pine); }

/* Footer */
.site-footer {
  background: var(--slate);
  color: #B9C7CF;
  padding: 3rem 0;
  font-family: var(--sans);
  font-size: var(--step--1);
}
.site-footer a { color: var(--frost); }
.footer-brand { font-weight: 800; font-size: var(--step-1); color: var(--frost); margin-bottom: 0.3rem; }
.copyright { margin: 1.5rem 0 0; opacity: 0.8; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .who-grid,
  .scope-grid,
  .area-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .report { transform: none; max-width: 34rem; }
  .check-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season:nth-child(3) { padding-left: 0; border-left: 0; }
  .season:nth-child(n+3) { border-top: 1px solid rgba(237, 242, 244, 0.25); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-nav a:not(.nav-call) { display: none; }
}

@media (max-width: 600px) {
  .check-columns,
  .seasons,
  .steps,
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .season,
  .season + .season { padding-left: 0; border-left: 0; }
  .season + .season { border-top: 1px solid rgba(237, 242, 244, 0.25); }
  .report { padding: 1.25rem 1rem 1rem; }
  .report-list .flag { margin: 0.25rem -0.5rem; padding-left: 2.6rem; }
  .report-list .flag::before { left: 0.5rem; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* Narrow phones: keep the name; the hero already has a call button */
@media (max-width: 420px) {
  .nav-call { display: none; }
}
