/* ============================================================
   RUBBER CONSULTANTS — Branch-specific styles
   ============================================================ */

/* ── Branch secondary nav ──────────────────────────────────── */
.branch-nav {
  background: var(--bone);
  border-bottom: 1px solid var(--haze);
  position: sticky;
  top: 64px;
  z-index: 80;
}

.branch-nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 var(--space-32);
  display: flex;
  gap: var(--space-24);
  align-items: center;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.branch-nav-inner::-webkit-scrollbar { display: none; }

.branch-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--soft-graphite);
  padding: 8px 0;
  white-space: nowrap;
  position: relative;
  transition: color 160ms;
}

.branch-nav a:hover { color: var(--graphite); }

.branch-nav a.active {
  color: var(--amber);
}

.branch-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--amber);
}

/* ── RC Hero ───────────────────────────────────────────────── */
.rc-hero {
  background: var(--deep-ink);
  color: var(--bone);
  padding: var(--space-96) 0 var(--space-120);
  position: relative;
  overflow: hidden;
}

.rc-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(217,122,58,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.rc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.rc-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.rc-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-32);
}

.rc-hero-title em {
  color: var(--amber);
  font-style: italic;
}

.rc-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(250,247,240,0.72);
  max-width: 58ch;
  margin-bottom: var(--space-48);
}

/* ── RC service grid ───────────────────────────────────────── */
.rc-services {
  padding: var(--space-96) 0;
}

.rc-services-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-48);
  gap: var(--space-32);
  flex-wrap: wrap;
}

.rc-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.rc-service-card {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  text-decoration: none;
  color: inherit;
  min-height: 380px;
}

.rc-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.rc-service-card-img {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2530 0%, #2a3a38 40%, #1F2530 100%);
  position: relative;
}

.rc-service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.rc-service-card:hover .rc-service-card-img img {
  transform: scale(1.06);
}

.rc-service-card-number {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(250,247,240,0.55);
  background: rgba(14,27,44,0.55);
  padding: 4px 9px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.rc-service-card-body {
  padding: var(--space-24) var(--space-32) var(--space-32);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-12);
}

.rc-service-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--graphite);
}

.rc-service-card-desc {
  font-size: 14px;
  color: var(--soft-graphite);
  line-height: 1.5;
  flex: 1;
}

.rc-service-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-top: var(--space-8);
  transition: gap 200ms var(--ease-out);
}

.rc-service-card:hover .rc-service-card-cta { gap: 10px; }

/* ── Accreditations strip ──────────────────────────────────── */
.rc-accreds {
  padding: var(--space-64) 0;
  background: var(--mist);
  border-top: 1px solid var(--haze);
  border-bottom: 1px solid var(--haze);
}

.rc-accreds-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-48);
  flex-wrap: wrap;
}

.rc-accred-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-16) var(--space-24);
  background: var(--bone);
  border-radius: var(--r-card-s);
  min-width: 140px;
  box-shadow: var(--shadow-card);
}

.rc-accred-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  letter-spacing: 0.05em;
}

.rc-accred-label {
  font-size: 11px;
  color: var(--soft-graphite);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Meet the team preview ─────────────────────────────────── */
.rc-team-preview {
  padding: var(--space-96) 0;
}

.rc-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-24);
  margin-top: var(--space-48);
}

.rc-person-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
}

.rc-person-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-card-s);
  background: var(--mist);
  overflow: hidden;
}

.rc-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rc-person-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--graphite);
  line-height: 1.25;
}

.rc-person-role {
  font-size: 12px;
  color: var(--soft-graphite);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rc-person-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
}

/* ── Service page template ─────────────────────────────────── */
.svc-hero {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  background: var(--cream-canvas);
}

.svc-hero-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 var(--space-32);
}

.svc-eyebrow {
  margin-bottom: var(--space-16);
}

.svc-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--graphite);
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.svc-promise {
  font-size: 19px;
  color: var(--soft-graphite);
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: var(--space-48);
}

.svc-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.svc-content {
  padding: var(--space-96) 0;
  background: var(--cream-canvas);
}

.svc-content-grid {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 var(--space-32);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-96);
  align-items: start;
}

.svc-prose {
  max-width: 68ch;
  font-size: 16px;
  color: var(--graphite);
  line-height: 1.7;
}

.svc-prose p {
  margin-bottom: var(--space-24);
}

.svc-prose strong {
  font-weight: 600;
  color: var(--graphite);
}

