/* Weston Dental Center — compact two-level header refresh. */

.westondentist #header {
  background: #f4edff;
  box-shadow: 0 2px 14px rgba(49, 30, 72, 0.1);
}

.admin-bar.westondentist #header {
  top: 32px;
}

.westondentist #header .container-fluid {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-left: clamp(22px, 4vw, 64px);
  padding-right: clamp(22px, 4vw, 64px);
}

/* Utility bar */
.westondentist #header .head-topbar {
  padding: 7px 0;
  background: #d4bc87;
  border-bottom: 1px solid rgba(75, 50, 104, 0.14);
}

.westondentist #header .headtopdetail {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.45vw, 24px);
  min-height: 30px;
}

.westondentist #header .headtopdetail .header-translator,
.westondentist #header .headtopdetail .social-media,
.westondentist #header .headtopdetail .headaddress,
.westondentist #header .headtopdetail .headcall {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.westondentist #header .headtopdetail .social-media {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.westondentist #header .headtopdetail .social-media li {
  margin: 0;
}

.westondentist #header .headtopdetail .social-media li a {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #4b3268;
  font-size: 14px;
  line-height: 1;
}

.westondentist #header .headtopdetail .social-media li a svg {
  width: 14px;
  height: 14px;
  fill: #4b3268;
}

.westondentist #header .headaddress,
.westondentist #header .headcall {
  white-space: nowrap;
}

.westondentist #header .headaddress a,
.westondentist #header .headcall a {
  color: #261b31;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.westondentist #header .headcall a {
  font-weight: 700;
}

.westondentist #header .headaddress a::before,
.westondentist #header .headcall a::before {
  position: static;
  display: inline-block;
  margin-right: 7px;
  color: #4b3268;
  font-size: 13px;
}

.westondentist #header .header-rating {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-left: auto;
  padding: 4px 11px;
  color: #261b31;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(75, 50, 104, 0.18);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(49, 30, 72, 0.1);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.westondentist #header .header-rating:hover {
  color: #4b3268;
  background: #fff;
  transform: translateY(-1px);
}

.westondentist #header .header-rating img {
  display: block;
  width: 49px;
  height: auto;
  object-fit: contain;
}

.westondentist #header .header-rating-title {
  font-weight: 800;
}

.westondentist #header .header-rating-score {
  padding-left: 8px;
  border-left: 1px solid rgba(75, 50, 104, 0.17);
  font-weight: 700;
}

.westondentist #header .header-rating-score .fa-star {
  color: #f4b400;
}

/* Main navigation */
.westondentist #header .header-inner {
  padding: 9px 0;
  background: #f4edff;
}

.westondentist #header .header-inner .translator.mob {
  display: none !important;
}

.westondentist #header .header-main {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.westondentist #header #logo {
  float: none;
  flex: 0 0 108px;
  width: 108px;
  margin: 0;
}

.westondentist #header #logo > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.westondentist #header #logo img {
  display: block;
  width: auto;
  max-width: 104px;
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

.westondentist #header .header-right {
  float: none;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  margin-left: 28px;
}

.westondentist #header .headmenu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.westondentist #header #nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.westondentist #header #nav > li {
  padding-left: clamp(8px, 0.9vw, 15px);
  padding-right: clamp(8px, 0.9vw, 15px);
}

.westondentist #header #nav > li > a {
  color: #4b3268;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 400;
  white-space: nowrap;
}

.westondentist #header .header-inner .headbookbtn {
  flex: 0 0 auto;
  padding-left: clamp(10px, 1.2vw, 18px);
}

.westondentist #header .header-inner .headbookbtn .btn {
  padding: 13px 18px;
  border-radius: 7px;
  box-shadow: 0 4px 11px rgba(75, 50, 104, 0.18);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media only screen and (max-width: 1199.98px) {
  .westondentist #header .headtopdetail {
    gap: 12px;
  }

  .westondentist #header .headaddress a,
  .westondentist #header .headcall a,
  .westondentist #header .header-rating {
    font-size: 11px;
  }

  .westondentist #header .header-rating {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .westondentist #header .header-rating img {
    width: 43px;
  }

  .westondentist #header .header-right {
    margin-left: 18px;
  }

  .westondentist #header #nav > li {
    padding-left: 7px;
    padding-right: 7px;
  }

  .westondentist #header #nav > li > a {
    font-size: 13px;
  }
}

