/* =========================================================
   HIGHLAND DENTAL CENTER — ABOUT SECTION
   Scoped classes to avoid conflicts with existing Blocs CSS
   ========================================================= */

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

.hdc-about {
  --hdc-navy: #17344d;
  --hdc-blue: #315c78;
  --hdc-gold: #b38a55;
  --hdc-cream: #f7f2e9;
  --hdc-light: #fcfaf6;
  --hdc-text: #26333d;
  --hdc-muted: #62717c;
  --hdc-border: rgba(23, 52, 77, 0.14);

  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 110px) 24px;
  color: var(--hdc-text);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(179, 138, 85, 0.12),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      var(--hdc-light) 0%,
      var(--hdc-cream) 100%
    );
}

.hdc-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92%, 1180px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(179, 138, 85, 0.55),
    transparent
  );
  transform: translateX(-50%);
}

.hdc-about-container {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

/* Header */

.hdc-about-header {
  max-width: 880px;
  margin: 0 auto clamp(38px, 5vw, 64px);
  text-align: center;
}

.hdc-about-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--hdc-gold);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hdc-about-header h1 {
  margin: 0;
  color: var(--hdc-navy);
  font-family: inherit;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hdc-about-intro {
  max-width: 690px;
  margin: 20px auto 0;
  color: var(--hdc-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

/* Main content */

.hdc-about-content {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--hdc-text);
  font-size: clamp(1.05rem, 1.25vw, 1.16rem);
  line-height: 1.82;
}

.hdc-about-content::after {
  content: "";
  display: table;
  clear: both;
}

.hdc-about-content > p {
  margin: 0 0 1.35em;
}

/* Floating image creates the text-wrap effect */

.hdc-about-image {
  position: relative;
  float: right;
  width: min(48%, 540px);
  margin: 0 0 30px clamp(32px, 5vw, 66px);
}

.hdc-about-image::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: -18px;
  left: 18px;
  z-index: -1;
  border: 1px solid rgba(179, 138, 85, 0.45);
  border-radius: 5px;
}

.hdc-about-image::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -12px;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: var(--hdc-gold);
}

.hdc-about-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 5px;
  box-shadow:
    0 24px 55px rgba(23, 52, 77, 0.14),
    0 5px 15px rgba(23, 52, 77, 0.08);
}

/* Highlight panel */

.hdc-about-highlight {
  clear: both;
  position: relative;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--hdc-border);
  border-left: 5px solid var(--hdc-gold);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.94),
      rgba(247, 242, 233, 0.94)
    );
  box-shadow: 0 18px 45px rgba(23, 52, 77, 0.08);
}

