/* ============================================================
   Cure Connect Pakistan — static site
   Brand system derived from the logo:
   green #1b9739 · lime #84bc33 · blue #226ea0 · cyan #6fc4dc
   ============================================================ */

:root {
  --green:  #1b9739;
  --green-dark: #127c2c;
  --lime:   #84bc33;
  --blue:   #226ea0;
  --blue-dark: #17415c;
  --cyan:   #6fc4dc;
  --navy:   #17415c;
  --text:   #2e3436;
  --muted:  #64707a;
  --soft:   #f0f8f1;
  --line:   #e2ede4;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(23,65,92,.06);
  --shadow: 0 16px 40px rgba(23,65,92,.12);
  --font: "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--navy); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.soft { background: var(--soft); }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #d7e6f2; font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #d7e6f2; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar .links a { margin-left: 20px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.site-logo img { height: 58px; width: auto; display: block; transition: transform .3s ease; }
.site-logo:hover img { transform: scale(1.04); }
.header-search { flex: 1; display: flex; max-width: 460px; position: relative; }
.header-search input {
  flex: 1; border: 1.5px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px; padding: 11px 20px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff;
  transition: border-color .2s;
}
.header-search input:focus { border-color: var(--green); outline: none; }
.header-search button {
  border: 0; background: var(--green); color: #fff;
  padding: 0 22px; border-radius: 0 999px 999px 0; cursor: pointer;
  font-size: .95rem; transition: background .2s;
}
.header-search button:hover { background: var(--green-dark); }
.header-actions { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.header-actions .icon-link { position: relative; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.header-actions .icon-link:hover { color: var(--green); }
.header-actions .badge {
  position: absolute; top: -7px; right: -12px;
  background: var(--lime); color: var(--navy);
  border-radius: 50%; font-size: 10px; line-height: 17px; width: 17px; text-align: center; font-weight: 700;
}
.menu-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 600;
  color: var(--navy); cursor: pointer;
}

/* ---------- Nav ---------- */
.main-nav { background: var(--navy); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 13px 22px; color: #d9e4ee;
  font-weight: 500; font-size: 14.5px;
  border-radius: 0 0 6px 6px; position: relative;
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 8px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover, .main-nav li.active a { color: #fff; }
.main-nav a:hover::after, .main-nav li.active a::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; background: var(--green); color: #fff;
  border: 0; border-radius: 999px; font: inherit; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 18px rgba(27,151,57,.28);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,151,57,.35); }
.btn i { font-size: .85em; transition: transform .2s; }
.btn:hover i { transform: translateX(3px); }
.btn.accent { background: var(--blue); box-shadow: 0 6px 18px rgba(34,110,160,.28); }
.btn.accent:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(34,110,160,.35); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(111,196,220,.35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(132,188,51,.30), transparent 55%),
    linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 45%, #1e8845 100%);
}
/* subtle plus-pattern texture */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M42 34h6v8h8v6h-8v8h-6v-8h-8v-6h8z' fill='%23fff'/%3E%3C/svg%3E");
}
.hero .wrap {
  position: relative; display: flex; align-items: center; gap: 56px;
  padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px);
}
.hero-text { max-width: 580px; }
.hero-text .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: #d9f2de; font-weight: 600; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 18px; border-radius: 999px; margin-bottom: 20px;
}
.hero-text .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.hero-text h1 { color: #fff; margin-bottom: .45em; }
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #a5e878);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text p { color: rgba(255,255,255,.88); font-size: 1.08rem; margin-bottom: 2em; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.hero .btn:hover { background: var(--cyan); color: var(--navy); }
.hero .btn.accent { background: var(--green); color: #fff; }
.hero .btn.accent:hover { background: var(--green-dark); color: #fff; }
.hero .btn.ghost { background: var(--cyan); border-color: var(--cyan); color: var(--navy); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hero .btn.ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.hero-visual { flex: 1; min-height: 340px; position: relative; }
.hero-visual img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 48px rgba(23,65,92,.28));
}
/* category toggle chips (catalogue filter) */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 30px;
}
.chip-btn {
  font: inherit; font-size: .86rem; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--line, #e3ece5);
  background: #fff; color: var(--navy);
  cursor: pointer; transition: all .18s ease;
}
.chip-btn:hover { border-color: var(--green); color: var(--green); }
.chip-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip-btn.active {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 6px 14px rgba(27,151,57,.25);
}

/* floating stat chips over the visual */
.chip {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--navy);
  border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 600; line-height: 1.4;
  animation: floaty 5s ease-in-out infinite;
}
.chip small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.chip .dot { color: var(--green); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* one orchestrated entrance */
.hero-text > *, .hero-visual { opacity: 0; transform: translateY(18px); animation: rise .7s ease forwards; }
.hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero-text > *:nth-child(4) { animation-delay: .3s; }
.hero-visual { animation-delay: .25s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-text > *, .hero-visual { animation: none; opacity: 1; transform: none; } }

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(90deg, var(--green), var(--lime));
  color: #fff;
}
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 34px; padding-bottom: 34px; text-align: center;
}
.stats .num { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.stats .lbl { font-size: .84rem; color: rgba(255,255,255,.85); }

/* ---------- Section heads ---------- */
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 16px auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--cyan));
}
.section-head p { color: var(--muted); }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: box-shadow .25s, transform .25s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .icon {
  width: 50px; height: 50px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--soft), #e7f4e9);
  color: var(--green); border-radius: 14px; font-size: 1.25rem;
}
.feature h3 { font-size: .98rem; margin-bottom: 3px; }
.feature p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cat-tile {
  position: relative; border-radius: var(--radius); padding: 26px 22px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff; font-weight: 600; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cat-tile:nth-child(4n+2) { background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.cat-tile:nth-child(4n+3) { background: linear-gradient(135deg, #6da425, var(--lime)); color: var(--navy); }
.cat-tile:nth-child(4n)   { background: linear-gradient(135deg, #3d94b8, var(--cyan)); color: var(--navy); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-tile .count { display: block; font-weight: 500; font-size: .8rem; opacity: .85; margin-top: 4px; }
.cat-tile::after {
  content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px;
  background: rgba(255,255,255,.14); border-radius: 50%;
}

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 26px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.product-thumb {
  aspect-ratio: 1; display: grid; place-items: center;
  background: linear-gradient(160deg, #f6faf6, var(--soft));
  overflow: hidden; position: relative;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 18px 20px 22px; }
.product-info .category { color: var(--green); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.product-info h3 { margin: 8px 0 10px; font-size: 1rem; }
.product-info h3 a { color: var(--navy); }
.product-info h3 a:hover { color: var(--green); }
.price { font-weight: 700; color: var(--green); font-size: 1.05rem; }
.price del { color: var(--muted); font-weight: 400; margin-right: 8px; }
.flag {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-size: .72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; margin-left: 10px; vertical-align: 2px;
}

/* ---------- Banners (2-up) ---------- */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.banner {
  position: relative; border-radius: 20px; padding: clamp(28px, 4vw, 48px); min-height: 220px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff;
  overflow: hidden;
}
.banner.green { background: linear-gradient(120deg, var(--green-dark), var(--green)); }
.banner h3 { color: inherit; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.banner p { color: rgba(255,255,255,.88); }
.banner .btn { align-self: flex-start; margin-top: 10px; background: #fff; color: var(--blue-dark); box-shadow: none; }
.banner.green .btn { color: var(--green-dark); }
.banner .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.banner::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -70px; bottom: -90px; background: rgba(255,255,255,.10);
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 700px; margin: 0 auto; text-align: center; position: relative;
  background: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 10px; left: 30px;
  font-size: 6rem; line-height: 1; color: var(--cyan); opacity: .5; font-family: Georgia, serif;
}
.testimonial blockquote { font-size: 1.18rem; color: var(--navy); margin: 0 0 18px; line-height: 1.6; font-weight: 500; }
.testimonial .who { color: var(--muted); font-size: .9rem; }
.testimonial .stars { color: var(--lime); letter-spacing: 4px; margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font: inherit; color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(27,151,57,.12); }
textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 16px; padding: 13px 18px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: #e3f4e8; color: var(--green-dark); }
.form-status.err { display: block; background: #fdecea; color: #b3402e; }
.contact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; margin-bottom: 52px; }
.contact-meta .feature p a { color: var(--text); font-weight: 600; }
.contact-meta .feature p a:hover { color: var(--green); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px; margin-bottom: 14px; background: #fff;
  transition: box-shadow .2s;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  padding: 17px 0; list-style-position: outside;
}
.faq summary::marker { color: var(--green); }
.faq details p { color: var(--muted); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--cyan); }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card .thumb {
  aspect-ratio: 16/9;
  background:
    radial-gradient(200px 120px at 80% 20%, rgba(111,196,220,.4), transparent 60%),
    linear-gradient(130deg, var(--soft), #dff0e2);
}
.post-card .body { padding: 20px 22px 24px; }
.post-card .date { color: var(--green); font-size: .8rem; font-weight: 600; }
.post-card h3 { margin: 8px 0; }
.post-card h3 a { color: var(--navy); }

/* ---------- Page head ---------- */
.page-head {
  background:
    radial-gradient(600px 220px at 90% -20%, rgba(111,196,220,.25), transparent 65%),
    linear-gradient(115deg, var(--blue-dark), var(--blue) 55%, #1e8845);
  color: #fff; padding: clamp(36px, 5vw, 60px) 0;
}
.page-head h1 { color: #fff; margin-bottom: 6px; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.page-head .crumbs { color: rgba(255,255,255,.75); font-size: .86rem; }
.page-head .crumbs a { color: #d3ecda; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9bccb; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer h4::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--green); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #a9bccb; }
.site-footer a:hover { color: #fff; }
.site-footer .fa-solid, .site-footer .fa-regular { color: var(--cyan); margin-right: 6px; }
.footer-logo img { height: 74px; width: auto; background: #fff; padding: 7px 12px; border-radius: 12px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.10); }
.footer-note .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: .84rem; }

/* ---------- 404 ---------- */
.error-code {
  font-size: clamp(5rem, 14vw, 8rem); font-weight: 700; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--green), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { flex-direction: column; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { width: 100%; min-height: 230px; }
  .banner-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .topbar .links { display: none; }
  .header-search { display: none; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .header-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .btn, .feature, .post-card, .cat-tile, .site-logo img { transition: none; }
  .product-card:hover, .feature:hover, .post-card:hover, .cat-tile:hover { transform: none; }
}