@media only screen and (max-width: 991.98px) {
  .westondentist #header,
  .fixed .westondentist #header {
    position: relative;
  }

  .westondentist #header .headtopdetail {
    flex-wrap: wrap;
  }

  .westondentist #header .headaddress {
    display: none;
  }

  .westondentist #header .header-main {
    min-height: 72px;
  }

  .westondentist #header #logo {
    flex-basis: 82px;
    width: 82px;
  }

  .westondentist #header #logo img {
    max-width: 78px;
    max-height: 68px;
  }

  .westondentist #header .header-right {
    width: auto;
    margin-left: auto;
  }

  .westondentist #header .headmenu {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 10px;
  }

  .westondentist #header #nav {
    display: none;
    top: calc(100% + 9px);
    right: 0;
    width: min(320px, calc(100vw - 30px));
    margin: 0;
    box-shadow: 0 12px 28px rgba(30, 18, 46, 0.24);
  }

  .westondentist #header #nav > li > a,
  .westondentist #header #nav > li > a:hover,
  .westondentist #header #nav > li > a:focus,
  .westondentist #header #nav .submenu > li > a {
    color: #fff;
    font-weight: 400;
  }

  .westondentist #header .header-inner .headbookbtn {
    display: block;
    order: -1;
    padding-left: 0;
  }

  .westondentist #header .header-inner .headbookbtn .btn {
    padding: 10px 13px;
    font-size: 12px;
  }

  .westondentist #header #nav-icon {
    flex: 0 0 30px;
    margin: 0;
  }
}

@media only screen and (max-width: 767.98px) {
  .admin-bar.westondentist #header {
    top: 46px;
  }

  .westondentist #header .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .westondentist #header .headtopdetail {
    display: grid;
    grid-template-columns: 20% 80%;
    align-items: center;
    gap: 0;
    min-height: 34px;
  }

  .westondentist #header .headtopdetail .social-media,
  .westondentist #header .headaddress,
  .westondentist #header .headcall {
    display: none;
  }

  .westondentist #header .headtopdetail .header-translator {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
  }

  .westondentist #header .header-rating {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: clamp(9px, 2.2vw, 11px);
    letter-spacing: -0.01em;
  }

  .westondentist #header .header-rating img {
    width: clamp(34px, 8vw, 43px);
  }

  .westondentist #header .header-rating-score {
    padding-left: 5px;
  }

  .westondentist #header .header-main {
    flex-flow: row nowrap;
    min-height: 68px;
  }

  .westondentist #header #logo {
    flex: 0 0 82px;
    width: 82px !important;
    min-width: 0;
  }

  .westondentist #header .header-right {
    flex: 0 1 auto;
    width: auto;
    margin: 0 0 0 auto !important;
  }

  .westondentist #header .headmenu {
    flex: 0 0 auto;
    gap: 8px;
  }

  .westondentist #header #nav-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .westondentist #header #nav-icon span:nth-child(1) {
    top: 9px;
  }

  .westondentist #header #nav-icon span:nth-child(2),
  .westondentist #header #nav-icon span:nth-child(3) {
    top: 16px;
  }

  .westondentist #header #nav-icon span:nth-child(4) {
    top: 23px;
  }

  .westondentist #header #nav {
    right: 0;
    left: auto;
  }
}

@media only screen and (max-width: 479.98px) {
  .westondentist #header .header-inner {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .westondentist #header .header-main {
    flex-flow: row nowrap;
    min-height: 64px;
  }

  .westondentist #header #logo {
    flex-basis: 70px;
    width: 70px !important;
  }

  .westondentist #header #logo img {
    max-width: 66px;
    max-height: 58px;
  }

  .westondentist #header .header-inner .headbookbtn .btn {
    padding: 9px 9px;
    font-size: 11px;
  }

  .westondentist #header .header-rating {
    gap: 4px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 9px;
  }

  .westondentist #header .header-rating img {
    width: 39px;
  }

  .westondentist #header .header-rating-score {
    padding-left: 6px;
  }
}

