/*
Theme Name: ACTYMED HEALTHCARE
Theme URI: https://www.actymed.health
Author: ACTYMED Healthcare
Author URI: https://www.actymed.health
Description: Mobile-first, app-style healthcare theme for ACTYMED. Intent-based IA (Conditions, Treatments, Doctors, Clinics), instant condition search, horizontal card rails, interactive health calculators, and rich Schema.org (Hospital, MedicalCondition, Physician, FAQ) structured data for SEO + AI discoverability.
Version: 2.13.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: hospital-care
Tags: custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, medical, blog, one-column, two-columns, right-sidebar
*/

/* =========================================================
   0. CSS VARIABLES
========================================================= */
:root {
  --hc-primary: #ea1368;
  --hc-primary-dark: #b80e52;
  --hc-primary-light: #fceaf3;
  --hc-accent: #ea1368;
  --hc-accent-dark: #b80e52;
  --hc-text: #1a1a1a;
  --hc-text-muted: #5b5b5b;
  --hc-bg: #ffffff;
  --hc-bg-alt: #fbf4f8;
  --hc-border: #ece3e9;
  --hc-white: #fff;
  --hc-radius: 18px;
  --hc-shadow: 0 4px 20px rgba(234, 19, 104, 0.1);
  --hc-shadow-hover: 0 10px 30px rgba(234, 19, 104, 0.18);
  --hc-container: 1200px;
  --hc-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hc-font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   1. RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--hc-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hc-text);
  background: var(--hc-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hc-primary); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--hc-accent); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hc-font-head);
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--hc-text);
  font-weight: 700;
}
p { margin: 0 0 1.2em; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; padding: 12px 18px;
  background: var(--hc-primary); color: #fff; z-index: 100000;
  border-radius: 6px; clip: auto;
}
:focus-visible { outline: 3px solid var(--hc-accent); outline-offset: 2px; }
.container {
  max-width: var(--hc-container);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }
.section-alt { background-color: var(--hc-bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; color: var(--hc-accent); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5em; font-weight: 800; }
.section-head p { color: var(--hc-text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; font-size: .95rem;
  transition: all .2s ease; text-align: center;
}
.btn-primary { background: var(--hc-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--hc-primary-dark); color: #fff; }
.btn-accent { background: var(--hc-accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--hc-accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--hc-primary); }
.btn-outline:hover, .btn-outline:focus { background: var(--hc-primary); color: #fff; }
.btn-outline-light { background: transparent; border-color: var(--hc-primary); color: var(--hc-primary); }
.btn-outline-light:hover, .btn-outline-light:focus { background: var(--hc-primary); color: #fff; }

/* =========================================================
   2. TOP BAR
========================================================= */
.hc-topbar {
  background: var(--hc-primary-dark);
  color: #fff;
  font-size: .85rem;
}
.hc-topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px;
}
.hc-topbar a { color: #fff; }
.hc-topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.hc-topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.hc-topbar .emergency { color: #ffd7db; font-weight: 700; }
.hc-topbar-social { display: flex; gap: 12px; }
.hc-topbar-social a { opacity: .9; }
.hc-topbar-social a:hover { opacity: 1; color: #ffd7db; }

/* =========================================================
   3. HEADER / NAVIGATION
========================================================= */
.hc-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--hc-border);
  position: sticky; top: 0; z-index: 500;
}
.hc-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.hc-branding { display: flex; align-items: center; gap: 12px; }
.hc-branding img.custom-logo { max-height: 56px; width: auto; }
.hc-branding .site-title {
  font-size: 1.4rem; margin: 0; font-weight: 800; color: var(--hc-primary-dark);
}
.hc-branding .site-title a { color: inherit; }
.hc-branding .site-description { margin: 0; font-size: .8rem; color: var(--hc-text-muted); }

.hc-nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hc-nav-toggle span { width: 26px; height: 3px; background: var(--hc-primary-dark); border-radius: 2px; }

.main-navigation { display: flex; align-items: center; gap: 26px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block; padding: 10px 2px; color: var(--hc-text); font-weight: 600; font-size: .96rem;
}
.main-navigation a:hover, .main-navigation a:focus, .main-navigation .current-menu-item > a { color: var(--hc-primary); }
.main-navigation .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  min-width: 220px; box-shadow: var(--hc-shadow-hover); border-radius: 8px; padding: 8px 0; z-index: 50;
}
.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: block; }
.main-navigation .sub-menu a { padding: 10px 18px; font-weight: 500; }
.main-navigation .menu-item-has-children > a::after { content: " \25BE"; font-size: .7em; }
/* "Get the App" nav tab (desktop) — a pink-outline pill so it reads as an action */
.hc-menu-item-download > .hc-app-download {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px;
  border: 1.5px solid var(--hc-primary); border-radius: 50px; color: var(--hc-primary); font-weight: 700;
}
.hc-menu-item-download > .hc-app-download:hover, .hc-menu-item-download > .hc-app-download:focus { background: var(--hc-primary); color: #fff; }
.hc-menu-item-download > .hc-app-download .dashicons { font-size: 1.05rem; width: 1.05rem; height: 1.05rem; }
.hc-header-cta { display: flex; align-items: center; gap: 14px; }

/* =========================================================
   3b. HERO STATS (Years of Experience / Patients Treated)
========================================================= */
.hc-hero-stats { display: flex; gap: 22px 26px; margin-top: 28px; flex-wrap: wrap; }
.hc-hero-stats div { min-width: 78px; }
.hc-hero-stats strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--hc-primary); }
.hc-hero-stats span { font-size: .78rem; color: var(--hc-text-muted); }

/* =========================================================
   3c. STICKY MOBILE ACTION BAR
========================================================= */
.hc-mobile-actionbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 600;
  background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.hc-mobile-actionbar-inner { display: flex; }
.hc-mobile-actionbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 10px 4px; font-size: .72rem; font-weight: 700; color: var(--hc-text);
  border-right: 1px solid var(--hc-border);
}
.hc-mobile-actionbar a:last-child { border-right: none; }
.hc-mobile-actionbar a .dashicons { font-size: 1.3rem; width: 1.3rem; height: 1.3rem; color: var(--hc-primary); }
.hc-mobile-actionbar a.is-cta { background: var(--hc-primary); color: #fff; }
.hc-mobile-actionbar a.is-cta .dashicons { color: #fff; }

/* =========================================================
   5. GRIDS / CARDS
========================================================= */
.hc-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.hc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.hc-card {
  background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius);
  overflow: hidden; box-shadow: var(--hc-shadow); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.hc-card:hover { transform: translateY(-6px); box-shadow: var(--hc-shadow-hover); }
.hc-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--hc-bg-alt); }
.hc-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hc-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.hc-card-body h3 { font-size: 1.1rem; margin-bottom: .3em; color: var(--hc-text); }
.hc-card-body h3 a { color: var(--hc-text); }
.hc-card-body h3 a:hover, .hc-card-body h3 a:focus { color: var(--hc-primary); }
.hc-card-body .meta { color: var(--hc-text-muted); font-size: .85rem; margin-bottom: .6em; }
.hc-card-body p { color: var(--hc-text-muted); font-size: .92rem; flex: 1; }
.hc-card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--hc-primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 14px; color: var(--hc-primary);
}
.hc-card-link { margin-top: 10px; font-weight: 700; font-size: .9rem; }

