/* ============================================
   DrBDB — Doctor Bird Domain Brokerage
   Stylesheet
   ============================================ */

:root {
  --ink: #0e1a2b;
  --slate: #4b5a6b;
  --slate-light: #6b7a89;
  --paper: #ffffff;
  --mist: #f2f7fd;
  --mist-2: #e7f1fb;
  --line: #dbe7f5;
  --brand: #175cb0;
  --brand-dark: #0f4483;
  --brand-light: #d3e6fb;
  --accent: #175cb0;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand img { height: 42px; width: auto; flex-shrink: 0; display: block; }

.brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  margin-top: 1px;
}

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

nav.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate);
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover { background: var(--mist-2); color: var(--ink); }

nav.main-nav a.active { color: var(--brand); background: var(--brand-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--mist-2); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
}

.lede {
  font-size: 1.18rem;
  color: var(--slate);
  max-width: 52ch;
  margin: 0 0 34px;
}

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

.hero-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--slate-light);
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--brand-light), #eaf3fc 60%, #ffffff);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-visual svg, .hero-visual img { width: 55%; height: 55%; object-fit: contain; opacity: 0.95; }

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(23,92,176,0.10), transparent 55%);
}

.stat-chip {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  gap: 22px;
  box-shadow: var(--shadow-md);
}

.stat-chip .stat b {
  display: block;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-chip .stat span {
  font-size: 0.76rem;
  color: var(--slate);
}

/* ---------- Section generic ---------- */

section { padding: 88px 0; }
.section-mist { background: var(--mist); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}

.section-head p { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* ---------- Cards / grids ---------- */

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon-wrap svg { width: 22px; height: 22px; color: var(--brand); }

.card h3 { font-size: 1.08rem; margin: 0 0 10px; font-weight: 650; }
.card p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step .num {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-light);
}
.step h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 650; }
.step p { margin: 0; color: var(--slate); font-size: 0.9rem; }

/* ---------- Quote ---------- */

.quote-block {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.quote-block blockquote {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  max-width: 60ch;
}
.quote-block .attrib { display: flex; align-items: center; gap: 14px; }
.quote-block .attrib .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  overflow: hidden;
}
.quote-block .attrib .avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote-block .attrib b { display: block; font-size: 0.95rem; }
.quote-block .attrib span { font-size: 0.82rem; opacity: 0.75; }

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-strip .stat { text-align: center; }
.stats-strip .stat b {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats-strip .stat span { color: var(--slate); font-size: 0.88rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: var(--mist-2); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: auto; }
.footer-top p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h5 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 0 0 16px;
}
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 10px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: rgba(255,255,255,0.18); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  padding: 56px 0 48px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 0.85rem; color: var(--slate-light); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--slate); font-size: 1.05rem; max-width: 60ch; margin: 0; }

/* ---------- Story page ---------- */

.story-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.story-side {
  position: sticky;
  top: 100px;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}
.story-side .avatar-lg {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.6rem; margin-bottom: 16px;
  overflow: hidden;
}
.story-side .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.story-side h3 { margin: 0 0 4px; font-size: 1.1rem; }
.story-side .role { color: var(--brand); font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.story-side .mini-stats { display: grid; gap: 12px; margin-top: 18px; }
.story-side .mini-stats div { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 10px 0; border-top: 1px solid var(--line); }
.story-side .mini-stats b { color: var(--ink); }

.story-body h2 { margin-top: 40px; }
.story-body h2:first-child { margin-top: 0; }
.story-body p { color: var(--slate); font-size: 1.02rem; margin: 0 0 20px; }
.pull-quote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 22px;
  margin: 32px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--paper);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--slate); font-size: 0.96rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.96rem;
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; }

.contact-side .info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-side .info-row:first-child { padding-top: 0; }
.info-row .icon-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row .icon-wrap svg { width: 20px; height: 20px; color: var(--brand); }
.info-row h4 { margin: 0 0 4px; font-size: 0.98rem; }
.info-row p, .info-row a { margin: 0; color: var(--slate); font-size: 0.92rem; }
.info-row a:hover { color: var(--brand); }

.form-success {
  display: none;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-top: 14px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; aspect-ratio: 1/1; }
  .grid-3, .steps, .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .story-layout, .contact-layout { grid-template-columns: 1fr; }
  .story-side { position: static; }
}

@media (max-width: 680px) {
  nav.main-nav { display: none; position: fixed; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; }
  .menu-toggle { display: block; }
  .grid-3, .grid-2, .steps, .stats-strip { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .quote-block, .cta-band { padding: 40px 26px; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 64px; }
}
