/* JP Pharmacy — homepage-only layout
   12 independent sections following the supplied reference.
   Shared application states and business logic remain in style.css. */

:root{
  --home-blue:#0b54c6;
  --home-sky:#eaf8ff;
  --home-green:#07a86b;
  --home-navy:#072b60;
  --home-ink:#102a43;
  --home-line:#dceaf3;
  --home-shadow:0 10px 30px rgba(20,76,132,.10)
}
html{scroll-behavior:smooth}
body{background:#fff;color:var(--home-ink)}
.container{width:min(1180px,calc(100% - 40px))}
main>section{scroll-margin-top:78px}
.section{padding:34px 0}
.section-sm{padding:20px 0}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.section-heading .eyebrow{margin-bottom:2px;font-size:18px;letter-spacing:0;color:var(--home-blue)}
.section-heading .eyebrow:before{display:none}
.section-heading h2{margin-top:0;font:500 16px/1.45 var(--sans);color:var(--home-green)}
.section-heading p{max-width:680px;margin:6px 0 0;font-size:13px;color:#5e7184}
.text-link{color:var(--home-blue);white-space:nowrap}

/* 01 — Header */
.topbar{display:none}
.site-header{height:74px;top:0;background:#fff;border-bottom:1px solid #dbe9f3;box-shadow:0 3px 14px rgba(18,62,109,.06)}
.header-inner{gap:18px}
.logo{flex:0 0 auto;gap:3px}
.brand-name b{font-size:31px}.brand-name i{font-size:28px}.brand-name small{font-size:17px}
.logo .brand-tagline{font-size:6px;letter-spacing:.09em;color:#2361c1}
.main-nav{gap:18px;margin-left:auto}
.main-nav a{padding:27px 0 22px;font-size:11px;color:#223b55;border-bottom-width:2px}
.header-search{width:202px;height:36px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #d6e5f0;border-radius:7px;background:#f8fbfd}
.header-search i{color:#6b82a0}.header-search input{width:100%;border:0;outline:0;background:transparent;font:10px var(--sans);color:#263d56}
.header-side{gap:8px;margin-left:0}
.open-badge{padding:6px 9px;font-size:9px;background:#e7faf1;color:#078257}
.icon-call{display:none}
.header-cart{position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--home-blue);font-size:19px}
.header-cart:after{content:"1";position:absolute;right:0;top:-2px;width:15px;height:15px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#f05252;color:#fff;font-size:7px}
.auth-buttons{gap:4px}.btn-auth{padding:7px 8px;font-size:9px}.btn-register{display:none}

/* 02 — Hero banner */
.hero{min-height:0;padding:0;background:linear-gradient(105deg,#effcff 0%,#e8faf5 47%,#dff5f8 100%);border-bottom:1px solid #dcecf3}
.hero-pattern{opacity:.22}
.hero-inner{height:430px;min-height:430px;grid-template-columns:minmax(0,1fr) minmax(470px,1.2fr);gap:20px}
.hero-card{padding:40px 0 38px;align-self:center}
.hero-card>.eyebrow{margin-bottom:9px;color:var(--home-blue);font-size:11px;letter-spacing:.03em}
.hero-card>.eyebrow:before{width:18px;background:var(--home-blue)}
.hero h1{font-family:var(--sans);font-size:45px;line-height:1.13;letter-spacing:-.045em;color:#064eae}
.hero h1 em{color:var(--home-green)}
.hero-card>p{max-width:530px;margin:12px 0 17px;color:#25445f;font-size:14px;line-height:1.65}
.hero-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 0 18px}
.hero-benefits>span{display:grid;justify-items:center;text-align:center;gap:5px;min-width:0;color:#12477c}
.hero-benefits i{width:44px;height:44px;display:grid;place-items:center;border:1px solid #8ccbdc;border-radius:50%;background:#fff;color:var(--home-blue);font-size:22px;box-shadow:0 5px 13px rgba(31,105,156,.08)}
.hero-benefits b{font-size:10px;line-height:1.25}.hero-benefits small{display:block;margin-top:2px;font-weight:400;font-size:7px;color:#677f91}
.hero .button-row{gap:11px}.hero .btn-primary{min-height:43px;padding:9px 18px;border-radius:23px;background:var(--home-green);font-size:11px;box-shadow:0 8px 18px rgba(7,168,107,.18)}
.hero .text-link{min-height:43px;padding:9px 18px;border:1px solid var(--home-blue);border-radius:23px;background:#fff;font-size:11px}
.hero-visual{height:430px;min-height:430px;align-self:stretch;border-radius:0;background:#e4f5ef;box-shadow:none}
.hero-visual:after{background:linear-gradient(90deg,rgba(235,250,247,.96) 0,transparent 20%,transparent 86%,rgba(230,248,245,.28))}
.hero-visual img{width:121%;max-width:none;height:430px;min-height:430px;margin-left:-1%;object-fit:cover;object-position:center 43%}
.hero-visual .hero-online{top:20px;right:19px;padding:7px 10px;font-size:9px}
.hero-visual-note{left:auto;right:17px;bottom:18px;width:235px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.9);color:var(--home-blue)}
.hero-visual-note>i{width:36px;height:36px;border-radius:50%;font-size:20px}.hero-visual-note small{font-size:7px;color:#3b7e72}.hero-visual-note strong{font-size:11px}
/* pre-composed marketing graphic (own logo/headline/captions baked in) — show it whole, no zoom-crop or fade */
.hero-visual-banner:after{display:none}
.hero-visual-banner img{width:100%;max-width:none;height:100%;margin-left:0;object-fit:contain;object-position:center;background:#eefaf7}

/* 03 — Shop by category */
.categories{padding:28px 0 20px;background:#fff}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.category{position:relative;display:block;padding:0 0 14px;text-align:left;border:1px solid var(--home-line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 20px rgba(22,76,127,.07);transition:transform .2s,box-shadow .2s}
.category:hover{transform:translateY(-4px);border-color:transparent;box-shadow:0 14px 30px rgba(22,76,127,.14)}
.category .category-media{position:relative;width:100%;height:112px;margin:0 0 12px;border-radius:0;display:grid;place-items:center;overflow:hidden}
.category-media i{position:relative;z-index:1;width:56px;height:56px;display:grid;place-items:center;border-radius:16px;font-size:26px;background:rgba(255,255,255,.85)}
.category-media img{position:absolute;inset:0;width:100%;height:100%;display:none;object-fit:cover}
.category-media img[src]{display:block}
.category-media img[src]~i{display:none}
.category h3,.category small{display:block;padding:0 12px}.category h3{margin:0 0 2px;color:#173a65;font-size:12px;font-weight:700}.category small{font-size:10px;color:#4b78a2}
.cat-c1 .category-media{background:linear-gradient(150deg,#e3f6ee,#c9ecdd)}.cat-c1 .category-media i{color:var(--home-green)}
.cat-c2 .category-media{background:linear-gradient(150deg,#e6f1ff,#cfe6ff)}.cat-c2 .category-media i{color:var(--home-blue)}
.cat-c3 .category-media{background:linear-gradient(150deg,#fdeee0,#fbdcc0)}.cat-c3 .category-media i{color:#c9711c}
.cat-c4 .category-media{background:linear-gradient(150deg,#e9f0ff,#d7e3ff)}.cat-c4 .category-media i{color:#3d5adf}
.cat-c5 .category-media{background:linear-gradient(150deg,#fdeaea,#facfcf)}.cat-c5 .category-media i{color:#d84b4b}
.cat-c6 .category-media{background:linear-gradient(150deg,#f3eaff,#e4d3fb)}.cat-c6 .category-media i{color:#7c4bd8}

/* 04 — Pharmacy & Medical Supply */
.care-paths{padding:0 0 22px;background:#fff}
.care-path-grid{gap:7px}
.care-path{min-height:205px;grid-template-columns:48px minmax(170px,.74fr) minmax(185px,1fr);gap:14px;padding:25px 19px;border-radius:5px;box-shadow:none}
.care-path:hover{transform:none;box-shadow:none}
.care-path-pharmacy{background:linear-gradient(100deg,#09a96b 0%,#07a96b 54%,#6bdfb9 100%)}
.care-path-medical{background:linear-gradient(100deg,#0766e7 0%,#1682f5 54%,#9ed7ff 100%)}
.care-path-icon{width:45px;height:45px;border-radius:9px;font-size:26px}
.care-path small{font-size:17px;letter-spacing:0}.care-path strong{font-size:12px}.care-path em{margin-top:13px;font-size:10px;line-height:1.7}
.care-path-art{align-self:stretch;overflow:hidden;border-radius:4px;background:rgba(255,255,255,.16)}
.care-path-art img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 38%}
.care-path-medical .care-path-art img{object-fit:contain;background:rgba(255,255,255,.13);padding:4px}
.care-path>i{position:absolute;left:86px;bottom:20px;width:auto;height:30px;padding:0 13px;border-radius:18px;font-size:13px}
.care-path:after{display:none}
/* pre-composed marketing banners (own logo/headline/CTA baked in) — show them whole, at natural size */
.care-path-banner{display:block;padding:0 0 16px;height:auto;min-height:0;background:#fff}
.care-path-banner img{width:100%;height:auto;display:block;object-fit:contain}
.care-path-cta{margin:14px 20px 0;display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:999px;color:#fff;font-size:12px;font-weight:700}
.care-path-cta.cta-orange{background:var(--orange);box-shadow:0 8px 18px rgba(240,114,48,.35)}
.care-path-cta.cta-purple{background:#7c4bd8;box-shadow:0 8px 18px rgba(124,75,216,.35)}

/* Keep both pre-composed Section 04 banners compact and fully readable. */
.care-path-grid{align-items:stretch;gap:10px}
.care-path-grid>.care-path-banner{height:auto!important;min-height:0!important;aspect-ratio:1.9/1;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;place-items:stretch!important;overflow:hidden;padding:0!important;background:#f7fbff}
.care-path-grid>.care-path-banner>img{grid-area:1/1;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;max-height:100%!important;display:block!important;object-fit:contain;object-position:center}
.care-path-grid>.care-path-banner>.care-path-cta{display:none!important}

/* 05 — Featured products */
.products{padding:20px 0 26px;background:#fff}
.products>.container>.section-heading{display:none}
.featured-products-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}
.featured-products-heading small{color:var(--home-blue);font-size:18px;font-weight:800}.featured-products-heading h3{margin:0;color:var(--home-green);font-size:11px;font-weight:500}.featured-products-heading>span{font-size:9px;color:#54718b}
.product-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.product-card{border:1px solid var(--home-line);border-radius:10px;box-shadow:0 5px 18px rgba(22,76,127,.06);overflow:hidden}
.product-visual{height:162px;background:linear-gradient(145deg,#f5fbff,#fff)}.product-visual img{padding:8px}
.product-body{padding:10px 11px 12px}.product-body h3{min-height:36px;margin:3px 0 6px;font-size:10px;line-height:1.5}.product-body strong{display:block;margin-bottom:9px;font-size:16px;color:#ee8b15}
.product-card .btn,.product-card button{min-height:31px;padding:5px 11px;border-radius:16px;font-size:9px}
.homepage-product-cta{display:flex;align-items:center;justify-content:center;gap:6px;min-height:31px;padding:5px 11px;border-radius:16px;background:var(--home-blue);color:#fff;font-size:9px;font-weight:700;transition:background .2s}
.homepage-product-link:hover .homepage-product-cta{background:#083f8f}
.stats{display:none}

/* 06 — Care beyond the counter */
.services{padding:24px 0;background:linear-gradient(180deg,#effaff,#eaf8ff)}
.service-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:13px}
.service-heading .eyebrow{margin:0 0 2px;color:var(--home-blue);font-size:18px;letter-spacing:0}.service-heading .eyebrow:before{display:none}
.service-heading h2{margin:0;font:500 16px/1.45 var(--sans);color:var(--home-green)}
.service-showcase{grid-template-columns:1.12fr 1.88fr;gap:11px}
/* pre-composed marketing banner (heading/photo/CTA baked in) — show it whole, no crop */
.service-photo{min-height:0;box-shadow:none}
.service-photo:after{display:none}
.service-photo-banner{display:block}
.service-photo-banner img{width:100%;height:auto;display:block;border-radius:8px;object-fit:contain}
.service-showcase .service-grid{grid-template-columns:repeat(2,1fr);gap:9px}
.service-showcase .service-card{grid-template-columns:40px 1fr;gap:10px;padding:15px;border:1px solid #dbeaf3;border-radius:8px;box-shadow:0 4px 14px rgba(21,82,128,.05)}
.service-showcase .service-card>i{width:40px;height:40px;border-radius:8px;font-size:23px}.service-showcase .service-card h3{font-size:11px}.service-showcase .service-card p{margin-bottom:3px;font-size:8px}.service-showcase .service-card a{display:none}

/* 07 — About JP Pharmacy */
.about{padding:0;background:#fff}
.about-grid{grid-template-columns:1fr 1.12fr;gap:0;height:310px;min-height:310px;border-radius:0;box-shadow:none;background:var(--home-navy);overflow:hidden}
.about-visual{order:2;height:310px;min-height:310px;background:#d6e8f0}
.about-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--home-navy),transparent 32%)}
.about-visual>img{width:121%;max-width:none;height:100%;margin-left:-1%;display:block;object-fit:cover;object-position:center 42%}
.about-card{z-index:2;right:18px;bottom:17px;width:130px;padding:13px;border:0;border-radius:8px}.about-card i{font-size:19px}.about-card strong{font:25px var(--sans)}.about-card span{font-size:8px}
.about-copy{order:1;padding:30px 35px;background:linear-gradient(105deg,#062755,#0b3d7a);color:#fff}
.about-copy .eyebrow{margin:0;color:#fff;font-size:18px;letter-spacing:0}.about-copy .eyebrow:before{display:none}
.about-copy h2{font:700 28px/1.2 var(--sans)}.about-copy h2 em{color:#fff}.about-copy p{margin:11px 0;color:#dbe9f7;font-size:10px;line-height:1.65}
.about-copy ul{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:14px}.about-copy li{margin:0;color:#e5f1ff;font-size:9px}.about-copy li i{color:#77ddbd}
.about-copy .btn-outline{align-self:flex-start;min-height:33px;padding:6px 14px;border-color:#fff;border-radius:17px;background:#fff;color:var(--home-blue);font-size:9px}

/* 08 — Health notes */
.blog{padding:22px 0;background:#fff}
.blog-grid{grid-template-columns:1.45fr 1fr;grid-template-rows:1fr 1fr;gap:9px}
.blog-card{display:grid;grid-template-columns:135px 1fr;min-height:105px;border:1px solid var(--home-line);border-radius:7px;overflow:hidden}
.blog-card:first-child{grid-row:1/3;grid-template-columns:1.05fr 1fr;min-height:220px}
.blog-visual{height:100%;min-height:105px;font-size:42px}.blog-card:first-child .blog-visual{font-size:70px}
.blog-card>div:last-child{display:flex;flex-direction:column;justify-content:center;padding:13px}.blog-card small{font-size:8px}.blog-card h3{margin:5px 0 8px;font:700 12px/1.45 var(--sans)}.blog-card:first-child h3{font-size:17px}.blog-card a{font-size:9px}

/* 09 — Talk to our pharmacist */
.booking{padding:0;background:linear-gradient(95deg,#05a86b,#0bc89e 60%,#6de5d2)}
.booking:after{display:none}.booking:before{width:0}
.booking-inner{min-height:155px;padding:23px 30px 23px 300px;background:linear-gradient(90deg,rgba(0,116,77,.08),transparent)}
.booking-inner:before{content:"";position:absolute;left:0;bottom:0;width:270px;height:155px;background:url('../assets/images/pharmacist-consultation-v2.png') center 26%/cover no-repeat;border-radius:0 80px 0 0}
.booking .eyebrow{margin:0;color:#fff;font-size:17px;letter-spacing:.02em}.booking .eyebrow:before{display:none}
.booking h2{font:700 21px/1.3 var(--sans)}.booking h2 br{display:none}.booking p{margin:4px 0 0;font-size:10px}.booking-actions{gap:8px}.booking .btn{min-height:37px;padding:7px 15px;border-radius:20px;font-size:10px}

/* 10 — Get in touch */
.contact{padding:23px 0;background:#f3faff}
.contact-grid{grid-template-columns:.85fr 1.15fr;gap:22px;align-items:stretch}
.contact-copy{padding:17px;background:#fff;border:1px solid var(--home-line);border-radius:8px}
.contact-copy .eyebrow{margin:0;color:var(--home-blue);font-size:18px;letter-spacing:0}.contact-copy .eyebrow:before{display:none}.contact-copy h2{font:600 13px var(--sans);color:var(--home-green)}.contact-copy>p{font-size:9px}
.contact-list{grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.contact-list>a,.contact-list>div{gap:8px}.contact-list i{width:32px;height:32px;border-radius:50%;font-size:15px}.contact-list small{font-size:7px}.contact-list strong{font-size:9px}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;padding:17px;border-radius:8px;background:#fff}.contact-form>.field-row{grid-column:1/3}.contact-form>label:nth-of-type(1){grid-column:1}.contact-form>label:nth-of-type(2){grid-column:2}.contact-form label{margin-bottom:8px;font-size:8px}.contact-form input,.contact-form textarea,.contact-form select{padding:8px 10px;font-size:9px}.contact-form>label:has(textarea){grid-column:1/3}.contact-form .btn{justify-self:start;min-height:34px;padding:6px 17px;border-radius:18px;font-size:9px}.form-status{font-size:8px}

/* 11 — Trust bar */
.features{padding:12px 0;background:#fff;border-top:1px solid var(--home-line);border-bottom:1px solid var(--home-line)}
.features .feature-grid{width:min(1180px,calc(100% - 40px));max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);animation:none}
.features .feature{width:auto;padding:4px 24px;border-right:1px solid var(--home-line)}.features .feature:last-child{border-right:0}
.features .feature[aria-hidden="true"]{display:none}
.features .feature span{width:39px;height:39px;border-radius:50%;font-size:20px}.features .feature h3{font-size:10px;color:#163c68}.features .feature p{font-size:8px;color:#5b748e}

/* 12 — Footer */
.footer{padding:28px 0 12px;background:linear-gradient(105deg,#062650,#041d40);color:#d5e6f7}
.footer-main{grid-template-columns:1.7fr repeat(3,1fr);gap:36px;padding-bottom:21px}.footer-logo .brand-name b{font-size:29px}.footer-logo .brand-name i{font-size:26px}.footer-logo .brand-name small{font-size:17px}.footer-main p{font-size:9px}.footer h3{font-size:10px}.footer-main>div>a{font-size:9px}.footer-bottom{padding-top:10px;font-size:8px}

@media(max-width:1180px){
  .container{width:min(100% - 28px,1180px)}
  .main-nav{gap:11px}.main-nav a{font-size:9px}.header-search{width:165px}.open-badge{display:none}
  .hero-inner{grid-template-columns:minmax(0,1fr) minmax(420px,1.05fr)}.hero h1{font-size:39px}
  .hero-benefits{grid-template-columns:repeat(2,1fr)}.hero-benefits>span{grid-template-columns:40px 1fr;text-align:left;justify-items:start;align-items:center}.hero-benefits i{grid-row:1/3;width:38px;height:38px}.hero-benefits small{font-size:8px}
  .care-path{grid-template-columns:44px 1fr 40%}
}

@media(max-width:980px){
  .site-header{height:68px}.main-nav,.header-search,.auth-buttons,.header-cart{display:none}.header-side{margin-left:auto}.menu-toggle{display:grid}
  .hero-inner{height:auto;grid-template-columns:1fr;gap:0}.hero-card{padding:37px 12px}.hero-visual{height:390px;min-height:390px}.hero-visual img{height:390px;min-height:390px}
  .category-grid{grid-template-columns:repeat(3,1fr)}.category .category-media{height:145px}
  .care-path-grid{grid-template-columns:1fr}.care-path{grid-template-columns:50px 1fr 40%}
  .care-path-banner{height:auto;aspect-ratio:1.9/1}
  .care-path-banner img{height:100%}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .service-showcase{grid-template-columns:1fr}.service-showcase .service-grid{grid-template-columns:repeat(3,1fr)}
  .about-grid{grid-template-columns:1fr;height:auto}.about-visual{order:1;height:360px;min-height:360px}.about-copy{order:2}.about-visual:after{background:linear-gradient(180deg,transparent,var(--home-navy))}
  .blog-grid{grid-template-columns:1fr;grid-template-rows:auto}.blog-card:first-child{grid-row:auto;min-height:190px}
  .booking-inner{padding-left:240px}.booking-inner:before{width:220px}
  .contact-grid{grid-template-columns:1fr}
}

@media(max-width:680px){
  .container{width:min(100% - 22px,1180px)}
  .section{padding:27px 0}.section-heading{align-items:flex-start}.section-heading .eyebrow{font-size:16px}
  .hero-card{padding:30px 0}.hero h1{font-size:34px}.hero-card>p{font-size:12px}.hero-benefits{gap:12px 7px}.hero-benefits b{font-size:9px}.hero .button-row{gap:7px}.hero .btn-primary,.hero .text-link{padding:8px 13px;font-size:9px}
  .hero-visual{height:330px;min-height:330px}.hero-visual img{height:330px;min-height:330px;object-position:center 38%}.hero-visual-note{width:205px}
  .category-grid{grid-template-columns:repeat(2,1fr);gap:7px}.category .category-media{height:115px}
  .care-path{min-height:180px;grid-template-columns:39px 1fr;padding:18px 14px}.care-path-art{display:none}.care-path small{font-size:15px}.care-path>i{left:70px;bottom:15px}
  .care-path-banner{min-height:0;aspect-ratio:1.55/1;padding:0}
  .care-path-banner img{height:100%}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:7px}.product-visual{height:135px}.product-body strong{font-size:14px}
  .service-showcase .service-grid{grid-template-columns:1fr 1fr}.service-showcase .service-card{grid-template-columns:34px 1fr;padding:11px}.service-showcase .service-card>i{width:34px;height:34px;font-size:19px}
  .about-copy{padding:25px 20px}.about-copy h2{font-size:24px}.about-copy ul{grid-template-columns:1fr}.about-visual{height:300px;min-height:300px}
  .blog-card,.blog-card:first-child{grid-template-columns:105px 1fr;min-height:130px}.blog-card:first-child .blog-visual{font-size:45px}.blog-card:first-child h3{font-size:14px}
  .booking-inner{min-height:270px;padding:145px 16px 19px;display:block}.booking-inner:before{top:0;bottom:auto;width:100%;height:135px;border-radius:0;background-position:center 31%}.booking-actions{margin-top:12px}
  .contact-form{display:block}.contact-form>.field-row{grid-template-columns:1fr}.contact-list{grid-template-columns:1fr}
  .features .feature-grid{width:min(100% - 20px,1180px);grid-template-columns:1fr 1fr}.features .feature{padding:8px;border-bottom:1px solid var(--home-line)}.features .feature:nth-child(2){border-right:0}
  .footer-main{grid-template-columns:1.4fr 1fr;gap:24px}.footer-bottom{gap:15px}
}