.hdc-about-highlight::after {
  content: "HDC";
  position: absolute;
  right: 22px;
  bottom: -28px;
  color: rgba(23, 52, 77, 0.035);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hdc-about-highlight-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 9px;
  color: var(--hdc-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hdc-about-highlight p {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0;
  color: var(--hdc-navy);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Three supporting value cards */

.hdc-about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(42px, 6vw, 70px);
}

.hdc-about-value {
  min-height: 140px;
  padding: 26px;
  border: 1px solid var(--hdc-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(23, 52, 77, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hdc-about-value:hover {
  transform: translateY(-4px);
  border-color: rgba(179, 138, 85, 0.5);
  box-shadow: 0 18px 38px rgba(23, 52, 77, 0.1);
}

.hdc-about-value strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hdc-navy);
  font-size: 1.08rem;
  line-height: 1.3;
}

.hdc-about-value span {
  display: block;
  color: var(--hdc-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* =========================================================
   LG — 992px through 1199px
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hdc-about {
    padding-right: 34px;
    padding-left: 34px;
  }

  .hdc-about-image {
    width: 47%;
    margin-left: 42px;
  }
}

/* =========================================================
   MD — 768px through 991px
   Image stops floating and becomes a centered feature image
   ========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {
  .hdc-about {
    padding-right: 34px;
    padding-left: 34px;
  }

  .hdc-about-header {
    margin-bottom: 42px;
  }

  .hdc-about-content {
    max-width: 780px;
  }

  .hdc-about-image {
    float: none;
    width: min(100%, 680px);
    margin: 0 auto 44px;
  }

  .hdc-about-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hdc-about-value {
    padding: 22px 18px;
  }
}

/* =========================================================
   SM — 576px through 767px
   ========================================================= */

@media (min-width: 576px) and (max-width: 767.98px) {
  .hdc-about {
    padding: 64px 26px;
  }

  .hdc-about-header {
    margin-bottom: 36px;
  }

  .hdc-about-image {
    float: none;
    width: 100%;
    margin: 0 0 40px;
  }

  .hdc-about-image::before {
    top: 12px;
    right: -10px;
    bottom: -12px;
    left: 10px;
  }

  .hdc-about-content {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .hdc-about-values {
    grid-template-columns: 1fr;
  }

  .hdc-about-value {
    min-height: auto;
  }
}

/* =========================================================
   XS — Below 576px
   ========================================================= */

@media (max-width: 575.98px) {
  .hdc-about {
    padding: 54px 18px;
  }

  .hdc-about-header {
    margin-bottom: 30px;
    text-align: left;
  }

  .hdc-about-header h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
    line-height: 1.04;
  }

  .hdc-about-intro {
    margin-top: 15px;
    font-size: 1rem;
  }

  .hdc-about-image {
    float: none;
    width: 100%;
    margin: 0 0 34px;
  }

  .hdc-about-image::before {
    display: none;
  }

  .hdc-about-image::after {
    right: 16px;
    bottom: -10px;
    width: 62px;
  }

  .hdc-about-image img {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
  }

  .hdc-about-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hdc-about-content > p {
    margin-bottom: 1.2em;
  }

  .hdc-about-highlight {
    margin-top: 36px;
    padding: 26px 22px;
  }

  .hdc-about-highlight p {
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .hdc-about-values {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }

  .hdc-about-value {
    min-height: auto;
    padding: 22px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .hdc-about-value {
    transition: none;
  }

  .hdc-about-value:hover {
    transform: none;
  }
}
/* =========================================================
   REVIEW NAVIGATION
   ========================================================= */

.reviews-navigation {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-top: 24px;
  padding: 0 4px 8px;
}

.reviews-navigation-hint {
  margin: 0;
  color: #66716f;
  font-size: 0.95rem;
  line-height: 1.4;
}

.reviews-navigation-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.reviews-nav-button {
  width: 48px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 1px solid rgba(35, 91, 88, 0.28);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.92);
  color: #235b58;

  font-size: 1.35rem;
  line-height: 1;

  cursor: pointer;
  box-shadow:
    0 5px 14px rgba(28, 61, 59, 0.08),
    0 1px 3px rgba(28, 61, 59, 0.06);

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

.reviews-nav-button:hover {
  transform: translateY(-2px);
  background: #235b58;
  border-color: #235b58;
  color: #ffffff;

  box-shadow:
    0 8px 18px rgba(28, 61, 59, 0.16),
    0 2px 5px rgba(28, 61, 59, 0.08);
}

.reviews-nav-button:active {
  transform: translateY(0);
}

.reviews-nav-button:focus-visible {
  outline: 3px solid rgba(35, 91, 88, 0.24);
  outline-offset: 3px;
}

.reviews-nav-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Keep the entire section from creating page-level overflow */
.reviews-section,
.reviews-section .container {
  max-width: 100%;
  overflow: hidden;
}

/* Only the review track itself should scroll horizontally */
.reviews-track {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Tablet and phone */
@media (max-width: 767.98px) {
  .reviews-navigation {
    margin-top: 18px;
    padding-bottom: 10px;
  }

  .reviews-navigation-hint {
    font-size: 0.85rem;
  }

  .reviews-nav-button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 575.98px) {
  .reviews-navigation {
    gap: 14px;
  }

  .reviews-navigation-hint {
    max-width: 150px;
  }

  .reviews-navigation-buttons {
    gap: 8px;
  }

  .reviews-nav-button {
    width: 42px;
    height: 42px;
  }
}
