/* =========================================================================
   Dr Beigomi — brand layer on top of Impreza

   Colours, type and spacing come from Theme Options (set by the site kit);
   this file only adds what Theme Options cannot express: illustrations,
   card treatments, the highlighted-word swash, and accessibility helpers.
   Class hooks are attached in the builder with `el_class="drb-…"`.
   ========================================================================= */

:root {
  --drb-teal: #0F6E6E;
  --drb-teal-dark: #0B5550;
  --drb-ink: #12352F;
  --drb-amber: #F4A72C;
  --drb-amber-soft: #FFF4DE;
  --drb-cream: #FFFCF7;
  --drb-mint: #EEF6F3;
  --drb-coral: #E4572E;
  --drb-green: #6BAA75;
  --drb-radius: 24px;
  --drb-shadow: 0 1px 2px rgba(18, 53, 47, .05), 0 12px 32px -12px rgba(18, 53, 47, .18);
  --drb-shadow-lg: 0 2px 4px rgba(18, 53, 47, .05), 0 24px 48px -16px rgba(18, 53, 47, .28);

  /* The plugin's forms use the site font, not their own fallback. */
  --pgc-font: "AzarMehr FD", Tahoma, sans-serif;
}

/* One step larger text for everyone who asks for it (header A+ toggle). */
/* Impreza pins the root size to its own --font-size variable (18px), so the
   toggle must raise that variable — every rem-based size then follows. */
html.drb-lg { --font-size: 21px; font-size: 21px !important; }
html.drb-lg body { font-size: 21px; }

::selection { background: var(--drb-amber); color: #2B1D00; }

:focus-visible {
  outline: 3px solid var(--drb-amber) !important;
  outline-offset: 3px;
  border-radius: 6px;
}

img, svg { max-width: 100%; }

/* ----------------------------------------------------------------- header */

/* Brand name + sub-line beside the logo: the wrappers inherit the body
   line-height, which pushed the two lines far apart. Sizes are in px so the
   A+ toggle does not resize the header. */
.l-header .w-vwrapper.drb-brand { gap: 0 !important; justify-content: center; }
.l-header .w-vwrapper.drb-brand > .w-text { line-height: 1 !important; margin: 0 !important; }
.l-header .w-text.drb-brand-name .w-text-value { font-weight: 800; font-size: 24px; color: var(--drb-ink); line-height: 1.25; }
.l-header .w-text.drb-brand-sub .w-text-value { font-size: 13px; color: var(--drb-teal); font-weight: 500; letter-spacing: 0; line-height: 1.4; }

.drb-textsize {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1.5px solid rgba(15, 110, 110, .25);
  background: #fff;
  color: var(--drb-teal);
  font: 800 1rem/1 inherit;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.drb-textsize:hover { border-color: var(--drb-teal); }
.drb-textsize[aria-pressed="true"] { background: var(--drb-teal); color: #fff; border-color: var(--drb-teal); }

/* ------------------------------------------------------------------- hero */

.drb-hero { position: relative; overflow: hidden; }
.drb-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/pattern.svg") repeat;
  background-size: 220px;
  opacity: .45;
  pointer-events: none;
}
.drb-hero .l-section-h { position: relative; }

.drb-hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(transparent 62%, rgba(244, 167, 44, .45) 62%, rgba(244, 167, 44, .45) 92%, transparent 92%);
  padding: 0 .12em;
}

.drb-kicker .w-text-value,
.drb-kicker {
  display: inline-block;
}
.w-text.drb-kicker {
  background: var(--drb-amber-soft);
  color: #8A5A00;
  border-radius: 999px;
  padding: .25em 1em;
  font-weight: 700;
  font-size: .9rem;
}
.w-text.drb-kicker.on-dark { background: rgba(244, 167, 44, .18); color: #FFD28A; }

.drb-illus img, .drb-illus svg { display: block; width: 100%; height: auto; }
.drb-illus.float img { animation: drb-float 7s ease-in-out infinite; }
@keyframes drb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.drb-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.drb-trust li { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--drb-ink); font-weight: 600; font-size: .95rem; }
.drb-trust li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--drb-green); box-shadow: 0 0 0 4px rgba(107, 170, 117, .2); }

