
/* ============================================================
   JOURDANTON PHARMACY — HORIZONX-INSPIRED HOME
   Original implementation: glass depth, bento, coverflow, motion.
   Loaded only on the homepage and after the shared responsive CSS.
   ============================================================ */

.hx-page{
  --hx-red:#d71920;
  --hx-red-dark:#b80f16;
  --hx-navy:#0b3558;
  --hx-navy-deep:#062945;
  --hx-ink:#0a2945;
  --hx-muted:#60778d;
  --hx-line:#dbe4eb;
  --hx-glass:rgba(255,255,255,.72);
  --hx-soft:#f5f8fa;
  background:#f7f9fb;
}

.hx-page .container{
  width:min(1240px,calc(100% - 40px));
}

/* top / header */
.hx-utility{
  background:linear-gradient(90deg,#c80f18,#e31c25 52%,#c10b15);
  box-shadow:0 4px 18px rgba(151,0,8,.12);
}
.hx-header{
  position:sticky;
  top:0;
  z-index:100;
  padding:10px 0 0;
  background:linear-gradient(180deg,rgba(247,249,251,.96),rgba(247,249,251,.5),transparent);
  backdrop-filter:none;
  border-bottom:0;
}
.hx-header .header-inner{
  min-height:64px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:21px;
  background:rgba(255,255,255,.86);
  box-shadow:0 14px 38px rgba(7,37,61,.10);
  backdrop-filter:blur(18px) saturate(1.2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
}
.hx-jmark{
  background:linear-gradient(145deg,#ef2832,#c80c14)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(215,25,32,.26);
}
.hx-page .desktop-nav{
  gap:5px;
}
.hx-page .desktop-nav .nav-link{
  padding:10px 11px;
  border-radius:10px;
}
.hx-page .desktop-nav .nav-link:hover{
  background:#f3f6f8;
}

/* hero */
.hx-hero-wrap{
  position:relative;
  z-index:2;
  padding:14px 0 56px;
}
.hx-hero{
  position:relative;
  min-height:700px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.85);
  border-radius:34px;
  background:#dce6ec;
  box-shadow:0 30px 80px rgba(5,32,53,.16);
  isolation:isolate;
}
.hx-hero-media,
.hx-hero-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.hx-hero-media img{
  object-fit:cover;
  object-position:center center;
  transform:scale(1.02);
  transition:transform .15s linear;
}
.hx-hero-wash{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.94) 28%,rgba(255,255,255,.58) 46%,rgba(255,255,255,.12) 68%,rgba(8,40,65,.07) 100%),
    linear-gradient(0deg,rgba(6,41,69,.19),transparent 42%);
}
.hx-orb{
  position:absolute;
  z-index:1;
  border-radius:50%;
  filter:blur(14px);
  opacity:.54;
  pointer-events:none;
}
.hx-orb-a{
  width:280px;height:280px;
  left:-80px;top:-100px;
  background:radial-gradient(circle,rgba(215,25,32,.22),rgba(215,25,32,0) 70%);
  animation:hxDriftA 9s ease-in-out infinite alternate;
}
.hx-orb-b{
  width:330px;height:330px;
  right:-80px;bottom:-130px;
  background:radial-gradient(circle,rgba(255,255,255,.7),rgba(255,255,255,0) 70%);
  animation:hxDriftB 11s ease-in-out infinite alternate;
}
@keyframes hxDriftA{to{transform:translate(28px,34px) scale(1.08)}}
@keyframes hxDriftB{to{transform:translate(-25px,-22px) scale(.94)}}

