/* ==========================================================================
   EverSmile Dental — Home page design v2  (styling only, content unchanged)
   Direction: calm & minimal — flat colour, 1px borders, generous spacing,
   one accent (teal), orange only for section labels.
   Loaded ONLY by home.blade.php; every rule is scoped to "hv2-".
   Revert: _backups/design-v1-20261127/RESTORE.ps1
   ========================================================================== */

:root {
  --hv2-blue: #165E84;
  --hv2-navy: #0E3B55;
  --hv2-teal: #10C3C8;
  --hv2-teal-dark: #0BA5AA;
  --hv2-orange: #C96B3C;
  --hv2-soft: #F5F8FA;
  --hv2-line: #E4EAEE;
  --hv2-text: #4F5B66;
  --hv2-heading: #13232E;
  --hv2-radius: 12px;
}

/* ---------- rhythm ---------- */
.hv2-section {
  padding: 96px 0;
}

.hv2-bg-soft {
  background: var(--hv2-soft);
}

.hv2-last {
  padding-bottom: 210px; /* room for the footer's overlapping block */
}

.hv2-text {
  color: var(--hv2-text);
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.hv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--title-fonts);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hv2-btn i {
  font-size: 12px;
}

.hv2-btn-primary {
  background: var(--hv2-teal);
  color: #fff;
}

.hv2-btn-primary:hover {
  background: var(--hv2-blue);
  color: #fff;
}

.hv2-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.hv2-btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--hv2-navy);
}

.hv2-btn-outline {
  background: transparent;
  border-color: var(--hv2-blue);
  color: var(--hv2-blue);
}

.hv2-btn-outline:hover {
  background: var(--hv2-blue);
  color: #fff;
}

.hv2-btn-white {
  background: #fff;
  color: var(--hv2-navy);
}

.hv2-btn-white:hover {
  background: var(--hv2-teal);
  color: #fff;
}

/* the theme colours every <span> inside a form red (meant for errors) */
.hv2-btn span,
.pq-applyform .hv2-btn span {
  color: inherit;
}

/* ---------- icon tiles (original icon images) ---------- */
.hv2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--hv2-teal); /* the icon images are white */
  flex: 0 0 auto;
}

.hv2-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hv2-icon-orange {
  background: var(--hv2-orange);
}

.hv2-icon-white {
  background: rgba(255, 255, 255, .14);
}

.hv2-icon-white img {
  filter: brightness(0) invert(1);
}

/* the original duplicate "watermark" icon — kept in the markup, not shown */
.hv2-quick-watermark {
  display: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section.hv2-hero {
  aspect-ratio: auto;
  height: auto;
  min-height: 620px;
  padding: 120px 0 180px;
  background-position: center right;
}

.hv2-hero-overlay {
  background: linear-gradient(90deg, rgba(14, 59, 85, .86) 0%, rgba(14, 59, 85, .62) 45%, rgba(14, 59, 85, .08) 80%);
}

.hero-title.hv2-hero-title {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 34px;
}

.hv2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   QUICK INFO (three columns in one panel, overlapping the hero)
   ========================================================================== */
.hv2-quick {
  position: relative;
  z-index: 3;
  margin-top: -96px;
  padding-top: 0;
  padding-bottom: 0;
}

.hv2-quick .row {
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: var(--hv2-radius);
  margin: 0;
  --bs-gutter-y: 0;
  --bs-gutter-x: 0;
  overflow: hidden;
}

.hv2-quick-card {
  height: 100%;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hv2-line);
  transition: background-color .2s ease;
}

.hv2-quick .row > div:last-child .hv2-quick-card {
  border-right: 0;
}

.hv2-quick-card:hover {
  background: #FBFCFD;
}

.hv2-quick-main {
  display: block;
  flex: 1 1 auto;
}

.hv2-quick-card .hv2-quick-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--hv2-heading);
  margin: 20px 0 10px;
}

.hv2-quick-card .pq-infobox-description {
  color: var(--hv2-text);
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 0;
}

.hv2-quick-call {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hv2-quick-call i {
  color: var(--hv2-orange);
  font-size: 14px;
}

.hv2-quick-call .cpq-call-number {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.hv2-quick-call .cpq-call-number a {
  color: var(--hv2-orange);
}

.hv2-quick-call .cpq-call-number a:hover {
  color: var(--hv2-blue);
}

/* ==========================================================================
   ABOUT + DOCTORS
   ========================================================================== */
.hv2-about-media img {
  width: 100%;
  border-radius: var(--hv2-radius);
}

.hv2-doctors-title {
  margin: 30px 0 14px;
}

.hv2-doctors {
  border-top: 1px solid var(--hv2-line);
}

.hv2-doctor {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hv2-line);
}

.hv2-doctor img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex: 0 0 48px;
}