.svc-prose h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--graphite);
  margin-top: var(--space-48);
  margin-bottom: var(--space-16);
  line-height: 1.3;
}

.svc-prose ul {
  list-style: none;
  margin-bottom: var(--space-24);
}

.svc-prose ul li {
  padding-left: var(--space-24);
  position: relative;
  margin-bottom: var(--space-12);
  line-height: 1.55;
}

.svc-prose ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* ── Expert sidebar ────────────────────────────────────────── */
.svc-expert {
  position: sticky;
  top: 140px;
  background: var(--bone);
  border-radius: var(--r-card);
  padding: var(--space-32);
  box-shadow: var(--shadow-card);
}

.svc-expert-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft-graphite);
  margin-bottom: var(--space-16);
}

.svc-expert-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--mist);
  overflow: hidden;
  margin-bottom: var(--space-20);
  border: 3px solid var(--bone);
  box-shadow: 0 0 0 1px var(--haze);
}

.svc-expert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-expert-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 4px;
}

.svc-expert-role {
  font-size: 13px;
  color: var(--soft-graphite);
  margin-bottom: var(--space-24);
}

.svc-expert-form-label {
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: var(--space-16);
  line-height: 1.5;
}

.svc-expert-input,
.svc-expert-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--haze);
  border-radius: var(--r-input);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--graphite);
  background: var(--cream-canvas);
  transition: border-color 160ms, box-shadow 160ms;
  margin-bottom: var(--space-12);
}

.svc-expert-input:focus,
.svc-expert-textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.svc-expert-textarea {
  resize: vertical;
  min-height: 90px;
}

.svc-expert-btn {
  width: 100%;
  padding: 12px;
  background: var(--amber);
  color: var(--amber-dark);
  border: none;
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms, box-shadow 180ms;
}

.svc-expert-btn:hover {
  background: #E8883D;
  box-shadow: 0 4px 14px rgba(217,122,58,0.3);
}

.svc-expert-note {
  font-size: 12px;
  color: var(--soft-graphite);
  text-align: center;
  margin-top: var(--space-12);
  line-height: 1.5;
}

/* ── Chatbot (RC branch only) ──────────────────────────────── */
.rc-chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  font-family: var(--font-sans);
}

.rc-chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--amber);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217,122,58,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-dark);
  transition: transform 220ms var(--ease-out);
}

.rc-chatbot-toggle:hover { transform: scale(1.05); }

.rc-chatbot-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: var(--bone);
  border-radius: 20px 20px 4px 20px;
  box-shadow: var(--shadow-chat);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.rc-chatbot.open .rc-chatbot-panel { display: flex; }

.rc-chatbot-header {
  background: var(--deep-ink);
  color: var(--bone);
  padding: var(--space-16) var(--space-20);
  font-size: 13px;
  font-weight: 500;
}

.rc-chatbot-header-main {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rc-chatbot-header-sub {
  font-size: 11px;
  color: rgba(250,247,240,0.55);
}

.rc-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-height: 280px;
}

.rc-chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.rc-chat-msg-bot {
  background: var(--mist);
  color: var(--graphite);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.rc-chat-msg-user {
  background: var(--amber);
  color: var(--amber-dark);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.rc-chatbot-input-row {
  border-top: 1px solid var(--haze);
  padding: var(--space-12);
  display: flex;
  gap: 8px;
}

.rc-chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--haze);
  border-radius: var(--r-input);
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--cream-canvas);
}

.rc-chatbot-input:focus {
  outline: none;
  border-color: var(--amber);
}

.rc-chatbot-send {
  background: var(--amber);
  color: var(--amber-dark);
  border: none;
  border-radius: var(--r-input);
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rc-services-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-team-grid    { grid-template-columns: repeat(3, 1fr); }
  .svc-content-grid { grid-template-columns: 1fr; gap: var(--space-48); }
  .svc-expert       { position: static; }
  .rc-chatbot-panel { width: 320px; }
}

@media (max-width: 600px) {
  .rc-services-grid { grid-template-columns: 1fr; }
  .rc-team-grid    { grid-template-columns: repeat(2, 1fr); }
  .rc-chatbot-panel { width: calc(100vw - 48px); }
}

/* ── Nuke any legacy search overlay / Cmd K banner ─────── */
#search-overlay,
.search-overlay,
#search-btn,
.search-box,
.search-inner,
.search-hint,
#search-input,
.search-close {
  display: none !important;
}
