/*
Theme Name: Keshav Cancer & Dental Hospital
Theme URI: https://keshavhospital.com
Author: Keshav Hospital
Author URI: https://keshavhospital.com
Description: Premium, conversion-optimized WordPress theme for Keshav Cancer & Dental Hospital. Modern medical branding (white + blue + green), sticky CTAs, appointment form, WhatsApp/call integration, SEO-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keshav
Tags: healthcare, medical, hospital, one-column, two-columns, custom-menu, custom-logo, featured-images, full-width-template, theme-options
*/

/* Design tokens - Medical / Premium */
:root {
  --brand: #0b76c4;
  --brand-deep: #095a95;
  --brand-soft: #e8f2fb;
  --heal: #12946a;
  --heal-soft: #e4f5ec;
  --ink: #0f1a2b;
  --ink-soft: #4b5b71;
  --border: #e6eaf0;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --danger: #d0322b;
  --shadow-elev: 0 20px 40px -20px rgba(11, 118, 196, 0.25), 0 8px 20px -12px rgba(15, 26, 43, 0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-deep); }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.gradient-text { background: linear-gradient(90deg, var(--brand) 0%, var(--heal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid transparent; cursor: pointer; transition: all .18s ease; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-elev); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: rgba(15,26,43,.15); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: #22a06b; color: #fff; }
.btn-wa:hover { background: #178055; color:#fff; }
.btn-danger { background: var(--danger); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.topbar { background: var(--ink); color: #cfd8e3; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; padding: 8px 20px; max-width: var(--container); margin: 0 auto; flex-wrap: wrap; }
.topbar a { color: #cfd8e3; }
.topbar .emergency { color: #fff; font-weight: 600; }
.topbar .emergency::before { content: "●"; color: #ff6b5e; margin-right: 6px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--heal)); display: grid; place-items: center; color: #fff; font-weight: 700; }
.brand small { display: block; font-family: var(--font-body); font-size: .68rem; color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--brand); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .nav { position: fixed; inset: 60px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); padding: 20px; flex-direction: column; align-items: stretch; display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { display: block; padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn-outline { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 15% -10%, rgba(18,148,106,.18), transparent),
  radial-gradient(900px 500px at 100% 10%, rgba(11,118,196,.18), transparent),
  linear-gradient(180deg, #f9fbfd, #ffffff);
}
.hero-inner { display: grid; gap: 50px; padding: 70px 0; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr 1fr; padding: 100px 0; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(11,118,196,.2); font-size: .75rem; font-weight: 700; color: var(--brand-deep); text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(8px); margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heal); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; }
.hero .lede { font-size: 1.1rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-size: .88rem; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-elev); }

/* Trust bar */
.trustbar { border-block: 1px solid var(--border); background: #fff; }
.trustbar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 30px 20px; max-width: var(--container); margin: 0 auto; text-align: center; }
@media (min-width: 720px) { .trustbar-grid { grid-template-columns: repeat(4, 1fr); } }
.trustbar-grid .n { font-family: var(--font-display); font-size: 2rem; color: var(--brand); font-weight: 600; }
.trustbar-grid .l { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 4px; }

/* Card grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elev); border-color: rgba(11,118,196,.25); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--heal-soft)); color: var(--brand-deep); font-size: 1.4rem; margin-bottom: 18px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; margin: 0; }

/* Doctor card */
.doctor { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-elev); }
.doctor .thumb { aspect-ratio: 4 / 5; background: var(--brand-soft) center/cover no-repeat; }
.doctor .body { padding: 20px; }
.doctor .exp { font-size: .74rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.doctor h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.doctor .role { font-size: .88rem; color: var(--ink-soft); }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.quote .stars { color: #e8a53a; margin-bottom: 10px; letter-spacing: 2px; }
.quote blockquote { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 16px; color: var(--ink); }
.quote .who { font-weight: 600; }
.quote .role { color: var(--ink-soft); font-size: .85rem; }

/* CTA block */
.cta-block { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; border-radius: 32px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 24px; }
.cta-block .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-block .btn-outline:hover { background: #fff; color: var(--brand-deep); }

/* Form */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form label { font-size: .85rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,118,196,.12);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); }
.form-success { padding: 14px; background: var(--heal-soft); color: var(--heal); border-radius: 12px; }
.form-error { padding: 14px; background: #fdecea; color: var(--danger); border-radius: 12px; }

/* Page hero */
.page-hero { background: var(--surface-alt); padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero .crumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; }
.page-hero h1 { margin-bottom: 10px; }

/* Emergency banner */
.emergency-hero { background: linear-gradient(135deg, #c72a24, #8f1712); color: #fff; padding: 44px; border-radius: 24px; text-align: center; }
.emergency-hero h2 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.emergency-hero a.btn { background: #fff; color: #c72a24; margin-top: 14px; }

/* Sticky CTAs */
.sticky-desktop { position: fixed; right: 20px; bottom: 120px; display: none; flex-direction: column; gap: 12px; z-index: 45; }
.sticky-desktop a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-elev); color: #fff; font-size: 1.3rem; transition: transform .18s; }
.sticky-desktop a:hover { transform: scale(1.08); color: #fff; }
.sticky-desktop .wa { background: #22a06b; }
.sticky-desktop .tel { background: var(--brand); }
@media (min-width: 780px) { .sticky-desktop { display: flex; } }

.sticky-mobile { position: fixed; inset: auto 12px 12px 12px; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1fr; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow-elev); backdrop-filter: blur(14px); }
.sticky-mobile a { padding: 12px 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--brand); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sticky-mobile a.wa { color: #178055; border-inline: 1px solid var(--border); }
.sticky-mobile a.book { background: var(--brand); color: #fff; }
.sticky-mobile svg { width: 20px; height: 20px; }
@media (min-width: 780px) { .sticky-mobile { display: none; } }

/* Footer */
.site-footer { background: #0b1626; color: #b7c2d1; margin-top: 60px; padding: 60px 0 20px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-weight: 600; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer a { color: #b7c2d1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-brand p { color: #8899aa; font-size: .9rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .18s; }
.socials a:hover { background: rgba(255,255,255,.16); }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #8899aa; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.faq details { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 14px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 1.4rem; transition: transform .18s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; font-size: .95rem; }

/* WordPress required */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky, .bypostauthor, .gallery-caption { }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 32px; }
.pad-lg { padding: 80px 0; }
