/* Howe Dental - Footer (Elementor Pro Theme Builder footer, Entire Site).
   Markup: Elementor containers/widgets with the hd-ft__* classes from the design's Template: Footer
   (Image, Text Editor, Button, Icon, Heading, Icon List). This file covers layout, typography,
   colors, hover/focus states and the design's breakpoints (1199 / 991 / 767 / 479).
   Fonts (Urbanist, Instrument Sans) are enqueued together with this file in functions.php. */

.hd-ft-block {
  --hd-cyan:      #01BCD6;
  --hd-cyan-soft: #5FE0F0;
  --hd-cyan-deep: #0097AC;
  --hd-ink:       #14203A;
  --hd-font-head: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --hd-font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --hd-max:       1200px;
  --hd-gutter:    30px;
  --hd-ease:      cubic-bezier(.22, .8, .24, 1);

  --kit-widget-spacing: 0px;
  --widgets-spacing: 0px;
  position: relative;
  font-family: var(--hd-font-body);
}
.hd-ft-block, .hd-ft-block *, .hd-ft-block *::before, .hd-ft-block *::after { box-sizing: border-box; }
.hd-ft-block .elementor-widget,
.hd-ft-block .e-con .elementor-widget.elementor-widget { margin: 0; }
.hd-ft-block p { margin: 0; }
.hd-ft-block ul { margin: 0; padding: 0; list-style: none; }
.hd-ft-block a { color: inherit; text-decoration: none; box-shadow: none; }
.hd-ft-block img, .hd-ft-block svg { display: block; }

.hd-ft-block .hd-ft {
  display: block;
  position: relative;
  padding: 84px 0 56px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0B4D69 0%, #0E6386 55%, #127FA3 100%);
  color: #FFFFFF;
  font-family: var(--hd-font-body);
}
.hd-ft-block .hd-ft::before {
  content: "";
  position: absolute;
  right: -240px;
  top: -300px;
  z-index: -1;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 188, 214, .4) 0%, rgba(1, 188, 214, 0) 68%);
  pointer-events: none;
}
.hd-ft-block .hd-ft__container {
  display: block;
  width: 100%;
  max-width: calc(var(--hd-max) + var(--hd-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--hd-gutter);
}

/* -- Top: logo + tagline | Book Online + socials -- */
.hd-ft-block .hd-ft__top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.hd-ft-block .hd-ft__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: auto;
  max-width: 440px;
}
.hd-ft-block .hd-ft__brand > .elementor-element { width: 100%; }

.hd-ft-block .hd-ft .hd-ft__logo { width: 230px; max-width: 100%; line-height: 0; text-align: start; }
.hd-ft-block .hd-ft__logo a { display: block; line-height: 0; }
.hd-ft-block .hd-ft__logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hd-ft-block .hd-ft__logo a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; border-radius: 6px; }

.hd-ft-block .hd-ft__tagline,
.hd-ft-block .hd-ft__tagline p {
  font-family: var(--hd-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}

.hd-ft-block .hd-ft__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  width: auto;
}
.hd-ft-block .hd-ft__actions > .elementor-element { width: auto; flex: 0 0 auto; }

/* Book Online: Button widget, SVG icon before the text */
.hd-ft-block .hd-ft__btn .elementor-button {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--hd-cyan);
  font-family: var(--hd-font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  color: var(--hd-ink);
  fill: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 18px 36px -16px rgba(1, 30, 45, .6);
  transition: background-color .3s ease, transform .35s var(--hd-ease);
}
.hd-ft-block .hd-ft__btn .elementor-button:hover { background: var(--hd-cyan-soft); color: var(--hd-ink); transform: translateY(-2px); }
.hd-ft-block .hd-ft__btn .elementor-button-content-wrapper { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.hd-ft-block .hd-ft__btn .elementor-button-icon { display: block; margin: 0; font-size: 20px; line-height: 0; }
.hd-ft-block .hd-ft__btn .elementor-button-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }

