/* ============================================================
   Care Hospital & Trauma Center — styles.css
   Plain CSS (no framework needed). Fonts: Sora + Manrope.
   ============================================================ */

:root {
  --primary: #1e65aa;
  --primary-soft: rgba(30, 101, 170, 0.10);
  --brand-green: #51aa3c;
  --background: #fbfefc;
  --foreground: #020618;
  --card: #ffffff;
  --secondary: #ecf7eb;
  --muted: #f1f5f9;
  --muted-fg: #62748e;
  --border: #e2e8f0;
  --shadow-lg: 0 20px 45px -18px rgba(2, 6, 24, 0.25);
  --radius: 1rem;
  --font-display: "Sora", sans-serif;
  --font-sans: "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.9rem 1.75rem; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 18px 30px -14px rgba(30, 101, 170, 0.55); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: var(--brand-green); }
.btn-outline .icon { color: var(--brand-green); }
.btn-dark { background: var(--foreground); color: var(--background); }
.btn-green { background: var(--brand-green); color: #fff; box-shadow: var(--shadow-lg); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 254, 252, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar { background: var(--primary); color: #fff; font-size: 0.75rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.topbar-phone { font-weight: 700; }
.live { display: flex; align-items: center; gap: 0.5rem; }
.dot-wrap { position: relative; display: inline-flex; width: 8px; height: 8px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); }
.dot-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--brand-green); animation: pulse-ring 2s ease-out infinite; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { height: 44px; width: auto; mix-blend-mode: multiply; }
.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--muted-fg); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--foreground); }
.mobile-menu { border-top: 1px solid var(--border); padding: 1rem 1.25rem; display: grid; gap: 0.25rem; }
.mobile-menu[hidden] { display: none; }

.mobile-link { padding: 0.5rem 0; font-weight: 500; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.blob-right { right: -10rem; top: -10rem; width: 32rem; height: 32rem; background: rgba(81, 170, 60, 0.12); }
.blob-left { left: -10rem; top: 15rem; width: 26rem; height: 26rem; background: rgba(30, 101, 170, 0.10); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding-top: 4rem; padding-bottom: 6rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }
.hero-title { margin-top: 1.5rem; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; line-height: 1.05; }
.text-primary { color: var(--primary); }
.text-green { color: var(--brand-green); }
.hero-text { margin-top: 1.4rem; max-width: 32rem; font-size: 1.125rem; color: var(--muted-fg); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-media { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2rem; box-shadow: var(--shadow-lg); }
.float-card { position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow-lg); animation: floaty 6s ease-in-out infinite; }
.small-muted { font-size: 0.75rem; color: var(--muted-fg); }
.big-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--primary); }
.float-card .ecg { margin-top: 0.25rem; }

/* ---------- ECG line ---------- */
.ecg { display: block; width: 100%; height: 2rem; opacity: 0.5; }
.ecg-line { stroke-dasharray: 1200; animation: ecg 3.5s linear infinite; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -2rem; }
.feature { padding: 1.5rem; }
.feature h3 { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }
.feature p { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted-fg); }
.green-icon { display: inline-flex; color: var(--brand-green); font-size: 1.5rem; }
.primary-icon { display: inline-flex; color: var(--primary); font-size: 1.75rem; }

.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-green); }
.h2 { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
.h3 { font-size: 1.9rem; font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--primary); }
.grid-3 { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
.service-card { padding: 2rem; transition: transform .5s, border-color .5s, box-shadow .5s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(30, 101, 170, 0.4); box-shadow: var(--shadow-lg); }
.service-icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 1rem; background: var(--secondary); color: var(--primary); font-size: 1.5rem; transition: background .4s, color .4s; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 600; }
.service-card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-fg); }

.why { padding-bottom: 3rem; }
.square-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2rem; }
.portrait-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2rem; }
.body-text { margin-top: 1.25rem; color: var(--muted-fg); }
.why .btn { margin-top: 2rem; }

