/* Choose Boston Brokerage — Hub home page
   Design system: sage-green primary from logo, generous spacing, native iOS-friendly. */

:root {
  --primary: #8aae6c;
  --primary-dark: #729359;
  --primary-soft: #eef3e6;
  --primary-soft-2: #d9e6c7;
  --ink: #16191c;
  --ink-2: #2d3138;
  --muted: #6b7280;
  --line: #e6e7e9;
  --bg: #fafaf7;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.04), 0 1px 1px rgba(20, 24, 28, 0.03);
  --shadow-md: 0 1px 3px rgba(20, 24, 28, 0.06), 0 8px 24px -8px rgba(20, 24, 28, 0.12);
  --shadow-lg: 0 4px 12px -2px rgba(20, 24, 28, 0.08), 0 24px 48px -16px rgba(20, 24, 28, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(138, 174, 108, 0.18) 0%, rgba(138, 174, 108, 0) 60%),
    var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================================
   BRAND HEADER
   ============================================================ */
.brand {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
}
@media (min-width: 560px) {
  .brand { padding: 28px 28px; }
  .brand-logo { height: 76px; }
}

/* ============================================================
   TOOL TILES
   ============================================================ */
.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .tools { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  min-height: 168px;
}
.tool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(160px 110px at 100% 0%, rgba(138, 174, 108, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.tool:hover, .tool:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft-2);
  outline: none;
}
.tool:active { transform: translateY(0); }

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.tool-icon svg { width: 26px; height: 26px; }

.tool-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.tool-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.tool-title .accent { color: var(--primary-dark); }

.tool-sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.tool-cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-heading {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 4px 0 12px;
  text-align: center;
}

.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px 18px;
}
.contact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-btn:hover, .contact-btn:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  outline: none;
}
.contact-btn:active { transform: scale(0.97); }
.contact-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.contact-btn.primary:hover, .contact-btn.primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 22px -8px rgba(138, 174, 108, 0.65);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-label { font-size: 12.5px; }

.contact-btn.ig {
  border-color: var(--line);
}
.contact-btn.ig .ig-icon svg { width: 26px; height: 26px; }

.contact-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.meta-link {
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.meta-link:hover { color: var(--primary-dark); }
.dot { color: var(--line); }

/* ============================================================
   JOIN THE TEAM
   ============================================================ */
.join {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 110% -10%, rgba(255, 255, 255, 0.22) 0%, transparent 60%),
    radial-gradient(320px 200px at -10% 120%, rgba(255, 255, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.join > * { position: relative; z-index: 1; }
.join-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 6px;
}
.join-title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 6px;
}
.join-sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 16px;
  max-width: 460px;
}
.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.join-btn:hover, .join-btn:focus-visible {
  background: #f8fbf3;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
  outline: none;
}
.join-btn:active { transform: translateY(0); }
.join-icon { width: 20px; height: 20px; }

@media (min-width: 560px) {
  .join { padding: 36px 28px; }
  .join-title { font-size: 26px; }
  .join-sub { font-size: 15px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 4px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 0 4px;
}
.footer a {
  color: var(--ink-2);
  font-weight: 600;
}
.footer a:hover { color: var(--primary-dark); }

/* ============================================================
   TOAST (clipboard fallback)
   ============================================================ */
.cbb-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 24, 28, 0.94);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 1000;
  max-width: calc(100% - 32px);
  text-align: center;
}
.cbb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
