/* ============================================================
   CareSetu platform — extended components
   (loads after style.css; reuses the same theme variables)
   ============================================================ */

/* Brand logo */
.brand img { width: auto; height: 55px; display: block; }
.nav-links a.active { color: var(--teal-600); font-weight: 600; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Search hero */
.hero-search { padding: 56px 0 64px; }
.hero-search .badge { margin-bottom: 18px; }
.hero-search h1 { font-size: 42px; max-width: 760px; }
.hero-search .lead { max-width: 620px; margin-bottom: 26px; }
.searchbar { display: flex; gap: 10px; max-width: 640px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); }
.searchbar input { flex: 1; border: 0; background: transparent; padding: 12px 18px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.searchbar .btn { white-space: nowrap; }
.searchbar-light { box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 20px; }
.hero-search .hero-cta { margin: 22px 0 30px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .15s ease, box-shadow .2s ease; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--mint-soft); display: grid; place-items: center; color: var(--teal-600); }
.cat-name { font-size: 13px; font-weight: 600; color: var(--teal-800); }

/* Section head row */
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head.row .btn { flex: none; }

/* Generic card grids */
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Test / package / centre / blog cards */
.tcard, .pcard, .ccard, .bcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .2s ease; }
.tcard:hover, .pcard:hover, .ccard:hover, .bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tcard-cat { font-size: 12px; font-weight: 600; color: var(--teal-600); text-transform: uppercase; letter-spacing: .03em; }
.tcard-title { font-size: 17px; margin: 0; line-height: 1.3; }
.tcard-title a:hover { color: var(--teal-600); }
.tcard-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.tcard-foot { display: flex; gap: 10px; margin-top: 8px; }
.tcard-foot .btn { flex: 1; }

/* Pills */
.pill { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill-pop { background: #fdefd9; color: #a76a12; }
.pill-save { background: #e6f6ef; color: #1f6b47; }
.pill-rate { background: var(--mint-soft); color: var(--teal-700); }

/* Price row */
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-our { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 19px; color: var(--teal-800); }
.price-our small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price-reg { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* Package card */
.pcard-tagline { font-size: 13px; color: var(--muted); margin: 0; }
.pcard-facts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }

/* Centre card */
.ccard-addr { font-size: 13px; color: var(--muted); margin: 0; }
.ccard-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Steps row */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.steps-row-2 { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.step-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-800); color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; margin-bottom: 12px; }
.step-box h4 { font-size: 16px; margin-bottom: 4px; }
.step-box p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Home collection band */
.hc-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; background: var(--mint-soft); border-radius: 24px; padding: 40px; }
.hc-band h2 { font-size: 28px; }
.hc-band p { color: var(--muted); max-width: 440px; margin-bottom: 22px; }
.hc-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--teal-600); }
.crumbs span { color: var(--line); }

/* Catalogue layout */
.catalogue { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.cat-rail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 88px; }
.cat-rail h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.cat-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.cat-link:hover { background: var(--mint-soft); }
.cat-link.active { background: var(--teal-800); color: #fff; }
.cat-link .count { font-size: 12px; opacity: .7; }
.catalogue-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: 13px; color: var(--muted); }
.sort-form select, .field select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #fbfefe; color: var(--ink); }
.empty-state { background: var(--mint-soft); border-radius: var(--radius); padding: 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* Filter pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); }
.pill-link:hover { border-color: var(--teal-600); }
.pill-link.active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.pill-toggle { margin-left: 6px; }

