/* =====================================================================
   Computer Xperts — Contact page styles (css/contact.css)
   Loaded on contact_us.html after css/site.css (colours, header, footer, buttons
   and the page hero live there). The office finder is driven by js/contact.js.

   Bold but calm: a flat 2D support illustration in the hero, four contact cards,
   an office finder (one big map at a time) and a split form card. No photos,
   no mouse effects, no entrance animations — only colour changes on hover.

   Contents
    2. Page hero: lead line, 2D support illustration
    2b. Contact cards (overlap the bottom of the hero)
    3. Office finder: list of offices + map and details
    4. Feedback section (the card and form styles are shared: css/site.css, section 9)
    5. Responsive: 1180px, 1023px, 640px
   (calm motion and the hero buttons row are shared too: body class "calm", .hero-actions)
   ===================================================================== */


/* 2. Page hero ---------------------------------------------------------- */
.contact .page-hero__inner { padding-bottom: 104px; }   /* room for the contact cards to overlap */
.page-hero__lead { margin-top: 16px; color: var(--white); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.page-hero__lead b { color: var(--red-on-dark); }

/* the 2D support illustration */
.contact-art img { width: 100%; max-width: 560px; margin: 0 auto; }


/* 2b. Contact cards (overlap the bottom of the hero) -------------------- */
.channels { position: relative; z-index: 1; background: var(--paper); }
.channels__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -60px; }
.channel {
  display: grid; align-content: start; gap: 4px; height: 100%;
  padding: 22px 22px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 22px 40px -28px rgba(0, 0, 0, .45); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease;
}
.channel__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px;
  background: var(--red-tint); color: var(--red-text); transition: background-color .2s ease, color .2s ease;
}
.channel__icon .ic { width: 22px; height: 22px; }
.channel__icon svg:not(.ic) { width: 23px; height: 23px; fill: currentColor; }
.channel--wa .channel__icon { background: #e7f8ee; color: #128c4a; }
.channel__label { color: var(--muted); font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.channel__value { font-size: 16.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.channel[href^="tel:"] .channel__value,
.channel--wa .channel__value { white-space: nowrap; }   /* phone numbers never break */
.channel:hover,
.channel:focus-visible { border-color: var(--red); }
.channel:hover .channel__icon,
.channel:focus-visible .channel__icon { background: var(--red); color: var(--white); }
.channel--wa:hover .channel__icon,
.channel--wa:focus-visible .channel__icon { background: var(--whatsapp); color: var(--white); }


/* 3. Office finder ------------------------------------------------------ */
.offices { padding: var(--section-y) 0; background: var(--paper); }
.offices__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.offices__intro { max-width: 30em; color: var(--muted); font-size: 16px; }

.finder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 26px; }
.finder.is-ready { align-items: stretch; }   /* one office at a time: its card matches the list's height */

/* the list of offices */
.finder__list { display: grid; align-content: start; gap: 4px; padding: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.finder__group { padding: 10px 12px 6px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.finder__group + .finder__tab { margin-top: 0; }
.finder__tab + .finder__group { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.finder__tab {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.finder__tab img { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.finder__name { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.finder__place { color: var(--muted); font-size: 13px; line-height: 1.3; }
.finder__tab:hover { background: var(--paper); }
.finder__tab[aria-selected="true"] { background: var(--red-tint); box-shadow: inset 3px 0 0 var(--red); }
.finder__tab[aria-selected="true"] .finder__name { color: var(--red-text); }

/* one office: big map + details (without JS all six are shown, one under the other) */
.finder__panels { display: grid; gap: 18px; }
.office {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden;
  border-radius: 14px; background: var(--white); border: 1px solid var(--line);
}
.office[hidden] { display: none; }
.finder.is-ready .office { height: 100%; }
.office__map {   /* a map pin shows until the Google map loads on top of it */
  position: relative; min-height: 380px;
  background: #efefef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf0b0b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / 44px no-repeat;
}
.office__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.office__body { padding: 28px 28px 30px; }
.office__name { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1.25; }
.office__name img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.office__lines { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.office__lines li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.office__lines .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.office__lines p { color: var(--text); font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.office__lines strong { color: var(--ink); }
.office__lines a { color: var(--red-text); font-weight: 700; text-decoration: none; }
.office__lines a:hover { text-decoration: underline; }


/* 4. Feedback card ------------------------------------------------------ */
.feedback { padding: var(--section-y) 0; background: var(--white); border-top: 1px solid var(--line); }



/* 5. Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .channel { padding: 20px 18px 18px; }
  .channel__value { font-size: 15px; }
  .office { grid-template-columns: 1fr; }
  .office__map { min-height: 0; aspect-ratio: 16 / 8; }
}

@media (max-width: 1023px) {
  .channels__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-art img { max-width: 480px; }
  .finder { grid-template-columns: 1fr; gap: 16px; }
  /* the office list becomes a row of chips you can swipe */
  .finder__list {
    display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: none;
  }
  .finder__list::-webkit-scrollbar { display: none; }
  .finder__group { display: none; }
  .finder__tab { flex: none; min-width: 210px; }
}

@media (max-width: 640px) {
  .contact .page-hero__inner { padding-bottom: 84px; }
  .channels__list { grid-template-columns: 1fr; gap: 10px; margin-top: -48px; }
  .channel { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px; }
  .channel__icon { grid-row: span 2; margin-bottom: 0; }
  .finder__tab { min-width: 190px; }
  .office__map { aspect-ratio: 4 / 3; }
  .office__body { padding: 22px 20px 24px; }
  .office__name { font-size: 20px; }
}
