/* Contact page aligned with the current /it production marketing system. */
.contact-page {
  --contact-blue: #dce8f8;
  --contact-green: #e5eddd;
  --contact-lilac: #eee9fb;
}

html[data-theme="dark"] .contact-page {
  --contact-blue: #202a3b;
  --contact-green: #283227;
  --contact-lilac: #353047;
}

.contact-page .material-symbols-rounded {
  font-variation-settings:
    "FILL" 1,
    "wght" 600,
    "GRAD" 200,
    "opsz" 20;
}

/* Hero */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 112px;
  border-bottom: 1px solid var(--line);
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.62;
  pointer-events: none;
}

.contact-hero::before {
  top: 112px;
  left: max(-190px, calc(50% - 770px));
  background: radial-gradient(circle, color-mix(in srgb, var(--peach) 84%, transparent), transparent 68%);
}

.contact-hero::after {
  right: max(-190px, calc(50% - 770px));
  bottom: -105px;
  background: radial-gradient(circle, color-mix(in srgb, var(--contact-lilac) 85%, transparent), transparent 68%);
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-hero .contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.contact-hero .contact-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.contact-page .contact-hero h1 {
  max-width: 900px;
  margin: 24px auto 22px;
  font-size: clamp(52px, 7vw, 92px);
}

.contact-hero h1 span {
  color: var(--accent);
}

.contact-hero .hero-lead {
  max-width: 700px;
  font-size: 17px;
}

.contact-hero .actions .material-symbols-rounded {
  font-size: 18px;
}

.contact-hero__note {
  margin-top: 20px !important;
  color: var(--copy);
  font-size: 11px;
}

.contact-principles {
  background: var(--soft);
}

/* Contact channels */
.contact-channels {
  padding-top: 112px;
  padding-bottom: 118px;
}

.contact-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 48px;
}

.contact-section-heading .eyebrow {
  margin-bottom: 16px;
}

.contact-section-heading h2 {
  max-width: 720px;
}

.contact-section-heading > p {
  max-width: 430px;
  margin: 0 0 5px auto !important;
  font-size: 14px;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-channel-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink) !important;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.contact-channel-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -58px;
  top: -58px;
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  border-radius: 50%;
  opacity: 0.7;
}

.contact-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 0 color-mix(in srgb, var(--ink) 5%, transparent);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
}

.contact-channel-card--support {
  background: color-mix(in srgb, var(--peach) 68%, var(--surface));
}

.contact-channel-card--whatsapp {
  background: color-mix(in srgb, var(--contact-green) 75%, var(--surface));
}

.contact-channel-card--business {
  background: color-mix(in srgb, var(--contact-blue) 72%, var(--surface));
}

.contact-channel-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-channel-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-size: 23px;
}

.contact-channel-card__tag {
  color: var(--copy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-channel-card h3 {
  max-width: 310px;
  margin-bottom: 16px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.02;
}

.contact-channel-card p {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.65;
}

.contact-channel-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
  font-size: 13px;
  font-weight: 600;
}

.contact-channel-card__link .material-symbols-rounded {
  font-size: 18px;
  transition: transform 0.18s ease;
}

.contact-channel-card:hover .contact-channel-card__link .material-symbols-rounded {
  transform: translate(2px, -2px);
}

/* Useful support context */
.contact-help-section {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.contact-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 90px;
}

.contact-help-copy h2 {
  max-width: 470px;
}

.contact-help-copy > p {
  max-width: 480px;
  margin-top: 24px !important;
  font-size: 14px;
}

.contact-help-accordion {
  display: grid;
  gap: 12px;
}

.contact-help-item {
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface) 88%, var(--soft)));
  box-shadow: var(--theme-shadow-soft);
  overflow: hidden;
}

