:root {
  --bg: #ebe7df;
  --surface: #f8f4ed;
  --surface-strong: #fffdfa;
  --text: #132231;
  --muted: #566979;
  --accent: #c28f2f;
  --accent-dark: #9f721e;
  --line: #d7ccbb;
  --brand: #10324d;
  --brand-2: #2e6685;
  --success: #225f2a;
  --radius-xl: 1.25rem;
  --shadow-1: 0 16px 42px rgba(16, 33, 48, 0.12);
  --shadow-2: 0 8px 24px rgba(16, 33, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, #f3dca4 0%, transparent 28%),
    radial-gradient(circle at 90% -6%, #cadcea 0%, transparent 30%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(235, 231, 223, 0.86);
  border-bottom: 1px solid rgba(215, 204, 187, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text-wrap {
  display: grid;
  gap: 0.04rem;
}

.brand-text-wrap strong {
  font-size: 1rem;
}

.brand-text-wrap small {
  color: #506272;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-item {
  position: relative;
  padding-bottom: 0.18rem;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  background: #1e5474;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  transform: scaleX(1);
}

.nav-item.active {
  color: #173f5b;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface-strong);
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.68rem 1.2rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent-dark);
}

.btn-outline {
  border-color: #9eb3c2;
  color: #23485f;
  background: #f4f8fb;
}

.btn-ghost {
  border-color: rgba(35, 72, 95, 0.2);
  color: #23485f;
  background: rgba(255, 255, 255, 0.55);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.hero {
  padding: 5.8rem 0 3rem;
  position: relative;
}

.hero-glow {
  position: absolute;
  right: 4%;
  top: 20%;
  width: min(420px, 45vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(46, 102, 133, 0.25), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.8rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #47657a;
}

.hero-copy h1,
.section-head h2,
.contact-card h2 {
  font-family: "Cormorant Garamond", serif;
}

.hero-copy h1 {
  margin: 0.38rem 0 1rem;
  line-height: 1.02;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
}

.hero-copy p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-panel {
  background: linear-gradient(142deg, var(--brand), var(--brand-2));
  color: #f1f6fb;
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  box-shadow: var(--shadow-1);
  animation: heroFloat 5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.hero-panel:hover {
  transform: translateY(-3px);
}

.panel-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #adc5d6;
}

.hero-panel h2 {
  margin: 0.28rem 0 0.95rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hero-panel li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.66rem;
}

.hero-panel span {
  display: block;
  font-size: 0.8rem;
  color: #b8cfdf;
}

.hero-panel strong {
  font-size: 1rem;
}

.phone-link {
  display: block;
  color: #eff8ff;
  text-decoration: none;
  margin-top: 0.14rem;
  line-height: 1.2;
}

.phone-link:hover,
.contact-link:hover {
  color: #ffffff;
}

.contact-link {
  display: block;
  color: #eff8ff;
  text-decoration: none;
  margin-top: 0.14rem;
  line-height: 1.25;
  word-break: break-word;
}

.firm-main-map {
  margin-top: 0.65rem;
}

.firm-main-map-card {
  display: grid;
  gap: 0.38rem;
}

.firm-main-map-shell {
  position: relative;
  min-height: 118px;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 22px rgba(7, 18, 29, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 17, 28, 0.22));
}

.firm-main-map-frame {
  width: 100%;
  height: 100%;
  min-height: 118px;
  border: 0;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.firm-main-map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 20, 31, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.firm-main-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.firm-main-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  z-index: 1;
  filter: drop-shadow(0 6px 12px rgba(14, 28, 40, 0.45));
}

.firm-main-map-city {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: #eff8ff;
}

.section {
  padding: 4rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
  scroll-margin-top: 4.6rem;
}

.section-accent {
  background: rgba(250, 246, 240, 0.7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0.35rem 0 1.2rem;
  line-height: 1.06;
}

.services-grid,
.team-grid,
.social-grid,
.branches-grid {
  display: grid;
  gap: 1rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.branches-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.08rem;
  box-shadow: var(--shadow-2);
  min-height: 100%;
}

.branch-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 247, 243, 0.98));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.92rem;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 0.78rem;
  text-decoration: none;
  color: inherit;
}

.branch-card::before {
  content: none;
}

.branch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.branch-card-head span {
  white-space: nowrap;
}

.branch-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", serif;
}

.branch-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 0.9rem;
  align-items: start;
}

.branch-address-lines {
  display: grid;
  gap: 0.28rem;
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--muted);
}

.branch-address-lines span {
  display: block;
}

.branch-phone-list {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.45rem;
}

.branch-phone-link {
  color: #22465d;
  font-weight: 700;
  text-decoration: none;
}

.branch-phone-link:hover {
  color: #16384b;
}