.hv2-doctor .hv2-doctor-name {
  font-family: var(--title-fonts);
  font-weight: 700;
  font-size: 17px;
  color: var(--hv2-heading);
  text-transform: none;
  letter-spacing: 0;
  transition: color .2s ease;
}

.hv2-doctor-arrow {
  margin-left: auto;
  color: var(--hv2-teal);
  font-size: 14px;
  transition: transform .2s ease;
}

.hv2-doctor:hover .hv2-doctor-name {
  color: var(--hv2-blue);
}

.hv2-doctor:hover .hv2-doctor-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.hv2-service {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: var(--hv2-radius);
  overflow: hidden;
  transition: border-color .2s ease;
}

.hv2-service:hover {
  border-color: var(--hv2-teal);
}

.hv2-service-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hv2-soft);
}

.hv2-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.hv2-service:hover .hv2-service-img img {
  transform: scale(1.04);
}

.hv2-service-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  flex: 1 1 auto;
}

.hv2-service-text {
  flex: 1 1 auto;
}

.hv2-service-body .hv2-service-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A96A0;
  margin-bottom: 4px;
}

.hv2-service-body .hv2-service-title {
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--hv2-heading);
  margin: 0;
  transition: color .2s ease;
}

.hv2-service:hover .hv2-service-title {
  color: var(--hv2-blue);
}

.hv2-service-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hv2-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease;
}

.hv2-service-icon img {
  width: 22px;
}

.hv2-service:hover .hv2-service-icon {
  background: var(--hv2-teal);
  border-color: var(--hv2-teal);
}

.hv2-service:hover .hv2-service-icon img {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   WHY CHOOSE US — numbered editorial list
   ========================================================================== */
.hv2-features {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hv2-why;
  border-top: 1px solid var(--hv2-line);
}

.hv2-feature {
  counter-increment: hv2-why;
  position: relative;
  padding: 22px 0 22px 64px;
  border-bottom: 1px solid var(--hv2-line);
  color: var(--hv2-text);
  font-size: 15px;
  line-height: 26px;
}

.hv2-feature::before {
  content: counter(hv2-why, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--title-fonts);
  font-weight: 700;
  font-size: 22px;
  line-height: 26px;
  color: var(--hv2-teal);
}

.hv2-feature .why-choose-font {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: var(--hv2-heading);
  margin: 0 0 6px;
}

/* the original arrow icon inside the heading: replaced by the number */
.hv2-feature .why-choose-font i {
  display: none;
}

.hv2-why-media img {
  width: 100%;
  border-radius: var(--hv2-radius);
}

/* ==========================================================================
   MEMBERSHIP + PAYMENT — one solid, one outlined
   ========================================================================== */
.hv2-plan {
  height: 100%;
  border-radius: var(--hv2-radius);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
}

.hv2-plan-main {
  display: block;
  flex: 1 1 auto;
}

.hv2-plan .hv2-plan-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  margin: 22px 0 12px;
}

.hv2-plan .pq-infobox-description {
  font-size: 16px;
  line-height: 27px;
}

.hv2-plan .hv2-btn {
  margin-top: 22px;
  align-self: flex-start;
}

/* solid */
.hv2-plan-teal {
  background: var(--hv2-navy);
}

.hv2-plan-teal .hv2-plan-main,
.hv2-plan-teal .hv2-plan-title {
  color: #fff;
}

.hv2-plan-teal .pq-infobox-description {
  color: rgba(255, 255, 255, .82);
}

/* outlined */
.hv2-plan-blue {
  background: #fff;
  border: 1px solid var(--hv2-line);
}

.hv2-plan-blue .hv2-icon-white {
  background: var(--hv2-teal);
}

.hv2-plan-blue .hv2-icon-white img {
  filter: none;
}

.hv2-plan-blue .hv2-plan-title {
  color: var(--hv2-heading);
}

.hv2-plan-blue .pq-infobox-description {
  color: var(--hv2-text);
}

.hv2-plan .hv2-finance-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 20px 0 0;
  border-top: 1px solid var(--hv2-line);
  background: transparent;
  text-align: left;
}

.hv2-finance-logos img {
  height: 38px;
  width: auto;
}

/* ==========================================================================
   APPOINTMENT — heading + form on white, photo on a solid panel
   ========================================================================== */
.hv2-appt {
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: 16px;
  overflow: hidden;
}

.hv2-appt-main {
  height: 100%;
  padding: 56px 56px 48px;
}

/* heading sits on white here, so it is blue (italic font kept, item 10) */
body .hv2-appt-main .pq-section.pq-style-1 .pq-section-title.pq-appointment-title {
  color: var(--hv2-navy) !important;
  font-size: 30px;
  line-height: 40px;
  max-width: 560px;
}

