/*
 * Contactos e localização
 * Escopo exclusivo das duas páginas institucionais da CS Cosméticos.
 */

.cs-contact-page,
.cs-location-page {
  --cs-contact-plum: #600165;
  --cs-contact-lilac: #c880cb;
  --cs-contact-ink: #28172a;
  --cs-contact-muted: #6f6270;
  --cs-contact-surface: #fffefd;
  --cs-contact-soft: #fcf7fc;
  --cs-contact-line: #e7dfe7;
  padding: 20px 0 72px;
  color: var(--cs-contact-ink);
}

.cs-contact-shell {
  max-width: 1400px;
}

.cs-contact-page .cs-breadcrumb,
.cs-location-page .cs-breadcrumb {
  margin-top: 0;
}

.cs-contact-hero {
  display: grid;
  max-width: 100%;
  gap: 14px;
  margin: 22px 0 30px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--cs-contact-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(200, 128, 203, .15), rgba(255, 254, 253, .96) 62%),
    var(--cs-contact-surface);
}

.cs-contact-hero--location {
  max-width: 100%;
}

.cs-contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cs-contact-plum);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cs-contact-eyebrow > span {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cs-contact-plum) 0 24%, var(--cs-contact-lilac) 24% 52%, rgba(200, 128, 203, .34) 52% 100%);
}

.cs-contact-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--cs-contact-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.cs-contact-hero p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--cs-contact-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

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

.cs-contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 228px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--cs-contact-line);
  border-radius: 12px;
  background: var(--cs-contact-surface);
}

.cs-contact-card__icon,
.cs-contact-location-callout__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(200, 128, 203, .16);
  color: var(--cs-contact-plum);
}

.cs-contact-card__icon svg,
.cs-contact-location-callout__icon svg {
  width: 22px;
  height: 22px;
}

.cs-contact-card__content {
  min-width: 0;
}

.cs-contact-card h2,
.cs-contact-location-callout h2,
.cs-location-card h2 {
  margin: 3px 0 7px;
  color: var(--cs-contact-ink);
  font-size: 18px;
  line-height: 1.25;
}

.cs-contact-card__content p,
.cs-location-card address,
.cs-contact-location-callout address {
  margin: 0;
  color: var(--cs-contact-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cs-contact-card > .cs-contact-action,
.cs-contact-card__actions,
.cs-location-card__actions {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: auto;
}

.cs-contact-card__actions,
.cs-location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-contact-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--cs-contact-line);
  border-radius: 9px;
  background: var(--cs-contact-surface);
  color: var(--cs-contact-plum);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cs-contact-card > .cs-contact-action {
  width: 100%;
}

.cs-contact-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.cs-contact-action--primary {
  border-color: var(--cs-contact-plum);
  background: var(--cs-contact-plum);
  color: #fff;
}

.cs-contact-action:hover {
  border-color: var(--cs-contact-lilac);
  background: var(--cs-contact-soft);
  color: var(--cs-contact-plum);
}

.cs-contact-action--primary:hover {
  border-color: var(--cs-contact-plum);
  background: #4f0053;
  color: #fff;
}

.cs-contact-action:focus-visible {
  outline: 3px solid rgba(96, 1, 101, .28);
  outline-offset: 3px;
}

.cs-contact-location-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--cs-contact-line);
  border-radius: 12px;
  background: var(--cs-contact-soft);
}

.cs-contact-location-callout .cs-contact-eyebrow {
  margin-bottom: 6px;
}

.cs-contact-location-callout .cs-contact-action {
  white-space: nowrap;
}

.cs-location-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr);
  gap: 18px;
}

.cs-location-card,
.cs-location-map {
  min-width: 0;
  border: 1px solid var(--cs-contact-line);
  border-radius: 12px;
  background: var(--cs-contact-surface);
}

.cs-location-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 4vw, 36px);
}

.cs-location-card .cs-contact-eyebrow {
  margin-top: 8px;
}

.cs-location-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
}

.cs-location-card__actions {
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
}

.cs-location-card__actions .cs-contact-action {
  width: 100%;
}

.cs-location-map {
  display: grid;
  overflow: hidden;
}

.cs-location-map iframe {
  width: 100%;
  min-height: 410px;
  border: 0;
}

.cs-location-map p {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--cs-contact-line);
  color: var(--cs-contact-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 780px) {
  .cs-contact-page,
  .cs-location-page {
    padding-bottom: 52px;
  }

  .cs-contact-directory,
  .cs-location-layout {
    grid-template-columns: 1fr;
  }

  .cs-contact-location-callout {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cs-contact-location-callout .cs-contact-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cs-contact-page,
  .cs-location-page {
    padding-top: 12px;
  }

  .cs-contact-hero {
    margin-top: 16px;
    padding: 26px 20px;
  }

  .cs-contact-card {
    min-height: 0;
    padding: 20px;
  }

  .cs-contact-card__actions .cs-contact-action,
  .cs-location-card__actions .cs-contact-action {
    width: 100%;
  }

  .cs-location-map iframe {
    min-height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-contact-action {
    transition: none;
  }
}