/* Instagram / Facebook: Icon widgets */
.hd-ft-block .hd-ft__social .elementor-icon-wrapper { line-height: 0; }
.hd-ft-block .hd-ft__social .elementor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset;
  font-size: 23px;
  color: #FFFFFF;
  fill: none;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .35s var(--hd-ease);
}
.hd-ft-block .hd-ft__social .elementor-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; }
.hd-ft-block .hd-ft__social .elementor-icon:hover { background: #FFFFFF; color: var(--hd-cyan-deep); box-shadow: none; transform: translateY(-2px); }

.hd-ft-block .hd-ft__btn .elementor-button:focus-visible,
.hd-ft-block .hd-ft__social .elementor-icon:focus-visible,
.hd-ft-block .hd-ft__list a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 8px; }
.hd-ft-block .hd-ft__social .elementor-icon:focus-visible { border-radius: 50%; }

/* -- Columns -- */
.hd-ft-block .hd-ft__cols {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 40px;
  padding-top: 48px;
}
.hd-ft-block .hd-ft__col { display: block; min-width: 0; width: auto; }

/* Column titles (beats Elementor's ".e-con .elementor-widget.elementor-widget { margin-block-end: 0 }") */
.hd-ft-block .hd-ft .hd-ft__col-title.elementor-widget { margin-block-end: 18px; }
.hd-ft-block .hd-ft__col-title .elementor-heading-title {
  margin: 0;
  font-family: var(--hd-font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hd-cyan-soft);
}
.hd-ft-block .hd-ft__col-title .elementor-heading-title a { display: inline-block; color: inherit; transition: color .3s ease; }
.hd-ft-block .hd-ft__col-title .elementor-heading-title a:hover { color: #FFFFFF; }
.hd-ft-block .hd-ft__col-title .elementor-heading-title a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 8px; }

/* Icon Lists: reset Elementor defaults */
.hd-ft-block .hd-ft .elementor-icon-list-items { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.hd-ft-block .hd-ft .elementor-icon-list-item {
  margin: 0;
  padding: 0;
  font-family: var(--hd-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
.hd-ft-block .hd-ft .elementor-icon-list-item::after { display: none; }
.hd-ft-block .hd-ft .elementor-icon-list-text { padding: 0; font: inherit; color: inherit; }

/* About / Services / Insurance */
.hd-ft-block .hd-ft__list .elementor-icon-list-items { gap: 12px; }
.hd-ft-block .hd-ft__list .elementor-icon-list-item { display: block; color: rgba(255, 255, 255, .82); }
.hd-ft-block .hd-ft__list .elementor-icon-list-item > a {
  display: inline-block;
  color: inherit;
  transition: color .25s ease, transform .3s var(--hd-ease);
}
.hd-ft-block .hd-ft__list .elementor-icon-list-item > a:hover { color: #FFFFFF; transform: translateX(3px); }

/* Contact Us: two Icon Lists with the Get Directions button between them */
.hd-ft-block .hd-ft__col--contact { display: flex; flex-direction: column; gap: 14px; }
.hd-ft-block .hd-ft .hd-ft__col--contact > .hd-ft__col-title.elementor-widget { margin-block-end: 4px; }
.hd-ft-block .hd-ft__col--contact > .elementor-element { width: 100%; }
.hd-ft-block .hd-ft__contact .elementor-icon-list-items { gap: 14px; }
.hd-ft-block .hd-ft__contact .elementor-icon-list-item { display: block; color: rgba(255, 255, 255, .88); }
.hd-ft-block .hd-ft__contact .elementor-icon-list-item > a,
.hd-ft-block .hd-ft__contact .elementor-icon-list-item:not(:has(> a)) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hd-ft-block .hd-ft__contact .elementor-icon-list-item > a { width: 100%; color: inherit; transition: color .25s ease; }
.hd-ft-block .hd-ft__contact .elementor-icon-list-item > a:hover { color: #FFFFFF; }
.hd-ft-block .hd-ft__contact .elementor-icon-list-item > a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 8px; }
.hd-ft-block .hd-ft__contact .elementor-icon-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: -5px 0 0;
  padding: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset;
  color: var(--hd-cyan-soft);
}
.hd-ft-block .hd-ft__contact .elementor-icon-list-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  --e-icon-list-icon-size: 18px;
}
.hd-ft-block .hd-ft__contact .elementor-icon-list-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* Opening hours: one Icon List item, spans laid out as a 2-column grid */
.hd-ft-block .hd-ft__hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 22px; }
/* Blog pages load Elementor Pro widget-post-info.css: `.elementor-icon-list-text span {display:inline}` (0,3,1) beats the rule above */
.hd-ft-block .elementor-icon-list-item .elementor-icon-list-text span.hd-ft__hours { display: grid; }
.hd-ft-block .hd-ft__day { white-space: nowrap; }
.hd-ft-block .hd-ft__time { color: rgba(255, 255, 255, .7); text-align: left; white-space: nowrap; }

/* Get Directions: Button widget, arrow after the text */
.hd-ft-block .hd-ft .hd-ft__dir.elementor-widget { margin: -6px 0 2px 46px; width: auto; align-self: flex-start; }
/* Block wrapper + inline-flex button = taller line box; flex keeps the widget as tall as the button. */
.hd-ft-block .hd-ft__dir .elementor-button-wrapper,
.hd-ft-block .hd-ft__btn .elementor-button-wrapper { display: flex; }
.hd-ft-block .hd-ft__dir .elementor-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--hd-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  text-transform: none;
  color: var(--hd-cyan-soft);
  fill: none;
  transition: color .25s ease;
}
.hd-ft-block .hd-ft__dir .elementor-button:hover { background: none; color: #FFFFFF; }
.hd-ft-block .hd-ft__dir .elementor-button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 6px; }
.hd-ft-block .hd-ft__dir .elementor-button-content-wrapper { display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; }
.hd-ft-block .hd-ft__dir .elementor-button-icon { display: block; margin: 0; font-size: 16px; line-height: 0; }
.hd-ft-block .hd-ft__dir .elementor-button-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; transition: transform .3s var(--hd-ease); }
.hd-ft-block .hd-ft__dir .elementor-button:hover svg { transform: translate(2px, -2px); }