.hx-hero-copy{
  position:relative;
  z-index:3;
  width:min(560px,52%);
  padding:76px 0 150px 58px;
}
.hx-kicker{
  margin:0 0 12px;
  color:#148693;
  font-size:.77rem;
  font-weight:950;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.hx-hero-copy h1{
  margin:0;
  color:var(--hx-navy);
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(4.3rem,6.3vw,7.2rem);
  line-height:.84;
  letter-spacing:-.065em;
}
.hx-hero-copy h1 span{
  display:inline-block;
  margin-top:10px;
  color:var(--hx-red);
}
.hx-hero-copy > p:not(.hx-kicker){
  max-width:520px;
  margin:25px 0 0;
  color:#425e76;
  font-size:1.08rem;
  line-height:1.65;
}
.hx-hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:25px;
}
.hx-btn{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 19px;
  border-radius:999px;
  font-size:.86rem;
  font-weight:900;
  line-height:1;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease;
}
.hx-btn svg{
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.hx-btn b{font-size:1.15rem}
.hx-btn:hover{transform:translateY(-2px)}
.hx-btn-red{
  background:linear-gradient(135deg,#ee2530,#c90f18);
  color:#fff;
  box-shadow:0 12px 28px rgba(215,25,32,.24);
}
.hx-btn-red:hover{box-shadow:0 17px 34px rgba(215,25,32,.32)}
.hx-btn-glass{
  border:1px solid rgba(11,53,88,.20);
  background:rgba(255,255,255,.76);
  color:var(--hx-navy);
  backdrop-filter:blur(13px);
  box-shadow:0 10px 25px rgba(7,37,61,.09);
}
.hx-btn-navy{
  background:var(--hx-navy);
  color:#fff;
  box-shadow:0 12px 28px rgba(7,37,61,.18);
}
.hx-btn-white{
  background:#fff;
  color:var(--hx-red);
  box-shadow:0 12px 28px rgba(114,0,5,.18);
}

.hx-service-glass{
  position:absolute;
  z-index:4;
  top:54px;
  right:34px;
  width:274px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.44);
  border-radius:22px;
  background:rgba(7,36,60,.62);
  box-shadow:0 22px 60px rgba(3,20,34,.28);
  backdrop-filter:blur(18px) saturate(1.25);
  -webkit-backdrop-filter:blur(18px) saturate(1.25);
  color:#fff;
  transform-style:preserve-3d;
}
.hx-service-glass > a,
.hx-service-glass > span{
  min-height:78px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.13);
  transition:background .2s ease,transform .2s ease;
}
.hx-service-glass > *:last-child{border-bottom:0}
.hx-service-glass > a:hover{
  background:rgba(255,255,255,.09);
  transform:translateX(3px);
}
.hx-glass-icon{
  width:40px;height:40px;
  flex:0 0 40px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.19);
  border-radius:13px;
  background:rgba(255,255,255,.10);
}
.hx-glass-icon svg{
  width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.hx-service-glass strong{display:block;font-size:.86rem}
.hx-service-glass small{display:block;margin-top:3px;color:#d5e1e9;font-size:.69rem;line-height:1.3}
.hx-handnote{
  position:absolute;
  z-index:4;
  right:26px;
  bottom:128px;
  color:#fff;
  font-family:"Bradley Hand","Segoe Print","Comic Sans MS",cursive;
  font-size:1.2rem;
  line-height:1.15;
  text-align:right;
  transform:rotate(-5deg);
  text-shadow:0 3px 12px rgba(0,0,0,.28);
}

/* action dock */
.hx-action-dock{
  position:relative;
  z-index:8;
  width:calc(100% - 70px);
  margin:-88px auto 0;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.85);
  border-radius:24px;
  background:rgba(255,255,255,.82);
  box-shadow:0 22px 55px rgba(7,37,61,.14);
  backdrop-filter:blur(18px) saturate(1.15);
}
.hx-action-dock a{
  position:relative;
  min-height:130px;
  display:grid;
  grid-template-columns:48px 1fr 27px;
  align-items:center;
  gap:10px;
  padding:18px 14px;
  color:var(--hx-navy);
  border-right:1px solid var(--hx-line);
  transition:background .22s ease,transform .22s ease;
}
.hx-action-dock a:last-child{border-right:0}
.hx-action-dock a:hover{
  z-index:2;
  background:#fff;
  transform:translateY(-4px);
}
.hx-action-dock i{
  width:48px;height:48px;
  display:grid;place-items:center;
  border-radius:15px;
  background:linear-gradient(145deg,#ef2832,#c80c14);
  color:#fff;
  box-shadow:0 10px 22px rgba(215,25,32,.20);
}
.hx-action-dock i svg{
  width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.hx-action-dock strong{display:block;font-size:.87rem}
.hx-action-dock small{display:block;margin-top:2px;color:var(--hx-muted);font-size:.72rem}
.hx-action-dock b{
  width:27px;height:27px;
  display:grid;place-items:center;
  border:1px solid #f1c8ca;
  border-radius:50%;
  background:#fff6f6;
  color:var(--hx-red);
}

/* common sections */
.hx-section{
  position:relative;
  padding:78px 0;
}
.hx-section-head{
  display:grid;
  grid-template-columns:1fr .8fr;
  align-items:end;
  gap:60px;
  margin-bottom:34px;
}
.hx-section-head h2,
.hx-wellness-copy h2,
.hx-story-copy h2,
.hx-location-copy h2,
.hx-feature-copy h2{
  margin:0;
  color:var(--hx-navy);
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(3rem,4.8vw,5.3rem);
  line-height:.88;
  letter-spacing:-.055em;
}
.hx-section-head > p{
  max-width:500px;
  margin:0 0 4px auto;
  color:var(--hx-muted);
  font-size:1rem;
  line-height:1.65;
}

/* bento */
.hx-services{
  background:linear-gradient(180deg,#f7f9fb,#fff);
}
.hx-bento{
  display:grid;
  grid-template-columns:1.32fr repeat(3,1fr);
  grid-auto-rows:154px;
  gap:12px;
}
.hx-bento-card{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:14px;
  padding:19px;
  border:1px solid rgba(216,226,233,.92);
  border-radius:19px;
  background:rgba(255,255,255,.83);
  color:var(--hx-navy);
  box-shadow:0 12px 32px rgba(7,37,61,.07);
  backdrop-filter:blur(12px);
  transition:transform .23s ease,box-shadow .23s ease,border-color .23s ease;
}
.hx-bento-card:hover{
  z-index:2;
  transform:translateY(-5px);
  border-color:#c7d5df;
  box-shadow:0 20px 42px rgba(7,37,61,.12);
}
.hx-bento-card strong{display:block;font-size:.9rem;line-height:1.18}
.hx-bento-card small{display:block;margin-top:6px;color:var(--hx-muted);font-size:.73rem;line-height:1.35}
.hx-bento-icon{
  width:45px;height:45px;
  flex:0 0 45px;
  display:grid;place-items:center;
  border-radius:14px;
  background:#fff1f2;
  color:var(--hx-red);
}
.hx-bento-icon svg{
  width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.hx-bento-feature{
  grid-row:span 2;
  align-items:flex-end;
  min-height:320px;
  padding:22px;
  color:#fff;
}
.hx-bento-feature picture,
.hx-bento-feature picture img{
  position:absolute;inset:0;width:100%;height:100%;
}
.hx-bento-feature img{object-fit:cover}
.hx-bento-shade{
  position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(5,30,50,.88),rgba(5,30,50,.08) 72%);
}
.hx-bento-feature .hx-bento-icon,
.hx-bento-feature > div{
  position:relative;z-index:2;
}
.hx-bento-feature .hx-bento-icon{
  position:absolute;left:20px;top:20px;
  background:rgba(215,25,32,.94);color:#fff;
  backdrop-filter:blur(8px);
}
.hx-bento-feature strong{font-size:1.18rem}
.hx-bento-feature small{color:#dce7ee}

/* wellness / coverflow */
.hx-wellness{
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 35%,rgba(215,25,32,.08),transparent 28%),
    radial-gradient(circle at 87% 65%,rgba(20,134,147,.07),transparent 29%),
    #f7fafc;
}
.hx-wellness::before{
  content:"";
  position:absolute;inset:0;
  pointer-events:none;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.8) 45%,transparent 80%);
  animation:hxLightSweep 12s linear infinite;
}
@keyframes hxLightSweep{to{transform:translateX(28%)}}
.hx-wellness-layout{
  position:relative;
  display:grid;
  grid-template-columns:.72fr 1.45fr;
  align-items:center;
  gap:38px;
}
.hx-wellness-copy{position:relative;z-index:2}
.hx-wellness-copy h2 span{color:var(--hx-red)}
.hx-wellness-copy > p:not(.hx-kicker){
  max-width:460px;
  margin:22px 0;
  color:var(--hx-muted);
  line-height:1.65;
}
.hx-coverflow-wrap{
  position:relative;
  min-width:0;
  height:410px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hx-coverflow{
  position:relative;
  width:100%;
  height:100%;
  perspective:1100px;
  transform-style:preserve-3d;
}
.hx-product{
  position:absolute;
  top:50%;
  left:50%;
  width:230px;
  min-height:315px;
  padding:16px 15px 18px;
  border:1px solid rgba(255,255,255,.95);
  border-radius:24px;
  background:rgba(255,255,255,.86);
  box-shadow:0 18px 44px rgba(7,37,61,.13);
  text-align:center;
  transform-style:preserve-3d;
  transition:transform .52s cubic-bezier(.2,.72,.2,1),opacity .45s ease,filter .45s ease;
  will-change:transform,opacity;
  backdrop-filter:blur(16px);
}
.hx-product-art{
  height:205px;
  display:grid;place-items:center;
}
.hx-product-art img{
  width:175px;height:175px;object-fit:contain;
  filter:drop-shadow(0 16px 13px rgba(7,37,61,.18));
}
.hx-product h3{margin:0;color:var(--hx-navy);font-size:1rem}
.hx-product p{margin:6px 0 0;color:var(--hx-muted);font-size:.78rem}
.hx-coverflow-arrow{
  position:absolute;
  z-index:15;
  top:50%;
  width:48px;height:48px;
  display:grid;place-items:center;
  padding:0;
  border:1px solid #d9e3e9;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:var(--hx-navy);
  box-shadow:0 10px 24px rgba(7,37,61,.10);
  transform:translateY(-50%);
  transition:.2s ease;
}
.hx-coverflow-arrow:hover{background:var(--hx-red);color:#fff;border-color:var(--hx-red)}
.hx-coverflow-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hx-prev{left:-8px}
.hx-next{right:-8px}
.hx-coverflow-dots{
  position:absolute;
  z-index:15;
  left:50%;bottom:0;
  display:flex;gap:6px;
  transform:translateX(-50%);
}
.hx-coverflow-dots i{
  width:7px;height:7px;border-radius:50%;
  background:#cad6df;
  transition:.2s ease;
}
.hx-coverflow-dots i.active{
  width:22px;border-radius:999px;background:var(--hx-red);
}

/* story */
.hx-story{background:#fff}
.hx-story-grid{
  display:grid;
  grid-template-columns:1.05fr 1.1fr .95fr;
  gap:15px;
  align-items:stretch;
}
.hx-story-photo{
  position:relative;
  min-height:540px;
  overflow:hidden;
  border-radius:25px;
  background:#e8eef2;
  box-shadow:0 16px 38px rgba(7,37,61,.09);
}
.hx-story-photo picture,
.hx-story-photo img{
  width:100%;height:100%;
}
.hx-story-photo img{display:block;object-fit:cover}
.hx-story-pharmacist img{object-position:center center}
.hx-story-team img{object-position:center center}
.hx-story-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:38px 28px;
}
.hx-story-copy h2 span{color:var(--hx-red)}
.hx-story-copy > p:not(.hx-kicker){
  margin:22px 0 18px;color:var(--hx-muted);line-height:1.65;
}
.hx-story-copy ul{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 16px;
  margin:0 0 26px;
  padding:0;
  list-style:none;
}
.hx-story-copy li{
  display:flex;align-items:center;gap:8px;
  color:#294963;font-size:.82rem;font-weight:800;
}
.hx-story-copy li i{
  width:20px;height:20px;display:grid;place-items:center;
  border-radius:50%;background:var(--hx-red);color:#fff;font-style:normal;font-size:.68rem;
}
.hx-story-copy .hx-btn{align-self:flex-start}
.hx-story-chip{
  position:absolute;
  left:18px;bottom:18px;
  display:flex;align-items:center;gap:10px;
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:15px;
  background:rgba(255,255,255,.85);
  color:var(--hx-navy);
  box-shadow:0 12px 28px rgba(7,37,61,.13);
  backdrop-filter:blur(13px);
}
.hx-story-chip i{
  width:33px;height:33px;display:grid;place-items:center;
  border-radius:11px;background:#fff0f1;color:var(--hx-red);
}
.hx-story-chip i svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hx-story-chip strong{display:block;font-size:.78rem}
.hx-story-chip small{display:block;color:var(--hx-muted);font-size:.68rem}
.hx-team-chip{left:auto;right:18px}

/* dual feature */
.hx-feature-grid{
  background:linear-gradient(180deg,#fff,#f5f8fa);
}
.hx-duo{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.hx-feature{
  position:relative;
  min-height:410px;
  overflow:hidden;
  border-radius:27px;
  color:#fff;
  box-shadow:0 18px 46px rgba(7,37,61,.11);
}
.hx-feature picture,
.hx-feature picture img{
  position:absolute;inset:0;width:100%;height:100%;
}
.hx-feature img{
  object-fit:cover;
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
}
.hx-feature:hover img{transform:scale(1.045)}
.hx-feature-overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(5,31,52,.86) 0%,rgba(5,31,52,.63) 48%,rgba(5,31,52,.12) 100%);
}
.hx-feature-badge{
  position:absolute;z-index:2;right:18px;top:18px;
  width:48px;height:48px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.5);
  border-radius:15px;background:rgba(255,255,255,.16);
  backdrop-filter:blur(12px);
}
.hx-feature-badge svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hx-feature-copy{
  position:relative;z-index:2;
  width:63%;
  padding:38px 30px;
}
.hx-feature-copy .hx-kicker{color:#ffb2b6}
.hx-feature-copy h2{color:#fff;font-size:clamp(2.8rem,4.1vw,4.6rem)}
.hx-feature-copy h2 span{color:#ff6d74}
.hx-feature-copy p{
  margin:18px 0 23px;color:#deebf2;line-height:1.55;
}
.hx-feature-copy b{font-size:.84rem}

/* location */
.hx-location{background:#f7f9fb}
.hx-location-shell{
  display:grid;
  grid-template-columns:.72fr 1.1fr 1fr;
  gap:0;
  overflow:hidden;
  border:1px solid var(--hx-line);
  border-radius:27px;
  background:#fff;
  box-shadow:0 18px 48px rgba(7,37,61,.09);
}
.hx-location-image{min-height:360px}
.hx-location-image picture,
.hx-location-image img{width:100%;height:100%}
.hx-location-image img{display:block;object-fit:cover}
.hx-location-copy{
  padding:34px 28px;
  display:flex;flex-direction:column;justify-content:center;
}
.hx-location-copy h2{font-size:clamp(2.7rem,4vw,4.2rem)}
.hx-location-details{
  display:grid;gap:14px;
  margin:22px 0;
}
.hx-location-details > div{
  display:flex;align-items:flex-start;gap:11px;
}
.hx-location-details i{
  width:34px;height:34px;flex:0 0 34px;
  display:grid;place-items:center;border-radius:11px;
  background:#fff1f2;color:var(--hx-red);
}
.hx-location-details i svg{width:18px;height:18px}
.hx-location-details strong{display:block;color:var(--hx-navy);font-size:.86rem}
.hx-location-details small{display:block;margin-top:2px;color:var(--hx-muted);font-size:.74rem;line-height:1.45}
.hx-location-copy .hx-btn{align-self:flex-start}
.hx-map iframe{width:100%;height:100%;min-height:360px;border:0}

/* final */
.hx-final{
  position:relative;
  overflow:hidden;
  padding:28px 0;
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.16),transparent 32%),
    linear-gradient(110deg,#bd0711,#e71923 55%,#bd0711);
  color:#fff;
}
.hx-final::after{
  content:"";
  position:absolute;left:-10%;right:-10%;bottom:-110px;height:190px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.16);
  transform:rotate(-4deg);
}
.hx-final-inner{
  position:relative;z-index:2;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.hx-final-inner > div{display:flex;align-items:center;gap:15px}
.hx-final-heart{
  width:50px;height:50px;display:grid;place-items:center;
  border-radius:50%;background:rgba(255,255,255,.16);
}
.hx-final-heart svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2}
.hx-final strong{display:block;font-size:1.1rem}
.hx-final small{display:block;margin-top:3px;color:#ffe6e8;font-size:.77rem}

/* entrance animation refinements */
.hx-page .reveal{
  opacity:0;
  transform:translateY(24px) scale(.985);
  transition:opacity .7s ease,transform .8s cubic-bezier(.2,.72,.2,1);
}
.hx-page .reveal.is-visible{
  opacity:1;
  transform:none;
}

/* tablet */
@media (max-width:1024px){
  .hx-page .container{width:min(100% - 30px,1240px)}
  .hx-hero{min-height:650px}
  .hx-hero-copy{width:62%;padding-left:38px}
  .hx-hero-copy h1{font-size:clamp(4rem,7vw,5.5rem)}
  .hx-service-glass{width:250px;right:22px}
  .hx-action-dock{width:calc(100% - 38px)}
  .hx-action-dock a{grid-template-columns:42px 1fr;min-height:116px}
  .hx-action-dock b{display:none}
  .hx-action-dock i{width:42px;height:42px}
  .hx-bento{grid-template-columns:1.25fr repeat(2,1fr)}
  .hx-bento-card:nth-last-child(1){grid-column:auto}
  .hx-wellness-layout{grid-template-columns:.75fr 1.2fr}
  .hx-story-grid{grid-template-columns:1fr 1fr}
  .hx-story-team{grid-column:1/-1;min-height:390px}
  .hx-story-team img{object-position:center 45%}
  .hx-location-shell{grid-template-columns:.8fr 1.2fr}
  .hx-map{grid-column:1/-1;min-height:320px}
}

/* mobile */
@media (max-width:767px){
  .hx-page{
    padding-bottom:70px;
    background:#fff;
  }
  .hx-page .container{width:calc(100% - 28px)!important}

  .hx-header{
    padding:0;
    background:#fff;
    border-bottom:1px solid var(--hx-line);
  }
  .hx-header .header-inner{
    min-height:60px!important;
    padding:7px 0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
  .hx-header .brand-mark{
    width:36px!important;height:36px!important;flex:0 0 36px!important;
  }
  .hx-header .brand-text{font-size:.73rem!important}
  .hx-header .brand-text strong:last-child{font-size:.82rem!important}
  .hx-header .header-actions > .btn{display:none!important}
  .hx-header .menu-toggle{
    display:grid!important;
    width:42px!important;height:42px!important;flex:0 0 42px!important;
    margin-left:auto!important;border-radius:12px!important;
  }

  .hx-utility .utility-inner{
    grid-template-columns:1fr!important;
    grid-template-areas:"phone" "hours" "address"!important;
    justify-items:center!important;
    padding:6px 0 7px!important;
    gap:3px!important;
    font-size:.64rem!important;
  }
  .hx-utility .utility-inner > *{
    justify-self:center!important;
    white-space:normal!important;
  }

  .hx-hero-wrap{padding:12px 0 38px}
  .hx-hero{
    min-height:0;
    overflow:visible;
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 42px rgba(7,37,61,.10);
  }
  .hx-hero-media{
    position:relative;
    display:block;
    height:285px;
    overflow:hidden;
    border-radius:24px 24px 0 0;
  }
  .hx-hero-media img{
    position:absolute;
    object-position:67% center;
    transform:none!important;
  }
  .hx-hero-wash{
    background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.16) 50%,rgba(255,255,255,.98) 100%);
  }
  .hx-orb{display:none}
  .hx-hero-copy{
    width:auto;
    padding:24px 18px 25px;
    background:#fff;
    border-radius:0 0 24px 24px;
  }
  .hx-hero-copy h1{
    font-size:clamp(2.85rem,13vw,4rem);
    line-height:.9;
  }
  .hx-hero-copy > p:not(.hx-kicker){
    margin-top:16px;
    font-size:.93rem;
    line-height:1.55;
  }
  .hx-hero-buttons{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin-top:18px;
  }
  .hx-btn{width:100%}
  .hx-service-glass,
  .hx-handnote{display:none}

  .hx-action-dock{
    width:calc(100% + 14px);
    margin:14px -14px 0 0;
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:min(72vw,250px);
    grid-template-columns:none;
    overflow-x:auto;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    gap:10px;
    padding:2px 14px 12px 0;
  }
  .hx-action-dock::-webkit-scrollbar{display:none}
  .hx-action-dock a{
    min-height:90px;
    grid-template-columns:42px 1fr 26px;
    padding:14px;
    border:1px solid var(--hx-line)!important;
    border-radius:17px;
    background:#fff;
    box-shadow:0 10px 28px rgba(7,37,61,.08);
    scroll-snap-align:start;
  }
  .hx-action-dock i{width:42px;height:42px}
  .hx-action-dock b{display:grid}

  .hx-section{padding:54px 0}
  .hx-section-head{
    grid-template-columns:1fr;
    gap:16px;
    margin-bottom:24px;
  }
  .hx-section-head h2,
  .hx-wellness-copy h2,
  .hx-story-copy h2,
  .hx-location-copy h2,
  .hx-feature-copy h2{
    font-size:clamp(2.65rem,12vw,3.6rem);
    line-height:.93;
  }
  .hx-section-head > p{margin:0}

  .hx-bento{
    grid-template-columns:1fr 1fr;
    grid-auto-rows:auto;
    gap:10px;
  }
  .hx-bento-feature{
    grid-column:1/-1;
    grid-row:auto;
    min-height:280px;
  }
  .hx-bento-card{
    min-height:150px;
    flex-direction:column;
    align-items:flex-start;
    padding:15px;
  }
  .hx-bento-feature{justify-content:flex-end}
  .hx-bento-feature .hx-bento-icon{position:absolute}
  .hx-bento-icon{width:40px;height:40px;flex-basis:40px}
  .hx-bento-card strong{font-size:.82rem}
  .hx-bento-card small{font-size:.69rem}

  .hx-wellness-layout{
    grid-template-columns:1fr;
    gap:22px;
  }
  .hx-wellness-copy > p:not(.hx-kicker){margin:16px 0 19px}
  .hx-coverflow-wrap{height:360px;margin-inline:-6px}
  .hx-product{width:195px;min-height:275px;padding:13px}
  .hx-product-art{height:172px}
  .hx-product-art img{width:145px;height:145px}
  .hx-coverflow-arrow{width:42px;height:42px}
  .hx-prev{left:0}.hx-next{right:0}

  .hx-story-grid{grid-template-columns:1fr;gap:13px}
  .hx-story-photo{min-height:365px}
  .hx-story-team{grid-column:auto;min-height:320px}
  .hx-story-copy{padding:22px 4px 28px}
  .hx-story-copy ul{grid-template-columns:1fr 1fr;gap:9px 10px}
  .hx-story-copy li{font-size:.75rem}
  .hx-story-copy .hx-btn{width:auto}
  .hx-story-chip{left:13px;bottom:13px}

  .hx-duo{grid-template-columns:1fr;gap:12px}
  .hx-feature{min-height:360px}
  .hx-feature-copy{width:78%;padding:30px 22px}
  .hx-feature-copy .hx-kicker{font-size:.67rem}

  .hx-location-shell{grid-template-columns:1fr}
  .hx-location-image{min-height:260px}
  .hx-location-copy{padding:27px 20px}
  .hx-location-copy .hx-btn{width:auto}
  .hx-map{grid-column:auto;min-height:290px}
  .hx-map iframe{min-height:290px}

  .hx-final{padding:24px 0}
  .hx-final-inner{
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
  }
  .hx-final-inner > div{align-items:flex-start}
  .hx-final .hx-btn{width:100%}

  .hx-page .site-footer{padding-bottom:86px}
}

@media (max-width:430px){
  .hx-page .container{width:calc(100% - 24px)!important}
  .hx-hero-media{height:245px}
  .hx-hero-copy{padding:21px 16px 23px}
  .hx-hero-copy h1{font-size:clamp(2.6rem,13.2vw,3.45rem)}
  .hx-action-dock{grid-auto-columns:min(80vw,245px)}
  .hx-bento{gap:8px}
  .hx-bento-card{min-height:142px;padding:13px}
  .hx-coverflow-wrap{height:340px}
  .hx-product{width:182px;min-height:262px}
  .hx-product-art{height:160px}
  .hx-product-art img{width:136px;height:136px}
  .hx-story-photo{min-height:335px}
  .hx-story-copy ul{grid-template-columns:1fr}
  .hx-feature{min-height:335px}
  .hx-feature-copy{width:88%;padding:27px 19px}
}

@media (max-width:360px){
  .hx-bento{grid-template-columns:1fr}
  .hx-bento-feature{grid-column:auto}
  .hx-bento-card{min-height:auto}
  .hx-coverflow-wrap{height:325px}
  .hx-product{width:170px}
}

@media (prefers-reduced-motion:reduce){
  .hx-orb,
  .hx-wellness::before{
    animation:none!important;
  }
  .hx-hero-media img{
    transform:none!important;
  }
  .hx-page .reveal{
    transition:none!important;
    opacity:1!important;
    transform:none!important;
  }
}


/* ============================================================
   HEADER NAVIGATION ALIGNMENT FIX
   Fixes the inherited underline position from the original site.
   ============================================================ */

@media (min-width:1025px){
  .hx-page .desktop-nav{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:auto;
  }

  .hx-page .desktop-nav .nav-link{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 10px 12px;
    border-radius:0;
    line-height:1;
    font-size:.91rem;
    font-weight:750;
    color:#344b60;
    background:transparent;
    white-space:nowrap;
  }

  /* Reset the old site's underline coordinates.
     The prior bottom:17px rule was landing on top of the text. */
  .hx-page .desktop-nav .nav-link::after{
    content:"";
    position:absolute;
    left:10px;
    right:auto;
    bottom:3px;
    width:0;
    height:2.5px;
    border-radius:999px;
    background:var(--hx-red);
    transition:width .2s ease;
  }

  .hx-page .desktop-nav .nav-link:hover{
    color:var(--hx-red);
    background:transparent;
  }

  .hx-page .desktop-nav .nav-link:hover::after,
  .hx-page .desktop-nav .nav-link.active::after{
    right:auto;
    width:calc(100% - 20px);
  }

  .hx-page .desktop-nav .nav-link.active{
    color:var(--hx-navy);
    background:transparent;
  }

  /* Keep the white glass header balanced when the nav is wide. */
  .hx-header .header-inner{
    column-gap:14px;
  }

  .hx-header .header-actions{
    gap:8px;
    flex:0 0 auto;
  }
}

/* Collapse the desktop menu slightly earlier so Compounding never crowds
   the CTA area on smaller laptops / browser zoom. */
@media (min-width:1025px) and (max-width:1160px){
  .hx-page .desktop-nav{
    gap:2px;
  }

  .hx-page .desktop-nav .nav-link{
    padding-inline:7px;
    font-size:.84rem;
  }

  .hx-page .desktop-nav .nav-link::after{
    left:7px;
  }

  .hx-page .desktop-nav .nav-link:hover::after,
  .hx-page .desktop-nav .nav-link.active::after{
    width:calc(100% - 14px);
  }

  .hx-header .header-actions .header-call{
    display:none;
  }
}