/* Doctor card specifics */
.hc-doctor .hc-card-media { aspect-ratio: 1/1; }
.hc-doctor .specialization { color: var(--hc-accent); font-weight: 600; font-size: .85rem; }

/* Location card */
.hc-location-card .hc-card-body { padding: 24px; }
.hc-location-card .map-embed { border-radius: var(--hc-radius); overflow: hidden; margin-top: 16px; }
.hc-location-card .map-embed iframe { width: 100%; height: 260px; border: 0; }
.hc-badge-primary {
  display: inline-block; background: var(--hc-primary-light); color: var(--hc-primary-dark);
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}

/* Why choose us */
.hc-feature { text-align: center; padding: 10px; }
.hc-feature .hc-card-icon { margin: 0 auto 14px; }

/* CTA band */
.hc-cta-band {
  background-image: var(--hc-bg-mobile, none), linear-gradient(120deg, var(--hc-primary) 0%, var(--hc-primary-dark) 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #fff; text-align: center; padding: 60px 0;
}
.hc-cta-band h2 { color: #fff; }
.hc-cta-band p { color: #ffd7ea; }
.hc-cta-band .btn-outline-light { border-color: #fff; color: #fff; }
.hc-cta-band .btn-outline-light:hover, .hc-cta-band .btn-outline-light:focus { background: #fff; color: var(--hc-primary-dark); }

/* =========================================================
   6. BLOG / SINGLE / ARCHIVE
========================================================= */
.hc-content-wrap { display: grid; grid-template-columns: 2.2fr 1fr; gap: 50px; padding: 60px 0; }
.hc-content-wrap.no-sidebar { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
/* let the main/sidebar grid items shrink below their content min-width so long
   words/excerpts can't push the column past the mobile viewport */
.hc-content-wrap > * { min-width: 0; }

/* single-page / archive wrapper: comfortable vertical padding while KEEPING the
   side gutters on mobile (replaces the inline `padding:60px 0` that was letting
   text run edge-to-edge). Pairs with .container. */
.hc-page { padding: 40px 20px; }
@media (min-width: 768px) { .hc-page { padding-top: 60px; padding-bottom: 60px; } }

/* two-column single-page layout (profile/info card + content) — stacks to a
   single readable column on mobile, splits on tablet/desktop. */
.hc-split { display: grid; gap: 28px; }
.hc-split > * { min-width: 0; }
@media (min-width: 768px) {
  .hc-split { align-items: start; }
  .hc-split--narrow-left { grid-template-columns: 1fr 2fr; }
  .hc-split--wide-left { grid-template-columns: 1.35fr 1fr; }
}
article.hc-post { margin-bottom: 40px; }
article.hc-post .entry-title { font-size: 1.5rem; }
article.hc-post .entry-title a { color: var(--hc-text); }
.entry-meta { color: var(--hc-text-muted); font-size: .85rem; margin-bottom: .8em; }
.entry-meta a { color: var(--hc-text-muted); }
.single .entry-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.entry-content h2 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--hc-radius); margin: 1em 0; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--hc-border); text-align: left; font-size: .92rem; }
.entry-content th { background: var(--hc-bg-alt); font-weight: 700; }
.entry-content pre, .entry-content code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.entry-content iframe, .entry-content embed, .entry-content video { max-width: 100%; }
.entry-content blockquote {
  border-left: 4px solid var(--hc-primary); padding: 6px 20px; color: var(--hc-text-muted); margin: 1.4em 0; font-style: italic;
}
.entry-footer { margin-top: 20px; font-size: .85rem; color: var(--hc-text-muted); }
.tag-links a, .cat-links a {
  display: inline-block; background: var(--hc-bg-alt); padding: 3px 10px; border-radius: 20px; margin: 2px;
}
.hc-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.hc-pagination a, .hc-pagination span {
  padding: 8px 14px; border: 1px solid var(--hc-border); border-radius: 6px; color: var(--hc-text);
}
.hc-pagination .current { background: var(--hc-primary); color: #fff; border-color: var(--hc-primary); }

.widget { margin-bottom: 36px; background: var(--hc-bg-alt); padding: 22px; border-radius: var(--hc-radius); }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--hc-border); }
.widget ul li:last-child { border-bottom: none; }

/* Comments */
.comments-area { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--hc-border); }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: .8rem; color: var(--hc-text-muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hc-border); border-radius: 8px; margin-bottom: 14px; font-family: inherit;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }

/* =========================================================
   7. FORMS (appointment / contact)
========================================================= */
.hc-form { background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); padding: 30px; box-shadow: var(--hc-shadow); }
.hc-form-row { margin-bottom: 16px; }
.hc-form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.hc-form-row input, .hc-form-row select, .hc-form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hc-border); border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.hc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-form-success { background: #e5f8ec; color: #14683a; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.hc-form-error { background: #fdeaec; color: #a91d30; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.hc-hp-field { position: absolute; left: -9999px; }

/* =========================================================
   8. FOOTER
========================================================= */
.hc-footer { background: #10202a; color: #c8d6dc; padding-top: 60px; }
.hc-footer h3 { color: #fff; font-size: 1.05rem; }
.hc-footer a { color: #c8d6dc; }
.hc-footer a:hover { color: #fff; }
.hc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.hc-footer ul { list-style: none; padding: 0; margin: 0; }
.hc-footer ul li { margin-bottom: 10px; }
.hc-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.hc-footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.hc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.hc-footer-bottom .footer-menu { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }

.hc-back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--hc-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--hc-shadow-hover); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 400; border: none; cursor: pointer;
}
.hc-back-to-top.is-visible { opacity: 1; visibility: visible; }

/* =========================================================
   9. UTILITIES
========================================================= */
.hc-text-center { text-align: center; }
.hc-mt-0 { margin-top: 0; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.sticky { outline: 2px dashed var(--hc-primary-light); }
.hc-emergency-strip {
  background: var(--hc-accent); color: #fff; padding: 12px 0; text-align: center; font-weight: 700; font-size: .9rem;
}
.hc-emergency-strip a { color: #fff; text-decoration: underline; }

/* =========================================================
   10. RESPONSIVE
========================================================= */
@media (max-width: 960px) {
  .hc-footer-grid { grid-template-columns: 1fr 1fr; }
  .hc-content-wrap { grid-template-columns: 1fr; }
  .hc-grid.cols-3, .hc-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
  .hc-topbar-info span:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .hc-nav-toggle { display: flex; }
  .main-navigation {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; box-shadow: var(--hc-shadow-hover); padding: 10px 20px 20px;
  }
  .main-navigation.is-open { display: flex; }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation .sub-menu { position: static; box-shadow: none; display: none; padding-left: 14px; }
  .main-navigation .menu-item.is-expanded > .sub-menu { display: block; }
  .hc-header-cta .btn span.btn-label { display: none; }
  .hc-footer-grid { grid-template-columns: 1fr; }
  .hc-form-grid { grid-template-columns: 1fr; }
  .hc-grid.cols-3, .hc-grid.cols-4 { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hc-mobile-actionbar { display: block; }
  body { padding-bottom: 58px; }
  .hc-back-to-top { bottom: 76px; }
}
@media print {
  .hc-header, .hc-footer, .hc-back-to-top, .hc-topbar, .hc-mobile-actionbar, .hc-drawer { display: none; }
}

/* =========================================================
   11. APP-STYLE MOBILE-FIRST REBUILD (ACTYMED)
   Base styles target mobile; min-width queries scale up.
========================================================= */

/* ---- shared button variants ---- */
.btn { min-height: 48px; justify-content: center; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover, .btn-wa:focus { background: #1ebe5b; color: #fff; }
.btn-wa svg { flex: none; }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover, .btn-outline-white:focus { background: #fff; color: var(--hc-primary-dark); }

/* ---- topbar: desktop only ---- */
.hc-topbar { display: none; }

/* ---- app header ---- */
.hc-app-header { transition: box-shadow .2s ease; }
.hc-app-header.is-stuck { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.hc-app-header .hc-header-inner { padding: 10px 0; gap: 10px; }
.hc-branding img.custom-logo { max-height: 42px; }
.hc-branding .site-title { font-size: 1.15rem; }

.hc-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hc-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--hc-primary-light); color: var(--hc-primary);
}
.hc-icon-btn .dashicons { font-size: 1.25rem; width: 1.25rem; height: 1.25rem; }
.hc-icon-wa { background: #e7f9ee; color: #1ebe5b; }
.hc-header-book { padding: 10px 18px; min-height: 44px; }

/* hamburger */
.hc-drawer-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.hc-drawer-toggle span { width: 24px; height: 3px; background: var(--hc-primary-dark); border-radius: 2px; }

/* desktop inline nav hidden on mobile (drawer used instead) */
.main-navigation { display: none; }

/* ---- off-canvas drawer ---- */
.hc-drawer { position: fixed; inset: 0; z-index: 1000; }
.hc-drawer[hidden] { display: none; }
.hc-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,20,26,.5); opacity: 0; transition: opacity .3s ease; }
.hc-drawer.is-open .hc-drawer-backdrop { opacity: 1; }
.hc-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.2); padding: 18px 20px calc(24px + env(safe-area-inset-bottom,0));
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; display: flex; flex-direction: column;
}
.hc-drawer.is-open .hc-drawer-panel { transform: translateX(0); }
.hc-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hc-drawer-title { font-weight: 800; color: var(--hc-primary-dark); }
.hc-drawer-close { background: none; border: none; font-size: 2rem; line-height: 1; color: var(--hc-text-muted); cursor: pointer; width: 44px; height: 44px; }
.hc-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.hc-drawer-nav a { display: block; padding: 14px 6px; font-size: 1.05rem; font-weight: 600; color: var(--hc-text); border-bottom: 1px solid var(--hc-border); }
.hc-drawer-nav a:hover, .hc-drawer-nav a:focus { color: var(--hc-primary); }
.hc-drawer-cta { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
body.hc-noscroll { overflow: hidden; }

/* ---- section heads ---- */
.hc-section { padding: 34px 0; }
.hc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hc-section-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.hc-viewall { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.hc-section-head-actions { display: flex; align-items: center; gap: 16px; }

/* ---- hero ---- */
.hc-hero {
  padding: 30px 0 34px;
  background-image: var(--hc-bg-mobile, none), linear-gradient(135deg, #fdeff6 0%, #f1eefd 60%, #fbf4f8 100%);
  background-size: contain, cover;
  background-position: right bottom, center;
  background-repeat: no-repeat, no-repeat;
  overflow-x: hidden;
}
.hc-hero-inner { display: grid; gap: 20px; }
.hc-hero-copy { min-width: 0; }
.hc-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); line-height: 1.15; margin-bottom: .3em; }
.hc-hero p.lead { font-size: 1rem; margin-bottom: 20px; }
.hc-hero-actions { display: grid; gap: 12px; margin-top: 18px; }
.hc-hero-media { min-width: 0; display: none; }
.hc-hero-media img { width: 100%; height: auto; display: block; }

/* ---- hero search (centerpiece) ---- */
.hc-search-prompt { font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; color: var(--hc-text); }
.hc-hero-search { padding: 5px 8px 5px 20px; border-width: 2px; box-shadow: var(--hc-shadow-hover); min-width: 0; }
.hc-hero-search .hc-search-input { min-height: 56px; font-size: 1.05rem; min-width: 0; }
.hc-search-hint { margin: 8px 0 0; font-size: .78rem; color: var(--hc-text-muted); }
.hc-chips-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hc-text-muted); margin: 16px 0 8px; }
.hc-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }

.hc-chip {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--hc-border);
  font-size: .82rem; font-weight: 700; color: var(--hc-text); white-space: nowrap; transition: background .15s ease, border-color .15s ease;
}
.hc-chip:hover { background: var(--hc-primary-light); border-color: var(--hc-primary-light); }

/* ---- search ---- */
.hc-bg-section { background-image: var(--hc-bg-mobile, none); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hc-searchbox { position: relative; display: flex; align-items: center; background: #fff; border: 2px solid var(--hc-primary-light); border-radius: 50px; padding: 4px 6px 4px 16px; box-shadow: var(--hc-shadow); }
.hc-searchbox:focus-within { border-color: var(--hc-primary); }
.hc-searchbox > .dashicons { color: var(--hc-primary); flex: none; }
.hc-archive-search { max-width: 560px; margin: 18px auto 0; text-align: left; }
.hc-archive-search .hc-search-input { min-height: 48px; }
.hc-search-input { flex: 1; border: none; outline: none; font-size: 1rem; padding: 12px 10px; background: transparent; font-family: inherit; min-height: 48px; }
.hc-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--hc-border); border-radius: 16px; box-shadow: var(--hc-shadow-hover); max-height: 60vh; overflow-y: auto;
}
.hc-search-results li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--hc-text); }
.hc-search-results li.is-active a, .hc-search-results li a:hover { background: var(--hc-primary-light); }
.hc-sr-title { font-weight: 600; }
.hc-sr-type { font-size: .72rem; color: var(--hc-primary); background: var(--hc-primary-light); padding: 3px 8px; border-radius: 20px; flex: none; }
.hc-search-empty { padding: 12px 14px; color: var(--hc-text-muted); font-size: .9rem; }