/* Reveal on scroll (hd-footer.js adds .is-ready to .hd-ft-block and .is-in to each .hd-ft__reveal) */
.hd-ft-block.is-ready .hd-ft__reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform 1s var(--hd-ease);
}
.hd-ft-block.is-ready .hd-ft__reveal.is-in { opacity: 1; transform: none; }

/* -- Breakpoints (from the design) -- */
@media screen and (max-width: 1199px) {
  .hd-ft-block .hd-ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media screen and (max-width: 991px) {
  .hd-ft-block .hd-ft { padding: 72px 0 48px; }
  .hd-ft-block .hd-ft__top { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media screen and (max-width: 767px) {
  .hd-ft-block .hd-ft { padding: 64px 0 128px; }
  .hd-ft-block .hd-ft__top { padding-bottom: 36px; }
  .hd-ft-block .hd-ft__cols { padding-top: 40px; gap: 36px 24px; }
  .hd-ft-block .hd-ft__hours { grid-template-columns: 1fr; gap: 0; }
  .hd-ft-block .hd-ft__time { margin-bottom: 6px; }
}
@media screen and (max-width: 479px) {
  .hd-ft-block { --hd-gutter: 20px; }
  .hd-ft-block .hd-ft { padding: 56px 0 116px; }
  .hd-ft-block .hd-ft .hd-ft__logo { width: 200px; }
  .hd-ft-block .hd-ft__actions { width: 100%; }
  .hd-ft-block .hd-ft__actions > .hd-ft__btn { flex: 1 1 auto; }
  .hd-ft-block .hd-ft__btn .elementor-button { display: flex; justify-content: center; width: 100%; padding: 0 18px; font-size: 16px; }
  .hd-ft-block .hd-ft__social .elementor-icon { width: 52px; height: 52px; }
  .hd-ft-block .hd-ft__cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-ft-block *, .hd-ft-block *::before, .hd-ft-block *::after { transition-duration: .01ms !important; }
  .hd-ft-block.is-ready .hd-ft__reveal { opacity: 1; transform: none; }
}
