/* =========================================================
   HIGHLAND DENTAL CENTER
   THREE PILLARS SECTION
========================================================= */

/*
  Load Poppins through Blocs Project Settings → Fonts,
  or place this in the page head:

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
*/


/* =========================================================
   SECTION
========================================================= */

.hdc-pillars {
  --hdc-pillar-bg: #647f82;
  --hdc-pillar-card: rgba(255, 255, 255, 0.075);
  --hdc-pillar-card-hover: rgba(255, 255, 255, 0.11);
  --hdc-pillar-border: rgba(255, 255, 255, 0.14);
  --hdc-pillar-gold: #f4cf7a;
  --hdc-pillar-white: #ffffff;
  --hdc-pillar-copy: rgba(255, 255, 255, 0.88);

  position: relative;
  isolation: isolate;

  width: 100%;
  margin: 0;
  padding: clamp(72px, 8vw, 124px) 0;

  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(255, 255, 255, 0.08),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #58777a 0%,
      var(--hdc-pillar-bg) 48%,
      #587477 100%
    );

  font-family: "Poppins", sans-serif;
}

.hdc-pillars,
.hdc-pillars * {
  box-sizing: border-box;
}


/* Subtle decorative background shape */

.hdc-pillars::before {
  position: absolute;
  z-index: -1;
  top: -160px;
  right: -130px;

  width: 420px;
  height: 420px;

  border: 1px solid rgba(244, 207, 122, 0.13);
  border-radius: 50%;

  content: "";
}

.hdc-pillars::after {
  position: absolute;
  z-index: -1;
  right: 115px;
  bottom: -260px;

  width: 520px;
  height: 520px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;

  content: "";
}


/* =========================================================
   CONTAINER
========================================================= */

.hdc-pillars-container {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.hdc-pillars-header {
  width: min(760px, 100%);
  margin: 0 auto clamp(46px, 5vw, 72px);

  text-align: center;
}

.hdc-pillars .hdc-pillars-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 18px;

  color: var(--hdc-pillar-gold) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hdc-pillars .hdc-pillars-eyebrow::before,
.hdc-pillars .hdc-pillars-eyebrow::after {
  width: 28px;
  height: 1px;

  background: currentColor;
  opacity: 0.65;

  content: "";
}

.hdc-pillars .hdc-pillars-header h2 {
  margin: 0 0 20px;

  color: var(--hdc-pillar-gold) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  font-weight: 300 !important;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hdc-pillars .hdc-pillars-header > p {
  max-width: 680px;
  margin: 0 auto;

  color: var(--hdc-pillar-copy) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 1.1em !important;
  font-weight: 300 !important;
  line-height: 1.55 !important;
}


/* =========================================================
   CARD GRID
   LARGE: THREE COLUMNS
========================================================= */

.hdc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(22px, 2.4vw, 36px);
}


/* =========================================================
   CARDS
========================================================= */

.hdc-pillar-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 410px;
  margin: 0;
  padding: clamp(30px, 3vw, 44px);

  overflow: hidden;

  border: 1px solid var(--hdc-pillar-border);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.045)
    );

  box-shadow:
    0 22px 55px rgba(31, 55, 57, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.08);

  transition:
    transform 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

.hdc-pillar-card:hover {
  transform: translateY(-7px);

  border-color: rgba(244, 207, 122, 0.36);
  background-color: var(--hdc-pillar-card-hover);

  box-shadow:
    0 30px 65px rgba(31, 55, 57, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.11);
}


/* =========================================================
   NUMBER AND ICON
========================================================= */

.hdc-pillar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: clamp(48px, 5vw, 76px);
}

.hdc-pillars .hdc-pillar-number {
  color: rgba(255, 255, 255, 0.32) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
}

.hdc-pillar-icon {
  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;

  border: 1px solid rgba(244, 207, 122, 0.32);
  border-radius: 18px;

  background: rgba(244, 207, 122, 0.08);
}

.hdc-pillar-icon svg {
  width: 27px;
  height: 27px;

  fill: none;
  stroke: var(--hdc-pillar-gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   CARD TYPOGRAPHY
========================================================= */

.hdc-pillar-content {
  flex: 1;
}

.hdc-pillars .hdc-pillar-label {
  display: block;

  margin: 0 0 13px;

  color: var(--hdc-pillar-gold) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 0.9rem;
  font-weight: 500 !important;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hdc-pillars .hdc-pillar-card h3 {
  margin: 0 0 17px;

  color: var(--hdc-pillar-gold) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
  font-weight: 300 !important;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.hdc-pillars .hdc-pillar-card p {
  margin: 0;

  color: var(--hdc-pillar-white) !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 1.1em !important;
  font-weight: 300 !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em;
}


/* =========================================================
   BOTTOM ACCENT
========================================================= */

.hdc-pillar-footer {
  padding-top: 34px;
}

.hdc-pillar-footer span {
  display: block;

  width: 42px;
  height: 2px;

  border-radius: 999px;
  background: var(--hdc-pillar-gold);

  transition: width 250ms ease;
}

.hdc-pillar-card:hover .hdc-pillar-footer span {
  width: 76px;
}


/* =========================================================
   MEDIUM: TWO COLUMNS, THIRD CENTERED BELOW
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

  .hdc-pillars {
    padding: 78px 0;
  }

  .hdc-pillars-container {
    width: min(900px, calc(100% - 48px));
  }

  .hdc-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .hdc-pillar-card:nth-child(3) {
    grid-column: 1 / -1;

    width: calc(50% - 14px);
    justify-self: center;
  }

  .hdc-pillar-card {
    min-height: 390px;
  }

}


/* =========================================================
   SMALL AND EXTRA SMALL: ONE COLUMN
========================================================= */

@media (max-width: 767px) {

  .hdc-pillars {
    padding: 64px 0;
  }

  .hdc-pillars-container {
    width: min(620px, calc(100% - 36px));
  }

  .hdc-pillars-header {
    margin-bottom: 40px;
  }

  .hdc-pillars .hdc-pillars-header h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hdc-pillars .hdc-pillars-header > p {
    font-size: 1em !important;
    line-height: 1.55 !important;
  }

  .hdc-pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hdc-pillar-card,
  .hdc-pillar-card:nth-child(3) {
    grid-column: auto;

    width: 100%;
    min-height: 0;
    justify-self: stretch;
  }

  .hdc-pillar-top {
    margin-bottom: 40px;
  }

  .hdc-pillars .hdc-pillar-card p {
    font-size: 1em !important;
    line-height: 1.55 !important;
  }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (max-width: 575px) {

  .hdc-pillars {
    padding: 54px 0;
  }

  .hdc-pillars-container {
    width: calc(100% - 28px);
  }

  .hdc-pillars-header {
    text-align: left;
  }

  .hdc-pillars .hdc-pillars-eyebrow {
    font-size: 0.78rem;
  }

  .hdc-pillars .hdc-pillars-eyebrow::before {
    display: none;
  }

  .hdc-pillars .hdc-pillars-header > p {
    margin-left: 0;
  }

  .hdc-pillar-card {
    padding: 28px 25px;
    border-radius: 20px;
  }

  .hdc-pillar-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .hdc-pillars .hdc-pillar-card h3 {
    font-size: 1.65rem;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .hdc-pillar-card,
  .hdc-pillar-footer span {
    transition: none;
  }

  .hdc-pillar-card:hover {
    transform: none;
  }

}
