/*
 * Premium enhancement layer on top of the migrated theme (no layout redesign).
 * Fonts: Instrument Serif (headings) + Manrope (text, menus, buttons).
 * Colours stay the site's own: teal #66bbae / #398075, sage #a4ad98, brick #af745b, black, white.
 */
:root {
  --kx-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --kx-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kx-ink: #16191d;
  --kx-teal: #9b0e10;
  --kx-teal-ink: #9b0e10;
  --kx-line: rgba(22, 25, 29, .12);
  --kx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- typography ---------- */
body, body p, body li, body td, body th, body label, body input, body select, body textarea, body button,
body a:not(.fa), .main-navigation a, .button, .wpcf7-submit, .site-info, .entry-content,
.wpb_text_column, .vc_custom_heading.kbs_text, .meta-date {
  font-family: var(--kx-sans) !important;
}
h1, h2, h3, h4, .entry-title, .large-title, .medium-title, .vc_custom_heading:not(.kbs_text),
.kbs_top_heading h2, .kbs_top_heading h3, #kbs-nap h3, .blog-list-row .title, .widget-title,
.contact-form-title h3 {
  font-family: var(--kx-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}
h5, h6 { font-family: var(--kx-sans) !important; font-weight: 600; }
/* the serif reads smaller than the old faces at the same size */
.entry-content h2, .wpb_text_column h2 { font-size: 2.1em; line-height: 1.1; }
.entry-content h3, .wpb_text_column h3 { font-size: 1.6em; line-height: 1.15; }
.entry-title { line-height: 1.05; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.button, .wpcf7-submit, .kx-book { letter-spacing: .02em !important; }

/* ---------- Tesla-style desktop header ---------- */
.kx-header { display: none; }
@media (min-width: 992px) {
  .site-header { padding-top: 0 !important; }
  .site-header .header-area, .site-header .top-notification { display: none !important; }
  .kx-header { display: block; position: sticky; top: 0; z-index: 9990; }
  .kx-bar {
    height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 0 clamp(16px, 2.6vw, 40px); background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s var(--kx-ease), box-shadow .3s var(--kx-ease);
  }
  .kx-header.is-scrolled .kx-bar { border-bottom-color: var(--kx-line); }
  .kx-logo { justify-self: start; display: block; }
  .kx-logo img { height: 44px; width: auto; }
  .kx-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
  .kx-link {
    display: inline-block; padding: 9px 13px; border-radius: 4px; border: 0; background: transparent; cursor: pointer;
    font: 500 14px/1 var(--kx-sans) !important; color: var(--kx-ink) !important; text-decoration: none !important;
    transition: background-color .25s var(--kx-ease); white-space: nowrap;
  }
  .kx-link:hover, .kx-link[aria-expanded="true"] { background: rgba(22, 25, 29, .07); }
  .kx-link.is-current { box-shadow: inset 0 -2px 0 var(--kx-teal); border-radius: 4px 4px 0 0; }
  .kx-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
  .kx-book {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px;
    background: var(--kx-teal); color: #fff !important; text-decoration: none !important;
    font: 600 13.5px/1 var(--kx-sans) !important; transition: background-color .25s var(--kx-ease);
  }
  .kx-book:hover { background: #7d0b0d; }

  .kx-panel {
    position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--kx-line);
    transform: translateY(-6px); opacity: 0; transition: transform .35s var(--kx-ease), opacity .25s var(--kx-ease);
  }
  .kx-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
  .kx-panel.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .kx-panel-inner { max-width: 1240px; margin: 0 auto; padding: 34px 40px 40px; display: grid; grid-template-columns: 1fr 220px; gap: 44px; }
  .kx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 18px; }
  .kx-tiles-people { grid-template-columns: repeat(2, minmax(0, 200px)); }
  .kx-tile { display: grid; justify-items: center; gap: 10px; padding: 16px 8px 14px; border-radius: 4px; text-decoration: none !important; color: var(--kx-ink) !important; transition: background-color .2s var(--kx-ease); }
  .kx-tile:hover, .kx-tile:focus-visible { background: rgba(22, 25, 29, .05); }
  .kx-tile span { font: 500 15px/1.25 var(--kx-sans) !important; text-align: center; }
  .kx-illo { width: 120px; height: 79px; color: var(--kx-ink); }
  .kx-tile img { width: 120px; height: 128px; object-fit: cover; object-position: top; border-radius: 4px; }
  .kx-side { border-left: 1px solid var(--kx-line); padding-left: 28px; display: grid; align-content: start; gap: 4px; }
  .kx-side a { padding: 6px 0; font-size: 14.5px; color: var(--kx-ink) !important; text-decoration: none !important; }
  .kx-side a:hover { text-decoration: underline !important; text-decoration-color: var(--kx-teal) !important; }
  .kx-scrim { position: fixed; inset: 68px 0 0; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: -1; }
  .kx-scrim[hidden] { display: none; }
}

/* ---------- 3D jaw section (home) ---------- */
.kx-jaw {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); background: #0d1114; color: #dbe5e3;
  padding: clamp(56px, 7vw, 104px) 0; overflow: hidden;
}
.kx-jaw-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.kx-jaw h2 { color: #fff !important; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem) !important; line-height: 1.02 !important; margin: 0 0 18px; text-transform: none; }
.kx-jaw p { color: #b7c6c3; font-size: 17px; line-height: 1.65; margin: 0 0 16px; }
.kx-jaw .kx-kicker { color: var(--kx-teal); font: 600 13px/1.2 var(--kx-sans) !important; margin-bottom: 14px; }
.kx-jaw-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.kx-jaw-list li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.kx-jaw-list button {
  width: 100%; text-align: left; background: none; border: 0; padding: 14px 0; color: #fff; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font: 500 16px/1.3 var(--kx-sans) !important;
}
.kx-jaw-list button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--kx-teal); }
.kx-jaw-list button[aria-pressed="true"]::after { background: #e0a184; border-color: #e0a184; }
.kx-jaw-list button:hover { color: var(--kx-teal); }
.kx-stage {
  position: relative; aspect-ratio: 7 / 5; min-height: 360px; border: 1px solid rgba(159, 214, 204, .18);
  background:
    linear-gradient(rgba(159, 214, 204, .07) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(159, 214, 204, .07) 1px, transparent 1px) 0 0 / 44px 44px, #0b0f12;
}
.kx-stage .kx-canvas { position: absolute; inset: 0; }
.kx-stage canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.kx-stage .kx-x, .kx-stage .kx-y { position: absolute; background: rgba(159, 214, 204, .25); pointer-events: none; }
.kx-stage .kx-x { left: 0; right: 0; top: 52%; height: 1px; }
.kx-stage .kx-y { top: 0; bottom: 0; left: 55%; width: 1px; }
.kx-stage .kx-sweep { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(102, 187, 174, .9), transparent); box-shadow: 0 0 16px rgba(102, 187, 174, .55); animation: kx-sweep 7s var(--kx-ease) infinite; pointer-events: none; }
@keyframes kx-sweep { 0% { top: 12%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 88%; opacity: 0; } }
.kx-stage .kx-tag { position: absolute; font: 500 11px/1 var(--kx-sans) !important; color: rgba(159, 214, 204, .8); pointer-events: none; }
.kx-stage .hotspot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(11, 15, 18, .55); cursor: pointer; transition: transform .2s var(--kx-ease); }
.kx-stage .hotspot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--kx-teal); }
.kx-stage .hotspot[aria-pressed="true"]::after { background: #e0a184; }
.kx-stage .hotspot:hover { transform: translate(-50%, -50%) scale(1.15); }
.kx-caption { margin-top: 16px; min-height: 76px; border-left: 2px solid var(--kx-teal); padding: 4px 0 4px 16px; font-size: 15.5px; line-height: 1.55; color: #c9d6d3; }
.kx-caption strong { display: block; color: #fff; font-weight: 600; }
.kx-jaw :focus-visible { outline: 2px solid var(--kx-teal); outline-offset: 3px; }
@media (max-width: 991px) {
  .kx-jaw-inner { grid-template-columns: 1fr; }
  .kx-stage { aspect-ratio: 4 / 4; }
}
@media (prefers-reduced-motion: reduce) { .kx-stage .kx-sweep { display: none; } }
.kx-link, .kx-jaw-list button { text-transform: none !important; letter-spacing: normal !important; }
.kx-book { white-space: nowrap; }
.kx-side a { line-height: 1.3 !important; }
.kx-jaw .kx-jaw-title { font-family: var(--kx-serif) !important; }

/* ---------- brand red (demo2) for buttons, links and accents; layout unchanged ---------- */
a { color: #9b0e10; }
.button, a.button, .button.active, input.wpcf7-submit, .pagination .page-numbers:not(.current), .pagination .prev, .pagination .next,
.vc_btn3[style*="#0088cc"], .header-contact-infos .appointment-form {
  background-color: #9b0e10 !important; color: #fff !important; border-color: #9b0e10 !important;
}
.button:hover, a.button:hover, input.wpcf7-submit:hover { background-color: #7d0b0d !important; }
.button.active { background-color: #2b2b2b !important; border-color: #2b2b2b !important; }
.color-red, .red, .color-red small { color: #9b0e10 !important; }
.kx-jaw { background: #0a0c0f; }
.kx-stage { border-color: rgba(255, 80, 84, .22); background:
  linear-gradient(rgba(188, 211, 230, .05) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, rgba(188, 211, 230, .05) 1px, transparent 1px) 0 0 / 44px 44px, #0a0c0f; }
.kx-stage .kx-sweep { background: linear-gradient(90deg, transparent, rgba(255, 59, 63, .9), transparent); box-shadow: 0 0 16px rgba(255, 59, 63, .5); }
.kx-jaw .kx-kicker { color: #ff6b6e; }
.kx-jaw-list button[aria-pressed="true"]::after, .kx-stage .hotspot[aria-pressed="true"]::after { background: #ff3b3f; border-color: #ff3b3f; }
.kx-stage .hotspot::after { background: #ff3b3f; }
.kx-caption { border-left-color: #ff3b3f; }
.mobile-buttons a, .mobile-buttons .menu-icon a { background-color: #9b0e10 !important; }

/* ---------- home hero: welcome left, moving 3D right ---------- */
.kx-hero.vc_custom_1672314230225 { background: radial-gradient(ellipse at 72% 50%, rgba(155, 14, 16, .28), transparent 55%),
  linear-gradient(rgba(188, 211, 230, .05) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, rgba(188, 211, 230, .05) 1px, transparent 1px) 0 0 / 48px 48px, #0a0c0f !important;
  padding: clamp(40px, 5vw, 80px) 0 !important; display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.kx-hero .kx-hero-left { width: auto !important; float: none !important; padding-left: clamp(20px, 6vw, 96px) !important; }
.kx-hero .kbs_top_heading h2, .kx-hero .kbs_top_heading h3 { text-align: left !important; }
.kx-hero .kbs_top_heading h2 { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem) !important; line-height: 1 !important; }
.kx-hero .kbs_top_heading h3 { font-family: var(--kx-sans) !important; font-size: 1.15rem !important; letter-spacing: .02em !important; opacity: .85; }
.kx-hero .kbs_top_button .inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; }
.kx-hero .kbs_top_button .button { margin: 0 !important; border-radius: 999px !important; padding: 14px 26px !important; }
.kx-hi { color: #ff6b6e !important; font: 600 15px/1.4 var(--kx-sans) !important; margin: 0 0 14px !important; }
.kx-call { color: #fff !important; text-decoration: underline !important; text-decoration-color: #ff3b3f !important; text-underline-offset: 4px; font-weight: 600; }
.kx-areas { color: #b9c4cc !important; font-size: 14.5px !important; line-height: 1.6 !important; max-width: 46ch; margin-top: 22px !important; }
.kx-hero-3d { position: relative; height: clamp(360px, 42vw, 600px); }
.kx-hero-3d .kx-canvas { position: absolute; inset: 0; }
.kx-hero-3d canvas { width: 100%; height: 100%; display: block; }
.kx-hero-3d .kx-x, .kx-hero-3d .kx-y { position: absolute; background: rgba(255, 80, 84, .28); }
.kx-hero-3d .kx-x { left: 0; right: 0; top: 52%; height: 1px; } .kx-hero-3d .kx-y { top: 6%; bottom: 6%; left: 52%; width: 1px; }
.kx-hero-3d .kx-sweep { position: absolute; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 59, 63, .9), transparent); box-shadow: 0 0 18px rgba(255, 59, 63, .55); animation: kx-sweep 6s var(--kx-ease) infinite; }
@media (max-width: 991px) {
  .kx-hero.vc_custom_1672314230225 { grid-template-columns: 1fr; }
  .kx-hero .kx-hero-left { padding: 0 20px !important; }
  .kx-hero-3d { height: 340px; }
}
.kx-hero::before, .kx-hero::after { display: none !important; content: none !important; }
.kx-hero .kbs_top_button .button, .kx-hero a.button.kbs_tag_form { background: #9b0e10 !important; color: #fff !important; border-color: #9b0e10 !important; text-transform: none !important; font-weight: 600 !important; }
.kx-hero .kbs_top_button .button:hover { background: #7d0b0d !important; }
.kx-hero .inline a.kx-call { border: 0 !important; width: auto !important; flex: 0 0 auto; padding: 0 !important; background: none !important; }
.kx-hero .kbs_top_heading h3 { text-transform: none !important; }
/* theme buttons paint their colour with ::before/::after layers: recolour those to the brand red */
.button::before { background-color: #9b0e10 !important; }
.button::after { background-color: #2b2b2b !important; }
.button:hover { color: #fff !important; }
.button.color-white { color: #9b0e10 !important; }
.button.color-white::after { background-color: #9b0e10 !important; }
.button-list .item a.active { border-color: #9b0e10 !important; color: #9b0e10 !important; }
