/* =========================================================
   Intris – Contact page layout
   ========================================================= */

.ip-contact {
  --ip-ink: #13233a;
  --ip-text: #3b4a5e;
  --ip-muted: #6b7a8f;
  --ip-line: #d8dfe8;
  --ip-paper: #f4f7fa;
  --ip-surface: #ffffff;
  --ip-accent: #0b7a75;
  --ip-accent-ink: #075752;
  --ip-accent-soft: #e3f2f1;
  --ip-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ip-font-head: "Sora", "Figtree", system-ui, sans-serif;
  --ip-max: 1240px;

  font-family: var(--ip-font);
  color: var(--ip-text);
  line-height: 1.6;
  /* break out of the theme's content column so sections run edge to edge */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow-x: clip;
}
.ip-contact *, .ip-contact *::before, .ip-contact *::after { box-sizing: border-box; }
:where(.ip-contact) p { margin: 0; }
.ip-contact a { color: inherit; }

.ip-wrap {
  width: 100%;
  max-width: var(--ip-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.ip-h2 {
  margin: 0 0 12px;
  font-family: var(--ip-font-head);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ip-ink);
}

.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ip-accent);
  background: var(--ip-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ip-btn:hover { background: var(--ip-accent-ink); border-color: var(--ip-accent-ink); }
.ip-btn:focus-visible { outline: 3px solid var(--ip-accent-soft); outline-offset: 2px; }
.ip-btn--ghost { background: transparent; color: var(--ip-ink) !important; border-color: var(--ip-line); }
.ip-btn--ghost:hover { background: transparent; border-color: var(--ip-ink); }

/* ---------- Hero ---------- */
.ip-hero {
  background: var(--ip-ink);
  color: #c9d3df;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
}
.ip-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}
.ip-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: #8fa0b5; }
.ip-crumbs a { color: #c9d3df; text-decoration: none; }
.ip-crumbs a:hover { color: #fff; text-decoration: underline; }
.ip-crumbs [aria-current] { color: #fff; }

.ip-hero__title {
  margin: 0 0 20px;
  max-width: 20ch;
  font-family: var(--ip-font-head);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}
.ip-hero__text { max-width: 54ch; margin-bottom: 32px; font-size: clamp(17px, 1.4vw, 19px); }

.ip-direct {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}
.ip-direct__intro { font-size: 15px; color: #8fa0b5; margin-bottom: 6px; }
.ip-direct__phone {
  display: block;
  margin-bottom: 22px;
  font-family: var(--ip-font-head);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff !important;
  text-decoration: none;
}
.ip-direct__phone:hover { color: #8fe0d8 !important; }
.ip-direct__list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 14px; }
.ip-direct__list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font-size: 15px; }
.ip-direct__list li::before { display: none !important; }
.ip-direct__list svg { width: 20px; height: 20px; flex: 0 0 20px; color: #8fe0d8; }
.ip-direct__list a { color: #fff; text-decoration: none; }
.ip-direct__list a:hover { text-decoration: underline; }

/* ---------- Practices ---------- */
.ip-practices { background: var(--ip-surface); padding: clamp(56px, 7vw, 88px) 0 0; }
.ip-practices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 2px solid var(--ip-ink);
}
.ip-practice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 28px 32px 0;
  text-decoration: none !important;
  color: var(--ip-text) !important;
}
.ip-practice + .ip-practice { padding-left: 28px; border-left: 1px solid var(--ip-line); }
.ip-practice__title { margin: 0; font-family: var(--ip-font-head); font-size: 20px; font-weight: 600; color: var(--ip-ink); }
.ip-practice p { font-size: 15.5px; max-width: 40ch; }
.ip-practice__more { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--ip-accent); }
.ip-practice:hover .ip-practice__more { text-decoration: underline; }
.ip-practice:focus-visible { outline: 2px solid var(--ip-accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Form section (full width) ---------- */
.ip-form-section {
  background: var(--ip-surface);
  padding: clamp(56px, 7vw, 96px) 0;
  scroll-margin-top: 90px;
}
.ip-form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.ip-form-head .ip-h2 { margin: 0; }
.ip-form-head p { color: var(--ip-muted); font-size: 15px; }

.ip-form-card {
  width: 100%;
  padding: clamp(24px, 4vw, 56px);
  background: var(--ip-surface);
  border: 1px solid var(--ip-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(19, 35, 58, .04), 0 12px 32px -12px rgba(19, 35, 58, .12);
}

/* ---------- Office ---------- */
.ip-office { background: var(--ip-paper); padding: clamp(56px, 7vw, 96px) 0; }
.ip-office__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.ip-office__address { margin: 16px 0 28px; font-style: normal; font-size: 17px; line-height: 1.65; color: var(--ip-text); }
.ip-office__address strong { color: var(--ip-ink); font-weight: 600; }

.ip-office__meta { margin: 0 0 32px; display: grid; gap: 0; border-top: 1px solid var(--ip-line); }
.ip-office__meta div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ip-line); }
.ip-office__meta dt { color: var(--ip-muted); font-size: 15px; margin: 0; }
.ip-office__meta dd { margin: 0; color: var(--ip-ink); font-weight: 500; }
.ip-office__meta a { text-decoration: none; }
.ip-office__meta a:hover { color: var(--ip-accent); text-decoration: underline; }

.ip-office__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.ip-social { display: flex; gap: 10px; }
.ip-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ip-line);
  color: var(--ip-ink);
  background: var(--ip-surface);
  transition: border-color .15s, color .15s;
}
.ip-social a:hover { border-color: var(--ip-accent); color: var(--ip-accent); }
.ip-social a:focus-visible { outline: 2px solid var(--ip-accent); outline-offset: 2px; }
.ip-social svg { width: 18px; height: 18px; }

.ip-office__map {
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ip-line);
  background: #e6ebf1;
}
.ip-office__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ip-hero__grid, .ip-office__grid { grid-template-columns: 1fr; }
  .ip-hero__grid { align-items: start; }
  .ip-practices__grid { grid-template-columns: 1fr; }
  .ip-practice, .ip-practice + .ip-practice { padding: 24px 0; border-left: 0; }
  .ip-practice + .ip-practice { border-top: 1px solid var(--ip-line); }
}
@media (max-width: 600px) {
  .ip-direct { padding: 22px; }
  .ip-form-card { border-radius: 14px; border-left: 0; border-right: 0; box-shadow: none; padding: 24px 0; border: 0; }
  .ip-hero .ip-btn { width: 100%; }
}
