/* ============================================================
   CLEARLIFE PHARMACY — style.css
   ============================================================ */

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

:root {
  --primary:        #0891b2;
  --primary-dark:   #0e7490;
  --primary-glow:   rgba(8,145,178,0.1);
  --primary-light:  #ecfeff;
  --accent:         #16a34a;
  --accent-light:   #dcfce7;
  --bg:             #ffffff;
  --bg-alt:         #f0fdfe;
  --surface:        #ffffff;
  --border:         #e0f2fe;
  --text:           #0c1a20;
  --text-muted:     #475569;
  --text-light:     #94a3b8;
  --red:            #dc2626;
  --radius:         10px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.05), 0 2px 6px rgba(0,0,0,.04);
  --shadow:         0 2px 8px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.05);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.10);
  --font:           'Inter', system-ui, sans-serif;
  --font-head:      'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w:          1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); width: 0%; z-index: 9999; }

/* PROMO BAR */
.promo-bar { background: var(--primary-dark); color: #fff; padding: 10px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 500; position: relative; }
.promo-bar a { color: #a5f3fc; font-weight: 700; }
.promo-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; }
.promo-close:hover { color: #fff; }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(8,145,178,.10); }
.navbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 20px; }
.navbar-brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.navbar-brand .brand-main { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); letter-spacing: .01em; }
.navbar-brand .brand-sub  { font-size: 8.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.navbar-links { display: flex; align-items: center; gap: 2px; list-style: none; margin-left: auto; }
.navbar-links a { font-size: 13.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); transition: all .15s; }
.navbar-links a:hover { color: var(--primary); background: var(--primary-light); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-nav-cta { padding: 9px 18px; font-size: 13px; font-weight: 700; color: #fff; background: var(--primary); border: none; border-radius: 8px; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn-nav-cta:hover { background: var(--primary-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-menu { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); padding: 16px 24px 24px; gap: 4px; }
.mobile-menu a { padding: 10px 12px; font-size: 14px; font-weight: 500; border-radius: 8px; color: var(--text-muted); transition: all .15s; }
.mobile-menu a:hover, .mobile-menu .btn-nav-cta { background: var(--primary-light); color: var(--primary); }
.mobile-menu .btn-nav-cta { margin-top: 8px; text-align: center; padding: 12px; }
.navbar.open .mobile-menu { display: flex; }

/* HERO */
.hero { background: linear-gradient(135deg, #084c61 0%, var(--primary-dark) 50%, #0891b2 100%); min-height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img img { width: 100%; height: 100%; object-fit: cover; opacity: .1; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(14,116,144,.9) 50%, rgba(14,116,144,.5)); }
.hero .container { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 100px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #a5f3fc; background: rgba(165,243,252,.12); border: 1px solid rgba(165,243,252,.25); padding: 6px 14px; border-radius: 100px; margin-bottom: 20px; }
.hero-h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-h1 span { color: #a5f3fc; }
.hero-sub { font-size: 1.0625rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-size: 14.5px; font-weight: 700; color: #fff; background: var(--accent); border: none; border-radius: 9px; cursor: pointer; transition: all .18s; }
.btn-primary:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,.35); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 14.5px; font-weight: 600; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.3); border-radius: 9px; cursor: pointer; transition: all .18s; }
.btn-outline:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 14px 16px; }
.hero-stat .stat-val { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .stat-lbl { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; font-weight: 500; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { width: 100%; border-radius: 16px; box-shadow: 0 32px 80px rgba(0,0,0,.4); }
.hero-pill { position: absolute; top: 20px; left: -20px; background: #fff; border-radius: 100px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.hero-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* SECTIONS */
.section { padding: 96px 24px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-headline { font-family: var(--font-head); font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--text); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.section-sub { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; }
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: all .22s; display: flex; flex-direction: column; gap: 12px; }
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; }
.service-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; background: var(--accent-light); color: var(--accent); border-radius: 100px; }
.service-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); }
.service-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; flex: 1; }

/* PRODUCTS */
.product-cats { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-bottom: 48px; }
.product-cat { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 10px; text-align: center; cursor: pointer; transition: all .18s; }
.product-cat:hover { border-color: var(--primary); background: var(--primary-light); }
.product-cat-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); margin: 0 auto 8px; }
.product-cat span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 2px; }
.product-cat small { font-size: 10.5px; color: var(--text-light); }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.product-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .22s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img { width: 100%; aspect-ratio: 1; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 18px; }
.product-badge { font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 100px; display: inline-block; margin-bottom: 6px; }
.product-brand { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.product-name  { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.product-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.product-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--text); }