/* ---- condition card icon (reused by template-parts/card-condition.php) ---- */
.hc-quick-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--hc-primary-light); display: flex; align-items: center; justify-content: center; }
.hc-quick-ico .dashicons { color: var(--hc-primary); font-size: 1.5rem; width: 1.5rem; height: 1.5rem; }
.hc-emoji { font-size: 1.5rem; line-height: 1; }

/* ---- horizontal rails (scroll-snap) ---- */
.hc-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px 4px 14px; margin: 0 -4px;
  scrollbar-width: thin;
}
.hc-rail::-webkit-scrollbar { height: 6px; }
.hc-rail::-webkit-scrollbar-thumb { background: var(--hc-primary-light); border-radius: 10px; }

/* rail nav arrows — live in the section head next to "View All", desktop only;
   mobile stays touch-swipe with the native scrollbar */
.hc-rail-nav-group { display: none; gap: 8px; }
.hc-rail-nav {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--hc-border); color: var(--hc-primary); cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.hc-rail-nav .dashicons { font-size: 1.1rem; width: 1.1rem; height: 1.1rem; }
.hc-rail-nav:hover { background: var(--hc-primary-light); }
.hc-rail-nav.is-hidden { opacity: .35; pointer-events: none; }
.hc-rail-card {
  scroll-snap-align: start; flex: 0 0 auto; background: #fff; border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.hc-rail-card:hover { transform: translateY(-4px); box-shadow: var(--hc-shadow-hover); }

/* treatment + tool cards */
.hc-treatment-card, .hc-tool-card {
  width: 130px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; color: var(--hc-text);
}
.hc-treatment-card { justify-content: center; position: relative; }
.hc-rail-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--hc-primary-light); display: flex; align-items: center; justify-content: center; }
.hc-rail-ico .dashicons { color: var(--hc-primary); font-size: 1.6rem; width: 1.6rem; height: 1.6rem; }
.hc-tool-ico { font-size: 2rem; line-height: 1; }
.hc-rail-title { font-weight: 700; font-size: .88rem; line-height: 1.3; }

