/* Pregled: shared Elite Dent layout and colour system, scoped to this route. */
.ed-overview .overview {
  --overview-green: #4f7628;
  color: var(--ink);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.ed-overview .overview-shell {
  width: calc(100% - var(--safe) - var(--safe));
  max-width: var(--ui-content-max, 1344px);
  margin-inline: auto;
  min-width: 0;
}
.ed-overview .overview :is(h1, h2, h3) {
  color: var(--ink);
  font-family: Merriweather, Georgia, serif;
  font-weight: 400;
  overflow-wrap: break-word;
}
.ed-overview .overview h2 { margin: 0 0 24px; font-size: var(--ui-section-title); line-height: 1.3; }
.ed-overview .overview h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.35; }
.ed-overview .overview :is(p, address) { font-size: 16px; line-height: 1.6; }
.ed-overview .overview p { margin: 0 0 20px; }
.ed-overview .overview a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ed-overview .overview a:not(.btn) { color: var(--overview-green); }
.ed-overview .overview :is(a, summary):focus-visible { outline: 2px solid var(--overview-green); outline-offset: 5px; }

/* Reuse the exact light photographic treatment from the other page headers. */
.ed-overview .overview-head { position: relative; overflow: hidden; text-align: center; padding: 140px 0 54px; }
.ed-overview .overview-head .eyebrow { margin: 0 0 16px; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ed-overview .overview-head .eyebrow::after { content: ""; display: block; width: 90px; height: 4px; margin: 14px auto 0; background: url('/assets/line.svg') center / contain no-repeat; }
.ed-overview .overview-head h1 { margin: 0 0 16px; font-size: clamp(38px, 4vw, 56px); line-height: 1.2; }
.ed-overview .overview-head .intro { max-width: 780px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.ed-overview .overview-jump { background: #fff; border-bottom: 1px solid var(--border); }
.ed-overview .jump-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px 0; margin: 0; }
.ed-overview .jump-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; color: var(--ink); background: #f3f6ef; border: 1px solid #e4eadc; border-radius: 999px; font-size: 14px; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.ed-overview .jump-links a:is(:hover, :focus-visible) { color: #fff; background: var(--overview-green); transform: translateY(-1px); }
.ed-overview .overview > section { padding-block: var(--ui-section-space); scroll-margin-top: 120px; }
.ed-overview #services h2::after,
.ed-overview #prices h2::after { content: ""; display: inline-block; width: 90px; height: 4px; margin: 0 0 7px 22px; background: url('/assets/line.svg') center / contain no-repeat; }

.ed-overview .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ed-overview .service-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: box-shadow .3s ease, transform .3s ease; }
.ed-overview .overview-service-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 16px; background: #f0f5e9; }
.ed-overview .overview-service-icon::before { content: ""; width: 46px; height: 46px; background: var(--overview-green); -webkit-mask: var(--service-icon) center / contain no-repeat; mask: var(--service-icon) center / contain no-repeat; }
.ed-overview .overview .service-grid h3 a { color: var(--ink); text-decoration: none; }
.ed-overview .service-grid p { color: var(--ink-soft); margin-bottom: 20px; }
.ed-overview .service-detail { margin-top: auto; font-size: 15px; font-weight: 700; text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .ed-overview .service-grid article:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(37, 57, 23, .18); }
  .ed-overview .overview .service-grid article:hover h3 a { color: var(--overview-green); }
}