/* DELIVERY */
.delivery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.delivery-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.del-step { display: flex; gap: 16px; }
.del-step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.del-step h4 { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.del-step p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.del-note { background: var(--accent-light); border: 1px solid rgba(22,163,74,.2); border-radius: 9px; padding: 12px 16px; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.delivery-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .22s; }
.team-card:hover { box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 20px; }
.team-body h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.team-title { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.team-bio { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* INSURANCE */
.insurance-plans { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0 24px; }
.insurance-chip { padding: 10px 20px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); transition: all .18s; }
.insurance-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.insurance-note { text-align: center; font-size: 14px; color: var(--text-muted); }

/* REVIEWS */
.reviews-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rating-box { text-align: right; }
.rating-num { font-family: var(--font-head); font-size: 3.2rem; font-weight: 900; color: var(--text); line-height: 1; }
.rating-stars { display: flex; gap: 3px; justify-content: flex-end; }
.rating-stars svg { color: #f59e0b; }
.rating-count { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: all .22s; }
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { display: flex; gap: 2px; }
.review-stars svg { color: #f59e0b; width: 14px; height: 14px; }
.review-quote { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.reviewer-name   { font-size: 13.5px; font-weight: 700; }
.reviewer-detail { font-size: 12px; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .18s; }
.faq-item.open { border-color: var(--primary); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px; background: none; border: none; text-align: left; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; }
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--text-muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* REFILL FORM */
.refill-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 640px; margin: 0 auto; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; font-size: 14px; font-family: var(--font); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg-alt); outline: none;
  transition: border-color .18s, background .18s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit { width: 100%; padding: 14px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; border: none; border-radius: 9px; cursor: pointer; transition: background .18s; font-family: var(--font); }
.btn-submit:hover { background: var(--primary-dark); }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.contact-item a:hover { color: var(--primary); }
.hours-table tr td { padding: 3px 0; font-size: 13.5px; }
.hours-table tr td:first-child { font-weight: 600; color: var(--text); width: 110px; }
.hours-table tr td:last-child  { color: var(--text-muted); }
.map-placeholder { background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius-lg); height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); margin-top: 24px; }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-btn { width: 38px; height: 38px; border-radius: 8px; background: var(--bg-alt); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .18s; }
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* FOOTER */
footer { background: #06303d; color: rgba(255,255,255,.65); padding: 64px 24px 32px; }
.footer-top { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .fb-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: #fff; }
.footer-brand .fb-sub  { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #a5f3fc; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; }

/* FLOAT + BACK TO TOP */
.float-btn { position: fixed; bottom: 88px; right: 24px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; border-radius: 100px; box-shadow: 0 8px 24px rgba(8,145,178,.35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 400; }
.float-btn:hover { background: var(--primary-dark); }
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s; z-index: 400; }
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--primary-dark); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .product-cats { grid-template-columns: repeat(3,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .delivery-layout { grid-template-columns: 1fr; }
  .delivery-image { display: none; }
  .reviews-grid { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-actions .btn-nav-ghost { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .product-cats { grid-template-columns: repeat(2,1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .reviews-header-row { flex-direction: column; }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 72px 20px; }
}