/* Pagination */
.pagination-wrap { margin-top: 30px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pager-btn { min-width: 40px; text-align: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); background: #fff; }
.pager-btn:hover { border-color: var(--teal-600); }
.pager-btn.active { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.pager-btn.disabled { opacity: .45; }

/* Detail pages */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 30px; }
.detail-block h3 { font-size: 20px; margin-bottom: 10px; }
.detail-block > p { color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-facts > div { background: var(--mint-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.detail-facts span { display: block; font-size: 12px; color: var(--muted); }
.detail-facts b { font-size: 14.5px; color: var(--teal-800); }
.detail-aside { position: sticky; top: 88px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.price-card-label { font-size: 13px; color: var(--muted); }
.price-card-main { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 30px; color: var(--teal-800); margin: 4px 0; }
.price-card-main small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card-reg { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.price-card-reg b { color: #1f6b47; }
.price-card-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink); }

/* Centre list rows */
.centre-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.centre-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; flex-wrap: wrap; }
.centre-row b { display: block; font-size: 15px; color: var(--teal-800); }
.centre-row-right { display: flex; align-items: center; gap: 12px; }
.muted-sm { font-size: 12.5px; color: var(--muted); display: block; }

/* Included tests grid */
.incl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.incl-item { display: flex; gap: 10px; align-items: flex-start; background: var(--mint-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.incl-item b { font-size: 14px; color: var(--teal-800); }
.incl-tick { color: var(--teal-600); font-weight: 700; }

/* Enquiry summary */
.enquiry-summary { background: var(--mint-soft); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 28px; }
.enquiry-summary .es-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.enquiry-summary .es-items { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.es-item h3 { font-size: 19px; margin: 0 0 3px; }
.es-item p { margin: 0; font-size: 14px; }
.es-item + .es-item { padding-top: 14px; border-top: 1px solid var(--line); }
.es-item-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-600); margin-bottom: 3px; }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article p { color: var(--ink); margin: 0 0 18px; font-size: 16px; }
.article h2 { font-size: 26px; margin: 30px 0 12px; color: var(--teal-800); }
.article h3 { font-size: 20px; margin: 24px 0 10px; color: var(--teal-800); }
.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; color: var(--ink); }
.article li { margin-bottom: 8px; }
.article a { color: var(--teal-600); text-decoration: underline; }
.article img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 14px 0; }
.article blockquote { border-left: 3px solid var(--teal-600); margin: 18px 0; padding: 6px 0 6px 18px; color: var(--muted); font-size: 17px; }
.article-cover { max-width: 860px; margin: 0 auto 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; display: block; max-height: 420px; object-fit: cover; }
.bcard-cover { display: block; margin: -20px -20px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.bcard-cover img { width: 100%; height: 172px; object-fit: cover; display: block; }
.article-cta { max-width: 720px; margin: 34px auto 0; background: var(--mint-soft); border-radius: var(--radius); padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.bcard-excerpt { font-size: 13.5px; color: var(--muted); margin: 0; }
.read-more { color: var(--teal-700); font-weight: 600; font-size: 14px; margin-top: auto; }
.read-more:hover { text-decoration: underline; }

/* Stats panel (about) */
.stats-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sp-item { background: var(--mint-soft); border-radius: var(--radius); padding: 24px; text-align: center; }
.sp-item b { display: block; font-family: "Poppins", sans-serif; font-size: 28px; color: var(--teal-800); }
.sp-item span { font-size: 13px; color: var(--muted); }

/* Footer (expanded) */
.site-footer { background: var(--mint-soft); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); max-width: 320px; margin: 0 0 10px; }
.footer-brand .foot-contact { color: var(--teal-800); font-weight: 500; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--teal-800); }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--teal-600); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 940px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-3, .steps-row { grid-template-columns: repeat(2, 1fr); }
  .catalogue { grid-template-columns: 1fr; }
  .cat-rail { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-rail h4 { width: 100%; }
  .cat-link { flex: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .hc-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-search h1 { font-size: 34px; }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .steps-row, .steps-row-2, .detail-facts, .incl-grid, .stats-panel { grid-template-columns: 1fr; }
  .searchbar { flex-direction: column; border-radius: var(--radius); background: transparent; box-shadow: none; padding: 0; gap: 8px; }
  .searchbar input { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .searchbar .btn { width: 100%; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search h1 { font-size: 28px; }
}

/* ------------------------------------------------------------
   Header optimisation — keep the nav on one tidy line
   ------------------------------------------------------------ */
.nav { gap: 20px; }
.brand { flex: none; }
.nav-links { gap: 22px; flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; font-size: 14.5px; }
.nav-right { gap: 14px; flex-shrink: 0; }
.nav-phone { white-space: nowrap; }
.nav .btn { white-space: nowrap; padding: 11px 20px; flex: none; }

/* Collapse to the hamburger earlier so mid-widths never crowd/wrap */
@media (max-width: 1080px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--mint-bg); padding: 16px 24px;
    gap: 14px; border-bottom: 1px solid var(--line); z-index: 50;
  }
  .nav.open .nav-links a { font-size: 15px; }
}
