/* =============================================================
   Contact page
   Used by: lists_single_contact.htm (/index.php/contact-us/)
   Depends on: styles.css tokens (.page-shell, .section-space,
   .button), script.js ([data-branch-carousel]) and footer.htm
   (#contact inquiry form). All page-specific styles live here.
   ============================================================= */

/* ---------- Hero ---------- */
.contact-hero {
  padding-top: var(--header-h);
  background:
    radial-gradient(1100px 460px at 88% -12%, var(--soft-blue) 0%, rgba(234, 244, 255, 0) 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.contact-hero .page-shell { padding-block: clamp(38px, 4.4vw, 72px); }

.contact-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.contact-breadcrumb a {
  color: var(--muted);
  font-weight: 600;
  transition: color .2s ease;
}

.contact-breadcrumb a:hover { color: var(--blue); }

.contact-breadcrumb span { color: #b7c2d0; }

.contact-breadcrumb [aria-current="page"] { color: #33445c; }

.contact-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.15;
  font-weight: 760;
}

.contact-hero-lead {
  margin: 16px 0 0;
  max-width: 720px;
  color: #526276;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.8;
}

/* ---------- Overview info cards ---------- */
.contact-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(26px, 3vw, 44px);
}

.contact-info-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

a.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.contact-info-card i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  color: var(--blue);
  border-radius: 11px;
  font-size: 16px;
}

.contact-info-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-info-card strong {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Offices ---------- */
.office-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.office-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 2.2vw, 40px);
  font-weight: 740;
}

.office-heading p {
  margin: 12px 0 0;
  color: #526276;
  line-height: 1.8;
}

.office-controls {
  display: flex;
  gap: 10px;
  flex: none;
}

.office-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.office-controls button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.branch-viewport { overflow: hidden; }

.branch-track {
  display: flex;
  gap: 20px;
  margin-top: clamp(24px, 2.6vw, 40px);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.branch-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.branch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.branch-card-head h3 {
  font-size: 17px;
  font-weight: 720;
}

.branch-card-head span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.branch-card p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 8px 0 0;
  color: #5a6a7e;
  font-size: 13.5px;
  line-height: 1.6;
}

.branch-card p i {
  flex: none;
  margin-top: 3px;
  color: var(--blue);
  font-size: 12px;
}

.branch-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.branch-dots {
  display: flex;
  gap: 8px;
}

.branch-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cdd8e4;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}

.branch-dot.is-active {
  width: 26px;
  background: var(--blue);
}

.branch-controls > span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Online inquiry ---------- */
.message-heading { max-width: 720px; }

.message-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 2.2vw, 40px);
  font-weight: 740;
}

.message-heading p {
  margin: 12px 0 0;
  color: #526276;
  line-height: 1.8;
}

.message-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 22px;
  margin-top: clamp(26px, 3vw, 44px);
  align-items: stretch;
}

.message-aside {
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.message-aside h3 {
  font-size: 20px;
  font-weight: 740;
}

.message-aside > p {
  margin: 12px 0 0;
  color: #526276;
  font-size: 14.5px;
  line-height: 1.8;
}

.message-aside ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.message-aside ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.message-aside ul i {
  color: var(--blue);
  margin-top: 3px;
}

.message-contact {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.message-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-contact i {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue);
  border-radius: 10px;
  font-size: 14px;
}

.message-contact span {
  display: grid;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.message-contact strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}

.message-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.message-qr img {
  width: 120px;
  height: 120px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.message-qr span {
  color: #526276;
  font-size: 13.5px;
  line-height: 1.7;
}

.message-qr small {
  color: var(--muted);
  font-size: 12px;
}

/* CTA panel replacing the removed inline form */
.message-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: var(--white);
  border: 1px dashed rgba(35, 122, 215, .45);
  border-radius: 18px;
  text-align: center;
}

.message-cta h3 {
  font-size: 22px;
  font-weight: 740;
}

.message-cta > p {
  margin: 14px auto 0;
  max-width: 460px;
  color: #526276;
  font-size: 14.5px;
  line-height: 1.8;
}

.message-cta ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.message-cta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: #33445c;
  font-size: 12.5px;
  font-weight: 600;
}

.message-cta li i {
  color: var(--blue);
  font-size: 11px;
}

.message-cta .button {
  align-self: center;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .branch-card { flex-basis: calc((100% - 20px) / 2); }
  .message-panel { grid-template-columns: 1fr; }
  .office-heading { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) {
  .contact-overview-grid { grid-template-columns: 1fr; }
  .branch-card { flex-basis: 100%; }
  .branch-controls > span { display: none; }
}