.ed-overview #prices { background: #f5f5f5; }
.ed-overview #prices .overview-shell > p { max-width: 880px; color: var(--ink-soft); }
.ed-overview #prices .overview-shell > p:has(a) { margin-bottom: 32px; }
.ed-overview #prices .overview-shell > p a { font-weight: 700; text-decoration: underline; }
.ed-overview .price-group { margin: 0 0 12px; padding: 0 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.ed-overview .price-group:last-child { margin-bottom: 0; }
.ed-overview .price-group summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.5; }
.ed-overview .price-group summary::-webkit-details-marker { display: none; }
.ed-overview .price-group summary::after { content: ""; flex: 0 0 8px; height: 8px; margin-right: 4px; border: solid var(--overview-green); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .25s ease; }
.ed-overview .price-group[open] summary::after { transform: rotate(225deg); }
.ed-overview .price-group[open] summary { color: var(--overview-green); }
.ed-overview .price-section { padding-bottom: 20px; }
.ed-overview .price-table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ed-overview .price-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.ed-overview .price-table :is(th, td) { padding: 14px 18px; text-align: left; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ed-overview .price-table thead { background: linear-gradient(110deg, #4f7628, #3f6123); color: #fff; }
.ed-overview .price-table th { font-weight: 600; }
.ed-overview .price-table th:last-child { width: 26%; }
.ed-overview .price-table :is(th, td):last-child { text-align: right; }
.ed-overview .price-table td { border-top: 1px solid var(--border); vertical-align: top; }
.ed-overview .price-table td.price { color: var(--overview-green); font-weight: 700; }
.ed-overview .price-table tbody tr:nth-child(even) { background: #f8faf6; }

.ed-overview .overview-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: var(--ui-section-space); }
.ed-overview .overview-proof section { min-width: 0; padding: 32px; background: linear-gradient(135deg, #f0f3ed, #f8f9f7); border: 1px solid #e4e8df; border-radius: var(--radius-card); scroll-margin-top: 120px; }
.ed-overview .overview-proof p { color: var(--ink-soft); }
.ed-overview .overview-proof a { font-weight: 600; text-decoration: underline; }

.ed-overview #enquiry { background: linear-gradient(110deg, #4f7628, #466d25 55%, #3f6123); color: #fff; }
.ed-overview #enquiry :is(h2, h3, a:not(.btn)) { color: #fff; }
.ed-overview #enquiry h2 { margin-bottom: 16px; }
.ed-overview #enquiry h3 { font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 700; }
.ed-overview #enquiry a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(255,255,255,.7); }
.ed-overview #enquiry :is(a, summary):focus-visible { outline-color: #fff; }
.ed-overview .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.ed-overview .contact-actions .btn { min-height: 52px; height: auto; padding: 14px 28px; background: linear-gradient(180deg, #fff, #f0f2f0); color: var(--ink); box-shadow: 0 8px 20px rgba(24,40,14,.18), 0 2px 5px rgba(24,40,14,.08); font-weight: 700; font-size: 16px; line-height: 1.5; text-align: center; white-space: normal; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ed-overview .contact-actions .btn:is(:hover, :focus-visible) { transform: translateY(-1px); background: linear-gradient(180deg, #fff, #f0f2f0); color: var(--ink); box-shadow: 0 10px 24px rgba(24,40,14,.22); }
.ed-overview .contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.ed-overview .contact-details address { font-style: normal; }
.ed-overview .contact-details p { margin: 4px 0 0; }

@media (min-width: 761px) and (max-width: 1024px) {
  .ed-overview .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ed-overview .overview-shell { width: calc(100% - 32px); }
  .ed-overview .overview-head { padding: 108px 0 32px; }
  .ed-overview .overview-head h1 { font-size: clamp(30px, 8vw, 38px); }
  .ed-overview .overview-head .eyebrow { font-size: 13px; margin-bottom: 14px; }
  .ed-overview .overview-head .intro { font-size: 16px; }
  .ed-overview .overview-jump .overview-shell { width: 100%; }
  .ed-overview .jump-links { flex-wrap: nowrap; overflow-x: auto; padding: 16px; scroll-padding-inline: 16px; scrollbar-width: thin; }
  .ed-overview .jump-links a { flex: 0 0 auto; padding-inline: 16px; }
  .ed-overview .overview > section, .ed-overview .overview-proof section { scroll-margin-top: 96px; }
  .ed-overview .overview h2 { margin-bottom: 24px; }
  .ed-overview #services h2::after, .ed-overview #prices h2::after { width: 60px; margin-left: 14px; margin-bottom: 5px; }
  .ed-overview #prices h2::after { display: block; width: 90px; margin: 14px 0 0; }
  .ed-overview .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .ed-overview .service-grid article { padding: 24px; }
  .ed-overview .service-grid h3 { font-size: 22px; }
  .ed-overview .overview-service-icon { margin-bottom: 16px; }
  .ed-overview .service-grid p { margin-bottom: 16px; }
  .ed-overview .price-group { padding-inline: 16px; }
  .ed-overview .price-group summary { font-size: 16px; gap: 16px; }
  .ed-overview .price-table :is(th, td) { padding: 12px 10px; font-size: 14px; }
  .ed-overview .price-table th:last-child { width: 35%; }
  .ed-overview .overview-proof { grid-template-columns: 1fr; gap: 16px; }
  .ed-overview .overview-proof section { padding: 24px; }
  .ed-overview .contact-actions { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 24px; }
  .ed-overview .contact-actions .btn { width: 100%; }
  .ed-overview .contact-details { grid-template-columns: 1fr; margin-top: 28px; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-overview .overview :is(article, a, summary::after) { transition: none; }
  .ed-overview .overview article:hover, .ed-overview .overview a:is(:hover, :focus-visible) { transform: none; }
}

/* Allow confirmed price descriptions to wrap within narrow screens. */
body.ed-overview .overview .price-table tbody td.price { white-space: normal; overflow-wrap: anywhere; }
