:root {
  --khc-teal: #134e4a;
  --khc-teal-light: #1c6b63;
  --khc-cyan: #0891b2;
  --khc-red: #e11d1a;
  --khc-ink: #1d1d1f;
  --khc-fine: #64748b;
  --khc-hairline: #e2e8f0;
  --khc-parchment: #f6f9f8;
  --khc-bg: #ffffff;
  --khc-surface: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --khc-teal: #1c6b63;
    --khc-teal-light: #22857a;
    --khc-cyan: #22b8d8;
    --khc-red: #f0574f;
    --khc-ink: #eef2f1;
    --khc-fine: #a3b3ae;
    --khc-hairline: #2a3836;
    --khc-parchment: #16211f;
    --khc-bg: #0f1a18;
    --khc-surface: #182524;
  }
}
:root[data-theme="dark"] {
  --khc-teal: #1c6b63;
  --khc-teal-light: #22857a;
  --khc-cyan: #22b8d8;
  --khc-red: #f0574f;
  --khc-ink: #eef2f1;
  --khc-fine: #a3b3ae;
  --khc-hairline: #2a3836;
  --khc-parchment: #16211f;
  --khc-bg: #0f1a18;
  --khc-surface: #182524;
}

body { background: var(--khc-bg) !important; color: var(--khc-ink) !important; }

/* Blocksy's own page-title/breadcrumb chrome uses its own theme color vars, not ours - pin them to our token so they don't go invisible in dark mode */
.page-title, .entry-header, .woocommerce-breadcrumb, .ct-breadcrumbs, article .entry-title {
  color: var(--khc-ink) !important;
}
.page-header, .entry-header { background: transparent !important; }

.khc-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* header */
.khc-header { background: var(--khc-surface); border-bottom: 1px solid var(--khc-hairline); position: sticky; top: 0; z-index: 100; }
.khc-header .khc-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.khc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.khc-brand img { height: 42px; width: auto; display: block; }
.khc-brand span { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 17px; color: var(--khc-teal); }
.khc-nav { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; }
.khc-nav a { font-size: 15px; color: var(--khc-ink); text-decoration: none; font-weight: 500; }
.khc-nav a:hover { color: var(--khc-cyan); }
.khc-btn { background: var(--khc-cyan); color: #fff !important; padding: 10px 20px; border-radius: 100px; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.khc-btn:hover { filter: brightness(0.93); }
@media (max-width: 780px) {
  .khc-header .khc-wrap { flex-wrap: wrap; }
  .khc-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
}

/* footer */
.khc-footer { background: var(--khc-teal); color: rgba(255,255,255,0.88); padding-top: 48px; }
.khc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
@media (max-width: 780px) { .khc-footer-grid { grid-template-columns: 1fr 1fr; } }
.khc-footer-brand img { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.95; }
.khc-footer-brand p { font-size: 13px; line-height: 1.6; opacity: 0.8; max-width: 30ch; }
.khc-footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.65; margin: 0 0 12px; }
.khc-footer-col a { display: block; font-size: 14px; color: #fff; text-decoration: none; opacity: 0.88; margin-bottom: 9px; }
.khc-footer-col a:hover { opacity: 1; text-decoration: underline; }
.khc-footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; opacity: 0.75; }
.khc-footer-bottom a { color: #fff; text-decoration: underline; }

/* homepage */
.khc-hero { background: radial-gradient(circle at 15% 15%, var(--khc-teal-light) 0%, var(--khc-teal) 50%, #0b3532 100%); color: #fff; padding: 90px 0 100px; text-align: center; }
.khc-hero h1 { font-family: 'Lexend', sans-serif; font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 0 0 20px; max-width: 16ch; margin-inline: auto; }
.khc-hero p { font-size: 18px; opacity: 0.9; max-width: 52ch; margin: 0 auto 34px; line-height: 1.6; }
.khc-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.khc-hero-ctas a { padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: 16px; text-decoration: none; }
.khc-hero-ctas .khc-cta-primary { background: var(--khc-cyan); color: #fff; }
.khc-hero-ctas .khc-cta-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }

.khc-section { padding: 72px 0; }
.khc-section-alt { background: var(--khc-parchment); }
.khc-section h2 { font-family: 'Lexend', sans-serif; font-size: clamp(26px, 3.4vw, 36px); color: var(--khc-teal); text-align: center; margin: 0 0 14px; }
.khc-section-sub { text-align: center; color: var(--khc-fine); max-width: 56ch; margin: 0 auto 48px; font-size: 16px; line-height: 1.6; }

.khc-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .khc-problem-grid { grid-template-columns: 1fr; } }
.khc-problem-card { background: var(--khc-surface); border: 1px solid var(--khc-hairline); border-radius: 16px; padding: 28px; }
.khc-problem-card .khc-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(225,29,26,0.1); display: grid; place-items: center; margin-bottom: 16px; font-size: 22px; }
.khc-problem-card h3 { font-size: 17px; color: var(--khc-ink); margin: 0 0 8px; }
.khc-problem-card p { font-size: 14.5px; color: var(--khc-fine); line-height: 1.6; margin: 0; }

.khc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: khc-step; }
@media (max-width: 860px) { .khc-steps { grid-template-columns: 1fr; } }
.khc-step { position: relative; padding: 28px 24px 24px; background: var(--khc-surface); border-radius: 16px; border: 1px solid var(--khc-hairline); }
.khc-step::before { counter-increment: khc-step; content: counter(khc-step); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--khc-cyan); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.khc-step h3 { margin: 10px 0 8px; font-size: 17px; color: var(--khc-ink); }
.khc-step p { margin: 0; font-size: 14.5px; color: var(--khc-fine); line-height: 1.6; }

