/* AssureBay — shared site styles. One stylesheet for every page.
   Palette matches the logo: navy + teal on a light background. */

:root {
  --navy: #0f2a43;
  --navy-dark: #0b1f33;
  --teal: #0e7c7b;
  --teal-dark: #0a5f5e;
  --ink: #1c2733;
  --muted: #5a6a78;
  --line: #d7dee5;
  --bg: #f4f7f9;
  --card: #ffffff;
  --error: #b3261e;
  --success: #146c2e;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.site-header .logo img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a.cta {
  background: var(--teal);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
}
.main-nav a.cta:hover { background: var(--teal-dark); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.hero p { color: #c9d6e2; font-size: clamp(17px, 2.4vw, 20px); max-width: 640px; margin: 0 0 24px; }
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 17px;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn.light { background: #fff; color: var(--navy); margin-left: 10px; }
.btn.light:hover { background: #e8eef3; }

/* Sections */
section { padding: 48px 0; }
section.alt { background: #fff; }
h2 { font-size: clamp(24px, 3.5vw, 32px); color: var(--navy); margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
section:not(.alt) .card { background: #fff; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Blog post cards */
.post-card { display: flex; flex-direction: column; }
.post-card img { border-radius: 8px; margin-bottom: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .date { color: var(--muted); font-size: 13.5px; margin: 0 0 4px; }
.post-card h3 { margin: 0 0 8px; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal); }
.post-card .excerpt { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Article (blog post pages) */
article.post { max-width: 760px; margin: 0 auto; padding: 40px 20px 8px; }
article.post h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.25; color: var(--navy); margin: 0 0 8px; }
article.post .post-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
article.post .hero-img { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
article.post h2 { margin-top: 36px; }
article.post p, article.post li { font-size: 17.5px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.faq-item p { margin: 0; color: var(--muted); }

/* Lead form (rendered by assets/js/lead-form.js) */
.lead-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
}
.lead-form-wrap h2, .lead-form-wrap h3 { margin-top: 0; }
.lead-form .field { margin-bottom: 16px; }
.lead-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.lead-form label .req { color: var(--error); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.lead-form .consent input { width: auto; margin-top: 3px; }
.lead-form .consent label { font-weight: 400; margin: 0; font-size: 13.5px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form button {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.lead-form button:hover { background: var(--teal-dark); }
.lead-form button:disabled { opacity: 0.6; cursor: default; }
.lead-form fieldset.field { border: none; margin: 0 0 16px; padding: 0; }
.lead-form fieldset.field legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.lead-form .field-hint { font-weight: 400; color: var(--muted); }
.lead-form .interest-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.lead-form .check-option { display: flex; align-items: center; gap: 9px; font-weight: 500; margin: 0; cursor: pointer; }
.lead-form .check-option input { width: auto; margin: 0; }
@media (max-width: 620px) { .lead-form .interest-options { grid-template-columns: 1fr; } }
.lead-form .status { margin-top: 16px; font-size: 15px; display: none; }
.lead-form .status.error { color: var(--error); display: block; }
.lead-form .status.success { color: var(--success); display: block; }
.lead-form .fineprint { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* Link-in-bio page */
.links-wrap { max-width: 480px; margin: 0 auto; padding: 40px 20px 8px; text-align: center; }
.links-wrap .links-logo { height: 64px; width: auto; margin: 0 auto 10px; }
.links-wrap h1 { font-size: 26px; color: var(--navy); margin: 0 0 4px; }
.links-wrap .links-tag { color: var(--muted); margin: 0 0 28px; }
.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-btn {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 16.5px;
}
.link-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.link-btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.link-btn.primary:hover { background: var(--teal-dark); }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #aebfd0;
  padding: 36px 0;
  font-size: 14.5px;
  margin-top: 0;
}
.site-footer a { color: #d7e3ee; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Small screens */
@media (max-width: 620px) {
  .lead-form .row { grid-template-columns: 1fr; }
  .site-header .logo img { height: 40px; }
  .main-nav { gap: 14px; font-size: 15px; }
  .hero { padding: 44px 0 40px; }
  .btn.light { margin-left: 0; margin-top: 10px; }
  section { padding: 36px 0; }
  .lead-form-wrap { padding: 20px; }
}

.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Booking page (/schedule) — the form itself reuses .lead-form styles. */
.booking-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 720px;
}
.booking-wrap h2 { font-size: 21px; margin: 26px 0 12px; }
.booking-wrap h2:first-child { margin-top: 0; }
.booking-note { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.date-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.date-chip, .slot-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
}
.date-chip:hover, .slot-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.date-chip.selected, .slot-btn.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.slot-btn.taken {
  background: var(--bg);
  color: var(--muted);
  cursor: default;
  text-decoration: line-through;
  font-weight: 400;
}
.slot-btn.taken:hover { border-color: var(--line); color: var(--muted); }
.booking-confirmed {
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #f2f8f3;
}
.booking-confirmed h3 { margin: 0 0 8px; color: var(--success); }
.booking-confirmed p { margin: 0; }
.lead-form .status a { font-weight: 700; }
@media (max-width: 620px) { .booking-wrap { padding: 20px; } }

/* Agents (/agents and /agents/<slug>) */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 300px)); gap: 20px; }
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.agent-card > a { display: block; }
.agent-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.agent-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.agent-card-body h3 { margin: 0; color: var(--navy); font-size: 21px; }
.agent-card-body h3 a { color: var(--navy); text-decoration: none; }
.agent-card-body h3 a:hover { color: var(--teal); }
.agent-role { color: var(--teal-dark); font-weight: 700; margin: 0; font-size: 15.5px; }
.agent-focus { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 13px; color: var(--navy); font-weight: 600; }
.agent-contact-line { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.agent-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.agent-card-actions .btn { padding: 10px 18px; font-size: 15.5px; }
.btn.outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.outline:hover { border-color: var(--teal); color: var(--teal-dark); background: #fff; }
.agent-profile { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.agent-profile-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); display: block; }
.agent-profile-body h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.25; color: var(--navy); margin: 0 0 6px; }
.agent-profile-body h2 { margin-top: 32px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.contact-card h2 { font-size: 20px; margin: 0 0 12px; }
.contact-card p { margin: 0 0 12px; font-size: 15.5px; overflow-wrap: anywhere; }
.agent-services { padding-left: 20px; }
.agent-services li { margin-bottom: 8px; }
@media (max-width: 720px) {
  .agent-profile { grid-template-columns: 1fr; }
  .agent-profile-photo { max-width: 360px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card { max-width: 340px; }
}
