/* contact.css — cleaned & responsive (drop-in) */

/* ---------------------------------------------
   Design tokens
---------------------------------------------- */
:root {
  --ad-ink: #0f172a;
  --ad-blue: #0e5875;
  --ad-blue-600: #0b4c67;
  --ad-blue-700: #083b50;
  --ad-orange: #ff6b35;
  --ad-bg: #f8fafc;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;

  --shadow-sm: 0 8px 18px rgba(2, 8, 23, .08);
  --shadow-md: 0 12px 28px rgba(2, 8, 23, .10);
  --shadow-lg: 0 14px 36px rgba(2, 8, 23, .12);
}

/* ---------------------------------------------
   Section spacing (reduce on small screens)
---------------------------------------------- */
.section-padding {
  padding: clamp(32px, 6vw, 64px) 0;
}

/* ---------------------------------------------
   HERO
---------------------------------------------- */
.c-hero {
  position: relative;
  color: #fff;
  padding: clamp(48px, 8vw, 72px) 0 clamp(28px, 5vw, 48px);
  overflow: hidden;
  min-height: 54vh;
  background:
    linear-gradient(180deg, rgba(12, 63, 97, .65) 0%, rgba(8, 43, 74, .65) 60%, rgba(6, 32, 56, .65) 100%),
    linear-gradient(90deg, rgba(21, 105, 155, .35), rgba(10, 69, 109, .35));
}

.c-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.c-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.65) contrast(1.06) saturate(1.05);
}

.c-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.c-hero .container {
  position: relative;
  z-index: 1;
}

.c-hero-inner {
  max-width: 900px;
  padding: 24px 0;
}

.c-title {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: -.02em;
}

.c-sub {
  margin: 0 0 16px;
  font-size: clamp(16px, 2.4vw, 20px);
  opacity: .96;
}

.c-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shimmer headline */
.shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .45), rgba(255, 255, 255, .95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shine 2.2s linear infinite;
}

@keyframes shine {
  to {
    background-position: -200% 0;
  }
}

/* ---------------------------------------------
   Contact shell (info + form)
---------------------------------------------- */
.c-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}

@media (max-width: 992px) {
  .c-shell {
    grid-template-columns: 1fr;
  }
}

.glass {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
}

.elevate {
  box-shadow: var(--shadow-lg);
}

.c-info .c-card {
  padding: 18px;
}

.glow {
  position: relative;
}

.glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  z-index: -1;
  background: conic-gradient(from 0deg, #a0c8ff, #7dd3fc, #a7f3d0, #93c5fd, #a0c8ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 16s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.c-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.c-card-head h2 {
  margin: 0;
  font-weight: 900;
  color: var(--ad-ink);
}

.halo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #d3e9ff 40%, rgba(14, 88, 117, .7) 70%);
  box-shadow: 0 0 0 6px rgba(17, 101, 147, .15), 0 0 24px rgba(17, 101, 147, .35);
}

/* Contact info list */
.c-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.c-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: var(--radius-md);
  padding: 10px;
  background: #fff;
  transition: transform .15s, box-shadow .25s, border-color .25s;
}

.c-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #e6eef8;
}

.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #fff 0%, #eef6ff 50%, #e6f6ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 18px rgba(15, 23, 42, .12);
  color: #0b2740;
}

.ci-icon::before {
  font-size: 18px;
  transform: translateY(-1px);
}

.ci-mail::before {
  content: "✉";
}

.ci-phone::before {
  content: "✆";
}

.ci-pin::before {
  content: "⌖";
}

.ci-time::before {
  content: "⏰";
}

.ci-copy strong {
  display: block;
  color: #0f172a;
  margin-bottom: 2px;
}

.ci-copy a,
.ci-copy span {
  color: #475569;
  text-decoration: none;
}

.ci-copy a:hover {
  text-decoration: underline;
}

.c-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.s-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: transform .15s, box-shadow .25s, border-color .25s;
}

.s-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 8, 23, .10);
  border-color: #b8d7f0;
}

.s-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------
   Form
---------------------------------------------- */
.c-form {
  padding: 18px;
}

.c-form-head h2 {
  margin: 0 0 4px;
  font-weight: 900;
  color: var(--ad-ink);
}

.c-form-head p {
  margin: 0 0 8px;
  color: #64748b;
}

.f-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .f-grid {
    grid-template-columns: 1fr;
  }
}

.f-span2 {
  grid-column: 1 / -1;
}

.float {
  position: relative;
  display: block;
}

.float>input,
.float>textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.float>textarea {
  resize: vertical;
  min-height: 140px;
}

.float>input:focus,
.float>textarea:focus {
  outline: 0;
  border-color: var(--ad-blue);
  box-shadow: 0 0 0 4px rgba(14, 88, 117, .16);
}

.float>span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0 6px;
  background: #fff;
  color: #6b7280;
  transition: transform .15s, font-size .15s, top .15s, color .15s;
}

