/* ============================================================
   CONTACT PAGE
   Matches the dark-hero / paper-section pattern used on
   index, cp, cv, bp pages.
   ============================================================ */

/* ---------- HERO ---------- */

body{
  cursor: auto;
}
.contact-hero {
  position: relative;
  background: #06080f;
  color: #fff;
  padding: 180px 6vw 110px;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(13, 110, 253, 0.18), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(245, 177, 77, 0.12), transparent 60%);
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.contact-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8f53f;
  box-shadow: 0 0 12px rgba(200, 245, 63, .6);
}

.contact-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 9vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 14ch;
}

.contact-hero__title em {
  font-style: italic;
  color: #c8f53f;
}

.contact-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .75);
  max-width: 60ch;
  margin: 12px 0 0;
}

/* ---------- BODY GRID ---------- */
.contact-body {
  background: var(--paper, #fff);
  color: var(--ink, #0a0c14);
  padding: 90px 6vw 100px;
  cursor: auto;
}

.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-hero { padding: 140px 5vw 80px; }
  .contact-body { padding: 70px 5vw 80px; }
}

/* ---------- FORM ---------- */
.contact-form {
    display: grid;
    gap: 18px;
    background: #fafafa;
    padding: 50px;
    border-radius: 20px;
}

.contact-form__head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-form__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}

.contact-form__title em {
  font-style: italic;
  color: #0d6efd;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr; }
}

.contact-field {
  display: grid;
  gap: 6px;
  position: relative;
}

.contact-field label {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #0a0c14;
  font-weight: 500;
}

.contact-field label .req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 400;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e4e6ee;
  border-radius: 999px;
  padding: 16px 22px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #8b8fa3;
  font-weight: 400;
}

.contact-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
  border-radius: 22px;
  padding: 18px 22px;
}

.contact-input:hover,
.contact-select:hover,
.contact-textarea:hover {
  border-color: #c5c8d8;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #3b5cff;
  box-shadow: 0 0 0 4px rgba(59, 92, 255, .14);
  background: #fff;
}

.contact-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230a0c14' stroke-width='1.6'><path d='M3 5l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px 14px;
  padding-right: 44px;
}

.contact-submit {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: #3b5cff;
  color: #fff;
  border: 1px solid #3b5cff;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  width: max-content;
  box-shadow: 0 6px 16px -4px rgba(59, 92, 255, .35);
}

.contact-submit:hover {
  background: #2845d6;
  border-color: #2845d6;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(59, 92, 255, .45);
}

.contact-submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 92, 255, .25);
}

/* ---------- "LET'S TALK" CARD ----------
   Lavender gradient panel with glassy chromatic icons and the
   primary contact details. Replaces the previous department list. */
.talk-card {
  position: relative;
  border-radius: 28px;
  padding: 44px 40px 44px;
  overflow: hidden;
  background: #FAFBFF;
background: linear-gradient(180deg, rgba(250, 251, 255, 1) 0%, rgba(235, 238, 255, 1) 53%, rgba(229, 228, 255, 1) 96%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 30px 60px -30px rgba(60, 40, 140, .25);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 540px;
}

.talk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(30% 40% at 80% 80%, rgba(255,255,255,.35), transparent 70%);
  pointer-events: none;
}

.talk-card > * { position: relative; }

@media (max-width: 640px) {
  .talk-card { padding: 36px 28px; min-height: 480px; }
}

/* ----- head ----- */
.talk-card__head {
  display: grid;
  gap: 14px;
  max-width: 32ch;
}

.talk-card__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 600;
  color: #0a0c14;
  margin: 0;
}

.talk-card__sub {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 12, 20, .62);
  margin: 0;
}

/* ----- glassy icons block ----- */
.talk-card__icons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px auto 32px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2 / 1.1;
  pointer-events: none;
}

.talk-card__icons img,
.talk-card__icons svg {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(120, 100, 220, .22));
  user-select: none;
  will-change: transform;
  animation: talk-float 5.4s ease-in-out infinite;
}

.talk-card__icons img:last-child,
.talk-card__icons svg:last-child {
  width: 44%;
  margin-left: -22px;
  animation: talk-float 6.2s ease-in-out infinite;
  animation-delay: -2.4s;
}

