/*
 * partner.css
 * Centrix Dental — KOL Partner Landing Page
 * Mobile-first. No Elementor dependencies.
 * Loaded only on pages using Template: KOL Partner Page
 */

/* ═══════════════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════════════ */
:root {
  --color-navy:   #1B4F8A;
  --color-teal:   #1A7F8C;
  --color-white:  #FFFFFF;
  --color-light:  #F0F7FA;
  --color-text:   #1B1B1B;
  --color-muted:  #666666;
  --color-border: #E0E0E0;
  --color-bg-trust: #F5F5F5;

  --font-family:  inherit; /* inherits from Astra child theme */

  --radius-card:  8px;
  --radius-btn:   6px;
  --radius-photo: 50%;

  --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.08);

  --max-width:    1200px;
  --gutter:       1.25rem;

  --header-height: 64px;
  --transition:    0.2s ease;
}

/* ═══════════════════════════════════════════════
   RESET / BASE
═══════════════════════════════════════════════ */
.partner-page *,
.partner-page *::before,
.partner-page *::after {
  box-sizing: border-box;
}

.partner-page {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.partner-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.partner-page a {
  color: inherit;
  text-decoration: none;
}

.partner-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════
   UTILITY — SHARED BUTTON STYLES
═══════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity var(--transition), background-color var(--transition);
  white-space: nowrap;
  text-align: center;
  border: 2px solid transparent;
}

.btn--teal {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn--teal:hover,
.btn--teal:focus-visible {
  opacity: 0.88;
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover,
.btn--outline-white:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════
   LAYOUT HELPER
═══════════════════════════════════════════════ */
.partner-header__inner,
.partner-hero__inner,
.products-section__inner,
.ce-band__inner,
.form-section__inner,
.partner-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.partner-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.partner-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.partner-header__logo img {
  height: 36px;
  width: auto;
}

.partner-header__cta {
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.partner-hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding-block: 3.5rem 4rem;
}

.partner-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.partner-hero__text {
  flex: 1;
  text-align: center;
}

.hero-variant {
  display: block; /* JS removes hidden attr */
}

.partner-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.5rem;
}

.partner-hero__headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-white);
}

.partner-hero__cred {
  font-weight: 400;
  font-size: 0.875em;
  opacity: 0.85;
}

.partner-hero__subhead {
  font-size: 1.0625rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.partner-hero__cta {
  font-size: 1rem;
}

/* KOL Photo */
.partner-hero__photo-wrap {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.partner-hero__photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-photo);
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════ */
.trust-bar {
  background-color: var(--color-bg-trust);
  padding-block: 0.875rem;
  text-align: center;
}

.trust-bar__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════
   PRODUCTS SECTION
═══════════════════════════════════════════════ */
.products-section {
  background-color: var(--color-white);
  padding-block: 4rem;
}

.section-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 2.5rem;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.product-card__image-wrap {
  background-color: var(--color-light);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.product-card__body {
  padding: 1.5rem;
}

.product-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.product-card__value-prop {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.product-card__specs {
  margin: 0 0 1.25rem;
}

.product-card__specs li {
  font-size: 0.875rem;
  color: var(--color-text);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.product-card__specs li:last-child {
  border-bottom: none;
}

.product-card__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-teal);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-teal);
  transition: gap var(--transition);
}

.product-card__link:hover,
.product-card__link:focus-visible {
  gap: 0.5rem;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   CE CALLOUT BAND
═══════════════════════════════════════════════ */
.ce-band {
  background-color: var(--color-teal);
  color: var(--color-white);
  padding-block: 3rem;
}

.ce-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.ce-band__icon {
  flex-shrink: 0;
}

.ce-band__headline {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  margin: 0 0 0.625rem;
}

.ce-band__body {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 560px;
  margin: 0;
}

.ce-band__cta {
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════
   FORM SECTION
═══════════════════════════════════════════════ */
.form-section {
  background-color: var(--color-light);
  padding-block: 4.5rem;
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.form-section__headline {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.form-section__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.form-section__trust-note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.55;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--color-teal);
  background-color: rgba(26, 127, 140, 0.06);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  margin: 0;
}

.form-section__form-wrap {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
}

/* HubSpot form overrides — normalize to brand */
.form-section__form-wrap .hs-form fieldset {
  max-width: 100% !important;
}

.form-section__form-wrap .hs-form input[type="text"],
.form-section__form-wrap .hs-form input[type="email"],
.form-section__form-wrap .hs-form input[type="tel"],
.form-section__form-wrap .hs-form select,
.form-section__form-wrap .hs-form textarea {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-btn) !important;
  padding: 0.625rem 0.875rem !important;
  font-size: 0.9375rem !important;
  color: var(--color-text) !important;
  width: 100% !important;
}

.form-section__form-wrap .hs-form input:focus,
.form-section__form-wrap .hs-form select:focus,
.form-section__form-wrap .hs-form textarea:focus {
  outline: 2px solid var(--color-teal) !important;
  outline-offset: 1px !important;
  border-color: var(--color-teal) !important;
}

.form-section__form-wrap .hs-button,
.form-section__form-wrap input[type="submit"] {
  background-color: var(--color-teal) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  padding: 0.75rem 1.75rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: opacity var(--transition) !important;
}

.form-section__form-wrap .hs-button:hover,
.form-section__form-wrap input[type="submit"]:hover {
  opacity: 0.88 !important;
}

.form-section__form-wrap .hs-error-msgs {
  color: #c0392b !important;
  font-size: 0.8125rem !important;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.partner-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding-block: 2rem;
}

.partner-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.partner-footer__logo img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.partner-footer__legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.partner-footer__legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.partner-footer__legal a:hover {
  color: var(--color-white);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — sm: 480px
═══════════════════════════════════════════════ */
@media (min-width: 480px) {
  :root {
    --gutter: 1.5rem;
  }

  .partner-hero__photo {
    width: 200px;
    height: 200px;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — md: 768px
═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
  }

  /* Hero — two-column with photo on the right */
  .partner-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .partner-hero__text {
    text-align: left;
  }

  .partner-hero__subhead {
    margin-inline: 0;
  }

  .partner-hero__photo-wrap {
    order: 1;
    flex-shrink: 0;
  }

  .partner-hero__photo {
    width: 220px;
    height: 220px;
  }

  /* Products — two-column */
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* CE band — horizontal */
  .ce-band__inner {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
    align-items: flex-start;
  }

  .ce-band__content {
    flex: 1;
  }

  .ce-band__cta {
    margin-top: 0;
    flex-shrink: 0;
    align-self: center;
  }

  /* Form — two-column */
  .form-section__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Footer — horizontal */
  .partner-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — lg: 1200px
═══════════════════════════════════════════════ */
@media (min-width: 1200px) {
  :root {
    --gutter: 2.5rem;
  }

  .partner-hero__photo {
    width: 260px;
    height: 260px;
  }

  .form-section__inner {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY — FOCUS VISIBLE
═══════════════════════════════════════════════ */
.partner-page :focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   SCROLL OFFSET — account for sticky header
═══════════════════════════════════════════════ */
#products-section,
#form-section {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* ═══════════════════════════════════════════════
   REDUCE MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .btn,
  .product-card__link {
    transition: none;
  }
}