.khc-trust { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.khc-trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--khc-ink); font-weight: 500; }
.khc-trust-item .khc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--khc-cyan); flex: none; }

.khc-final-cta { text-align: center; background: var(--khc-teal); color: #fff; border-radius: 24px; padding: 56px 32px; margin-inline: 24px; }
.khc-final-cta h2 { color: #fff; }
.khc-final-cta a { display: inline-block; margin-top: 18px; background: var(--khc-cyan); color: #fff; padding: 14px 30px; border-radius: 100px; font-weight: 600; text-decoration: none; }

/* Elementor 4.x legacy section/column flex-collapse fix — these pages only ever use one full-width column */
.elementor-top-section, .elementor-container, .elementor-row, .elementor-top-column, .elementor-widget-wrap, .elementor-widget.elementor-widget-html, .elementor-widget-html > .elementor-widget-container { width: 100% !important; max-width: 100% !important; }

/* inner pages: services / kirospharma / contact */
.khc-page-hero { background: var(--khc-teal); color: #fff; padding: 64px 0 56px; text-align: center; }
.khc-page-hero h1 { font-family: 'Lexend', sans-serif; font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; }
.khc-page-hero p { font-size: 16px; opacity: 0.9; max-width: 60ch; margin: 0 auto; line-height: 1.6; }

.khc-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .khc-feature-grid { grid-template-columns: 1fr; } }
.khc-feature-card { background: var(--khc-surface); border: 1px solid var(--khc-hairline); border-radius: 16px; padding: 28px; }
.khc-feature-card .khc-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(8,145,178,0.1); display: grid; place-items: center; margin-bottom: 16px; font-size: 22px; }
.khc-feature-card h3 { font-size: 17px; color: var(--khc-ink); margin: 0 0 8px; }
.khc-feature-card p { font-size: 14.5px; color: var(--khc-fine); line-height: 1.6; margin: 0; }

.khc-affiliate-band { display: flex; align-items: center; gap: 48px; }
@media (max-width: 860px) { .khc-affiliate-band { flex-direction: column; text-align: center; } }
.khc-affiliate-band img { max-width: 220px !important; width: 100% !important; }
.khc-affiliate-band .khc-affiliate-copy { flex: 1; }
.khc-affiliate-copy h2 { text-align: left; font-family: 'Lexend', sans-serif; font-size: clamp(24px, 3vw, 32px); color: var(--khc-teal); margin: 0 0 14px; }
@media (max-width: 860px) { .khc-affiliate-copy h2 { text-align: center; } }
.khc-affiliate-copy p { color: var(--khc-fine); font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.khc-affiliate-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.khc-affiliate-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--khc-ink); }
.khc-affiliate-list li .khc-dot { margin-top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--khc-cyan); flex: none; }

