/* Grace Harbor — Professionals page */

:root {
  --pro-parchment: #f4ebdd;
  --pro-ivory: #fbf7ef;
  --pro-cream: #f7f0e4;
  --pro-sand: #e7d8c1;
  --pro-driftwood: #b7a48b;
  --pro-sage-light: #d9ddcf;
  --pro-sage: #879275;
  --pro-olive: #596247;
  --pro-deep-olive: #414a36;
  --pro-harbor-blue: #173d5a;
  --pro-soft-blue: #36566b;
  --pro-gold: #d4b36c;
  --pro-soft-gold: #e8d8ae;
  --pro-charcoal: #35342f;
  --pro-body: #5b544a;
  --pro-muted: #7a7064;
  --pro-border: rgba(100, 86, 66, 0.25);
  --pro-shadow: rgba(73, 59, 42, 0.13);
}

body.professionals-body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--pro-body);
  background: var(--pro-parchment);
  overflow-x: clip;
}

html:has(body.professionals-body) {
  scrollbar-gutter: stable;
}

body.professionals-body .wrapper {
  overflow: visible !important;
}

.professionals-page {
  padding-top: 0;
  background:
    linear-gradient(
      180deg,
      var(--pro-ivory) 0%,
      var(--pro-parchment) 52%,
      #efe3d1 100%
    );
  color: var(--pro-body);
}

body.professionals-body .header {
  background: rgba(251, 247, 239, 0.96);
  border-bottom: 1px solid var(--pro-border);
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 1000;
}

body.professionals-body .menu__link {
  color: var(--pro-charcoal);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 500;
}

body.professionals-body .menu__link[aria-current="page"] {
  color: var(--pro-olive);
  box-shadow: inset 0 -2px 0 var(--pro-sage);
}

body.professionals-body .actions-header__button {
  background: var(--pro-olive) !important;
  color: var(--pro-ivory) !important;
  border: 1px solid var(--pro-olive) !important;
  border-radius: 999px !important;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

/* Matching olive cutout logos */
body.professionals-body .header__logo,
body.professionals-body .footer.gh-home-footer .gh-home-footer__logo {
  position: relative !important;
  display: inline-block !important;
  line-height: 0 !important;
}

body.professionals-body .header__logo img,
body.professionals-body .footer.gh-home-footer .gh-home-footer__logo img {
  display: block !important;
  max-height: 3.25rem !important;
  width: auto !important;
  height: auto !important;
  opacity: 0 !important;
  filter: none !important;
}

body.professionals-body .header__logo::after,
body.professionals-body .footer.gh-home-footer .gh-home-footer__logo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-color: #596247 !important;
  -webkit-mask-image: url("../images/Logos/CORNER-LOGO-transparent.png") !important;
  mask-image: url("../images/Logos/CORNER-LOGO-transparent.png") !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  pointer-events: none !important;
}

.professionals-page h1,
.professionals-page h2,
.professionals-page h3 {
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  color: var(--pro-deep-olive);
  font-weight: 650;
  line-height: 1.2;
}

.professionals-page p {
  color: var(--pro-body);
  line-height: 1.75;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.professionals-page p:last-child {
  margin-bottom: 0;
}

.professionals-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.professionals-section__inner {
  width: min(90%, 1180px);
  margin: 0 auto;
}

.professionals-copy-narrow {
  width: min(90%, 850px);
  margin: 0 auto;
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--pro-olive);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.professionals-section-heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.professionals-section-heading h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

.professionals-section-heading p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.pro-card {
  background: rgba(251, 247, 239, 0.92);
  border: 1px solid var(--pro-border);
  border-radius: 1rem;
  box-shadow: 0 12px 28px var(--pro-shadow);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}

.pro-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.pro-card p {
  font-size: 0.98rem;
}

.pro-card a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--pro-deep-olive);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pro-card a:hover,
.pro-card a:focus-visible {
  color: var(--pro-olive);
  border-bottom-color: var(--pro-olive);
}

/* —— Hero —— */
.professionals-hero {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 42vw, 690px);
  overflow: hidden;
  background-color: var(--pro-cream);
  background-image: url("../images/Home%20Page/professionals-hero.png");
  background-repeat: no-repeat;
  /* Prefer upper frame so lighthouse lantern stays in view */
  background-position: 78% 10%;
  background-size: cover;
}

.professionals-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.professionals-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 10%;
  display: block;
}