.cta-wrap { margin-top: 6rem; }
.cta { position: relative; overflow: hidden; background: var(--primary); color: #fff; text-align: center; border-radius: 2rem; padding: 4rem 2rem; }
.cta .ecg { position: absolute; inset-inline: 0; top: 50%; height: 6rem; transform: translateY(-50%); opacity: 0.4; }
.cta h2 { position: relative; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta p { position: relative; margin-top: 0.75rem; opacity: 0.8; }
.cta .btn { position: relative; margin-top: 2rem; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--secondary); }
.page-hero .ecg { position: absolute; inset-inline: 0; bottom: 0; height: 8rem; opacity: 0.3; }
.page-hero-inner { position: relative; padding-top: 6rem; padding-bottom: 6rem; }
.page-hero h1 { margin-top: 1rem; max-width: 46rem; font-size: clamp(2.2rem, 5vw, 3.75rem); }
.page-hero-text { margin-top: 1.25rem; max-width: 36rem; font-size: 1.1rem; color: var(--muted-fg); }

/* ---------- about ---------- */
.story { padding-top: 6rem; padding-bottom: 6rem; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-bottom: 4rem; }
.mvv { padding: 2rem; }
.mvv h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 600; }
.mvv p { margin-top: 0.5rem; color: var(--muted-fg); }

/* ---------- services page ---------- */
.services-page-grid { align-items: stretch; }
.facilities { margin-top: 5rem; background: var(--secondary); border-radius: 2rem; padding: 2.5rem; }
.facilities-grid { margin-top: 1.5rem; gap: 1rem; }
.facility { display: flex; align-items: flex-start; gap: 0.75rem; background: var(--card); border-radius: 1rem; padding: 1.25rem; font-weight: 500; }
.facility .icon { color: var(--brand-green); width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 2.5rem; padding-top: 6rem; padding-bottom: 6rem; }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; transition: border-color .25s; }
.contact-card:hover { border-color: var(--primary); }
.contact-icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 0.75rem; background: var(--secondary); color: var(--primary); font-size: 1.25rem; }
.label { display: block; text-transform: uppercase; letter-spacing: 0.14em; }
.strong { font-weight: 700; }
.enquiry { background: var(--card); border: 1px solid var(--border); border-radius: 2rem; padding: 2rem; box-shadow: var(--shadow-lg); }
.enquiry h2 { font-size: 1.5rem; }
.form-grid { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.span2 { grid-column: span 2; }
.enquiry input, .enquiry select, .enquiry textarea {
  width: 100%; font: inherit; color: inherit; background: var(--background);
  border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.8rem 1rem; outline: none; transition: border-color .2s;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { border-color: var(--primary); }
.thanks { margin-top: 1.5rem; background: var(--secondary); border-radius: 0.75rem; padding: 1.25rem; font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { margin-top: 6rem; background: var(--foreground); color: var(--background); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; }
.footer-brand h3 { font-size: 1.5rem; }
.footer-brand .green { color: var(--brand-green); }
.footer-brand p { margin-top: 0.75rem; max-width: 24rem; font-size: 0.875rem; opacity: 0.7; }
.footer-info { display: grid; gap: 0.75rem; font-size: 0.875rem; opacity: 0.8; align-content: start; }
.footer-info p { display: flex; gap: 0.5rem; }
.footer-links { display: grid; gap: 0.5rem; font-size: 0.875rem; align-content: start; }
.footer-link { opacity: 0.7; transition: opacity .2s; }
.footer-link:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(251, 254, 252, 0.1); padding: 1.25rem; text-align: center; font-size: 0.75rem; opacity: 0.5; }

/* ---------- animations ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ecg { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

.anim-up { animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .features-grid, .grid-3, .mvv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 1rem; }
  .float-card { left: 0.5rem; bottom: -1rem; }
  .why, .story, .section { padding-top: 4rem; padding-bottom: 4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
}