/* ------------------------------------------------------------------ cards */

.drb-card > .vc_column-inner,
.w-iconbox.drb-card {
  background: #fff;
  border: 1px solid rgba(18, 53, 47, .07);
  border-radius: var(--drb-radius);
  box-shadow: var(--drb-shadow);
  padding: 1.8rem 1.6rem !important;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.drb-card:hover > .vc_column-inner,
.w-iconbox.drb-card:hover { transform: translateY(-4px); box-shadow: var(--drb-shadow-lg); border-color: rgba(15, 110, 110, .18); }

/* Service tiles: a coloured icon well that changes hue per tile. */
.w-iconbox.drb-service .w-iconbox-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--drb-mint); color: var(--drb-teal);
  font-size: 1.6rem !important;
  margin-bottom: 1rem;
}
.w-iconbox.drb-service.tone-amber .w-iconbox-icon { background: #FFF1D6; color: #B86E00; }
.w-iconbox.drb-service.tone-coral .w-iconbox-icon { background: #FDE8E1; color: #C2410C; }
.w-iconbox.drb-service.tone-green .w-iconbox-icon { background: #E8F6EA; color: #2F7D5B; }
.w-iconbox.drb-service.tone-violet .w-iconbox-icon { background: #F1EAFE; color: #6D3FC0; }
.w-iconbox.drb-service.tone-blue .w-iconbox-icon { background: #E6F0FD; color: #2E5FC4; }
.w-iconbox.drb-service .w-iconbox-title { font-weight: 800; }
.w-iconbox.drb-service .w-iconbox-text { color: #4B5C58; font-size: .95rem; line-height: 1.85; }
.w-iconbox.drb-service.w-iconbox-link .w-iconbox-title::after,
a.w-iconbox-link .drb-more { color: var(--drb-teal); }

.drb-more { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; color: var(--drb-teal); margin-top: .4rem; }
.drb-more::after { content: "←"; transition: transform .2s; }
.w-iconbox:hover .drb-more::after { transform: translateX(-4px); }

/* Four dimensions */
.w-iconbox.drb-dim { text-align: center; }
.w-iconbox.drb-dim .w-iconbox-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.8rem !important; }

/* Numbered steps */
.drb-step { position: relative; }
.drb-step .drb-num {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--drb-teal); color: #fff;
  font-weight: 900; font-size: 1.4rem;
  box-shadow: 0 10px 20px -10px var(--drb-teal);
  margin-bottom: .8rem;
}
.drb-step:nth-child(2) .drb-num { background: var(--drb-amber); color: #2B1D00; box-shadow: 0 10px 20px -10px var(--drb-amber); }
.drb-step:nth-child(3) .drb-num { background: var(--drb-green); box-shadow: 0 10px 20px -10px var(--drb-green); }

/* Stats on the dark band */
.drb-stats .w-counter-value { font-weight: 900; }

/* Quote / highlight box */
.drb-quote > .vc_column-inner {
  background: linear-gradient(135deg, #fff, var(--drb-amber-soft));
  border-radius: var(--drb-radius);
  border-right: 6px solid var(--drb-amber);
  padding: 2rem 2rem !important;
}

/* Check list inside rich text */
.drb-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.drb-checks li { position: relative; padding-right: 2.1rem; margin: 0; line-height: 1.8; }
.drb-checks li::before {
  content: "✓";
  position: absolute; right: 0; top: .15em;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--drb-mint); color: var(--drb-teal);
  font-weight: 900; font-size: .85rem;
}
.drb-checks.two-cols ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 2rem; }

/* Chips row (who is it for) */
.drb-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.drb-chips span {
  background: #fff; border: 1.5px solid rgba(15, 110, 110, .18);
  color: var(--drb-ink); border-radius: 999px; padding: .35em 1.1em; font-weight: 600; font-size: .95rem;
}

/* Page intro band */
.drb-page-head { position: relative; overflow: hidden; }
.drb-page-head::after {
  content: "";
  position: absolute; left: -60px; bottom: -80px; width: 320px; height: 320px;
  background: url("../img/pattern.svg") repeat; background-size: 120px;
  border-radius: 50%; opacity: .8; pointer-events: none;
}
.drb-breadcrumb { font-size: .9rem; color: var(--drb-teal); }
.drb-breadcrumb a { color: inherit; }

/* CTA band */
.drb-cta { position: relative; overflow: hidden; }
.drb-cta::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 167, 44, .35), transparent 70%); pointer-events: none;
}

/* Contact cards */
.drb-contact-line { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.drb-contact-line i { color: var(--drb-teal); margin-top: .35em; }
.drb-placeholder { color: #9A6B00; background: #FFF6E3; border-radius: 6px; padding: 0 .4em; font-size: .92em; }

/* Articles (post content) */
.single-post .w-post-elm.post_content p,
.single-post .w-post-elm.post_content li { font-size: 1.08rem; line-height: 2.05; }
.single-post .w-post-elm.post_content h2 { margin-top: 2rem; }
.drb-tip { background: var(--drb-mint); border-radius: 18px; padding: 1.2rem 1.4rem; border-right: 5px solid var(--drb-teal); }

/* FAQ accordion */
.w-tabs.accordion .w-tabs-section { border-radius: 16px; }

/* Footer */
.drb-footer-brand img { width: 56px; height: 56px; border-radius: 16px; }
.drb-footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.drb-footer-links li { margin: 0; }
.drb-footer-links a { color: inherit; opacity: .88; transition: opacity .2s, padding .2s; }
.drb-footer-links a:hover { opacity: 1; padding-right: 4px; }

/* Self-check on the home page sits inside a soft panel */
.drb-selfcheck-wrap > .vc_column-inner {
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--drb-shadow-lg);
  padding: 2rem 1.5rem !important;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 600px) {
  .drb-card > .vc_column-inner, .w-iconbox.drb-card { padding: 1.4rem 1.2rem !important; }
  .drb-hl { white-space: normal; }
  .drb-selfcheck-wrap > .vc_column-inner { padding: 1.2rem .6rem !important; border-radius: 24px; }
  .drb-quote > .vc_column-inner { padding: 1.4rem 1.2rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .drb-illus.float img { animation: none; }
  .drb-card > .vc_column-inner, .w-iconbox.drb-card { transition: none; }
}

/* The "not sure where to start?" tile closing the services grid */
.w-iconbox.drb-helper { background: linear-gradient(135deg, #FFF8EC, #FFF1D6) !important; border: 1.5px dashed rgba(184, 110, 0, .35) !important; }

/* Menu items meant only for the phone menu (booking) */
.w-nav:not(.type_mobile) .drb-mobile-only { display: none !important; }
.w-nav.type_mobile .drb-mobile-only > a { color: #0F6E6E !important; font-weight: 800; }

/* Header spacing: keep the A+ toggle clear of the menu, keep the button on one line */
.l-header .w-html:has(.drb-textsize) { margin-inline-start: .6rem; }
.l-header .w-btn { white-space: nowrap; }
.l-header .w-btn-wrapper, .l-header .w-btn { flex-shrink: 0; }

/* Body text steps down one notch on phones (Theme Options holds the desktop size). */
@media (max-width: 600px) { :root { --font-size: 17px; } }

/* The medical plugin's stylesheet loads after this one; win on specificity so its
   forms use the site font instead of downloading their own. */
html:root { --pgc-font: "AzarMehr FD", Tahoma, sans-serif; }

/* Services grid: when the "where to start?" helper card ends up alone in the last row, centre it. */
@media (min-width: 1025px) {
  .g-cols.cols_3 > .wpb_column:last-child:nth-child(3n+1):has(.drb-helper) { grid-column: 2; }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .g-cols.tablets-cols_2 > .wpb_column:last-child:nth-child(odd):has(.drb-helper) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .8rem); }
}
