/* Harborfield Property Services — marketing site styles */

:root {
  /* Logo-exact brand colors */
  --blue: #0041A4;
  --green: #41A600;          /* logo accent only; never for small text */
  --green-text: #2E6B1C;     /* small green text; 6.5:1 on white */
  --blue-dark: #00337F;

  --ink: #111111;
  --muted: #4A4A4A;          /* 8.9:1 on white */
  --line: #D6DCE6;
  --panel: #F3F6FA;
  --white: #FFFFFF;

  --radius: 6px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 16px; }

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 12px;
}

.lead { font-size: 1.2rem; color: var(--muted); }

section { padding: 72px 0; }
section.alt { background: var(--panel); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--blue); }
.btn-secondary:hover { background: var(--panel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo img { height: 52px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-actions .btn { padding: 10px 16px; font-size: 0.95rem; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: flex-start;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green); }

@media (max-width: 960px) {
  .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .header-actions { margin-left: auto; }
  .nav-toggle-label { display: inline-block; }
  .site-nav { display: none; }
  .header-inner:has(.nav-toggle:checked) .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { padding: 80px 0 64px; }
.hero h1 { max-width: 820px; }
.hero .subhead { font-size: 1.35rem; font-weight: 700; color: var(--blue); max-width: 760px; margin-bottom: 16px; }
.hero .body { max-width: 680px; color: var(--muted); }

/* Proof block (photo report layout — placeholders only) */
.report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}
.report-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}
.report-head strong { color: var(--ink); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-slot {
  aspect-ratio: 4 / 3;
  border: 2px dashed #9AA6B8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--panel);
}
.invoice-line {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.proof-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.proof-split .report-note { color: var(--muted); }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin: 4px 0 12px;
}
.card .price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card ul { padding-left: 20px; margin: 0 0 16px; color: var(--muted); }
.card li { margin-bottom: 6px; }
.card .card-foot { margin-top: auto; padding-top: 12px; }
.card .card-foot a { font-weight: 700; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--green);
  padding-top: 16px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Pricing table */
.table-wrap { overflow-x: auto; }
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
}
table.pricing th, table.pricing td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.pricing th { background: var(--panel); font-weight: 700; }
table.pricing td.amount { font-weight: 800; color: var(--blue); white-space: nowrap; }
table.pricing td.note { color: var(--muted); }
.note-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: var(--panel);
  color: var(--muted);
}

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 2px;
}
.cross-list li::before { background: var(--line); border: 1px solid #9AA6B8; }

.area-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; }
.area-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.area-group h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: " +"; color: var(--blue); }
details.faq[open] summary::after { content: " −"; }
details.faq p { margin: 12px 0 0; color: var(--muted); }

/* Placeholder styling */
.placeholder {
  background: #FFF8DB;
  border: 1px dashed #B58900;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #3D3000;
  font-size: 0.95rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label, fieldset legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.97rem;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #8A95A8;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 6px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.checks input { margin-top: 5px; width: 18px; height: 18px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

/* Band CTA */
.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #E6EEF9; max-width: 640px; }
.cta-band .btn-secondary { border-color: var(--white); }
.cta-band .btn-primary { background: var(--white); color: var(--blue); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--panel); }
.cta-band .phone-line { font-size: 1.25rem; font-weight: 700; margin-top: 16px; color: var(--white); }

/* Footer */
.site-footer {
  border-top: 4px solid var(--green);
  padding: 48px 0 32px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h3 { font-size: 0.95rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); }
.copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.88rem; }

/* Page header (inner pages) */
.page-hero { padding: 64px 0 40px; background: var(--panel); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 720px; }

.narrow { max-width: 780px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .proof-split, .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .steps { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .checks { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .phone { font-size: 0.9rem; }
  .form-card { padding: 22px; }
}