html[data-theme="dark"] .contact-help-item {
  border-color: color-mix(in srgb, #d7d1be 18%, transparent);
  background:
    linear-gradient(135deg, rgba(34, 34, 37, 0.98), rgba(28, 29, 33, 0.94));
}

.contact-help-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.contact-help-item summary::-webkit-details-marker {
  display: none;
}

.contact-help-item__indicator {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.contact-help-item__indicator::before {
  content: "+";
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
}

.contact-help-item[open] .contact-help-item__indicator::before {
  content: "−";
}

.contact-help-item p {
  max-width: 530px;
  margin: 0;
  padding: 0 24px 24px;
  color: var(--copy);
  font-size: 14px;
  line-height: 1.65;
}

.contact-help-item[open] summary {
  padding-bottom: 10px;
}

/* FAQ */
.contact-faq-section {
  padding-top: 120px;
  padding-bottom: 132px;
}

.contact-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 84px;
}

.contact-faq-intro {
  position: sticky;
  top: 122px;
}

.contact-faq-intro h2 {
  max-width: 430px;
}

.contact-faq-intro > p {
  max-width: 420px;
  margin-top: 22px !important;
  font-size: 14px;
}

.contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
}

.contact-text-link .material-symbols-rounded {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.16s ease;
}

.contact-text-link:hover .material-symbols-rounded {
  transform: translateX(3px);
}

.contact-faq-list {
  max-width: none;
  gap: 0;
}

.contact-page .contact-faq-list details {
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.contact-page .contact-faq-list details:first-child {
  border-top: 1px solid var(--line) !important;
}

.contact-page .contact-faq-list summary {
  padding: 23px 48px 23px 0;
  font-size: 17px;
  font-weight: 500;
}

.contact-page .contact-faq-list summary::after {
  right: 0;
  color: var(--accent);
}

.contact-page .contact-faq-list details p {
  max-width: 700px;
  padding: 0 44px 23px 0;
  font-size: 13px;
  line-height: 1.7;
}

.contact-page .contact-faq-list details p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

/* Footer integration */
.contact-page .contact-footer-zone .final-section {
  border-top: 1px solid var(--line);
}

.contact-page .contact-footer-zone .final-section h2 span {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 980px) {
  .contact-section-heading,
  .contact-help-layout,
  .contact-faq-layout {
    grid-template-columns: 1fr;
  }

  .contact-section-heading {
    gap: 20px;
  }

  .contact-section-heading > p {
    max-width: 590px;
    margin-left: 0 !important;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-channel-card:last-child {
    grid-column: 1 / -1;
    min-height: 340px;
  }

  .contact-help-layout {
    gap: 42px;
  }

  .contact-faq-layout {
    gap: 44px;
  }

  .contact-faq-intro {
    position: static;
  }
}

@media (max-width: 650px) {
  .contact-hero {
    padding: 132px 0 80px;
  }

  .contact-page .contact-hero h1 {
    font-size: clamp(45px, 13vw, 61px);
  }

  .contact-hero .hero-lead {
    font-size: 15px;
  }

  .contact-hero .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
  }

  .contact-hero .pill {
    width: 100%;
  }

  .contact-principles {
    padding-inline: 22px;
  }

  .contact-channels,
  .contact-faq-section {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .contact-section-heading {
    margin-bottom: 34px;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .contact-channel-card,
  .contact-channel-card:last-child {
    grid-column: auto;
    min-height: 350px;
    padding: 24px;
    border-radius: 18px;
  }

  .contact-channel-card h3 {
    font-size: 30px;
  }

  .contact-help-section {
    padding-block: 82px;
  }

  .contact-help-item {
    border-radius: 18px;
  }

  .contact-help-item summary {
    padding: 22px 22px 18px;
  }

  .contact-help-item p {
    padding: 0 22px 22px;
  }

  .contact-page .contact-faq-list summary {
    padding-block: 20px;
    font-size: 16px;
  }

  .contact-page .contact-faq-list details p {
    padding-right: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel-card,
  .contact-channel-card__link .material-symbols-rounded,
  .contact-text-link .material-symbols-rounded {
    transition: none;
  }
}
