/* Intellect Juris — Contact us page
   Section layout follows the supplied Contact Us mock; type, colour, buttons and radii come from site.css. */

.ct-h3 { font: 500 1.375rem/1.25 var(--font-display); letter-spacing: -0.01em; }

/* ---------- hero band with map ---------- */
.ct-hero { background: none; }
.ct-hero .hero__frame { height: clamp(520px, 66vh, 600px); align-items: flex-start; padding: 104px 48px 170px; background: var(--page); border: 1px solid var(--stone); }
.ct-hero .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 248, 243, .96) 0%, rgba(250, 248, 243, .7) 40%, rgba(250, 248, 243, 0) 75%); }
.ct-hero .hero__content { color: var(--espresso); }
.ct-hero .hero__lede { color: var(--taupe); font-size: 1.125rem; }
.ct-hero-map { background: var(--page); }
.ct-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-map .ct-pulse { transform-box: fill-box; transform-origin: center; animation: ct-pulse 2.4s ease-out infinite; }
@keyframes ct-pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-map .ct-pulse { animation: none; } }

/* ---------- message + contact card ---------- */
.ct-card-sec { position: relative; z-index: 2; margin-top: -150px; padding-bottom: 96px; }
.ct-card { display: grid; grid-template-columns: 1.45fr 1fr; max-width: 1000px; margin-inline: auto; overflow: hidden; border-radius: var(--radius); background: var(--page); box-shadow: 0 0 0 1px rgba(41, 45, 48, .06), 0 24px 60px -12px rgba(41, 45, 48, .22); }

.ct-msg { display: flex; flex-direction: column; padding: 48px 48px 40px; }
.ct-msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.ct-msg-head svg { width: 28px; height: 28px; color: var(--copper); }
.ct-form { flex: 1; display: grid; align-content: start; gap: 24px; }
.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ct-field label { display: block; font-size: .875rem; font-weight: 500; color: var(--taupe); transition: color .25s; }
.ct-field input, .ct-field textarea { width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0; background: transparent; color: var(--espresso); font: 400 1rem/1.5 var(--font-body); }
.ct-field textarea { min-height: 110px; resize: vertical; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--taupe); opacity: .6; }
.ct-field input:focus, .ct-field textarea:focus { outline: 0; border-bottom: 2px solid var(--copper); padding-bottom: 9px; }
.ct-field:focus-within label { color: var(--bronze); }
.ct-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 12px; }
.ct-note { max-width: 38ch; font-size: .8125rem; line-height: 1.5; color: var(--taupe); }
.ct-send { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--espresso); color: #fff; box-shadow: 0 10px 24px -10px rgba(41, 45, 48, .6); transition: transform .4s var(--ease), background-color .3s var(--ease); }
.ct-send:hover { background: #3b4043; transform: translateY(-2px); }
.ct-send svg { width: 22px; height: 22px; }
.ct-thanks { padding: 12px 16px; border-left: 3px solid var(--copper); border-radius: 4px; background: var(--page); font-size: .9375rem; }
.ct-thanks[hidden] { display: none; }
.ct-thanks.is-error { border-left-color: #a3523f; }
.ct-form.is-sending .ct-send { opacity: .55; cursor: progress; }
.ct-form.is-sending .ct-send svg { animation: ct-sending 1s ease-in-out infinite alternate; }
@keyframes ct-sending { to { transform: translate(3px, -3px); } }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-info { display: flex; flex-direction: column; gap: 28px; padding: 48px 40px; background: var(--sand); color: var(--espresso); }
.ct-info-list { display: grid; gap: 22px; }
.ct-info-list li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 16px; font-size: .9375rem; color: var(--taupe); }
.ct-info-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--copper); }
.ct-info-list b { display: block; margin-bottom: 2px; font-weight: 400; color: var(--bronze); }
.ct-info-list a { text-decoration: none; }
.ct-info-list a:hover { color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; }
.ct-social { display: flex; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--stone); }
.ct-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--stone); color: var(--bronze); transition: background-color .3s var(--ease); }
.ct-social a:hover { background: var(--page); }
.ct-social svg { width: 18px; height: 18px; }

