/*
Theme Name: MediFlow Theme
Description: Modern medical telemedicine theme
Version: 1.3.0
*/

/* ===== VARIABLES ===== */
:root {
  --primary: #1a2e5a;
  --teal: #00b8a9;
  --teal-light: #e6f9f8;
  --white: #ffffff;
  --gray-bg: #f8f9fc;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e8ecf2;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(26,46,90,0.07);
  --shadow-lg: 0 8px 40px rgba(26,46,90,0.14);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: 2px solid transparent;
  transition: all 0.22s ease; white-space: nowrap; font-family: inherit;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #243d76; box-shadow: 0 6px 20px rgba(26,46,90,0.25); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border-color: #d0d8e8; }
.btn--outline:hover { border-color: var(--primary); background: #f5f7fb; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: #00a396; box-shadow: 0 6px 20px rgba(0,184,169,0.35); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: #f0f4ff; box-shadow: 0 6px 20px rgba(255,255,255,0.25); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ===== NAVBAR ===== */
.navbar { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(26,46,90,0.05); transition: box-shadow 0.3s; }
.navbar--scrolled { box-shadow: 0 4px 24px rgba(26,46,90,0.12); }
.navbar__inner { display: flex; align-items: center; height: 70px; gap: 0; }
.navbar__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 36px; }
.navbar__logo-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 19px; font-weight: 800; color: var(--primary); }
.navbar__tagline { font-size: 10.5px; font-weight: 400; color: var(--teal); letter-spacing: 0.04em; }
.navbar__menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.navbar__menu a { padding: 6px 14px; font-size: 14px; font-weight: 500; color: #4a5568; border-radius: 8px; transition: all 0.18s; }
.navbar__menu a:hover, .navbar__menu a.active { color: var(--primary); background: #f0f4ff; }
.navbar__cta { flex-shrink: 0; font-size: 14px; padding: 10px 22px; margin-left: 16px; }
.navbar__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; margin-left: auto; }
.navbar__burger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.navbar__burger--active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar__burger--active span:nth-child(2) { opacity: 0; }
.navbar__burger--active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.navbar__menu--open { display: flex !important; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 16px 28px 22px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(26,46,90,0.1); z-index: 199; animation: fadeUp 0.22s ease both; }
.navbar__menu--open a { padding: 10px 12px; }

/* ===== HERO ===== */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero__text h1 { font-size: 50px; font-weight: 800; line-height: 1.17; color: var(--primary); margin-bottom: 18px; letter-spacing: -0.02em; }
.hero__accent { color: var(--teal); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.hero__sub { font-size: 16px; color: var(--text-muted); max-width: 420px; margin-bottom: 32px; line-height: 1.7; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__trust { display: flex; align-items: center; gap: 14px; }
.hero__avatars { display: flex; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #fff; margin-right: -9px; flex-shrink: 0; }
.av1 { background: linear-gradient(135deg,#f6d365,#fda085); }
.av2 { background: linear-gradient(135deg,#84fab0,#8fd3f4); }
.av3 { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }
.av4 { background: linear-gradient(135deg,#fccb90,#d57eeb); }
.hero__trust-text { font-size: 13.5px; color: var(--text-muted); padding-left: 12px; }
.hero__trust-text strong { color: var(--primary); }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__circle { width: 400px; height: 400px; border-radius: 50%; background: linear-gradient(150deg,#b2f0eb 0%,#e0faf8 60%,#c8f5f1 100%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; transition: box-shadow 0.3s; }
.hero__doctor-placeholder { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; }
.hero__badge { position: absolute; bottom: 36px; right: -8px; background: #fff; border-radius: 16px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 32px rgba(26,46,90,0.15); min-width: 165px; }
.hero__badge-avatar { width: 40px; height: 40px; border-radius: 50%; background: #eef2ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero__badge strong { display: block; color: var(--primary); font-size: 17px; font-weight: 800; line-height: 1; }
.hero__badge span { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.hero__badge small { font-size: 11px; color: #48bb78; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #48bb78; display: inline-block; animation: pulse-dot 2s ease infinite; }

/* ===== TRUST ===== */
.trust { background: #fff; padding: 20px 0 60px; }
.trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; background: #fafbfd; }
.trust__card { background: #fff; border-radius: var(--radius); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; border: 1px solid var(--border); }
.trust__icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.trust__card:hover .trust__icon { transform: scale(1.15); }
.trust__icon--blue  { background: #dbeafe; color: #2563eb; }
.trust__icon--blue2 { background: #dbeafe; color: #1d4ed8; }
.trust__icon--purple{ background: #ede9fe; color: #7c3aed; }
.trust__icon--orange{ background: #fff7ed; color: #ea580c; }
.trust__card h3 { font-size: 15px; font-weight: 700; color: var(--primary); }
.trust__card p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ===== SECTION COMMON ===== */
.section-title { font-size: 32px; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 10px; }
.section-subtitle { font-size: 14.5px; color: var(--text-muted); text-align: center; margin-bottom: 40px; line-height: 1.7; }
.section-link { text-align: center; margin-top: 36px; }
.section-link a { color: var(--teal); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.section-link a:hover { gap: 10px; }

/* ===== HOW IT WORKS ===== */
.how { padding: 72px 0; background: var(--gray-bg); }
.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.how__step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex: 1; max-width: 280px; padding: 0 16px;
}
.how__arrow {
  display: flex; align-items: center;
  padding-top: 60px; flex-shrink: 0;
}
.how__num { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; color: var(--teal); background: var(--teal-light); padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.how__icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.how__step:hover .how__icon { transform: scale(1.1) rotate(-5deg); }
.how__icon::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed currentColor; opacity: 0.2; }
.how__icon--blue  { background: #dbeafe; color: #2563eb; }
.how__icon--teal  { background: var(--teal-light); color: var(--teal); }
.how__icon--green { background: #d1fae5; color: #059669; }
.how__step h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.how__step p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.how__cta { text-align: center; }

/* ===== SPECIALITIES ===== */
.specialities { padding: 72px 0; background: #fff; }
.specialities__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.spec__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow); }
.spec__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.spec__card--highlight { background: #fff0f5; border-color: #ffb3d1; }
.spec__icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.spec__card:hover .spec__icon { transform: scale(1.12) rotate(-4deg); }
.spec__card span { font-size: 12.5px; font-weight: 600; color: var(--primary); line-height: 1.35; }

/* ===== DOCTORS (homepage) ===== */
.doctors { padding: 72px 0; background: var(--gray-bg); }
.doctors__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.doctor__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-align: center; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.doctor__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.doctor__img-wrap { position: relative; padding: 28px 28px 0; }
.doctor__avatar { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(26,46,90,0.1); }
.doctor__online-dot { position: absolute; bottom: 4px; right: calc(50% - 54px); width: 14px; height: 14px; border-radius: 50%; background: #48bb78; border: 2.5px solid #fff; }
.doctor__body { padding: 16px 20px 22px; }
.doctor__body h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.doctor__spec { font-size: 13px; color: var(--teal); font-weight: 500; display: block; margin-bottom: 10px; }
.doctor__stars { display: flex; align-items: center; justify-content: center; gap: 2px; margin-bottom: 10px; }
.doctor__stars span { font-size: 13px; font-weight: 700; color: var(--primary); margin-left: 5px; }
.doctor__meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.doctor__btn { font-size: 13px; padding: 10px 20px; width: 100%; justify-content: center; border-radius: 10px; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 72px 0; background: #fff; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
.review__card { background: var(--gray-bg); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); transition: transform 0.25s, box-shadow 0.25s, background 0.25s; }
.review__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: #fff; }
.review__stars { display: flex; gap: 3px; margin-bottom: 16px; }
.review__text { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.review__author > div strong { display: block; font-size: 14px; font-weight: 700; color: var(--primary); }
.review__author > div span { font-size: 12.5px; color: var(--text-muted); }

/* ===== STATS BAR ===== */
.stats__bar { background: var(--primary); border-radius: var(--radius-lg); padding: 36px 48px; display: flex; align-items: center; justify-content: space-around; gap: 24px; }
.stat__item { text-align: center; }
.stat__num { display: block; font-size: 32px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.stat__item > span { font-size: 13px; color: rgba(255,255,255,0.65); }
.stat__divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

/* ===== ARTICLES ===== */
.articles { padding: 72px 0; background: var(--gray-bg); }
.articles__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article__card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.article__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article__img-wrap { position: relative; overflow: hidden; }
.article__img { height: 195px; transition: transform 0.45s ease; }
.article__card:hover .article__img { transform: scale(1.04); }
.article__img--1 { background: linear-gradient(135deg,#e0c3fc 0%,#8ec5fc 100%); }
.article__img--2 { background: linear-gradient(135deg,#c9d6df 0%,#e2ebf0 100%); }
.article__img--3 { background: linear-gradient(135deg,#e8d5b7 0%,#c9a87c 100%); }
.article__tag { position: absolute; top: 14px; left: 14px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.03em; z-index: 1; }
.article__tag--red    { background: #e53e3e; }
.article__tag--purple { background: #805ad5; }
.article__body { padding: 18px 20px 20px; }
.article__body h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 14px; line-height: 1.45; }
.article__meta { display: flex; align-items: center; justify-content: space-between; }
.article__author-wrap { display: flex; align-items: center; gap: 8px; }
.article__avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.article__author { font-size: 12.5px; font-weight: 600; color: var(--primary); }
.article__date { font-size: 12px; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner { padding: 72px 0; background: linear-gradient(135deg,var(--primary) 0%,#243d76 100%); }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner__text h2 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-banner__text p  { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 480px; }
.cta-banner__actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__col--brand .navbar__brand { margin-bottom: 14px; }
.footer__col--brand p { font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,0.6); }
.footer__socials { display: flex; gap: 10px; margin-top: 22px; }
.footer__socials a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); transition: background 0.2s, transform 0.2s; }
.footer__socials a:hover { background: var(--teal); transform: translateY(-3px); }
.footer__col h4 { color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 18px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { font-size: 13.5px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer__col ul a:hover { color: var(--teal); }
.footer__col--newsletter p { font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: 18px; line-height: 1.65; }
.footer__form { display: flex; flex-direction: column; gap: 10px; }
.footer__form input { padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: #fff; font-size: 13.5px; outline: none; font-family: inherit; transition: border-color 0.2s; }
.footer__form input::placeholder { color: rgba(255,255,255,0.35); }
.footer__form input:focus { border-color: var(--teal); }
.footer__form .btn { border-radius: 10px; font-size: 14px; padding: 12px 20px; width: 100%; justify-content: center; }
.footer__bottom { padding: 20px 0; text-align: center; }
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg,#f0f4ff 0%,#e6f9f8 100%); padding: 64px 0 52px; border-bottom: 1px solid var(--border); }
.page-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.page-hero__tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.page-hero__text h1 { font-size: 42px; font-weight: 800; color: var(--primary); margin-bottom: 14px; line-height: 1.2; }
.page-hero__text p { font-size: 16px; color: var(--text-muted); max-width: 500px; line-height: 1.7; }
.page-hero__stats { display: flex; gap: 32px; flex-shrink: 0; }
.phero-stat { text-align: center; }
.phero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.phero-stat span { font-size: 13px; color: var(--text-muted); }

/* ===== FILTER BAR ===== */
.filter-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0; position: sticky; top: 70px; z-index: 90; box-shadow: 0 2px 8px rgba(26,46,90,0.05); }
.filter-bar__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.filter-bar__search { display: flex; align-items: center; gap: 10px; background: var(--gray-bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; flex: 1; max-width: 340px; }
.filter-bar__search input { border: none; background: transparent; font-size: 14px; color: var(--text); outline: none; width: 100%; font-family: inherit; }
.filter-bar__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1.5px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; transition: all 0.18s; font-family: inherit; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip--active { background: var(--teal); color: #fff; border-color: var(--teal); }
.doctors-page { padding: 48px 0 72px; background: var(--gray-bg); }
.doctors__grid--large { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.doctor__card--lg .doctor__avatar { width: 120px; height: 120px; }
.doctor__info-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.doctor__exp, .doctor__patients { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.doctor__avail { font-size: 12px; color: #48bb78; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 14px; }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #48bb78; display: inline-block; }

/* ===== CONTACT ===== */
.contact-section { padding: 64px 0 80px; background: var(--gray-bg); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__info-card { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; align-items: flex-start; gap: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.contact__info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact__info-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact__info-card h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.contact__info-card p  { font-size: 14px; color: var(--text); font-weight: 500; }
.contact__info-card span { font-size: 12px; color: var(--text-muted); }
.contact__form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact__form-wrap h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.contact__form-wrap > p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 14px; color: var(--text); font-family: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,184,169,0.12); }
.form-group textarea { resize: vertical; }
.contact__form .btn { padding: 13px 28px; font-size: 15px; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 20px; }
.form-success h4 { font-size: 20px; font-weight: 700; color: var(--primary); }
.form-success p { font-size: 14px; color: var(--text-muted); }

/* ===== AVATARS ===== */
.av-green  { background: linear-gradient(135deg,#84fab0,#08aeea); }
.av-blue   { background: linear-gradient(135deg,#74b9ff,#0984e3); }
.av-pink   { background: linear-gradient(135deg,#fd79a8,#e84393); }
.av-yellow { background: linear-gradient(135deg,#ffecd2,#fcb69f); }
.av-teal   { background: linear-gradient(135deg,#84fab0,#08aeea); }
.av-orange { background: linear-gradient(135deg,#f6d365,#fda085); }
.av-purple { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }
.av-red    { background: linear-gradient(135deg,#ff9a9e,#fecfef); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulse-dot { 0%,100% { box-shadow:0 0 0 0 rgba(72,187,120,0.4); } 50% { box-shadow:0 0 0 6px rgba(72,187,120,0); } }

.hero__text  { animation: fadeUp 0.7s 0.05s ease both; }
.hero__sub   { animation: fadeUp 0.7s 0.15s ease both; }
.hero__ctas  { animation: fadeUp 0.7s 0.25s ease both; }
.hero__trust { animation: fadeUp 0.7s 0.35s ease both; }
.hero__visual{ animation: slideInRight 0.85s 0.1s ease both; }
.hero__badge--float { animation: float 3.5s ease-in-out infinite; }

.will-animate { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.will-animate.is-visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(2,1fr); }
  .doctors__grid { grid-template-columns: repeat(2,1fr); }
  .doctors__grid--large { grid-template-columns: repeat(2,1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__col--brand, .footer__col--newsletter { grid-column: 1 / -1; }
  .contact__inner { grid-template-columns: 1fr; }
  .stats__bar { flex-wrap: wrap; gap: 32px; padding: 32px; justify-content: center; }
  .stat__divider { display: none; }
}
@media (max-width: 768px) {
  .navbar__menu, .navbar__cta { display: none; }
  .navbar__burger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__text h1 { font-size: 36px; }
  .hero__circle { width: 300px; height: 300px; margin: 0 auto; }
  .how__steps { flex-direction: column; align-items: center; gap: 32px; }
  .how__arrow { display: none; }
  .specialities__grid { grid-template-columns: repeat(3,1fr); }
  .articles__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto 40px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .page-hero__inner { flex-direction: column; }
  .page-hero__text h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust__grid { grid-template-columns: 1fr; border: none; background: transparent; padding: 0; gap: 14px; }
  .doctors__grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .doctors__grid--large { grid-template-columns: 1fr; }
  .specialities__grid { grid-template-columns: repeat(2,1fr); }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; }
  .filter-bar__inner { flex-direction: column; align-items: stretch; }
  .filter-bar__search { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .will-animate { opacity: 1; transform: none; }
}

/* ============================================
   SERVICES, ABOUT, ARTICLES PAGES
   ============================================ */

/* ── SERVICES ── */
.services-section { padding: 72px 0; background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service__card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.service__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service__card--featured { border-color: var(--teal); background: linear-gradient(145deg, #f0fdfb 0%, #fff 60%); }
.service__icon { width: 68px; height: 68px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service__badge { position: absolute; top: 20px; right: 20px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.03em; }
.service__card h3 { font-size: 19px; font-weight: 700; color: var(--primary); }
.service__card > p { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; }
.service__features { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 8px; }
.service__features li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); }
.service__card .btn { width: fit-content; font-size: 14px; padding: 10px 22px; border-radius: 10px; }

/* ── PRICING ── */
.pricing { padding: 72px 0; background: var(--gray-bg); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); position: relative; }
.pricing__card--popular { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.04); box-shadow: var(--shadow-lg); }
.pricing__card--popular .pricing__label { color: rgba(255,255,255,0.7); }
.pricing__card--popular .pricing__price strong { color: #fff; }
.pricing__card--popular .pricing__price span { color: rgba(255,255,255,0.6); }
.pricing__card--popular .pricing__features li { color: rgba(255,255,255,0.9); }
.pricing__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.pricing__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.pricing__price { display: flex; align-items: baseline; gap: 8px; }
.pricing__price strong { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.pricing__price span { font-size: 14px; color: var(--text-muted); }
.pricing__features { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing__features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.pricing__feat--off { color: var(--text-muted) !important; }
.pricing__btn { width: 100%; justify-content: center; border-radius: 12px; margin-top: auto; }

/* ── ABOUT MISSION ── */
.about-mission { padding: 72px 0; background: #fff; }
.about-mission__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about-mission__text h2 { font-size: 34px; font-weight: 800; color: var(--primary); margin: 10px 0 18px; line-height: 1.2; }
.about-mission__text > p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.mission__values { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.mission__value { display: flex; align-items: flex-start; gap: 16px; }
.mission__value-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mission__value strong { display: block; font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.mission__value p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.about-mission__card { background: var(--gray-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: sticky; top: 90px; }
.about-mission__icon { margin-bottom: 20px; }
.about-mission__card blockquote { font-size: 16px; color: var(--primary); line-height: 1.75; font-style: italic; font-weight: 500; margin-bottom: 24px; }
.about-mission__author { display: flex; align-items: center; gap: 12px; }
.about-mission__author > div strong { display: block; font-size: 14px; font-weight: 700; color: var(--primary); }
.about-mission__author > div span { font-size: 12.5px; color: var(--text-muted); }

/* ── TEAM ── */
.team { padding: 72px 0; background: var(--gray-bg); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.team__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team__avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.team__card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.team__role { font-size: 13px; color: var(--teal); font-weight: 500; display: block; margin-bottom: 12px; }
.team__card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.team__socials { display: flex; gap: 10px; justify-content: center; }
.team__socials a { width: 32px; height: 32px; border-radius: 8px; background: var(--gray-bg); color: var(--text-muted); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); transition: all 0.2s; }
.team__socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── ABOUT STATS ── */
.about-stats { padding: 0 0 72px; }

/* ── ARTICLES PAGE ── */
.articles-page { padding: 48px 0 72px; }
.article__featured { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 48px; }
.article__featured-img { min-height: 300px; }
.article__featured-body { background: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--border); border-left: none; }
.article__featured-body h2 { font-size: 24px; font-weight: 800; color: var(--primary); margin: 12px 0 16px; line-height: 1.3; }
.article__featured-body > p { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; }
.articles__grid--4col { grid-template-columns: repeat(3, 1fr); }
.article__img--4 { background: linear-gradient(135deg,#84fab0 0%,#08aeea 100%); }
.article__img--5 { background: linear-gradient(135deg,#f6d365 0%,#fda085 100%); }
.article__img--6 { background: linear-gradient(135deg,#a18cd1 0%,#fbc2eb 100%); }
.article__img--7 { background: linear-gradient(135deg,#ffecd2 0%,#fcb69f 100%); }
.article__tag--green { background: #059669; }
.article__body h3 a { color: var(--primary); transition: color 0.2s; }
.article__body h3 a:hover { color: var(--teal); }

/* ── NEWSLETTER ── */
.newsletter-section { padding: 60px 0; background: var(--gray-bg); border-top: 1px solid var(--border); }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter__text h2 { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.newsletter__text p { font-size: 14.5px; color: var(--text-muted); }
.newsletter__form { display: flex; gap: 12px; flex-shrink: 0; }
.newsletter__form input { padding: 13px 18px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 14px; font-family: inherit; outline: none; width: 280px; color: var(--text); transition: border-color 0.2s; }
.newsletter__form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,184,169,0.12); }
.newsletter__form .btn { border-radius: 10px; }

/* ── RESPONSIVE NEW PAGES ── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .pricing__card--popular { transform: none; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .about-mission__inner { grid-template-columns: 1fr; }
  .about-mission__card { position: static; }
  .articles__grid--4col { grid-template-columns: repeat(2, 1fr); }
  .article__featured { grid-template-columns: 1fr; }
  .article__featured-body { border-left: 1px solid var(--border); border-top: none; }
}
@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .newsletter__inner { flex-direction: column; align-items: flex-start; }
  .newsletter__form { flex-direction: column; width: 100%; }
  .newsletter__form input { width: 100%; }
  .articles__grid--4col { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
