:root {
  --ink: #1d2733;
  --ink-soft: #4a5868;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --accent: #1f5f73;
  --accent-dark: #164756;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
}
.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e6eff2;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Contact / form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-info p { color: var(--ink-soft); }
.contact-info dl { margin: 20px 0 0; }
.contact-info dt { font-weight: 600; color: var(--ink); margin-top: 14px; }
.contact-info dd { margin: 2px 0 0; color: var(--ink-soft); }

form.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}
.field .req { color: #9a3b2e; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #c4ccd5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  margin: -4px 0 18px;
}
.consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.consent label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 780px; }
.legal h2 { margin-top: 2em; }
.legal .updated { color: var(--ink-soft); font-size: 0.95rem; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.4em; }
.legal address { font-style: normal; }
.callout {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 16px 18px;
  border-radius: 0 6px 6px 0;
  margin: 0 0 1em;
}
.callout p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 32px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer address { font-style: normal; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 44px 0 40px; }
  section.block { padding: 44px 0; }
  form.quote { padding: 20px; }
}