/* ---------- offices ---------- */
.ct-offices { padding-bottom: var(--section); }
.ct-offices-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.ct-offices-head .h2 span { color: var(--taupe); }
.ct-offices-head p:not(.eyebrow) { margin-top: 14px; color: var(--taupe); }
.ct-offices-grid { display: grid; grid-template-columns: 1.7fr 1fr; align-items: stretch; gap: 8px; }

.ct-slider { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius); background: var(--espresso); }
.ct-slide { position: absolute; inset: 0; background: center / cover; opacity: 0; transform: scale(1.08); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.ct-slide.is-on { opacity: 1; transform: none; }
.ct-slide .ct-slide-card { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ct-slide.is-on .ct-slide-card { opacity: 1; transform: none; transition-delay: .2s; }
.ct-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 31, 33, .6), rgba(28, 31, 33, 0) 55%); }
.ct-slide-card { position: absolute; left: 24px; bottom: 24px; z-index: 1; max-width: 340px; padding: 22px 24px; border-radius: var(--radius); background: var(--page); box-shadow: 0 12px 32px -12px rgba(41, 45, 48, .45); }
.ct-slide-card .eyebrow { margin-bottom: 8px; color: var(--bronze); font-size: .875rem; }
.ct-slide-card p:not(.eyebrow) { margin-top: 6px; font-size: .875rem; line-height: 1.55; color: var(--taupe); }
.ct-slider-ctrl { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 14px; }
.ct-dots { display: flex; gap: 8px; }
.ct-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.ct-dot[aria-current="true"] { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.ct-slider .arrow-btn { background: var(--page); border-color: var(--page); }
.ct-slider .arrow-btn:hover { background: var(--espresso); border-color: var(--espresso); }

.ct-office-list { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.ct-office-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--page); cursor: pointer; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), transform .5s var(--ease); }
.ct-office-card:hover { box-shadow: 0 12px 32px -18px rgba(41, 45, 48, .35); }
.ct-office-card[aria-selected="true"] { border-color: var(--sand); background: var(--sand); box-shadow: 0 14px 34px -16px rgba(41, 45, 48, .35); transform: translateX(-4px); }
.ct-oc-top { display: flex; align-items: center; gap: 10px; color: var(--bronze); font-size: .9375rem; }
.ct-oc-top svg { width: 20px; height: 20px; color: var(--copper); }
.ct-office-card address { font-size: .9375rem; line-height: 1.6; color: var(--taupe); }
.ct-oc-links { margin-top: auto; font-size: .9375rem; }
.ct-oc-links a { display: block; text-decoration: none; }
.ct-oc-links a:hover { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .ct-hero .hero__frame { height: auto; min-height: 500px; justify-content: flex-start; padding: 104px 32px 170px; }
  .ct-card { grid-template-columns: 1fr; max-width: 560px; }
  .ct-offices-grid { grid-template-columns: 1fr; }
  .ct-slider { min-height: 420px; }
  .ct-office-list { grid-template-rows: none; }
}
@media (max-width: 767px) {
  .ct-hero .hero__frame { min-height: 0; padding: 88px 20px 140px; }
  .ct-hero .hero__media::after { background: rgba(250, 248, 243, .82); }
  .ct-hero .hero__lede { font-size: 1rem; }
  .ct-card-sec { margin-top: -110px; padding-bottom: 56px; }
  .ct-map-callout { display: none; }
  .ct-msg, .ct-info { padding: 32px 22px; }
  .ct-row2 { grid-template-columns: 1fr; gap: 24px; }
  .ct-slider { min-height: 440px; }
  .ct-slide-card { left: 16px; right: 16px; bottom: 76px; max-width: none; padding: 18px; }
  .ct-slider-ctrl { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .ct-office-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ct-slide, .ct-slide .ct-slide-card { transform: none; transition: none; } }