.khc-form { max-width: 520px; margin: 0 auto; background: var(--khc-surface); border: 1px solid var(--khc-hairline); border-radius: 16px; padding: 32px; }
.khc-form label { display: block; font-size: 14px; font-weight: 600; color: var(--khc-ink); margin: 0 0 6px; }
.khc-form .khc-field { margin-bottom: 18px; }
.khc-form input, .khc-form textarea { width: 100%; border: 1px solid var(--khc-hairline); border-radius: 10px; padding: 11px 14px; font-size: 15px; font-family: inherit; color: var(--khc-ink); box-sizing: border-box; }
.khc-form input:focus, .khc-form textarea:focus { outline: 2px solid var(--khc-cyan); outline-offset: 1px; }
.khc-form textarea { min-height: 130px; resize: vertical; }
.khc-form button { width: 100%; border: none; cursor: pointer; background: var(--khc-cyan); color: #fff; padding: 13px 20px; border-radius: 100px; font-weight: 600; font-size: 15.5px; }
.khc-form button:hover { filter: brightness(0.93); }
.khc-form-note { text-align: center; font-size: 13px; color: var(--khc-fine); margin-top: 14px; }
.khc-form-success { max-width: 520px; margin: 0 auto; background: rgba(8,145,178,0.08); border: 1px solid var(--khc-cyan); border-radius: 16px; padding: 28px; text-align: center; color: var(--khc-teal); font-size: 15px; }


/* Bento card hover — border lifts to brand cyan. */
.khc-feature-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.khc-feature-card:hover,
.khc-feature-card:focus-within {
  border-color: var(--khc-cyan);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.12);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .khc-feature-card { transition: none; }
  .khc-feature-card:hover,
  .khc-feature-card:focus-within { transform: none; }
}

/* Inline SVG card icons — the tile keeps its size, the glyph is sized here. */
.khc-feature-card .khc-icon svg { width: 24px; height: 24px; display: block; }


/* --- Photography ---------------------------------------------------------- */
/* The overlay is deliberately near-opaque: white hero text has to clear contrast
   over EVERY part of the photo, not just the dark parts. */
.khc-page-hero.khc-hero-photo {
  background-size: cover;
  background-position: center;
  padding: 96px 0 88px;
}
.khc-hero-services {
  background-image: linear-gradient(180deg, rgba(19,78,74,0.88), rgba(19,78,74,0.94)),
                    url('img/hv-hero-lab-report.webp');
}
.khc-hero-kirospharma {
  background-image: linear-gradient(180deg, rgba(19,78,74,0.88), rgba(19,78,74,0.94)),
                    url('img/hv-kirospharma-consult.webp');
}

.khc-photo-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .khc-photo-band { grid-template-columns: 1fr; gap: 28px; } }
.khc-photo-band img { width: 100%; height: auto; display: block; border-radius: 16px; }
.khc-photo-band.is-reversed .khc-photo-copy { order: -1; }
@media (max-width: 860px) { .khc-photo-band.is-reversed .khc-photo-copy { order: 0; } }
.khc-photo-copy h2 { text-align: left; font-family: 'Lexend', sans-serif; font-size: clamp(22px, 2.6vw, 30px); color: var(--khc-teal); margin: 0 0 14px; }
.khc-photo-copy p { color: var(--khc-fine); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.khc-photo-copy p:last-child { margin-bottom: 0; }