/* Google review pendant and rebalanced utility bar. */
@media only screen and (min-width: 992px) {
  .westondentist #container {
    padding-top: 155px !important;
  }

  .westondentist #header .headtopdetail {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: clamp(16px, 1.8vw, 30px);
  }

  .westondentist #header .headtopdetail .headaddress {
    justify-self: center;
  }

  .westondentist #header .headtopdetail .headcall {
    justify-self: end;
  }
}

.westondentist #header .header-rating-pendant {
  position: absolute;
  top: 100%;
  right: clamp(24px, 4vw, 64px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 190px;
  min-height: 132px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
  padding: 16px 16px 31px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #261b31;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  filter: drop-shadow(0 10px 12px rgba(27, 15, 41, 0.28));
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.westondentist #header .header-rating-pendant::before {
  position: absolute;
  inset: 5px 5px 14%;
  z-index: -1;
  border: 1px solid rgba(212, 188, 135, 0.82);
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.westondentist #header .header-rating-pendant:hover,
.westondentist #header .header-rating-pendant:focus-visible {
  color: #4b3268;
  background: #fff;
  transform: translateY(3px);
}

.westondentist #header .header-rating-pendant img {
  width: 76px;
  height: auto;
}

.westondentist #header .header-rating-pendant .header-rating-title {
  width: 100%;
  margin-top: 1px;
  padding-top: 6px;
  border-top: 1px solid rgba(75, 50, 104, 0.17);
  color: #4b3268;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.westondentist #header .header-rating-pendant .header-rating-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border-top: 0;
  border-left: 0;
  line-height: 1;
}

.westondentist #header .header-rating-pendant .header-rating-score strong {
  color: #261b31;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.westondentist #header .header-rating-pendant .header-rating-stars {
  color: #f4b400;
  font-size: 11px;
  letter-spacing: -1px;
}

.westondentist #header .header-rating-pendant .header-rating-reviews {
  color: #261b31;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

@media only screen and (max-width: 991.98px) {
  .westondentist #header .header-rating-pendant {
    right: 18px;
    width: 158px;
    min-height: 116px;
    gap: 5px;
    padding: 12px 12px 27px;
  }

  .westondentist #header .header-rating-pendant img {
    width: 64px;
  }

  .westondentist #header .header-rating-pendant .header-rating-title {
    padding-top: 5px;
    font-size: 9px;
  }

  .westondentist #header .header-rating-pendant .header-rating-score {
    padding: 0;
  }

  .westondentist #header .header-rating-pendant .header-rating-score strong {
    font-size: 22px;
  }

  .westondentist #header .header-rating-pendant .header-rating-stars {
    font-size: 9px;
  }

  .westondentist #header .header-rating-pendant .header-rating-reviews {
    font-size: 10px;
  }
}

@media only screen and (max-width: 767.98px) {
  .westondentist #header .headtopdetail {
    display: flex;
    justify-content: flex-start;
  }

  .westondentist #header .header-rating-pendant {
    right: 12px;
    width: 35vw;
    min-height: 104px;
    gap: 4px;
    padding: 10px 8px 24px;
  }

  .westondentist #header .header-rating-pendant img {
    width: clamp(47px, 14vw, 62px);
  }

  .westondentist #header .header-rating-pendant .header-rating-title {
    font-size: clamp(8px, 2.2vw, 9px);
  }

  .westondentist #header .header-rating-pendant .header-rating-score {
    padding: 0;
  }

  .westondentist #header .header-rating-pendant .header-rating-score strong {
    font-size: clamp(18px, 5.2vw, 22px);
  }

  .westondentist #header .header-rating-pendant .header-rating-stars {
    font-size: clamp(7px, 2vw, 9px);
  }

  .westondentist #header .header-rating-pendant .header-rating-reviews {
    font-size: clamp(8px, 2.2vw, 10px);
  }
}