/* Category filter capsules (homepage treatments rail) */
.hc-cat-capsules { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 18px; padding-bottom: 4px; }
.hc-cat-capsules::-webkit-scrollbar { display: none; }
.hc-cat-capsule { flex: 0 0 auto; border: 1.5px solid var(--hc-border); background: #fff; color: var(--hc-text); font-family: inherit; font-weight: 600; font-size: .85rem; padding: 8px 16px; border-radius: 30px; cursor: pointer; transition: all .15s ease; }
.hc-cat-capsule:hover { border-color: var(--hc-primary); color: var(--hc-primary); }
.hc-cat-capsule.is-active { background: var(--hc-primary); border-color: var(--hc-primary); color: #fff; }

/* Premium image tiles */
.hc-treatment-card--img { width: 190px; padding: 0; position: relative; overflow: hidden; display: block; }
.hc-treatment-card--img img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; display: block; }
.hc-treatment-card--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.72) 100%); }
.hc-treatment-card--img .hc-treatment-card-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hc-treatment-card--img .hc-treatment-card-title { color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hc-treatment-card--img .hc-treatment-card-sub { background: var(--hc-primary); color: #fff; font-weight: 700; font-size: .7rem; padding: 3px 9px; border-radius: 20px; }

/* Badge pills — float over the card's top edge like an app-store ribbon */
.hc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .64rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); white-space: nowrap; letter-spacing: .01em; }
.hc-treatment-card:not(.hc-treatment-card--img) .hc-badge { top: -9px; left: 50%; transform: translateX(-50%); }
.hc-rail { padding-top: 12px; }
.hc-badge--popular { background: #e8590c; }
.hc-badge--favourite { background: var(--hc-primary); }
.hc-badge--signature { background: #b07b00; }
.hc-badge--new { background: #1f7a4d; }

/* Tiles hidden by the capsule filter */
.hc-rail-card.is-filtered { display: none; }

/* doctor cards */
.hc-doctor-card { width: 220px; padding: 14px; display: flex; flex-direction: column; }
.hc-doctor-photo { display: block; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: var(--hc-primary-light); }
.hc-doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.hc-photo-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hc-photo-fallback .dashicons { font-size: 3rem; width: 3rem; height: 3rem; color: var(--hc-primary); }
.hc-doctor-info { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.hc-doctor-info h3 { font-size: 1rem; margin: 0 0 2px; }
.hc-doctor-info h3 a { color: var(--hc-text); }
.hc-doctor-spec { font-size: .82rem; color: var(--hc-primary); font-weight: 600; margin: 0 0 6px; }
.hc-card-body .hc-doctor-intro, .hc-doctor-intro { font-size: .82rem; color: var(--hc-text-muted); margin: 0 0 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.hc-doctor-readmore { color: var(--hc-primary); font-weight: 600; white-space: nowrap; }
.hc-doctor-actions { display: flex; gap: 8px; margin-top: auto; }
.hc-doctor-actions .btn { flex: 1; padding: 8px 6px; }
.hc-doctor-socials { display: flex; gap: 8px; margin: 4px 0 10px; }
.hc-doctor-socials a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hc-primary-light); color: var(--hc-primary); transition: background .15s, color .15s; }
.hc-doctor-socials a:hover { background: var(--hc-primary); color: #fff; }
.hc-doctor-socials .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* clinic cards — mobile: horizontal swipe rail, matches signature-treatments pattern */
.hc-clinic-grid {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px 4px 14px; margin: 0 -4px;
  scrollbar-width: thin;
}
.hc-clinic-grid::-webkit-scrollbar { height: 6px; }
.hc-clinic-grid::-webkit-scrollbar-thumb { background: var(--hc-primary-light); border-radius: 10px; }
.hc-clinic-card { flex: 0 0 auto; width: 280px; scroll-snap-align: start; background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); overflow: hidden; }
.hc-clinic-media { aspect-ratio: 16/9; background: var(--hc-primary-light); }
.hc-clinic-media img { width: 100%; height: 100%; object-fit: cover; }
.hc-clinic-body { padding: 16px; }
.hc-clinic-body h3 { font-size: 1.15rem; margin: 0 0 6px; }
.hc-clinic-body h3 a { color: var(--hc-text); }
.hc-clinic-rating { font-size: .9rem; margin: 6px 0; }
.hc-clinic-rating .hc-stars { color: #f5a623; }
.hc-clinic-hours { font-size: .85rem; color: var(--hc-text-muted); display: flex; align-items: center; gap: 6px; margin: 6px 0 14px; }
.hc-clinic-hours .dashicons { font-size: 1rem; width: 1rem; height: 1rem; }
.hc-clinic-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hc-clinic-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 56px; justify-content: center;
  border: 1px solid var(--hc-border); border-radius: 12px; font-size: .78rem; font-weight: 700; color: var(--hc-text);
}
.hc-clinic-btn .dashicons { color: var(--hc-primary); }
.hc-clinic-btn.is-primary { background: var(--hc-primary); color: #fff; border-color: var(--hc-primary); }
.hc-clinic-btn.is-primary .dashicons { color: #fff; }

/* patient stories */
.hc-story-card { width: 260px; display: flex; flex-direction: column; overflow: hidden; }
.hc-story-media { position: relative; aspect-ratio: 1/1; background: var(--hc-primary-light); }
.hc-story-media img { width: 100%; height: 100%; object-fit: cover; }
.hc-story-video .hc-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hc-story-video .hc-play .dashicons { font-size: 2.4rem; width: 3.4rem; height: 3.4rem; line-height: 3.4rem; color: #fff; background: rgba(234,19,104,.85); border-radius: 50%; }
.hc-story-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hc-story-ba figure { margin: 0; position: relative; }
.hc-story-ba figcaption { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 20px; }
.hc-story-body { padding: 14px; }
.hc-story-body .hc-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 6px; }
.hc-story-quote { font-size: .9rem; color: var(--hc-text); font-style: italic; margin: 0 0 10px; }
.hc-story-who { font-size: .82rem; color: var(--hc-text-muted); margin: 0; }
.hc-story-who strong { color: var(--hc-text); }
.hc-story-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hc-story-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.hc-story-avatar--initial { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; }
.hc-story-name { display: block; font-size: .88rem; color: var(--hc-text); }
.hc-story-loc { font-weight: 600; color: var(--hc-primary); }
.hc-google-summary { margin-bottom: 18px; }

/* knowledge centre */
.hc-article-list { display: grid; gap: 12px; }
.hc-article-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); padding: 10px; box-shadow: var(--hc-shadow); color: var(--hc-text); }
.hc-article-thumb { flex: 0 0 88px; width: 88px; height: 66px; border-radius: 12px; overflow: hidden; background: var(--hc-primary-light); }
.hc-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-article-thumb .hc-photo-fallback .dashicons { font-size: 1.6rem; width: 1.6rem; height: 1.6rem; }
.hc-article-copy { display: flex; flex-direction: column; gap: 4px; }
.hc-article-title { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.hc-article-meta { font-size: .78rem; color: var(--hc-text-muted); }

/* CTA */
.hc-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---- condition archive + cards ---- */
.hc-archive, .hc-calc-page { padding: 26px 20px 40px; }
.hc-page-head { text-align: center; max-width: 700px; margin: 0 auto 24px; }
.hc-page-head h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.hc-page-head .eyebrow { display: inline-block; color: var(--hc-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 8px; }
.hc-condition-list { display: grid; gap: 12px; }
.hc-condition-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); padding: 16px; box-shadow: var(--hc-shadow); color: var(--hc-text); }

/* signature treatments showcase — mobile: single-row swipe rail, card sized
   under 100% so the next card peeks at the edge as a scroll cue */
.hc-section-head-stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.hc-swipe-hint { font-size: .78rem; color: var(--hc-text-muted); font-weight: 600; display: block; }
.hc-section-head + .hc-swipe-hint { margin: -6px 0 10px; }
.hc-signature-grid {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: thin;
}
.hc-signature-grid::-webkit-scrollbar { height: 6px; }
.hc-signature-grid::-webkit-scrollbar-thumb { background: var(--hc-primary-light); border-radius: 10px; }
.hc-signature-card {
  flex: 0 0 78%; max-width: 300px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 20px; color: var(--hc-text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hc-signature-card:hover { transform: translateY(-4px); box-shadow: var(--hc-shadow-hover); }
.hc-signature-card--media { padding-top: 0; overflow: hidden; }
.hc-signature-media { display: block; margin: 0 -20px 4px; }
.hc-signature-media img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.hc-signature-card--media .hc-signature-ico { margin-top: -30px; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: var(--hc-shadow); }
.hc-signature-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--hc-primary-light); display: flex; align-items: center; justify-content: center; }
.hc-signature-ico .dashicons { color: var(--hc-primary); font-size: 1.6rem; width: 1.6rem; height: 1.6rem; }
.hc-signature-emoji { font-size: 1.7rem; line-height: 1; }
.hc-signature-title { font-weight: 800; font-size: 1.05rem; margin: 0; }
.hc-signature-desc { font-size: .85rem; color: var(--hc-text-muted); margin: 0; flex: 1; }
.hc-signature-link { font-weight: 700; font-size: .85rem; margin-top: auto; color: var(--hc-primary); }
.hc-condition-card:hover { box-shadow: var(--hc-shadow-hover); transform: translateY(-2px); }
.hc-condition-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hc-condition-title { font-weight: 700; font-size: 1.05rem; }
.hc-condition-desc { font-size: .85rem; color: var(--hc-text-muted); }
.hc-condition-arrow { color: var(--hc-primary); }

/* ---- single condition ---- */
.hc-cond-hero { background: linear-gradient(135deg, #fdeff6 0%, #f1eefd 100%); padding: 16px 0 26px; }
.hc-breadcrumb { font-size: .82rem; color: var(--hc-text-muted); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.hc-breadcrumb a { color: var(--hc-text-muted); }
.hc-cond-hero-inner { display: flex; gap: 16px; align-items: center; }
.hc-cond-emoji { font-size: 3rem; line-height: 1; }
.hc-cond-hero h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 6vw, 2.3rem); }
.hc-cond-hero .lead { margin: 0; color: var(--hc-text-muted); }
.hc-anchor-nav { position: sticky; top: 62px; z-index: 90; background: #fff; border-bottom: 1px solid var(--hc-border); }
.hc-anchor-nav .container { display: flex; gap: 6px; overflow-x: auto; }
.hc-anchor-nav a { padding: 14px 12px; font-weight: 600; font-size: .9rem; color: var(--hc-text-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.hc-anchor-nav a:hover { color: var(--hc-primary); border-bottom-color: var(--hc-primary); }
.hc-cond-body { display: grid; gap: 28px; padding: 26px 20px 40px; }
/* grid items must be allowed to shrink below their content's intrinsic width,
   or rich Gutenberg content (huge-font headings etc.) blows the column out past
   the mobile viewport — same min-width:0 fix used on the hero */
.hc-cond-main, .hc-cond-aside { min-width: 0; }
.hc-cond-main .entry-content { overflow-wrap: break-word; }
.hc-cond-section { padding: 0; margin-bottom: 34px; scroll-margin-top: 120px; }
.hc-cond-section h2 { font-size: 1.3rem; }
.hc-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hc-check-list li { position: relative; padding-left: 32px; }
.hc-check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--hc-primary-light); color: var(--hc-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.hc-check-neutral li::before { content: "\2022"; }
.hc-x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hc-x-list li { position: relative; padding-left: 32px; }
.hc-x-list li::before { content: "\2715"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: #fdecec; color: #c0392b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; }
.hc-advantage-card { background: linear-gradient(150deg, var(--hc-primary-light), #fff 55%); border: 1px solid var(--hc-primary-light); border-left: 5px solid var(--hc-primary); border-radius: var(--hc-radius); padding: 24px; }
.hc-advantage-card h2 { margin-top: 0; }
.hc-dos-donts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hc-dos-donts h3 { font-size: 1.05rem; margin: 0 0 12px; }
@media (max-width: 700px) { .hc-dos-donts { grid-template-columns: 1fr; } }
.hc-article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hc-article-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hc-border); }
.hc-article-list a { font-weight: 600; color: var(--hc-text); }
.hc-article-list a:hover { color: var(--hc-primary); }
.hc-article-date { flex: 0 0 auto; font-size: .8rem; color: var(--hc-text-muted); }
.hc-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-chip { background: var(--hc-primary-light); color: var(--hc-primary-dark); padding: 10px 16px; border-radius: 30px; font-weight: 600; font-size: .9rem; }
.hc-chip:hover { background: var(--hc-primary); color: #fff; }
.hc-chip.is-active { background: var(--hc-primary); color: #fff; }
.hc-chip--ayurveda { background: #1f7a4d; color: #fff; font-weight: 700; }
.hc-chip--ayurveda:hover { background: #155838; color: #fff; }
.hc-book-card { background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 22px; display: grid; gap: 12px; }
.hc-book-card h3 { margin: 0; }
.hc-book-card p { margin: 0; color: var(--hc-text-muted); font-size: .9rem; }
.hc-related-card { margin-top: 16px; gap: 4px; }
.hc-related-list { list-style: none; margin: 0; padding: 0; }
.hc-related-list li + li { border-top: 1px solid var(--hc-border); }
.hc-related-list a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; color: var(--hc-text); font-weight: 600; font-size: .9rem; border-radius: 8px; }
.hc-related-list a:hover { color: var(--hc-primary); }
.hc-related-emoji { flex: 0 0 auto; font-size: 1.1rem; }
.hc-side-chips { margin-top: 16px; text-align: left; }
.hc-side-chips .hc-chip { padding: 6px 11px; font-size: .78rem; }
.hc-side-chips .hc-chip-grid { gap: 7px; }

/* ---- calculators ---- */
.hc-calc-wrap { max-width: 560px; margin: 0 auto; }
.hc-calc { background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 22px; display: grid; gap: 14px; }
.hc-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.hc-field input, .hc-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--hc-border); border-radius: 10px; font-family: inherit; font-size: 1rem; min-height: 48px; }
.hc-field input:focus, .hc-field select:focus { border-color: var(--hc-primary); outline: none; }
.hc-calc-result { max-width: 560px; margin: 18px auto 0; background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 24px; text-align: center; }
.hc-calc-big { font-size: 2.6rem; font-weight: 800; color: var(--hc-primary); line-height: 1; }
.hc-calc-big span { font-size: 1rem; color: var(--hc-text-muted); font-weight: 600; }
.hc-calc-badge { display: inline-block; margin-top: 10px; padding: 6px 16px; border-radius: 30px; background: var(--hc-primary-light); color: var(--hc-primary-dark); font-weight: 700; font-size: .9rem; }
.hc-calc-badge.hc-good { background: #e5f8ec; color: #14683a; }
.hc-calc-badge.hc-warn { background: #fff3e0; color: #a86400; }
.hc-calc-badge.hc-high, .hc-calc-badge.hc-low { background: #fdeaec; color: #a91d30; }
.hc-calc-note { font-size: .82rem; color: var(--hc-text-muted); margin: 14px 0 0; }
.hc-calc-error { color: #a91d30; margin: 0; font-weight: 600; }
.hc-calc-rows { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: grid; gap: 8px; }
.hc-calc-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hc-border); font-size: .9rem; }
.hc-macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.hc-macro { padding: 14px 8px; border-radius: 14px; background: var(--hc-bg-alt); }
.hc-macro strong { display: block; font-size: 1.4rem; color: var(--hc-primary); }
.hc-macro span { font-size: .78rem; color: var(--hc-text-muted); }
.hc-tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.hc-tool-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--hc-border); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); color: var(--hc-text); }
.hc-tool-tile:hover { transform: translateY(-3px); box-shadow: var(--hc-shadow-hover); }
.hc-tool-tile .hc-tool-ico { font-size: 2rem; }
.hc-tool-name { font-weight: 700; }
.hc-tool-desc { font-size: .82rem; color: var(--hc-text-muted); }
.hc-tool-tile.is-soon { opacity: .55; pointer-events: none; }

/* fitness companion app promo — 3 variants: full (mobile homepage section), banner (Health Tools hub), compact (footer) */
.hc-app-promo { display: flex; gap: 16px; align-items: center; }
.hc-app-icon { border-radius: 18px; object-fit: cover; flex: none; }
.hc-app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-app-badge { display: inline-flex; align-items: center; gap: 6px; }
.hc-app-badge img { height: 42px; width: auto; display: block; }
.hc-app-badge.is-text { background: var(--hc-primary); color: #fff; padding: 10px 18px; border-radius: 50px; font-size: .85rem; font-weight: 700; min-height: 48px; }

.hc-app-promo--full {
  flex-direction: column; text-align: center; padding: 32px 22px; border-radius: var(--hc-radius);
  background: linear-gradient(135deg, #fdeff6 0%, #f1eefd 60%, #fbf4f8 100%);
  border: 1px solid var(--hc-border); box-shadow: var(--hc-shadow); color: var(--hc-text);
}
.hc-app-promo--full .hc-app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: var(--hc-shadow); }
.hc-app-promo--full .hc-app-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800; color: var(--hc-primary); margin: 0 0 4px; }
.hc-app-promo--full .hc-app-name { color: var(--hc-text); font-size: 1.3rem; margin: 0 0 8px; }
.hc-app-promo--full .hc-app-desc { color: var(--hc-text-muted); font-size: .9rem; margin: 0 0 18px; }
.hc-app-promo--full .hc-app-features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; text-align: left; }
.hc-app-promo--full .hc-app-features li { background: #fff; border: 1px solid var(--hc-border); padding: 10px 14px; border-radius: 10px; font-size: .88rem; font-weight: 700; color: var(--hc-text); }
.hc-app-promo--full .hc-app-badges { justify-content: center; }

.hc-app-promo--banner {
  background: linear-gradient(135deg, #fdeff6 0%, #f1eefd 60%, #fbf4f8 100%);
  border: 1px solid var(--hc-border); box-shadow: var(--hc-shadow);
  border-radius: var(--hc-radius); padding: 26px 28px; margin: 40px 0 0;
  align-items: center; flex-wrap: wrap; text-align: left;
}
.hc-app-promo--banner .hc-app-icon { width: 80px; height: 80px; border-radius: 20px; border: 3px solid #fff; box-shadow: var(--hc-shadow); }
.hc-app-promo--banner .hc-app-copy { flex: 1; min-width: 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hc-app-promo--banner .hc-app-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800; color: var(--hc-primary); margin: 0; }
.hc-app-promo--banner .hc-app-name { font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--hc-text); }
.hc-app-promo--banner .hc-app-desc { color: var(--hc-text-muted); font-size: .92rem; margin: 0; max-width: 52ch; }
.hc-app-promo--banner .hc-app-features { list-style: none; padding: 0; margin: 4px 0 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.hc-app-promo--banner .hc-app-features li { background: #fff; border: 1px solid var(--hc-border); padding: 7px 13px; border-radius: 50px; font-size: .8rem; font-weight: 700; color: var(--hc-text); }
.hc-app-promo--banner .hc-app-badges { margin-top: 4px; }

.hc-calc-copy { max-width: 720px; margin: 30px auto 0; }

/* =========================================================
   12. RESPONSIVE SCALE-UP (tablet / desktop)
========================================================= */
@media (min-width: 600px) {
  .hc-clinic-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); overflow-x: visible; scroll-snap-type: none; padding: 0; margin: 0;
  }
  .hc-clinic-card { width: auto; }
  .hc-tool-grid { grid-template-columns: repeat(3, 1fr); }
  .hc-signature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    overflow-x: visible; scroll-snap-type: none;
  }
  .hc-signature-card { flex: none; max-width: none; }
  .hc-section-head-stack { flex-direction: row; align-items: baseline; }
  .hc-swipe-hint { display: none; }
  .hc-hero-actions { grid-auto-flow: column; justify-content: start; }
}
@media (min-width: 1024px) {
  .hc-topbar { display: block; }
  .main-navigation { display: flex; }
  .hc-drawer-toggle { display: none; }
  .hc-icon-btn { display: none; }
  .hc-mobile-actionbar { display: none; }
  body { padding-bottom: 0; }
  .hc-back-to-top { bottom: 20px; }
  .hc-hero-media { display: block; }
  .hc-section { padding: 52px 0; }
  .hc-section-head h2 { font-size: 1.7rem; }
  .hc-hero { padding: 60px 0; }
  .hc-hero { background-image: var(--hc-bg-desktop, var(--hc-bg-mobile, none)), linear-gradient(135deg, #fdeff6 0%, #f1eefd 60%, #fbf4f8 100%); }
  /* no hero image uploaded → single full-width column, wide Google-style search;
     the uploaded hero background image still shows (user designs it to fit) */
  .hc-hero--full .hc-hero-inner { grid-template-columns: 1fr; }
  .hc-clinic-grid { grid-template-columns: repeat(3, 1fr); }
  .hc-signature-grid { grid-template-columns: repeat(4, 1fr); }
  .hc-cond-body { grid-template-columns: 1fr 320px; align-items: start; }
  /* the desktop rule above only needs to override column count — flow/scroll already reset at the 600px breakpoint and cascade forward */
  .hc-cond-aside { position: sticky; top: 130px; }
  .hc-anchor-nav { top: 72px; }
  .hc-cta-band { background-image: var(--hc-bg-desktop, var(--hc-bg-mobile, none)), linear-gradient(120deg, var(--hc-primary) 0%, var(--hc-primary-dark) 100%); }
  .hc-bg-section { background-image: var(--hc-bg-desktop, var(--hc-bg-mobile, none)); }
  .hc-app-section { display: none; }
  .hc-rail-nav-group { display: flex; }
  .hc-rail { scrollbar-width: none; -ms-overflow-style: none; }
  .hc-rail::-webkit-scrollbar { display: none; }
}
@media (min-width: 1024px) {
  /* keep sticky bottom bar off on desktop even though base shows it on mobile */
  body { padding-bottom: 0; }
}
/* mobile: reserve room for the sticky action bar + lift back-to-top */
@media (max-width: 1023px) {
  body { padding-bottom: 62px; }
  .hc-mobile-actionbar { display: block; }
  .hc-back-to-top { bottom: 76px; }
}