.professionals-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      92deg,
      #f7f0e4 0%,
      #f7f0e4 26%,
      rgba(247, 240, 228, 0.88) 38%,
      rgba(247, 240, 228, 0.35) 54%,
      rgba(247, 240, 228, 0.05) 70%,
      rgba(247, 240, 228, 0) 100%
    );
}

.professionals-hero__inner {
  position: relative;
  z-index: 2;
  width: min(92%, 1500px);
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.professionals-hero__copy {
  width: min(46%, 650px);
  padding: clamp(2rem, 4vw, 5rem);
}

.professionals-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pro-muted);
}

.professionals-hero__title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.05rem, 4.2vw, 3.1rem);
  color: var(--pro-charcoal);
}

.professionals-hero__intro {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.015em;
  color: #2a241c;
  text-shadow:
    0 0 1px rgba(255, 252, 245, 0.85),
    0 0 8px rgba(247, 240, 228, 0.35),
    0 0 14px rgba(247, 240, 228, 0.18);
}

.professionals-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.45rem;
  border-radius: 999px;
  background: var(--pro-deep-olive);
  color: var(--pro-ivory) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--pro-deep-olive);
  transition: background 0.2s ease;
}

.professionals-hero__button:hover,
.professionals-hero__button:focus-visible {
  background: #353b2c;
  border-color: #353b2c;
}

.professionals-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(48px, 7vw, 90px);
  z-index: 3;
  display: block;
}

/* —— Intro —— */
.professionals-intro {
  background: var(--pro-cream);
  text-align: center;
}

.professionals-intro h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.professionals-emphasis {
  margin-top: 1.5rem !important;
  font-size: 1.1rem !important;
  color: var(--pro-charcoal) !important;
}

.professionals-pullquote {
  margin: 2rem auto 0;
  max-width: 36rem;
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--pro-sage);
  background: rgba(251, 247, 239, 0.75);
  border-radius: 0 0.75rem 0.75rem 0;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--pro-olive);
  text-align: left;
}

/* —— Why exists —— */
.professionals-why {
  background: var(--pro-parchment);
}

.professionals-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.professionals-why-grid .pro-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

/* —— Audience —— */
.professionals-audiences {
  background: var(--pro-ivory);
}

.audience-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.audience-pro-grid .pro-card,
.audience-pro-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.audience-pro-card p {
  flex: 1 1 auto;
  margin-bottom: 1.15rem;
}

.audience-pro-card__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  margin-top: auto !important;
  padding: 0.7rem 1.1rem !important;
  min-height: 2.75rem;
  border-radius: 999px !important;
  background: var(--pro-deep-olive) !important;
  border: 1px solid var(--pro-deep-olive) !important;
  color: var(--pro-ivory) !important;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.audience-pro-card__btn:hover,
.audience-pro-card__btn:focus-visible {
  background: #353b2c !important;
  border-color: #353b2c !important;
  color: var(--pro-ivory) !important;
  border-bottom-color: #353b2c !important;
  outline: 2px solid var(--pro-soft-gold);
  outline-offset: 3px;
}

.audience-pro-card__btn--pending,
.audience-pro-card__btn.audience-pro-card__btn--pending,
button.audience-pro-card__btn--pending {
  background: transparent !important;
  border: 1.5px solid var(--pro-olive) !important;
  color: var(--pro-deep-olive) !important;
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.audience-pro-card__btn--pending:hover,
.audience-pro-card__btn--pending:focus-visible {
  background: transparent !important;
  border-color: var(--pro-olive) !important;
  color: var(--pro-deep-olive) !important;
  outline: none;
}

/* —— Care model —— */
.professionals-model {
  background: var(--pro-cream);
}

.care-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
}

.care-model-panel {
  text-align: center;
  position: relative;
}

.care-model-panel__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--pro-olive);
  color: var(--pro-ivory);
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 650;
}

.care-model-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
}

@media (min-width: 901px) {
  .care-model-panel:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.15rem;
    right: -0.85rem;
    width: 1.7rem;
    height: 1px;
    background: var(--pro-driftwood);
    opacity: 0.7;
  }
}

/* —— Shareable resources —— */
.professionals-resources {
  background: var(--pro-parchment);
}

.resource-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.resource-pro-grid h3 {
  font-size: 1.15rem;
}

/* —— Referral workflow —— */
.professionals-workflow {
  background: var(--pro-ivory);
}

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 860px;
  margin: 0 auto;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  text-align: left;
}

.workflow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--pro-sage-light);
  color: var(--pro-deep-olive);
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
}

.workflow-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.workflow-step ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--pro-body);
  line-height: 1.65;
}

