/* Pital Medical — site stylesheet */
:root {
  --red: #e8442a;
  --green: #5f9f2f;
  --amber: #f2a900;
  --lime: #c9db74;
  --ink: #1d2a33;
  --ink-soft: #4a5a66;
  --line: #e3e8e4;
  --bg: #ffffff;
  --bg-soft: #f5f8f2;
  --bg-dark: #17232b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 35, 43, 0.08);
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg-dark);
  color: #cfd8dc;
  font-size: 14px;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-name { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.brand-name small { display: block; font-family: "Nunito Sans", sans-serif; font-weight: 600; font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); background: var(--bg-soft); }
.site-nav .nav-cta a { background: var(--red); color: #fff; margin-left: 8px; }
.site-nav .nav-cta a:hover { background: #c93519; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c93519; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lime); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 64px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow); background: #fff; }
.hero-badge {
  position: absolute; left: -18px; bottom: 22px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero-badge strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.4rem; color: var(--red); line-height: 1; }
.hero-badge span { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.3; }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-soft); padding: 54px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aa7a0; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 2px 0 rgba(0,0,0,0.02);
  border-top: 5px solid var(--green);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.c-red { border-top-color: var(--red); }
.card.c-amber { border-top-color: var(--amber); }
.card.c-lime { border-top-color: var(--lime); }
.card ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--ink-soft); }
.card li { margin: 4px 0; }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff; background: var(--green);
}
.icon svg { width: 26px; height: 26px; }
.icon.red { background: var(--red); }
.icon.amber { background: var(--amber); }
.icon.lime { background: var(--lime); color: var(--ink); }

.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; background: #fff4d6; color: #8a5d00; margin-bottom: 10px;
}

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 32px; margin: 10px 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); text-align: center; }
.stat strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--ink-soft); font-size: 0.95rem; }

/* Skill bars */
.skills { margin: 8px 0 0; padding: 0; list-style: none; }
.skills li { margin-bottom: 16px; }
.skills .label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.skills .bar { height: 10px; background: #e9eee6; border-radius: 999px; overflow: hidden; }
.skills .bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--lime)); }
.skills li:nth-child(2) .bar i { background: linear-gradient(90deg, var(--red), #f37a5e); }
.skills li:nth-child(3) .bar i { background: linear-gradient(90deg, var(--amber), #ffd36b); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 22px 76px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-family: "Poppins", sans-serif;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--green); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon { flex: none; margin: 0; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card a { font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--red); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); display: block; }

/* CTA band */
.cta {
  background: var(--ink); color: #dfe7ea; border-radius: 24px; padding: 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(201, 219, 116, 0.18);
}
.cta h2 { color: #fff; }
.cta p { margin: 0; }
.cta .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b9c5ca; padding: 60px 0 0; margin-top: 72px; font-size: 0.96rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer a { color: #e3eaed; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.2rem; }
.footer-brand img { width: 42px; height: 42px; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 44px; padding: 20px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem;
}
.site-footer address { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container, .split, .cta { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .hero-badge { left: 12px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  .site-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .site-header .container { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0; }
  .cta { padding: 32px 24px; }
  .topbar .hide-sm { display: none; }
  .brand-name small { display: none; }
  .steps li { padding-left: 70px; }
}
