/* Defuse Behaviour Solutions — shared styles */

:root {
  --ink: #16233a;
  --ink-soft: #3c4a63;
  --teal-900: #0d4750;
  --teal-700: #12707a;
  --teal-500: #1c9ea3;
  --teal-300: #7fd4d4;
  --teal-100: #e3f5f3;
  --purple-700: #453160;
  --purple-500: #6d4d82;
  --purple-300: #b79fc4;
  --purple-100: #f1ebf3;
  --wave: #cdeaf2;
  --bg: #f7faf9;
  --surface: #ffffff;
  --line: #dfe8e6;
  --shadow: 0 18px 40px -22px rgba(13, 40, 45, 0.35);
  --radius: 18px;
  --max: 1120px;
  --font-head: Aptos, Calibri, "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal-700); }

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

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

.eyebrow {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 0.6em;
  display: block;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { background: var(--teal-100); color: var(--teal-900); }

.main-nav a.active {
  background: var(--teal-700);
  color: #fff;
}

.nav-cta {
  background: var(--purple-700) !important;
  color: #fff !important;
  margin-left: 4px;
}

.nav-cta:hover { background: var(--purple-500) !important; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-900); transform: translateY(-1px); }

.btn-secondary { background: var(--purple-700); color: #fff; }
.btn-secondary:hover { background: var(--purple-500); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- availability banner ---------- */

.availability {
  background: linear-gradient(90deg, var(--teal-700), var(--purple-700));
  color: #fff;
}

.availability .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.availability .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7ef0c9;
  box-shadow: 0 0 0 4px rgba(126, 240, 201, 0.28);
  flex: none;
}

/* ---------- service area banner ---------- */

.service-area {
  background: var(--teal-100);
  color: var(--teal-900);
  border-bottom: 1px solid var(--line);
}

.service-area .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 28px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.service-area svg { width: 16px; height: 16px; flex: none; color: var(--teal-700); }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-logo { max-width: 420px; margin-bottom: 22px; }

.hero h1 { margin-bottom: 0.35em; }

.hero .lede { font-size: 1.15rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-art { position: relative; }

/* ---------- wave divider (signature motif) ---------- */

.wave-divider {
  width: 100%;
  display: block;
  margin: 0;
}

.section {
  padding: 64px 0;
}

.section-tight { padding: 40px 0; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header { max-width: 62ch; margin-bottom: 2.2rem; }

/* ---------- cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .icon-wrap svg { width: 24px; height: 24px; }

/* ---------- stats strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--purple-100);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.stat-strip .stat { text-align: left; }

.stat .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--purple-700);
  display: block;
}

.stat .label {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- pull quote ---------- */

.pull-quote {
  border-left: 4px solid var(--teal-500);
  padding: 4px 0 4px 26px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  color: var(--teal-900);
  margin: 2rem 0;
}

/* ---------- team page ---------- */

.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(20, 60, 65, 0.08);
}

.credential-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--teal-900);
  font-size: 0.98rem;
}

.credential-list svg { flex: none; margin-top: 3px; width: 18px; height: 18px; color: var(--teal-500); }

.team-strength-grid { margin-top: 8px; }

/* ---------- referral / steps ---------- */

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: none; }

.step .step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.step .step-num::before { content: counter(step); }

.refer-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 36px;
  align-items: center;
}

.refer-panel .qr {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.checklist li { display: flex; gap: 10px; align-items: flex-start; }

.checklist svg { flex: none; margin-top: 3px; width: 20px; height: 20px; color: var(--teal-500); }

/* ---------- book now (embedded scheduling widget) ---------- */

.book-now summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.book-now summary::-webkit-details-marker { display: none; }
.book-now summary::marker { content: ""; }

.book-now[open] summary { margin-bottom: 26px; }

.book-now-embed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.book-now-embed h3 { margin-bottom: 14px; }

.book-now-embed iframe {
  border-radius: 10px;
  display: block;
}

.book-now-embed .book-block + .book-block { margin-top: 36px; }

/* ---------- footer contact bar (strong, on every page) ---------- */

.contact-bar {
  background: var(--ink);
  color: #fff;
  padding: 52px 0 28px;
}

.contact-bar .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.contact-bar h2 { color: #fff; font-size: 1.7rem; }
.contact-bar p { color: rgba(255,255,255,0.72); }

.contact-block h4 {
  font-family: "Public Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--teal-300);
  margin-bottom: 12px;
}

.contact-big {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-big:hover { color: var(--teal-300); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: rgba(255,255,255,0.75); }

/* ---------- testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.star-row { display: flex; gap: 3px; margin-bottom: 12px; }
.star-row svg { width: 20px; height: 20px; }
.star-row svg.filled { color: #f0a83f; fill: #f0a83f; }
.star-row svg.empty { color: var(--line); fill: none; stroke: var(--line); }

.testimonial-quote { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.testimonial-quote p { color: inherit; margin-bottom: 0.85em; }
.testimonial-quote p:last-child { margin-bottom: 0; }
.testimonial-author { font-weight: 700; color: var(--teal-900); font-size: 0.92rem; }

.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
}

.empty-state svg { width: 40px; height: 40px; color: var(--teal-300); margin: 0 auto 16px; }

/* ---------- feedback form ---------- */

.feedback-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 620px;
}

.form-row { margin-bottom: 22px; }

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-row .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-top: 6px; }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  font-family: "Public Sans", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal-500);
}

.form-row textarea { min-height: 130px; resize: vertical; }

.star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating-input input { position: absolute; opacity: 0; pointer-events: none; }

.star-rating-input label {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color 0.15s ease;
  margin: 0;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: #f0a83f;
}

.consent-row { display: flex; align-items: flex-start; gap: 10px; }
.consent-row input { margin-top: 4px; flex: none; }
.consent-row label { font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); }

.form-success {
  background: var(--teal-100);
  border: 1px solid var(--teal-300);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 24px;
  display: none;
}

.form-success.show { display: block; }
.form-success h3 { color: var(--teal-900); margin-bottom: 4px; }
.form-success p { margin: 0; color: var(--teal-900); }

.feedback-form.hide { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .feedback-form { padding: 26px 22px; }
  .site-header .container { flex-wrap: wrap; padding-bottom: 10px; }
  .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 4px; }
  .main-nav a { padding: 7px 12px; font-size: 0.88rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 320px; }
  .refer-panel { grid-template-columns: 1fr; }
  .refer-panel .qr { max-width: 220px; margin: 0 auto; }
  .contact-bar .container { grid-template-columns: 1fr; }
}