@keyframes talk-float {
  0%   { transform: translate3d(0,  0px,    0) rotate(0deg); }
  50%  { transform: translate3d(0, -9.284px, 0) rotate(-1.2deg); }
  100% { transform: translate3d(0,  0px,    0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .talk-card__icons img,
  .talk-card__icons svg { animation: none; }
}

/* ----- footer / contact info ----- */
.talk-card__foot {
  display: grid;
  gap: 12px;
}

.talk-card__email {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #0a0c14;
  text-decoration: none;
  word-break: break-word;
  transition: color .2s;
}

.talk-card__email:hover { color: #6f4dff; }

.talk-card__meta {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 12, 20, .68);
  margin: 0;
}

.talk-card__meta a {
  color: inherit;
  text-decoration: none;
}

.talk-card__meta a:hover { color: #6f4dff; }


/* ============================================================
   OFFICES SECTION  —  "Explore our branch offices"
   Layout: sticky title column on the left, vertical list on the
   right with country | image | details rows separated by a thin
   divider, matching the reference design.
   ============================================================ */
.contact-offices {
  background: #ffffff;
  color: var(--ink, #0a0c14);
  padding: 110px 6vw 120px;
  border-top: 1px solid var(--line);
}

.contact-offices__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-offices { padding: 80px 5vw 90px; }
  .contact-offices__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- left column ----- */
.contact-offices__head {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}

@media (max-width: 980px) {
  .contact-offices__head { position: static; }
}

.contact-offices__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 0;
}

.contact-offices__title em {
  font-style: normal;
  color: #0d6efd;       /* violet accent, matches reference */
}

.contact-offices__sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 36ch;
  margin: 0;
}

/* ----- right column: list of office rows ----- */
.contact-offices__list {
  display: grid;
  gap: 0;
}

.office-row {
  display: grid;
  grid-template-columns: 110px 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-top:1px solid rgb(10 12 20 / 14%);
}

.office-row:first-child { border-top: 0; padding-top: 0; }
.office-row:last-child  { padding-bottom: 0; }

@media (max-width: 780px) {
  .office-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .office-row:first-child { padding-top: 0; }
}

.office-row__country {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}

/* Image slot — shows photo if available, otherwise a curated per-city
   gradient placeholder so the section never feels broken.
   Drop real photos at: assets/img/offices/{slug}.jpg to replace. */
.office-row__img {
  position: relative;
  width: 200px;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1f33 0%, #2c1f5a 55%, #5e3da8 100%);
  will-change: transform;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1),
              box-shadow .45s cubic-bezier(.2, .8, .2, 1);
}

/* Lift the image up when the row is hovered — mirrors the
   translate3d motion used on the "Let's talk!" icons. */
.office-row:hover .office-row__img {
  transform: translate3d(0, -9.284px, 0);
  box-shadow: 0 18px 32px -12px rgba(60, 40, 140, .28);
}

/* Slight zoom on the photo itself for a polished feel */
.office-row__img img {
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.office-row:hover .office-row__img img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .office-row__img,
  .office-row__img img { transition: none; }
  .office-row:hover .office-row__img { transform: none; box-shadow: none; }
  .office-row:hover .office-row__img img { transform: none; }
}

@media (max-width: 780px) {
  .office-row__img { width: 100%; max-width: 320px; height: 170px; }
}

/* Per-city gradients keyed off the data-city attribute. Each pair of
   colours evokes the location's typical light + skyline mood. */
.office-row__img[data-city="singapore"]    { background: linear-gradient(135deg, #0a3552 0%, #18a3b5 55%, #ffd166 100%); }
.office-row__img[data-city="mumbai"]       { background: linear-gradient(135deg, #2a1052 0%, #c44a8a 50%, #ffb05a 100%); }
.office-row__img[data-city="pune"]         { background: linear-gradient(135deg, #1c2540 0%, #4a5fb5 55%, #ffd66e 100%); }
.office-row__img[data-city="chennai"]      { background: linear-gradient(135deg, #102942 0%, #1f7ab5 55%, #ffe06a 100%); }
.office-row__img[data-city="san-jose"]     { background: linear-gradient(135deg, #1a1538 0%, #6a4ce0 50%, #ff7e9d 100%); }
.office-row__img[data-city="dubai"]        { background: linear-gradient(135deg, #2b1850 0%, #b56b1f 50%, #ffd28a 100%); }
.office-row__img[data-city="kuala-lumpur"] { background: linear-gradient(135deg, #0e2a1c 0%, #2bb37a 55%, #ffe06a 100%); }
.office-row__img[data-city="norwood"]      { background: linear-gradient(135deg, #2a1228 0%, #c95436 55%, #ffc78a 100%); }
.office-row__img[data-city="london"]       { background: linear-gradient(135deg, #182233 0%, #495a7a 55%, #b8c4d9 100%); }

/* Soft inner highlight + skyline silhouette hint */
.office-row__img::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .35), transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0,60 L0,42 L12,42 L12,30 L22,30 L22,38 L34,38 L34,22 L42,22 L42,32 L54,32 L54,18 L62,18 L62,28 L74,28 L74,12 L82,12 L82,26 L96,26 L96,20 L104,20 L104,34 L118,34 L118,18 L130,18 L130,28 L142,28 L142,16 L154,16 L154,30 L166,30 L166,22 L180,22 L180,32 L192,32 L192,38 L200,38 L200,60 Z' fill='%23000' fill-opacity='0.22'/></svg>") bottom/100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.office-row__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.office-row__img::after {
  content: attr(data-code);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, .92);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  z-index: 1;
}

/* Hide the country-code fallback when an image is rendered on top */
.office-row__img:has(img)::after { display: none; }
.office-row__img:has(img)::before { display: none; }

.office-row__details {
  display: grid;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-soft);
}

.office-row__addr {
  margin: 0;
  color: var(--fg-soft);
  white-space: pre-line;
}

.office-row__contact {
  display: grid;
  gap: 4px;
}

.office-row__contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.office-row__contact a:hover { color: #6f4dff; }

.office-row__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ============================================================
   DOCS — Case Studies / Datasheets / Brochures
   Reuses the offices row layout above. Adds the tab filter, a
   wider label column, a prominent resource title and a download
   link styled as the row's call-to-action.
   ============================================================ */
.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.docs-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgb(10 12 20 / 16%);
  background: #fff;
  color: var(--fg-soft);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.docs-tab:hover { border-color: #0d6efd; color: #0d6efd; }

.docs-tab.is-active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Forced line break inside .docs-tabs — puts Industry-wise + Product-wise
   on their own row underneath Case Studies / Datasheets / Brochures. */
.docs-tabs__break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  display: block;
}

/* Sub-filter chip bar — sits above the docs list on Industry-wise
   and Product-wise tabs. Reuses the docs-tab visual language but a
   touch smaller so the hierarchy stays obvious. */
.docs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(10, 12, 20, .12);
}

.docs-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(10 12 20 / 14%);
  background: #f7f8fa;
  color: var(--fg-soft);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}

.docs-chip:hover { border-color: #0d6efd; color: #0d6efd; background: #fff; }

.docs-chip.is-active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* The whole row is a link to the PDF — strip default link styling and
   give it a slightly wider label column to fit industry / type names. */
.docs-row {
  grid-template-columns: 150px 200px 1fr;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.office-row__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.office-row__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0d6efd;
}

.docs-row:hover .office-row__title { color: #0d6efd; }
.docs-row:hover .office-row__link { text-decoration: underline; }

@media (max-width: 780px) {
  .docs-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE — DOCS HERO (docs.html)
   The hero uses the generic .hero / .hero-title / .hero-bottom
   classes. .hero-title is forced to clamp(60px,10vw,80px) !important
   in common.css, so we override here with !important under the
   page-scoped .docs-hero so other pages aren't touched.
============================================================ */
@media (max-width: 768px) {
  .docs-hero {
    min-height: 100svh;
    padding: 110px 22px 40px !important;
    justify-content: center;
  }
  .docs-hero .hero-content {
    text-align: center;
    margin: 0 auto;
    padding: 0 4px;
    width: 100%;
  }

  /* Override common.css .hero-title { font-size: clamp(60px,10vw,80px) !important } */
  .docs-hero .hero-title {
    font-size: clamp(32px, 8.5vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
    margin: 0 0 22px !important;
    word-break: break-word;
  }
  .docs-hero .hero-title .line { display: block; }
  .docs-hero .hero-title em.me-2 {
    margin-right: 6px !important;
    display: inline-block;
  }

  .docs-hero .hero-bottom {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  .docs-hero .hero-bottom .desc,
  .docs-hero #heroDesc {
    font-size: 14.5px !important;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
  }

  .docs-hero .hero-tag {
    font-size: 10.5px !important;
    letter-spacing: .12em;
    line-height: 1.45;
    padding: 8px 12px;
    white-space: normal;
    max-width: 100%;
    margin: 0 auto 20px !important;
  }
}

@media (max-width: 480px) {
  .docs-hero { padding: 100px 18px 32px !important; }
  .docs-hero .hero-title {
    font-size: clamp(26px, 9.5vw, 38px) !important;
  }
  .docs-hero .hero-bottom .desc,
  .docs-hero #heroDesc { font-size: 13.5px !important; }
  .docs-hero .hero-tag { font-size: 10px !important; }
}
