/* Astalakshmi Home Care — main stylesheet
   Modern CSS: custom properties, Grid/Flexbox, mobile-first, no framework bloat */

:root {
  --red: #b00000;
  --red-dark: #730000;
  --gold: #c88b19;
  --gold-light: #f8e4b5;
  --cream: #fbf5eb;
  --ink: #202020;
  --ink-soft: #4d443c;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 8px 24px rgba(115, 0, 0, 0.13);
  --shadow-sm: 0 4px 10px rgba(115, 0, 0, 0.11);
  --max-width: 1180px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--red-dark); font-weight: 800; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--red-dark); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--red-dark); color: #ffe3b3; font-size: 13.5px; }
.topbar .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px;
  padding-top: 9px; padding-bottom: 9px;
}
.topbar-left, .topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topbar-item { display: flex; align-items: center; gap: 7px; font-weight: 600; color: #ffe3b3; }
.topbar-item a { color: #fff; }
.topbar-item a:hover { color: var(--gold); }
.topbar-right { font-weight: 700; color: #fff; letter-spacing: .3px; }
.topbar-phones { margin-right: 4px; }
.additional-phone { font-size: .92em; color: #ffe3b3; }

.social-icons { display: flex; align-items: center; gap: 8px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); color: #fff; font-size: 10.5px;
  font-weight: 800; letter-spacing: .2px; text-transform: uppercase; flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.social-btn:hover { background: var(--gold); color: var(--red-dark); border-color: var(--gold); }

.whatsapp-btn, .call-btn {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.whatsapp-btn { background: #25d366; color: #0b3d20; }
.whatsapp-btn:hover { background: #1fbd5a; }
.call-btn { background: var(--gold); color: var(--red-dark); }
.call-btn:hover { background: #ffcc33; }

@media (max-width: 720px) {
  .topbar .container { justify-content: center; text-align: center; padding-top: 7px; padding-bottom: 7px; }
  .topbar-left { display: none; }
  .topbar-right { width: 100%; justify-content: center; gap: 7px; }
  .topbar-phones { flex-basis: 100%; justify-content: center; margin: 0; }
  .whatsapp-btn, .call-btn { padding: 5px 12px; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.header-row { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.brand-block {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px 14px 0; position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand img { width: 52px; height: 52px; }
.brand .brand-text { line-height: 1.2; }
.brand .brand-name { font-weight: 800; color: var(--red-dark); font-size: 19px; }
.brand .brand-tag { font-size: 11.5px; color: var(--gold); font-weight: 700; font-style: italic; }
.brand-categories {
  display: inline-block; margin-top: 6px; background: var(--gold); color: var(--red-dark);
  font-weight: 800; font-size: 9px; letter-spacing: .2px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; font-style: normal; white-space: normal;
  max-width: 100%; line-height: 1.5;
}
@media (min-width: 480px) {
  .brand-categories { font-size: 10px; letter-spacing: .3px; padding: 3px 9px; white-space: nowrap; }
}

.nav-wrap { display: flex; align-items: center; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--red-dark); border-radius: 2px; }

.main-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
  box-shadow: 0 12px 20px rgba(0,0,0,0.08); border-top: 3px solid var(--gold);
}
.main-nav.open { display: block; }
.main-nav ul { display: flex; flex-direction: column; padding: 8px 24px 18px; }
.main-nav a {
  display: block; padding: 12px 4px; font-weight: 700; color: var(--ink); border-bottom: 1px solid #f0e8d8;
  text-transform: uppercase; font-size: 13.5px; letter-spacing: .6px;
}
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--red); }
.main-nav .nav-cta { margin-top: 10px; }
.main-nav .nav-cta .btn-bordered {
  display: inline-flex; width: 100%; justify-content: center;
}

.btn-bordered {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 2px solid var(--red); border-radius: 6px; background: transparent;
  color: var(--red-dark); font-weight: 800; font-size: 13.5px; text-transform: uppercase; letter-spacing: .6px;
  transition: background .15s ease, color .15s ease;
}
.btn-bordered:hover { background: var(--red); color: var(--white); }

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; box-shadow: none; border-top: none; background: none; }
  .main-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 2px; flex-wrap: nowrap; }
  .main-nav a { border-bottom: none; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
  .main-nav a[aria-current="page"], .main-nav a:hover { background: var(--gold-light); }
  .main-nav .nav-cta { margin-top: 0; margin-left: 10px; }
  .main-nav .nav-cta .btn-bordered { padding: 11px 20px; font-size: 12.5px; white-space: nowrap; }
  .brand .brand-tag { white-space: nowrap; }
}

/* ---------- Responsive hero banner carousel ---------- */
.hero {
  position: relative; overflow: hidden; padding: 0; background: #730000;
  border-bottom: 6px solid var(--gold);
}
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide { min-width: 100%; margin: 0; background: #730000; }
.hero-slide img { display: block; width: 100%; height: min(66.667vw, 560px); object-fit: contain; }
.hero-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0,0,0,.48); color: #fff; font-size: 34px; cursor: pointer; }
.hero-prev { left: 18px; } .hero-next { right: 18px; }
.hero-controls { position: absolute; z-index: 2; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; gap: 9px; }
.hero-dot { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.38); cursor: pointer; }
.hero-dot.active { background: var(--gold); }
.hero-pause { width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.48); color: #fff; font-weight: 800; cursor: pointer; }
.hero-pause:hover, .hero-pause:focus-visible { background: var(--red); outline: 2px solid #fff; }
@media (max-width: 600px) { .hero-arrow { width: 36px; height: 36px; font-size: 27px; } .hero-prev { left: 8px; } .hero-next { right: 8px; } .hero-controls { bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); padding: 46px 0 54px; text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(26px, 4.4vw, 38px); margin-bottom: 10px; }
.page-header p { color: #ffe3b3; max-width: 62ch; margin: 0 auto; }
.breadcrumbs { font-size: 13.5px; color: #ffd9a0; margin-bottom: 14px; }
.breadcrumbs a { color: #ffe3b3; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-eyebrow {
  display: inline-block; color: var(--red); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: 13px; margin-bottom: 10px;
}
.section-alt { background: var(--cream); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 480px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid #f2e9d6; transition: transform .15s ease, box-shadow .15s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon-badge {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 78%);
  border: 3px solid var(--white); outline: 2px solid var(--red); margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 14px; }
.card .card-link { font-weight: 700; color: var(--red); font-size: 14.5px; }
.card .card-link:hover { text-decoration: underline; }

.district-card {
  background: var(--white); border: 1px solid #f2e9d6; border-radius: var(--radius-sm);
  padding: 16px 18px; font-weight: 700; color: var(--red-dark); display: flex; align-items: center;
  justify-content: space-between; gap: 8px; box-shadow: var(--shadow-sm);
}
.district-card:hover { background: var(--gold-light); }
.district-card .arrow { color: var(--gold); font-weight: 900; }

/* ---------- Two column content block ---------- */
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.included-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #eadfc4;
  color: var(--ink-soft); font-size: 15.5px;
}
.included-list li:last-child { border-bottom: none; }
.included-list li::before { content: "✓"; color: var(--gold); background: var(--red-dark); border-radius: 50%; width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }

/* ---------- FAQ (native details/summary — zero JS) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid #f2e9d6; border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--red-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--gold); flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding-left: 54px; margin-bottom: 22px; color: var(--ink-soft);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; color: var(--red-dark); font-size: 16.5px; margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: var(--white);
  border-radius: var(--radius-lg); padding: 44px 32px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #ffe3b3; max-width: 56ch; margin: 0 auto 22px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(135deg, #580000 0%, #8f0000 100%); color: #f8e4b5; padding: 56px 0 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-logo-badge {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--white); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.footer-logo-badge img { width: 38px; }
.footer-brand .name { font-weight: 800; color: var(--white); font-size: 18px; }
.site-footer h4 { color: var(--gold); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer p { color: #d9c3a5; font-size: 14.5px; }
.site-footer a { color: #e8d3b4; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul li { margin-bottom: 10px; }
.footer-contact-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; margin: 0 0 14px; }
.footer-contact-item .contact-icon { line-height: 1.45; text-align: center; }
.footer-contact-item a { overflow-wrap: anywhere; line-height: 1.55; }
.footer-contact-item > span:not(.contact-icon) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.footer-contact-item br { display: none; }
.footer-contact-item br + .additional-phone::before { content: "•"; margin-right: 8px; color: var(--gold); }
.footer-bottom {
  margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.12); text-align: center;
  font-size: 13px; color: #c7ab8a;
}
.footer-bottom a { color: #e8d3b4; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-pill {
  display: inline-block; background: var(--gold-light); color: var(--red-dark); font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin: 3px 4px 3px 0;
}
.skip-link {
  position: absolute; left: -999px; top: auto; background: var(--red); color: var(--white); padding: 10px 16px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- 24/7 Home Healthcare quick-links band ---------- */
.quick-services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .quick-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .quick-services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
  .quick-services-grid > :nth-last-child(2):nth-child(4n + 1) { grid-column: 2; }
}
.quick-service-item {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid #f2e9d6;
  border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 700; color: var(--red-dark);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.quick-service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--gold-light); }
.quick-service-item .arrow { color: var(--gold); font-weight: 900; font-size: 18px; flex-shrink: 0; }

.about-hero-gallery { padding: 34px 0 0; background: var(--cream); }
.about-hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.about-hero-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 760px) { .about-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Why Choose Us ---------- */
.why-choose-us-section .card .icon-badge { font-size: 26px; }

/* ---------- Patient Reviews carousel ---------- */
.reviews-carousel { max-width: 780px; margin: 0 auto; }
.reviews-window { overflow: hidden; border-radius: var(--radius-md); }
.reviews-track { display: flex; }
.review-slide { flex: 0 0 100%; min-width: 0; }
.review-card {
  background: var(--white); border: 1px solid #f2e9d6; border-radius: var(--radius-md); padding: 34px 30px;
  box-shadow: var(--shadow-sm); text-align: center; height: 100%;
}
.review-stars { color: var(--gold); font-size: 20px; letter-spacing: 4px; display: block; margin-bottom: 14px; }
.review-text { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; }
.review-meta { font-weight: 700; color: var(--red-dark); font-size: 14px; margin-bottom: 0; }
.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.reviews-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red); background: transparent;
  color: var(--red-dark); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background .15s ease, color .15s ease; flex-shrink: 0;
}
.reviews-arrow:hover { background: var(--red); color: var(--white); }
.reviews-dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.review-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #e5d8ba; cursor: pointer; padding: 0; }
.review-dot.active { background: var(--red); }
