/* Contact page (page-templates/contact.php). Uses the site tokens from assets/js/tailwind-config.js. */
.ct{
  --ct-ink:#05061f;--ct-heading:#03087a;--ct-brand:#012bff;--ct-brand-dark:#0020c4;--ct-body:#43424f;--ct-muted:#5c5f70;
  --ct-pale:#eef2fa;--ct-line:#dde2ed;--ct-field:#f6f8fc;--ct-bad:#c22a2f;--ct-badbg:#fdeeee;
  --ct-display:"Bricolage Grotesque","Plus Jakarta Sans",system-ui,sans-serif;
  --ct-ease:cubic-bezier(.16,1,.3,1);
  background:linear-gradient(180deg,var(--ct-pale) 0,var(--ct-pale) 340px,#fff 860px);
  color:var(--ct-ink);
}
.ct ::selection{background:var(--ct-brand);color:#fff}
.ct input,.ct textarea{caret-color:var(--ct-brand)}

/* ---------- layout: intro + side on the left, form on the right; phones: intro, form, side ---------- */
.ct-wrap{
  max-width:1600px;margin:0 auto;padding:88px 80px 120px;
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:48px;
  grid-template-areas:
    "intro intro intro intro intro intro card card card card card card"
    "side  side  side  side  side  side  card card card card card card"
    "offices offices offices offices offices offices offices offices offices offices offices offices";
  grid-template-rows:auto 1fr auto;
}
.ct-intro{grid-area:intro;padding-top:8px}
.ct-card{grid-area:card;align-self:start}
.ct-side{grid-area:side;margin-top:48px}
@media (max-width:1280px){.ct-wrap{padding:72px 48px 104px;column-gap:40px}}
@media (max-width:1100px){
  .ct-wrap{grid-template-columns:1fr;grid-template-areas:"intro" "card" "side" "offices";grid-template-rows:none;max-width:760px;padding:56px 32px 88px}
  .ct-card{margin-top:36px}
  .ct-side{margin-top:40px}
}
@media (max-width:700px){.ct-wrap{padding:36px 20px 72px}.ct-card{margin-top:28px}}

/* ---------- intro ---------- */
.ct-title{
  margin:0;font-family:var(--ct-display);font-variation-settings:"opsz" 72,"wdth" 100;
  font-size:clamp(40px,4.6vw,68px);line-height:1.02;font-weight:700;letter-spacing:-.032em;color:var(--ct-ink);
  text-wrap:balance;max-width:13ch;
}
.ct-lead{margin:24px 0 0;max-width:40ch;font-size:20px;line-height:1.55;color:var(--ct-body);text-wrap:pretty}
@media (max-width:700px){.ct-lead{font-size:17px;margin-top:16px}}

/* ---------- side: the direct lines ---------- */
.ct-side{container-type:inline-size}
.ct-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.ct-lines{list-style:none;margin:48px 0 0;padding:0;border-top:1px solid var(--ct-line)}
.ct-lines li{border-bottom:1px solid var(--ct-line)}
.ct-line{display:grid;grid-template-columns:96px 1fr 24px;align-items:center;gap:16px;min-height:76px;padding:10px 4px;color:var(--ct-ink);text-decoration:none;border-radius:12px}
.ct-line-label{font-size:14px;font-weight:600;color:var(--ct-muted)}
.ct-line-value{font-family:var(--ct-display);font-size:clamp(18px,1.5vw,22px);font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.ct-line-arrow{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;color:var(--ct-muted);transition:transform .35s var(--ct-ease),color .2s}
.ct-line:hover .ct-line-value,.ct-line:focus-visible .ct-line-value{color:var(--ct-brand)}
.ct-line:hover .ct-line-arrow,.ct-line:focus-visible .ct-line-arrow{color:var(--ct-brand);transform:translate(3px,-3px)}
/* narrow side column (laptops, phones): label above the value so the email never gets cut off */
@container (max-width:560px){
  .ct-line{grid-template-columns:1fr 20px;grid-template-rows:auto auto;row-gap:3px;min-height:76px;padding:14px 4px}
  .ct-line-label{grid-column:1}.ct-line-value{grid-column:1;font-size:20px}.ct-line-arrow{grid-column:2;grid-row:1/3}
}
/* small phones: shrink the value so the full email address shows instead of an ellipsis */
@container (max-width:380px){
  .ct-line-value{font-size:clamp(14px,5.6cqi,20px);letter-spacing:-.015em;white-space:normal}
}

.ct-customer{margin:24px 0 0;max-width:46ch;font-size:15px;line-height:1.6;color:var(--ct-muted)}

/* ---------- form card ---------- */
.ct-card{
  background:#fff;border:1px solid var(--ct-line);border-radius:28px;padding:44px 44px 36px;
  box-shadow:0 2px 4px rgba(5,6,31,.03),0 30px 60px -32px rgba(3,8,122,.32);
  animation:ct-rise .8s var(--ct-ease) both;
}
@media (max-width:700px){.ct-card{padding:28px 20px 24px;border-radius:22px}}
.ct-card-title{margin:0 0 28px;font-family:var(--ct-display);font-size:28px;font-weight:700;letter-spacing:-.02em;color:var(--ct-ink)}
@media (max-width:700px){.ct-card-title{font-size:23px;margin-bottom:20px}}

.ct-alert{margin:0 0 22px;padding:13px 16px;border-radius:12px;background:var(--ct-badbg);color:var(--ct-bad);font-size:14.5px;font-weight:600;line-height:1.45}
.ct-alert a{color:inherit;text-decoration:underline;text-underline-offset:3px}

.ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}
.ct-field--wide{grid-column:1/-1}
@media (max-width:560px){.ct-grid{grid-template-columns:1fr;gap:18px}}
.ct-field{display:flex;flex-direction:column;min-width:0}
.ct-label{display:flex;align-items:baseline;gap:4px;margin:0 0 8px;font-size:14px;font-weight:700;line-height:1.3;color:var(--ct-ink)}
.ct-req{color:var(--ct-bad)}
.ct-opt{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--ct-muted)}
.ct-input{
  display:block;width:100%;min-height:54px;margin:0;padding:0 16px;
  font:inherit;font-size:16px;color:var(--ct-ink);background:var(--ct-field);
  border:1.5px solid var(--ct-line);border-radius:14px;outline:none;-webkit-appearance:none;appearance:none;
  transition:border-color .2s,background-color .2s,box-shadow .2s;
}
.ct-input[type="tel"]{font-variant-numeric:tabular-nums}
.ct-textarea{min-height:140px;padding:14px 16px;line-height:1.55;resize:vertical}
.ct-input::placeholder{color:#666a7c;opacity:1}
.ct-input:hover{border-color:#c5cde2}
.ct-input:focus{background:#fff;border-color:var(--ct-brand);box-shadow:0 0 0 4px rgba(1,43,255,.13)}
.ct-input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #eef3ff inset;-webkit-text-fill-color:var(--ct-ink)}
.ct-input[aria-invalid="true"]{border-color:var(--ct-bad);background:#fff;box-shadow:0 0 0 4px rgba(194,42,47,.09)}
.ct-textarea::-webkit-scrollbar{width:10px}.ct-textarea::-webkit-scrollbar-thumb{background:#cfd5e6;border-radius:10px;border:3px solid #fff}
.ct-err{margin:6px 0 0;font-size:13px;font-weight:600;line-height:1.35;color:var(--ct-bad)}
.ct-err:empty{display:none}
.ct-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

.ct-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px}
.ct-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 30px;
  border:0;border-radius:999px;background:var(--ct-brand);color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer;
  box-shadow:0 14px 26px -14px rgba(1,43,255,.8);transition:background-color .2s,box-shadow .2s,transform .2s var(--ct-ease);
}
.ct-btn:hover{background:var(--ct-brand-dark);box-shadow:0 18px 30px -14px rgba(1,43,255,.85)}
.ct-btn:active{transform:scale(.98)}
.ct-btn-arrow{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ct-ease)}
.ct-btn:hover .ct-btn-arrow{transform:translateX(3px)}
.ct-btn[aria-busy="true"]{cursor:progress;background:var(--ct-brand-dark)}
.ct-btn[aria-busy="true"] .ct-btn-arrow{display:none}
.ct-btn[aria-busy="true"]::after{content:"";width:17px;height:17px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ct-spin .8s linear infinite}
@media (max-width:560px){.ct-btn{width:100%}.ct-actions{gap:14px}}
.ct-promise{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:14.5px;font-weight:600;color:var(--ct-muted)}
.ct-promise svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ct-recaptcha{margin:22px 0 0;font-size:12.5px;line-height:1.55;color:var(--ct-muted)}
.ct-recaptcha a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* ---------- offices: two cards, map on top fading into the details ---------- */
.ct-offices{grid-area:offices;margin-top:112px}
.ct-offices-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 40px;flex-wrap:wrap;margin-bottom:36px}
.ct-offices-title{margin:0;font-family:var(--ct-display);font-size:clamp(32px,3.2vw,46px);font-weight:700;line-height:1.05;letter-spacing:-.028em;color:var(--ct-ink)}
.ct-offices-lead{margin:0;max-width:44ch;font-size:17px;line-height:1.55;color:var(--ct-body)}
.ct-offices-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
/* below 1100 the page is a single 760px column, too narrow for two cards side by side */
@media (max-width:1100px){.ct-offices{margin-top:72px}.ct-offices-grid{grid-template-columns:1fr;gap:24px}}
@media (max-width:700px){.ct-offices{margin-top:56px}.ct-offices-head{margin-bottom:24px}}

.ct-office{
  --tone:var(--ct-brand);--tone-text:var(--ct-brand);--tone-soft:#eef2ff;--tone-line:#d6defd;
  position:relative;display:flex;flex-direction:column;container:office/inline-size;background:#fff;border:1px solid var(--ct-line);border-radius:28px;overflow:hidden;
  box-shadow:0 2px 4px rgba(5,6,31,.03),0 30px 60px -36px rgba(3,8,122,.35);
  transition:transform .45s var(--ct-ease),box-shadow .45s var(--ct-ease);
}
.ct-office--orange{--tone:#f56717;--tone-text:#b8470c;--tone-soft:#fff1e7;--tone-line:#fbd9c2}
.ct-office::before{content:"";position:absolute;inset:0 0 auto;height:4px;z-index:2;background:var(--tone)}
.ct-office:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgba(5,6,31,.03),0 40px 70px -36px rgba(3,8,122,.42)}

.ct-map{position:relative;aspect-ratio:16/8;background:var(--ct-pale);overflow:hidden}
/* Google's embed always draws an address card in the top-left corner and has no option to hide it,
   so the frame is made taller and pulled up until that card sits above the visible area */
.ct-map iframe{position:absolute;left:0;top:-140px;width:100%;height:calc(100% + 140px);border:0}
/* soft fade from the map into the card; the strip is narrow so the map stays usable */
.ct-map::after{content:"";position:absolute;inset:auto 0 0;height:56px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff);pointer-events:none}

.ct-office-body{display:flex;flex-direction:column;flex:1;padding:4px 32px 32px}
.ct-office-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin-top:-30px;position:relative;z-index:1}
.ct-office-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--tone);color:#fff;box-shadow:0 14px 26px -12px var(--tone),0 0 0 5px #fff}
.ct-office-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ct-office-titles{min-width:0;padding-top:26px}
.ct-office-name{margin:0;font-family:var(--ct-display);font-size:clamp(22px,1.9vw,27px);font-weight:700;letter-spacing:-.02em;line-height:1.15;color:var(--ct-ink)}
.ct-office-co{margin:3px 0 0;font-size:14px;font-weight:600;color:var(--ct-muted)}
.ct-office-tag{align-self:start;margin-top:28px;display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:var(--tone-soft);color:var(--tone-text);font-size:13px;font-weight:700;white-space:nowrap}
.ct-office-tag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--tone)}