.branch-open-link {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #536c7e;
  text-decoration: none;
}

.branch-open-link:hover {
  color: #28485d;
}

.branch-map-wrap {
  position: relative;
  z-index: 1;
  min-height: 112px;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(189, 201, 211, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 24px rgba(16, 33, 48, 0.08);
  background: linear-gradient(145deg, #8598a6, #bbc7ce);
}

.branch-map-frame {
  width: 100%;
  min-height: 112px;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.03);
}

.branch-map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(18, 34, 46, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.branch-map-overlay,
.branch-map-pin {
  position: absolute;
  z-index: 1;
}

.branch-map-overlay {
  inset: 0;
}

.branch-map-pin {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.28rem;
  filter: drop-shadow(0 6px 12px rgba(14, 28, 40, 0.45));
}

.branch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(16, 33, 48, 0.12);
  border-color: #c7b48d;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.08;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 0.85rem;
}

.team-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(16, 33, 48, 0.12);
  border-color: #ceb88d;
}

.team-portrait-shell {
  position: relative;
  padding: 0.62rem 0.62rem 0;
  background:
    radial-gradient(circle at 22% 12%, rgba(194, 143, 47, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(19, 50, 77, 0.06), rgba(19, 50, 77, 0));
}

.team-portrait-shell::after {
  content: "";
  position: absolute;
  inset: 0.62rem 0.62rem 0;
  border-radius: 1.05rem 1.05rem 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 56%, rgba(20, 35, 48, 0.06) 100%);
  pointer-events: none;
}

