/* ==========================================================================
   Undes Pharm — Contact page premium refinement
   ========================================================================== */

:root {
  --header-height: 86px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body.contact-page .container {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
}

/* Header — match site system */
body.contact-page .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 61, 145, 0.07);
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease-out);
}

body.contact-page .site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(11, 61, 145, 0.08);
}

body.contact-page .site-header__inner {
  height: var(--header-height);
  max-width: 1240px;
}

body.contact-page .logo__img,
body.contact-page .site-logo img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 190px;
  object-fit: contain;
}

body.contact-page .logo--footer .logo__img,
body.contact-page .footer-logo img {
  width: auto;
  height: 72px;
  max-width: 180px;
}

body.contact-page .nav__list {
  gap: 32px;
}

@media (min-width: 1024px) {
  body.contact-page .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  body.contact-page .logo {
    justify-self: start;
  }

  body.contact-page .nav {
    justify-self: center;
  }

  body.contact-page .header-actions {
    justify-self: end;
  }
}

/* Hero */
.contact-hero {
  min-height: 250px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      110deg,
      #0B3D91 0%,
      #1559B2 52%,
      #176B70 100%
    );
  color: #FFFFFF;
}

.contact-hero .breadcrumb {
  margin-bottom: 14px;
  font-size: 13px;
}

.contact-hero .breadcrumb a,
.contact-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.72);
}

.contact-hero .breadcrumb a:hover {
  color: #FFFFFF;
}

.contact-hero .breadcrumb__current {
  color: #F1C75B;
}

.contact-hero__accent {
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 14px;
  background: #D4A017;
}

.contact-hero__title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-transform: none;
}

.contact-hero__desc {
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 640px;
  margin: 0;
}

/* Main section */
.contact-main {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.contact-main::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(30, 111, 61, 0.9), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(11, 61, 145, 0.85), transparent 50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.contact-main__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: stretch;
}

/* Contact card */
.contact-panel {
  background: #FFFFFF;
  border: 1px solid rgba(11, 61, 145, 0.09);
  border-radius: 20px;
  padding: 36px 38px;
  box-shadow: 0 14px 38px rgba(11, 61, 145, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 430px;
  transition: box-shadow 0.35s var(--ease-out);
}

.contact-panel__title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #0B3D91;
  margin-bottom: 28px;
  line-height: 1.2;
}

.contact-panel address {
  font-style: normal;
  margin: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-item-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(11, 61, 145, 0.08);
}

.contact-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item-row:first-child {
  padding-top: 0;
}

.contact-item-row__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #F0F4F8;
  color: #0B3D91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.contact-item-row:hover .contact-item-row__icon {
  background: rgba(11, 61, 145, 0.12);
  color: #0B3D91;
}

.contact-item-row__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-row__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 6px;
}

.contact-item-row__value {
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-item-row__value a {
  color: #0B3D91;
  text-decoration: none;
}

.contact-item-row__value a:hover {
  text-decoration: underline;
}

.contact-item-row__value a:focus-visible {
  outline: 2px solid #0B3D91;
  outline-offset: 3px;
  border-radius: 2px;
}

.contact-item-row__value--muted {
  color: #666666;
  font-weight: 400;
}

.contact-panel__cta {
  margin-top: auto;
  padding-top: 28px;
}

.contact-panel__cta .button {
  height: 48px;
  min-height: 48px;
  padding-inline: 22px;
  background: #0B3D91;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

.contact-panel__cta .button:hover {
  background: #1356B1;
  color: #FFFFFF;
}

.contact-panel__cta .button:focus-visible {
  outline: 2px solid #0B3D91;
  outline-offset: 3px;
}

/* Map card */
.contact-map {
  border-radius: 20px;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(11, 61, 145, 0.08);
  box-shadow: 0 14px 38px rgba(11, 61, 145, 0.07);
  background:
    linear-gradient(
      135deg,
      #F2F6F9 0%,
      #E7EEF4 100%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  display: block;
}

.contact-map__placeholder {
  max-width: 320px;
}

.contact-map__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.08);
  color: #0B3D91;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map__icon svg {
  width: 28px;
  height: 28px;
}

.contact-map__title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0B3D91;
  margin-bottom: 8px;
}

.contact-map__text {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* Hide public placeholders + unverified certs */
body.contact-page .placeholder-note {
  display: none !important;
}

body.contact-page .footer-certs {
  display: none;
}

body.contact-page .site-footer {
  padding-top: 62px;
  padding-bottom: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-item-row__icon,
  .contact-panel {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .contact-main__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-panel {
    min-height: 0;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 380px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  body.contact-page {
    --header-height: 72px;
  }

  body.contact-page .site-header .logo__img,
  body.contact-page .site-header .site-logo img {
    height: 52px;
    width: auto;
    max-width: 150px;
  }

  .contact-hero {
    min-height: auto;
    padding: 42px 0;
  }

  .contact-hero__title {
    font-size: 34px;
  }

  .contact-hero__desc {
    font-size: 16px;
  }

  .contact-main {
    padding: 52px 0 56px;
  }

  .contact-main__inner {
    width: min(calc(100% - 32px), 1180px);
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 26px 22px;
  }

  .contact-panel__title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .contact-item-row__value {
    font-size: 15px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 320px;
  }

  .contact-panel__cta .button {
    width: 100%;
  }
}