.ct-office-list{margin:26px 0 0;padding:0}
.ct-office-row{display:grid;grid-template-columns:120px 1fr;gap:6px 16px;align-items:baseline;padding:16px 0;border-top:1px solid var(--ct-line)}
.ct-office-row dt{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ct-muted)}
.ct-office-row dt svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--tone-text);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ct-office-row dd{margin:0;min-width:0;font-size:16.5px;line-height:1.5;color:var(--ct-ink)}
.ct-office-row address{font-style:normal}
.ct-office-row a{color:inherit;text-decoration:none;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:break-word;transition:color .2s}
.ct-office-row a:hover,.ct-office-row a:focus-visible{color:var(--tone-text);text-decoration:underline;text-underline-offset:4px}
.ct-office-phones{display:flex;flex-wrap:wrap;gap:4px 0}
.ct-office-phones a+a{padding-left:14px;margin-left:14px;border-left:1px solid var(--ct-line)}

.ct-office-btn{
  display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;margin-top:auto;
  border-radius:16px;background:var(--tone-soft);border:1px solid var(--tone-line);color:var(--tone-text);
  font-size:15.5px;font-weight:700;text-decoration:none;transition:background-color .25s,color .25s,border-color .25s;
}
.ct-office-list{margin-bottom:24px}
.ct-office-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ct-ease)}
.ct-office-btn:hover,.ct-office-btn:focus-visible{background:var(--tone-text);border-color:var(--tone-text);color:#fff}
.ct-office-btn:hover svg{transform:translateX(3px)}

/* single-column cards on tablets: a 2:1 map would be ~350px tall, so keep it shorter */
@media (min-width:701px) and (max-width:1100px){.ct-map{aspect-ratio:5/2}}
@media (max-width:700px){
  .ct-office{border-radius:22px}
  .ct-map{aspect-ratio:4/3}
}
/* the card layout follows the card's own width, not the screen's */
@container office (max-width:560px){
  /* both numbers no longer fit on one line: stack them and drop the divider */
  .ct-office-phones{flex-direction:column;gap:6px}
  .ct-office-phones a+a{padding-left:0;margin-left:0;border-left:0}
}
@container office (max-width:480px){
  .ct-office-body{padding:4px 20px 22px}
  .ct-office-head{grid-template-columns:auto 1fr;gap:14px}
  .ct-office-icon{width:50px;height:50px;border-radius:16px}
  .ct-office-tag{grid-column:1/-1;justify-self:start;margin-top:4px}
  .ct-office-row{grid-template-columns:1fr;gap:4px}
}
@container office (max-width:320px){
  .ct-office-row dd{font-size:15px}
}

/* ---------- motion: the card settles in once ---------- */
@keyframes ct-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ct-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .ct-card{animation:none}
  .ct *{transition-duration:.01ms!important}
  .ct-btn[aria-busy="true"]::after{animation-duration:1.6s}
}
@media (forced-colors:active){.ct-input,.ct-btn,.ct-card{border:1px solid CanvasText}}
