/* -----------------------------------
   DIANNE POLE PSYCHOTHERAPY HOMEPAGE CSS
----------------------------------- */

/* -----------------------------------
   STYLE EYEBROW TEXT
----------------------------------- */

.dp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--dp-soft);
  font-size: 0.8rem;
  margin-bottom: 1.9rem;
  
}

/*#region **** Style Hero Section including right column ****/

.dp-hero-inner {
  gap: 4rem;
  padding-bottom: clamp(0rem, 3vw, 3rem);
}

.dp-hero-inner .wp-block-column {
  align-self: flex-start;
  margin-bottom: 0;
}

.dp-hero-inner h1 {
  font-size: clamp(2.55rem, 4.9vw, 4rem);
  line-height: 1.06;
  font-weight: 400;
  margin: 0 0 0.2rem;
  letter-spacing: -0.035em;
  max-width: 24ch;
}

/*STYLE HERO COPY*/

.dp-hero-copy {
  font-size: clamp(1.08rem, 1.58vw, 1.25rem);
  line-height: 1.72;
  font-family: var(--dp-serif);
  color: var(--dp-copy-text);
  max-width: 47ch;
  margin: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

/* VISUAL PANEL IN RIGHT COLUMN*/

/*Disable WP Block*/

.dp-hero-inner.wp-block-column {
  display: contents;
}

.dp-visual-panel {
  background-color: green;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.45),
      transparent 45%
    ),
    linear-gradient(180deg, #efe6dc 0%, #e7dbcf 100%);
  border: 1px solid var(--dp-border);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(47, 43, 39, 0.17);
  padding: 0.7rem;
  padding-bottom: 1rem;
  max-width: 30rem;
}

/* STYLE PROFILE IMAGE*/

.dp-profile-image img {
  position: relative;
  z-index: 3;
  width: auto;
  height: auto;
  padding: 1px;
  object-fit: cover;
  display: block;
  border-radius: 1.2rem 1.2rem 0.2rem 0.2rem;
  height: auto;
  box-shadow: -0.4rem 0.3rem 0.7rem 0.3rem rgba(47, 43, 39, 0.08);
}

/*#region *** Style Quote Rotator ***/

/*QUOTE AREA STYLING*/

.dp-quote-area {
  position: relative;
  z-index: 1;
  width: 100%;

  display: flex;
  align-items: center;

  padding-top: 1rem;
  padding-bottom: 0.1rem;
  padding-left: clamp(0.5rem, 1.4vw, 1.3rem);
  padding-right: clamp(0.5rem, 1.3vw, 1.3rem);
}

/*Disable WP Block*/

.dp-quote-area .wp-block-group__inner-container {
  display: contents;
}

/* Set up inner container for quotes */

.dp-quote-rotator {
  position: relative;
  min-height: clamp(9.3rem, 24vw, 10.8rem);
  width: 100%;
}

/*STYLE TEXT FOR BLOCKQUOTES*/

.dp-quote-rotator .wp-block-quote {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  max-width: 30rem;
  border-left: none;
  padding: 0;
  margin: 0;

  opacity: 0;
  animation: dpQuoteFade 60s infinite;
}

/* Style Quote and Citation Fonts */

.dp-quote-rotator .wp-block-quote p {
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  font-style: normal;
  line-height: 1.35;
  color: var(--dp-copy-text);
  margin: 0;
}

.dp-quote-rotator .wp-block-quote cite {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--dp-sans);
  color: #776b61;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-style: normal;
}

.dp-quote-rotator .wp-block-quote.has-text-align-center,
.dp-quote-rotator .wp-block-quote.has-text-align-left {
  text-align: left;
}

/* ANIMATION */

.dp-quote-rotator .wp-block-quote.alignwide {
  margin-left: 0;
  margin-right: 0;
  width: auto;
  max-width: 29rem;
}

/* ANIMATION DELAYS */

.dp-quote-rotator .wp-block-quote:nth-child(1) {
  animation-delay: 0s;
}

.dp-quote-rotator .wp-block-quote:nth-child(2) {
  animation-delay: 12s;
}

.dp-quote-rotator .wp-block-quote:nth-child(3) {
  animation-delay: 24s;
}

.dp-quote-rotator .wp-block-quote:nth-child(4) {
  animation-delay: 36s;
}

.dp-quote-rotator .wp-block-quote:nth-child(5) {
  animation-delay: 48s;
}

/* FADE ANIMNATION */