/* let the heading wrap naturally instead of the forced line break */
.hv2-appt-main .pq-appointment-title br {
  display: none;
}

.hv2-appt-form {
  margin-top: 34px;
}

.hv2-appt-form input.pq-bg-transparent {
  background: #fff;
  border: 1px solid #D5DEE4;
  border-radius: 8px;
  color: var(--hv2-heading);
  height: 54px;
  padding: 0 16px;
  margin-bottom: 18px;
}

.hv2-appt-form input.pq-bg-transparent::placeholder {
  color: #8A96A0;
}

.hv2-appt-form input.pq-bg-transparent:focus {
  border-color: var(--hv2-teal);
  box-shadow: 0 0 0 3px rgba(16, 195, 200, .15);
}

.hv2-appt-form .form-btn {
  margin-top: 6px;
  padding: 17px 34px;
}

.hv2-appt-visual {
  position: relative;
  height: 100%;
  min-height: 100%;
  background: var(--hv2-blue);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* one quiet shape behind the photo */
.hv2-appt-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
}

.hv2-appt-img {
  position: relative;
  max-height: 440px;
  width: auto;
  object-fit: contain;
  margin-top: 40px;
}

/* ==========================================================================
   REVIEWS — tone the cards down to match
   ========================================================================== */
.testimonial.hv2-section .es-review-card {
  box-shadow: none;
  border-color: var(--hv2-line);
  border-radius: var(--hv2-radius);
}

.testimonial.hv2-section .es-review-card:hover {
  box-shadow: none;
  border-color: #CBD6DD;
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.hv2-blog {
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: var(--hv2-radius);
  overflow: hidden;
  margin: 4px 1px 10px;
  transition: border-color .2s ease;
}

.hv2-blog:hover {
  border-color: var(--hv2-teal);
}

.hv2-blog-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hv2-soft);
}

.owl-carousel .owl-item .hv2-blog-img img,
.hv2-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.hv2-blog:hover .hv2-blog-img img {
  transform: scale(1.04);
}

.hv2-blog-date {
  position: absolute;
  left: 14px;
  bottom: 14px;
}

.hv2-blog-date a {
  display: inline-block;
  background: #fff;
  color: var(--hv2-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}

.hv2-blog-body {
  padding: 22px 24px 24px;
}

.hv2-blog-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  color: #8A96A0;
}

.hv2-blog-meta i {
  color: var(--hv2-teal);
  margin-right: 5px;
}

.hv2-blog .hv2-blog-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 52px;
}

.hv2-blog-title a {
  color: var(--hv2-heading);
}

.hv2-blog-title a:hover {
  color: var(--hv2-blue);
}

.hv2-blog-excerpt p {
  color: var(--hv2-text);
  font-size: 15px;
  line-height: 25px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 75px;
}

.hv2-blog-more {
  font-family: var(--title-fonts);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hv2-teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hv2-blog-more:hover {
  color: var(--hv2-blue);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
  .hv2-section {
    padding: 80px 0;
  }
  .hv2-appt-main {
    padding: 44px 40px;
  }
}

@media (max-width: 991px) {
  .hero-section.hv2-hero {
    min-height: 0;
    padding: 90px 0 150px;
    background-position: 70% center;
  }
  .hv2-hero-overlay {
    background: rgba(14, 59, 85, .78);
  }
  .hv2-section {
    padding: 64px 0;
  }
  .hv2-last {
    padding-bottom: 180px;
  }
  .hv2-quick-card {
    border-right: 0;
    border-bottom: 1px solid var(--hv2-line);
  }
  .hv2-quick .row > div:last-child .hv2-quick-card {
    border-bottom: 0;
  }
  .hv2-appt-visual {
    min-height: 320px;
  }
  .hv2-appt-img {
    max-height: 320px;
  }
}

@media (max-width: 767px) {
  .hero-section.hv2-hero {
    height: auto;
    padding: 64px 0 130px;
  }
  .hero-title.hv2-hero-title {
    font-size: 32px;
    line-height: 1.15;
  }
  .hv2-hero-actions .hv2-btn {
    width: 100%;
  }
  .hv2-quick {
    margin-top: -80px;
  }
  .hv2-quick-card {
    padding: 28px 24px;
  }
  .hv2-feature {
    padding-left: 52px;
  }
  .hv2-plan {
    padding: 30px 24px;
  }
  .hv2-appt-main {
    padding: 32px 22px;
  }
  body .hv2-appt-main .pq-section.pq-style-1 .pq-section-title.pq-appointment-title {
    font-size: 24px;
    line-height: 33px;
  }
  .hv2-appt-form .form-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-section.hv2-hero {
    height: auto;
    min-height: 0;
  }
}