.workflow-step li {
  margin-bottom: 0.25rem;
}

/* —— Referral language —— */
.professionals-language {
  background: var(--pro-cream);
}

.quote-pro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.quote-pro-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--pro-charcoal);
}

.quote-pro-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--pro-olive);
}

/* —— Confidence —— */
.professionals-confidence {
  background: var(--pro-parchment);
}

.confidence-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* —— Partnership —— */
.professionals-partnership {
  background: var(--pro-ivory);
}

.partnership-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.professionals-partnership__note {
  margin: 2rem auto 0 !important;
  max-width: 42rem;
  text-align: center;
  font-style: italic;
  color: var(--pro-muted) !important;
}

/* —— CTA —— */
.professionals-cta {
  background:
    linear-gradient(180deg, rgba(217, 221, 207, 0.45), rgba(247, 240, 228, 0.95));
  text-align: center;
}

.professionals-cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.professionals-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

.professionals-cta .button--primary,
.professionals-cta .button.button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--pro-deep-olive) !important;
  border: 1px solid var(--pro-deep-olive) !important;
  color: var(--pro-ivory) !important;
  text-decoration: none;
  font-weight: 600;
}

.professionals-cta .button--secondary,
.professionals-cta .button.button--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: transparent !important;
  border: 1.5px solid var(--pro-olive) !important;
  color: var(--pro-deep-olive) !important;
  text-decoration: none;
  font-weight: 600;
}

.professionals-cta__note {
  margin-top: 1.25rem !important;
  font-size: 0.92rem !important;
  color: var(--pro-muted) !important;
}

/* —— Disclaimer —— */
.professionals-disclaimer {
  padding: 2rem 0 2.75rem;
  background: var(--pro-sage-light);
}

.professionals-disclaimer p {
  margin: 0 auto;
  max-width: 52rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--pro-charcoal);
}

/* —— Footer —— */
body.professionals-body .footer.gh-home-footer {
  background: var(--pro-parchment);
  border-top: 1px solid var(--pro-border);
}

body.professionals-body .footer.gh-home-footer .gh-site-support-invite__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem 1rem !important;
  width: auto !important;
  max-width: none !important;
}

body.professionals-body .footer.gh-home-footer .gh-site-support-btn,
body.professionals-body .footer.gh-home-footer .gh-site-support-btn--harbor,
body.professionals-body .footer.gh-home-footer .gh-site-support-btn--sent {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  background: #424a36 !important;
  border: 1px solid #424a36 !important;
  color: #fffdf8 !important;
  border-radius: 999px !important;
  padding: 0.6rem 1.35rem !important;
  text-decoration: none !important;
}

body.professionals-body .footer.gh-home-footer .gh-site-support-btn:hover,
body.professionals-body .footer.gh-home-footer .gh-site-support-btn:focus-visible {
  background: #353b2c !important;
  border-color: #353b2c !important;
}

/* —— Responsive —— */
@media (max-width: 1200px) {
  .audience-pro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .audience-pro-grid,
  .resource-pro-grid,
  .confidence-pro-grid,
  .partnership-pro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .professionals-hero__copy {
    width: min(58%, 620px);
  }
}

@media (max-width: 900px) {
  .professionals-why-grid,
  .care-model-grid,
  .quote-pro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .professionals-hero {
    min-height: auto;
  }

  .professionals-hero__photo {
    object-position: 75% 8%;
  }

  .professionals-hero {
    background-position: 75% 8%;
  }

  .professionals-hero__wash {
    background:
      linear-gradient(
        180deg,
        rgba(247, 240, 228, 0.96) 0%,
        rgba(247, 240, 228, 0.9) 62%,
        rgba(247, 240, 228, 0.4) 100%
      );
  }

  .professionals-hero__inner {
    display: block;
    min-height: 0;
  }

  .professionals-hero__copy {
    width: 100%;
    padding: 2.25rem 1.4rem 3rem;
  }

  .audience-pro-grid,
  .resource-pro-grid,
  .confidence-pro-grid,
  .partnership-pro-grid,
  .professionals-why-grid,
  .care-model-grid,
  .quote-pro-grid {
    grid-template-columns: 1fr;
  }

  .audience-pro-card__btn {
    min-height: 2.75rem;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
  }

  .professionals-section {
    padding: 2.75rem 0;
  }

  .professionals-pullquote {
    text-align: left;
  }

  body.professionals-body .footer.gh-home-footer .gh-site-support-invite__actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
}