/* Requires placeholder="" for :placeholder-shown to work */
.float>input:not(:placeholder-shown)+span,
.float>textarea:not(:placeholder-shown)+span,
.float>input:focus+span,
.float>textarea:focus+span {
  transform: translateY(-18px);
  font-size: 12px;
  top: 8px;
  color: var(--ad-blue);
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consent input {
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  position: relative;
  background: #e5e7eb;
  cursor: pointer;
  transition: background .2s;
}

.consent input::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(2, 8, 23, .2);
  transition: transform .2s;
}

.consent input:checked {
  background: linear-gradient(90deg, var(--ad-blue), #3a92c0);
}

.consent input:checked::after {
  transform: translateX(18px);
}

.consent span {
  display: inline-block;
  width: 0;
  height: 0;
}

.consent em {
  color: #475569;
}

.f-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-lift {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2, 8, 23, .15);
  transition: transform .2s, box-shadow .25s;
}

.btn-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(2, 8, 23, .2);
}

/* Ripple */
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, .35), transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform .4s, opacity .4s;
}

.ripple.rippling::after {
  transform: scale(1);
  opacity: 1;
}

.f-note {
  margin: 0;
  color: #64748b;
}

.f-status {
  opacity: 0;
  transition: opacity .25s;
  font-weight: 700;
  color: #0f172a;
}

/* ---------------------------------------------
   MAP / Offices
---------------------------------------------- */
.c-map {
  background: var(--ad-bg);
}

.map-head p {
  margin: 0;
  color: #475569;
}

.map-shell {
  display: grid;
  gap: 16px;
}

/* Tabs */
.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-tab {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .25s, border-color .25s, background .25s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.map-tab[aria-selected="true"] {
  border-color: #b8d7f0;
  background: linear-gradient(180deg, #fff 0%, #f3f9ff 100%);
}

.map-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5aa8d3, #3a92c0, #1c6e9a);
}

/* Two-column content; prevent overflow with minmax(0, …) */
.map-content {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

@media (max-width: 992px) {
  .map-content {
    grid-template-columns: 1fr;
  }
}

/* Map embed */
.map-embed {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
  min-height: clamp(260px, 45vh, 420px);
  position: relative;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 45vh, 420px);
  border: 0;
  opacity: 0;
  transition: opacity .35s ease;
}

.map-embed.loaded iframe {
  opacity: 1;
}

/* Details panel (single, conflict-free definition) */
.map-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  /* tighter, even rhythm */
  background: #fff;
  min-width: 0;
}

.map-details h3 {
  margin: 2px 0 6px;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 900;
  word-break: break-word;
  letter-spacing: -.01em;
}

.map-details p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.55;
  overflow-wrap: anywhere;
  /* long addresses are safe */
}

/* Meta chips — responsive, no collisions */
.map-meta {
  display: grid;
  gap: 10px;
  /* space between information rows */
  margin: 2px 0 6px;
}

.map-meta .row {
  display: flex;
  flex-wrap: wrap;
  /* allow wrapping to new lines */
  align-items: stretch;
  /* consistent chip height */
  gap: 8px;
  /* horizontal + vertical spacing */
  width: 100%;
  min-width: 0;
}

.map-meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  /* 2–3 per row on desktop, wraps smoothly */
  min-width: 160px;
  /* prevents tiny chips */
  max-width: 100%;
  padding: 7px 10px;
  /* slightly denser */
  line-height: 1.35;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  white-space: normal;
  /* allow multi-line inside chip */
  overflow-wrap: anywhere;
  /* break long tokens (phones/emails) */
}

@media (max-width: 420px) {
  .map-meta .chip {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* Actions — wrap nicely and keep good tap targets */
.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.map-actions .btn {
  min-height: 42px;
  padding-inline: 14px;
}

@media (max-width: 820px) and (min-width: 521px) {
  .map-actions .btn {
    flex: 1 1 calc(50% - 10px);
    /* two per row on tablets */
    text-align: center;
  }
}

@media (max-width: 520px) {
  .map-details {
    padding: 16px 14px;
  }

  .map-meta .chip {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* stack chips full-width on phones */
  .map-actions .btn {
    flex: 1 1 100%;
  }

  /* stack buttons full-width on phones */
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------
   Motion safety
---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- FIX: safe gradient glow ring that doesn't break layouts --- */
/* Contain the pseudo-element inside the card */
.glow {
  position: relative;
  overflow: clip;
  /* use 'hidden' if older Safari support is needed */
  isolation: isolate;
}

/* Put the ring under content and keep it inside the box */
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  /* was -2px; contain within box to avoid overflow */
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: 0;

  background: conic-gradient(from 0deg,
      #a0c8ff,
      #7dd3fc,
      #a7f3d0,
      #93c5fd,
      #a0c8ff);

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  animation: spin 16s linear infinite;
}

/* ensure card content stays above the ring */
.glow>* {
  position: relative;
  z-index: 1;
}

/* motion safety for the ring */
@media (prefers-reduced-motion: reduce) {
  .glow::before {
    animation: none;
  }
}
