/* =============================================================
   PharmacyNeeds — Locations of The Smile of the Child
   File: locations-of-the-smile-of-child.css

   Class names are UNCHANGED — drop-in replacement, works with the
   existing markup exactly as it is.

   WHAT CHANGED STRUCTURALLY
   Every rule is now scoped under the parent .locations-of-the-smile-of-child.
   v1 used bare single-class selectors, specificity (0,1,0), which
   LOSES to any theme rule of the form .entry-content h2 / p / a,
   specificity (0,1,1). The title, description, card titles and
   buttons were all exposed to that. Scoping under the parent raises
   them to (0,2,0), which wins — and it needs no HTML change, since
   the parent class is already on the <section>.

   If you want the same armour as the other three sections, add
   id="locations-of-the-smile-of-child" to the <section> and swap
   every .locations-of-the-smile-of-child prefix below for
   #locations-of-the-smile-of-child. Only do that if you replace
   both files together.

   CONTENTS
     1. Scope root & tokens
     2. Local reset
     3. Container & heading
     4. Grid & card
     5. Map
     6. Card content
     7. Button
     8. Responsive
     9. Reduced motion
   ============================================================= */


/* -------------------------------------------------------------
   1. Scope root & tokens
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child {
  --locations-primary: #20a4d8;
  --locations-secondary: #8459da;
  --locations-title-color: #18233e;
  --locations-text-color: #66738c;
  --locations-background: #f8fbff;
  --locations-card-background: #fff;

  padding: 90px 20px;
  background:
    radial-gradient(circle at 10% 10%, rgba(31, 166, 218, 0.08), transparent 35%),
    radial-gradient(circle at 90% 90%, rgba(132, 91, 218, 0.08), transparent 35%),
    var(--locations-background);
}


/* -------------------------------------------------------------
   2. Local reset
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child,
.locations-of-the-smile-of-child *,
.locations-of-the-smile-of-child *::before,
.locations-of-the-smile-of-child *::after {
  box-sizing: border-box;
}


/* -------------------------------------------------------------
   3. Container & heading
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__container {
  width: min(100%, 1380px);
  margin-inline: auto;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__title {
  margin: 0;
  color: var(--locations-title-color);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__description {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--locations-text-color);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}


/* -------------------------------------------------------------
   4. Grid & card
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(38, 63, 105, 0.09);
  border-radius: 28px;
  background: var(--locations-card-background);
  box-shadow: 0 20px 55px rgba(35, 58, 93, 0.11);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


/* -------------------------------------------------------------
   5. Map
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__map {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #edf3f8;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* -------------------------------------------------------------
   6. Card content
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__area {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #278ec2;
  background: rgba(34, 163, 216, 0.1);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__card-title {
  margin: 0;
  color: #17223d;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__address {
  margin: 12px 0 26px;
  color: var(--locations-text-color);
  font-size: 16px;
  font-style: normal;
  line-height: 1.65;
}


/* -------------------------------------------------------------
   7. Button
   ------------------------------------------------------------- */

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 13px 20px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(90deg, var(--locations-primary), var(--locations-secondary));
  box-shadow: 0 12px 25px rgba(72, 123, 211, 0.23);
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.locations-of-the-smile-of-child .locations-of-the-smile-of-child__button:focus-visible {
  outline: 3px solid rgba(36, 159, 213, 0.35);
  outline-offset: 4px;
}

/* Hover is gated behind a real pointer. Ungated, a tap on a touch
   screen leaves the lifted card and button stuck in their hover
   state until you tap elsewhere. */
@media (hover: hover) {
  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(35, 58, 93, 0.16);
  }

  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(72, 123, 211, 0.3);
  }
}


/* -------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------- */

@media (max-width: 1050px) {
  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .locations-of-the-smile-of-child {
    padding: 65px 16px;
  }

  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__heading {
    margin-bottom: 34px;
  }

  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__grid {
    grid-template-columns: 1fr;
  }

  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__card {
    border-radius: 23px;
  }

  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__map {
    height: 230px;
  }

  .locations-of-the-smile-of-child .locations-of-the-smile-of-child__content {
    padding: 23px;
  }
}


/* -------------------------------------------------------------
   9. Reduced motion
   ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .locations-of-the-smile-of-child
  :is(.locations-of-the-smile-of-child__card, .locations-of-the-smile-of-child__button) {
    transition: none;
  }

  .locations-of-the-smile-of-child
  :is(.locations-of-the-smile-of-child__card, .locations-of-the-smile-of-child__button):hover {
    transform: none;
  }
}