.team-portrait {
  width: 100%;
  height: 23rem;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border-radius: 1.05rem 1.05rem 0 0;
  background: linear-gradient(180deg, #dfdfdf, #c9c9c9);
}

.placeholder-avatar {
  filter: grayscale(100%);
}

.card-body {
  padding: 0.82rem 0.88rem 0.95rem;
}

.team-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.role {
  margin: 0.15rem 0 0;
  color: #3f6077;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.35;
}

.advocate-email {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.55rem;
  color: #2f5d78;
  border: 1px solid rgba(47, 93, 120, 0.28);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.advocate-email:hover,
.advocate-email:focus-visible {
  color: var(--gold-deep);
  background: rgba(194, 143, 47, 0.12);
  border-color: currentColor;
}

.advocate-email-icon {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.admin-item-email {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.social-grid {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.social-card {
  text-decoration: none;
  color: var(--text);
  border: 1px solid #d6dce2;
  background: #f9fcfe;
  border-radius: 0.95rem;
  padding: 0.95rem;
  display: grid;
  gap: 0.22rem;
  box-shadow: var(--shadow-2);
}

.social-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #214a62, #3f708d);
}

.contact-grid {
  display: block;
}

.contact-card,
.assistant-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}

.contact-card {
  background: linear-gradient(142deg, #15344c, #2a5b78);
  color: #eff7ff;
  padding: 1.4rem;
  max-width: 920px;
  margin: 0 auto;
}

.contact-card h2 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.contact-card p {
  margin: 0;
  color: #cadceb;
}

.contact-shell-head {
  display: grid;
  gap: 0.9rem;
}

.contact-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-mini-note {
  font-size: 0.92rem;
  color: #d7e4ef;
}

.contact-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.contact-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
}

.contact-drawer-inner {
  min-height: 0;
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-close {
  margin-top: 0.8rem;
}

.contact-form input,
.contact-form textarea,
.assistant-question-form input,
.assistant-route-form input,
.assistant-route-form textarea,
.assistant-route-form select,
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid #c7d8e4;
  background: #fff;
  border-radius: 0.65rem;
  color: #0f2130;
  font: inherit;
  padding: 0.68rem 0.72rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.assistant-question-form input:focus,
.assistant-route-form input:focus,
.assistant-route-form textarea:focus,
.assistant-route-form select:focus,
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(194, 143, 47, 0.35);
  border-color: #bf8f37;
}

.assistant-card {
  border: 1px solid #d7ccbb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 244, 236, 0.96)),
    var(--surface);
  padding: 1.25rem;
}

.assistant-popup-card {
  border: none;
  box-shadow: none;
  background:
    radial-gradient(circle at top right, rgba(194, 143, 47, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 237, 0.98));
  padding: 0.9rem 0.9rem 0.95rem;
}

.assistant-card h3 {
  margin: 0.12rem 0 0.22rem;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", serif;
}

.assistant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.assistant-messages {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  max-height: 8.75rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.assistant-bubble {
  max-width: 95%;
  border-radius: 0.95rem;
  padding: 0.65rem 0.78rem;
  box-shadow: var(--shadow-2);
}

.assistant-bubble p {
  margin: 0;
  color: inherit;
}

.assistant-bubble-assistant {
  background: #ffffff;
  border: 1px solid #dae2e9;
  color: #234050;
}

.assistant-bubble-user {
  margin-left: auto;
  background: linear-gradient(140deg, #1c4966, #356f8f);
  color: #f4fbff;
}

.assistant-suggestions {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.assistant-chip {
  border: 1px solid #bfd0dd;
  background: #f5fafc;
  color: #22465d;
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
}

.assistant-question-form,
.assistant-route-form {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.5rem;
}

.assistant-question-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.assistant-question-form input,
.assistant-route-form input,
.assistant-route-form textarea,
.assistant-route-form select {
  width: 100%;
  border: 1px solid #c7d8e4;
  background: #fff;
  border-radius: 0.7rem;
  color: #0f2130;
  font: inherit;
  padding: 0.68rem 0.72rem;
}

.assistant-route-form label {
  display: grid;
  gap: 0.32rem;
  color: #2e4a5e;
  font-weight: 700;
  font-size: 0.92rem;
}

.assistant-footer-actions,
.assistant-route-actions {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer {
  padding: 1.7rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #496274;
}

.footer-copy {
  grid-column: 2;
  margin: 0;
  white-space: nowrap;
  line-height: 1.35;
}

.footer-admin-link {
  grid-column: 3;
  justify-self: start;
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  color: #496274;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.status-text {
  margin: 0.2rem 0 0;
  color: #deedf9;
  font-size: 0.87rem;
}

.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, #18415d, #2a6686);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.85rem;
  z-index: 40;
  width: min(390px, calc(100vw - 1.2rem));
  max-height: min(76vh, 620px);
  border: 1px solid rgba(184, 167, 137, 0.4);
  border-radius: 1.45rem;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 238, 228, 0.98)),
    #fff;
  box-shadow: 0 28px 60px rgba(16, 33, 48, 0.22);
  backdrop-filter: blur(14px);
}

.chat-panel-head {
  padding: 0.78rem 0.92rem 0.74rem;
  background: linear-gradient(140deg, #173a54, #2f6786);
  color: #f4fbff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
}

.chat-panel-head strong {
  display: block;
  font-size: 1rem;
}

.chat-panel-kicker {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cddfed;
  margin-bottom: 0.14rem;
}

.chat-panel-head button {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

.fade {
  animation: fadeIn 0.55s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.admin-main {
  padding-top: 3.2rem;
}

.admin-main h1 {
  margin: 0.2rem 0 0.55rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.1vw, 2.9rem);
}

.admin-subtitle {
  color: var(--muted);
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-2);
}

.admin-panel h2 {
  margin: 0 0 0.7rem;
}

.section-note {
  margin: -0.15rem 0 0.85rem;
  color: var(--muted);
  max-width: 68ch;
}

.form-grid {
  display: grid;
  gap: 0.68rem;
}

.form-grid label,
.admin-passcode {
  display: grid;
  gap: 0.35rem;
  color: #2e4a5e;
  font-weight: 700;
  font-size: 0.92rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-list {
  display: grid;
  gap: 0.68rem;
  margin-top: 0.8rem;
}

.admin-item {
  background: #fff;
  border: 1px solid #d6e1e9;
  border-radius: 0.8rem;
  padding: 0.8rem;
}

.admin-item h3 {
  margin: 0 0 0.2rem;
}

.admin-item p {
  margin: 0;
  color: #5a6b79;
}

.item-with-avatar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.item-with-avatar img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(180deg, #dfdfdf, #c9c9c9);
}

.item-actions {
  margin-top: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-sm {
  padding: 0.42rem 0.74rem;
  font-size: 0.84rem;
}

.danger {
  color: #8e2f2f;
  border-color: #efc4c4;
}

.status-message {
  margin: 0.8rem 0 0;
  color: var(--success);
  font-weight: 700;
}

.inbox-item time {
  font-size: 0.78rem;
  color: #657786;
}

@media (max-width: 1024px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.2rem;
  }

  .branch-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 1.4rem));
  }

  .brand-text-wrap small {
    display: none;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle + .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    justify-content: flex-start;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    padding: 0.3rem 1.1rem 1rem;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-toggle + .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links .nav-item {
    padding: 0.85rem 0.1rem;
    border-bottom: 1px solid rgba(215, 204, 187, 0.6);
    font-size: 1.05rem;
  }

  .nav-links .btn.btn-outline {
    margin-top: 0.75rem;
    justify-content: center;
    display: flex;
  }

  .assistant-question-form {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .chat-fab {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .team-portrait {
    height: 20rem;
  }
}

@media (max-width: 640px) {
  .footer-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .footer-admin-link {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .team-portrait {
    height: 18rem;
  }
}
