/* =========================================================
   HIGHLAND DENTAL CENTER — OFFICE HOURS MODAL
   ========================================================= */

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

.hdc-hours-modal {
  --hdc-hours-ink: #18383c;
  --hdc-hours-text: #243d40;
  --hdc-hours-muted: #60777a;
  --hdc-hours-border: #d8e2e1;
  --hdc-hours-surface: #ffffff;
  --hdc-hours-soft: #f1f6f5;
  --hdc-hours-accent: #416a6d;
  --hdc-hours-emergency: #7b5d4c;
  --hdc-hours-emergency-bg: #f7eee9;

  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px);
  color: var(--hdc-hours-text);
  background: #f7f6f2;
  font-family:
    "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================================================
   INTRO HEADER
   ========================================================= */

.hdc-hours-modal-header {
  margin-bottom: 24px;
}

.hdc-hours-eyebrow,
.hdc-hours-label {
  display: block;
  margin-bottom: 5px;
  color: var(--hdc-hours-accent);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hdc-hours-modal-header h2 {
  margin: 0 0 10px;
  color: var(--hdc-hours-ink);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hdc-hours-modal-header p {
  max-width: 630px;
  margin: 0;
  color: var(--hdc-hours-muted);
  font-size: 1rem;
  line-height: 1.65;
}


/* =========================================================
   SHARED SECTION STYLING
   ========================================================= */

.hdc-hours-section,
.hdc-emergency-card {
  width: 100%;
  border: 1px solid var(--hdc-hours-border);
  border-radius: 24px;
  background: var(--hdc-hours-surface);
  box-shadow: 0 12px 30px rgba(24, 56, 60, 0.07);
}

.hdc-hours-section {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.hdc-hours-section-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.hdc-hours-section-heading > div {
  min-width: 0;
}

.hdc-hours-section-heading h3 {
  margin: 0;
  color: var(--hdc-hours-ink);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hdc-hours-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--hdc-hours-accent);
  background: #e8f0ef;
}

.hdc-hours-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   OFFICE HOURS LIST
   ========================================================= */

.hdc-hours-list {
  margin: 0;
}

.hdc-hours-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.85fr) minmax(180px, 1.15fr);
  column-gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--hdc-hours-border);
}

.hdc-hours-row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.hdc-hours-row:last-child {
  padding-bottom: 3px;
}

.hdc-hours-row dt,
.hdc-hours-row dd {
  margin: 0;
}

.hdc-hours-row dt {
  color: var(--hdc-hours-ink);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.3;
}

.hdc-hours-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  color: #345d60;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.35;
}

.hdc-hours-row time {
  white-space: nowrap;
}

.hdc-hours-row small {
  flex-basis: 100%;
  margin-top: 4px;
  color: var(--hdc-hours-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}


/* =========================================================
   EMERGENCY CARD
   ========================================================= */

.hdc-emergency-card {
  padding: clamp(22px, 4vw, 34px);
  background: var(--hdc-hours-soft);
}

.hdc-emergency-card .hdc-hours-section-heading {
  align-items: start;
  margin-bottom: 18px;
}

.hdc-hours-icon-emergency {
  color: var(--hdc-hours-emergency);
  background: var(--hdc-hours-emergency-bg);
}

.hdc-emergency-card > p {
  margin: 0 0 22px;
  color: #263d40;
  font-size: 1rem;
  line-height: 1.65;
}

.hdc-hours-call-button {
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 20px;
  color: #ffffff;
  background: #365f62;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(32, 76, 79, 0.18);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.hdc-hours-call-button:hover {
  color: #ffffff;
  background: #294e51;
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(32, 76, 79, 0.23);
}

.hdc-hours-call-button:focus-visible {
  outline: 3px solid rgba(54, 95, 98, 0.32);
  outline-offset: 4px;
}

.hdc-hours-call-button svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hdc-hours-call-button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.hdc-hours-call-button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.2;
}

.hdc-hours-call-button strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}


/* =========================================================
   IPHONE / SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {
  .hdc-hours-modal {
    padding: 18px 14px 24px;
  }

  .hdc-hours-modal-header {
    margin-bottom: 18px;
    padding: 0 4px;
  }

  .hdc-hours-modal-header h2 {
    margin-bottom: 8px;
    font-size: 2rem;
  }

  .hdc-hours-modal-header p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .hdc-hours-section,
  .hdc-emergency-card {
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(24, 56, 60, 0.06);
  }

  .hdc-hours-section {
    margin-bottom: 16px;
    padding: 20px 18px;
  }

  .hdc-emergency-card {
    padding: 20px 18px;
  }

  .hdc-hours-section-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 15px;
  }

  .hdc-hours-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .hdc-hours-icon svg {
    width: 24px;
    height: 24px;
  }

  .hdc-hours-eyebrow,
  .hdc-hours-label {
    margin-bottom: 4px;
    font-size: 0.67rem;
    letter-spacing: 0.11em;
  }

  .hdc-hours-section-heading h3 {
    font-size: 1.23rem;
    line-height: 1.18;
  }

  .hdc-hours-row {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 12px;
    padding: 15px 0;
  }

  .hdc-hours-row dt {
    font-size: 0.94rem;
  }

  .hdc-hours-row dd {
    justify-content: flex-start;
    gap: 4px;
    font-size: 0.92rem;
  }

  .hdc-hours-row small {
    margin-top: 3px;
    font-size: 0.72rem;
  }

  .hdc-emergency-card .hdc-hours-section-heading {
    align-items: center;
  }

  .hdc-emergency-card > p {
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .hdc-hours-call-button {
    min-height: 72px;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 17px;
  }

  .hdc-hours-call-button svg {
    width: 27px;
    height: 27px;
  }

  .hdc-hours-call-button small {
    font-size: 0.76rem;
  }

  .hdc-hours-call-button strong {
    font-size: 1.3rem;
  }
}


/* =========================================================
   VERY NARROW IPHONES
   ========================================================= */

@media (max-width: 390px) {
  .hdc-hours-modal {
    padding-inline: 10px;
  }

  .hdc-hours-section,
  .hdc-emergency-card {
    padding-inline: 15px;
  }

  .hdc-hours-row {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 9px;
  }

  .hdc-hours-row dt {
    font-size: 0.89rem;
  }

  .hdc-hours-row dd {
    font-size: 0.86rem;
  }

  .hdc-hours-call-button {
    padding-inline: 14px;
  }

  .hdc-hours-call-button strong {
    font-size: 1.18rem;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hdc-hours-call-button {
    transition: none;
  }
}