@keyframes dpQuoteFade {
  0% {
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  18% {
    opacity: 1;
  }

  20% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .dp-quote-rotator .wp-block-quote {
    animation: none;
    opacity: 0;
  }

  .dp-quote-rotator .wp-block-quote:first-child {
    opacity: 1;
  }
}

/* #endregion */
/* #endregion */

/* -----------------------------------
   THERAPY OPTIONS SECTION
----------------------------------- */

/*OVERRIDE DEFAULT WP STYLING*/

.dp-options-section > .wp-block-group__inner-container {
  display: contents;
}

.dp-options-section,
.dp-options-card-grid,
.dp-card-cover {
  box-sizing: border-box;
}

/*OPTIONS SECTION STYLES*/

.dp-options-section {
  width: 100%;
  max-width: none;
  background: linear-gradient(to right, #f5f2ed, var(--dp-bg));
  padding: clamp(2rem, 4vw, 4rem) clamp(0.7rem, 3vw, 2rem) 0;
  text-align: center;
  overflow-x: clip;
}

.dp-options-card-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(0.4rem, 1vw, 1.1rem);
}

/*Style Header*/

.dp-options-section h2 {
  max-width: 30ch;
  justify-self: center;
  font-size: clamp(2rem, 2.85vw, 2.4rem);
  letter-spacing: -0.03em;
  padding-bottom: 1rem;
  color: var(--dp-copy-text);
}

.dp-card-cover .wp-block-cover__inner-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/*Card dimensions*/

.dp-card-cover {
  display: flex;
  justify-self: center;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 17rem;
  max-width: 30rem;
  min-height: 39rem;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  padding-top: 1.6rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  background-color: #202b30;
  text-align: left;
  border-radius: 0.5rem;
}

/*Background image transform*/

.dp-card-cover .wp-block-cover__image-background {
  filter: blur(1.5px) brightness(0.9);
  transform: scale(1.04);
  transition:
    filter 0.8s ease,
    transform 0.8s ease;
}

.dp-card-cover:hover .wp-block-cover__image-background {
  filter: blur(0.5px) brightness(1);
  transform: scale(1.05);
}

/*Card Header*/

.dp-card-cover h3 {
  font-family: var(--dp-serif);
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  font-weight: 400 !important;
  line-height: 1.06;
  color: #f6f2ec;
  letter-spacing: -0.03em;
  min-height: 6.7rem;
  max-width: 23rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/*Horizontal Line*/

.dp-card-cover h3::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.35);
}

/*Card p style*/

.dp-card-cover .wp-block-cover__inner-container > p.has-medium-font-size,
.dp-card-cover .wp-block-cover__inner-container > p {
  font-size: clamp(1rem, 1.25vw, 1rem);
  padding-top: 2rem;
  padding-bottom: 0rem;
  font-family: var(--dp-sans);
  font-weight: 380;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  max-width: 24rem;
  margin-bottom: 1rem;
}

.dp-card-icon {
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.dp-card-cover .dp-card-icon img {
  opacity: 0.92;
  transition: filter 0.35s ease;
  filter: drop-shadow(0 0 12px rgba(244, 232, 220, 0.18))
    drop-shadow(0 0 8px rgba(244, 232, 220, 0.1));
  padding-bottom: 1.3rem;
  width: 7rem;
}

.dp-card-icon.icon1 img {
  width: 7.3rem;
}

.dp-card-icon.icon2 img {
  width: 6.9rem;
}

.dp-card-icon.icon3 img {
  width: 7.5rem;
}

.dp-card-cover:hover img {
  filter: drop-shadow(0 0 14px rgba(244, 232, 220, 0.6))
    drop-shadow(0 0 34px rgba(244, 232, 220, 0.6));
}

/*Hide Copyright Bar*/
.copyright-bar {
  display: none;
}

/*Mobile Compatibility*/

@media (max-width: 768px) {
  .dp-options-section {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .dp-options-card-grid {
    justify-items: start;
    margin-left: 0;
    margin-right: 0;
  }

  .dp-card-cover {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: auto;
    padding-bottom: 1rem;
  }

  .dp-card-cover .wp-block-cover__inner-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .dp-options-section h2 {
    justify-self: start;
    margin-right: auto;
    font-size: clamp(1.7rem, 2.85vw, 2.4rem);
    letter-spacing: -0.03em;
    padding-bottom: 1.5rem;
    padding-left: 0rem;
  }

  /* Reset the height of card heading to auto and allow divider to sit where it wants */

  .dp-card-cover h3 {
    min-height: auto;
    position: relative;
  }

  .dp-card-cover h3::after {
    margin-top: 1.8rem;
  }
}

/* -----------------------------------
   WHAT BRINGS PEOPLE Section Styling - restyle 3 column grid with .dp-what-brings
----------------------------------- */

.dp-3col-grid.dp-what-brings {
  grid-template-columns:
    minmax(100px, 2.3fr)
    minmax(5px, 0.3fr)
    minmax(50px, 4.6fr) !important;
  max-width: 860px;
  padding-top: 1rem;
}
