/* =========================================================
   Heart Care Medical — Landing Page
   Minimal theme, brand colors from the logo (red #D8000C)
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="minimal"] {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #14181c;
  --text-soft: #59626c;
  --primary: #d8000c;
  --primary-dark: #ab0009;
  --primary-contrast: #ffffff;
  --accent: #d8000c;
  --border: #e6e8ee;
  --shadow: 0 14px 44px rgba(18, 26, 38, 0.10);
  --shadow-sm: 0 3px 14px rgba(18, 26, 38, 0.06);
  --radius: 16px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --hero-bg: linear-gradient(180deg, #faf6f6 0%, #ffffff 58%);
  --head-weight: 700;
}

[data-theme="bold"] {
  --bg: #ffffff;
  --bg-alt: #f0f4ff;
  --surface: #ffffff;
  --text: #0f1424;
  --text-soft: #555d77;
  --primary: #4f46e5;
  --primary-dark: #3c34c9;
  --primary-contrast: #ffffff;
  --accent: #06b6d4;
  --border: #e6e8f5;
  --shadow: 0 14px 40px rgba(79, 70, 229, 0.16);
  --radius: 20px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --hero-bg: linear-gradient(130deg, #eef0ff 0%, #e0f7fb 100%);
  --head-weight: 800;
}

[data-theme="elegant"] {
  --bg: #fdfcfa;
  --bg-alt: #f6f1ea;
  --surface: #ffffff;
  --text: #2e2a26;
  --text-soft: #6f665d;
  --primary: #b08344;
  --primary-dark: #8f6932;
  --primary-contrast: #ffffff;
  --accent: #3f6f5f;
  --border: #e9e1d6;
  --shadow: 0 12px 34px rgba(120, 95, 60, 0.12);
  --radius: 8px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --hero-bg: linear-gradient(180deg, #f6f1ea 0%, #fdfcfa 100%);
  --head-weight: 700;
}

[data-theme="dark"] {
  --bg: #0c1118;
  --bg-alt: #121a24;
  --surface: #161f2b;
  --text: #eef3f9;
  --text-soft: #9bacbf;
  --primary: #2dd4bf;
  --primary-dark: #14b8a6;
  --primary-contrast: #04201c;
  --accent: #2dd4bf;
  --border: #25313f;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --hero-bg: radial-gradient(1200px 600px at 80% -10%, #15323a 0%, #0c1118 60%);
  --head-weight: 800;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; font-weight: var(--head-weight); color: var(--text); }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); letter-spacing: -.028em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); letter-spacing: -.022em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { color: var(--text-soft); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: .85rem;
}
.lead { font-size: 1.16rem; line-height: 1.7; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-family: var(--font-body); cursor: pointer; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 11px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s, box-shadow .25s, border-color .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--primary-contrast); box-shadow: 0 8px 20px rgba(216, 0, 12, .24); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: 0 12px 28px rgba(216, 0, 12, .32); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, transparent); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.04rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s, background .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.logo__img { height: 44px; width: auto; display: block; }
.logo__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--primary); color: var(--primary-contrast); font-size: 1rem;
}
.logo__text strong { color: var(--primary); }
.logo--light, .logo--light .logo__text strong { color: #fff; }
/* footer logo on a white chip so the dark brand text stays legible */
.logo--footer { background: #fff; padding: 10px 14px; border-radius: 12px; }
.logo--footer .logo__img { height: 40px; }

.nav { display: flex; gap: 1.6rem; }
.nav a { font-weight: 500; color: var(--text-soft); font-size: .96rem; }
.nav a:hover { color: var(--primary); }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.phone-link { font-weight: 600; font-size: .92rem; color: var(--text); }
.phone-link:hover { color: var(--primary); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero (text-only, centered) ---------- */
.hero { background: var(--hero-bg); padding: clamp(3.5rem, 8vw, 7rem) 0; overflow: hidden; text-align: center; }
.hero__inner { max-width: 880px; margin-inline: auto; }
.hero__pill {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem .95rem; font-size: .82rem; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.hero__pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.hero__content .lead { margin: 1.4rem auto 2.2rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.8rem; justify-content: center; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; justify-content: center; }
.hero__stats li { position: relative; padding-left: 2.4rem; }
.hero__stats li:first-child { padding-left: 0; }
.hero__stats li:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.hero__stats strong { display: block; font-size: 1.7rem; color: var(--text); font-family: var(--font-head); letter-spacing: -.02em; line-height: 1.1; }
.hero__stats span { font-size: .84rem; color: var(--text-soft); }

/* ---------- Brands & products (tabbed) ---------- */
.brands__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 2.4rem; }
.brands__tab {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  padding: .65rem 1rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.brands__tab img { height: 24px; width: auto; max-width: 66px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: .2s; }
.brands__tab span { font-size: .86rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.brands__tab:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateY(-2px); }
.brands__tab.is-active { border-color: var(--primary); box-shadow: 0 8px 20px rgba(216, 0, 12, .14); }
.brands__tab.is-active img { filter: none; opacity: 1; }
.brands__tab.is-active span { color: var(--text); }

.brands__panel { display: none; }
.brands__panel.is-active {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  animation: brandFade .35s ease;
}
@keyframes brandFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.brands__media {
  background: #f4f6f8; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; display: grid; place-items: center; aspect-ratio: 4 / 3;
}
.brands__media img { width: 100%; height: 100%; object-fit: contain; }
.brands__logo { height: 34px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; margin-bottom: .5rem; }
.brands__info h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: .3rem 0 .5rem; }
.brands__info > p { font-size: 1.02rem; }
.brands__list { list-style: none; margin: 1.1rem 0 1.6rem; display: grid; gap: .55rem; }
.brands__list li { position: relative; padding-left: 1.35rem; color: var(--text); font-weight: 500; }
.brands__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.brands__list li a { color: inherit; transition: color .15s; }
.brands__list li a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 3.2rem; }
.section__head p { margin-top: .75rem; font-size: 1.05rem; }

.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }

/* Service */
.service__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 15px; margin-bottom: 1.15rem;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.service__icon svg { width: 27px; height: 27px; }
.card:hover .service__icon { background: var(--primary); color: #fff; transform: scale(1.05); }
.service h3 { margin-bottom: .5rem; }
.service p { font-size: .96rem; }

/* About (text-only, centered) */
.about__inner { max-width: 800px; margin-inline: auto; text-align: center; }
.feature-list { list-style: none; margin: 1.7rem auto 1.9rem; display: inline-grid; grid-template-columns: 1fr 1fr; gap: .8rem 2.2rem; text-align: left; }
.feature-list li { display: flex; align-items: center; gap: .7rem; color: var(--text); font-weight: 500; }
.feature-list span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: var(--primary-contrast); font-size: .75rem; flex-shrink: 0;
}


/* Team cards */
.doctor { text-align: center; padding: 1.2rem; }
.doctor img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; margin-bottom: .9rem; }
.doctor h3 { font-size: 1.05rem; }
.doctor__role { font-size: .88rem; color: var(--primary); font-weight: 600; }
.doctor__link {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem;
  font-size: .82rem; font-weight: 700; color: var(--primary);
}
.doctor__link:hover { text-decoration: underline; }

/* Small note under a section grid */
.section__note { text-align: center; margin-top: 1.6rem; font-size: .85rem; color: var(--text-soft); font-style: italic; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: .8rem; }
.quote__stars { color: #f5a623; letter-spacing: 2px; }
.quote p { color: var(--text); font-size: 1.02rem; }
.quote footer { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.quote footer img { width: 42px; height: 42px; border-radius: 50%; }
.quote footer strong { display: block; color: var(--text); font-size: .92rem; }
.quote footer small { color: var(--text-soft); }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__details { list-style: none; margin-top: 1.4rem; display: grid; gap: .9rem; }
.contact__details li { display: flex; gap: .7rem; align-items: center; color: var(--text); }
.contact__details a:hover { color: var(--primary); }
.contact__form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px; padding: .7rem .85rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field input.invalid { border-color: #e0394f; }
.form-note { color: #1f9d55; font-weight: 600; text-align: center; }


/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
  transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37, 211, 102, .55); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0c141d; color: #c4d0dc; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer p { color: #94a3b2; margin-top: .6rem; }
.site-footer__col h4 { color: #fff; margin-bottom: .9rem; font-size: 1rem; }
.site-footer__col a { display: block; color: #94a3b2; padding: .2rem 0; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.3rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav, .site-header__actions .phone-link { display: none; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 0; transform: translateY(-120%); transition: transform .25s; }
  .nav.is-open { display: flex; transform: translateY(0); }
  .nav a { padding: .8rem 6%; }
  .nav-toggle { display: flex; }
  .contact__inner { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .brands__panel.is-active { grid-template-columns: 1fr; gap: 1.6rem; }
  .brands__media { order: -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.1rem 1.8rem; }
  .hero__stats li { padding-left: 0; }
  .hero__stats li::before { display: none; }
  .logo__img { height: 36px; }
  .btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }
}
@media (max-width: 400px) {
  .brands__tab span { font-size: .8rem; }
  .site-header__actions .btn { padding: .6rem 1rem; font-size: .9rem; }
}
