/* ===========================================================================
   ProMed Longevity + Primary Care — foundations
   Tokens, resets, typography, layout primitives, header and footer.
   Components live in components.css, motion in animations.css,
   breakpoints in responsive.css.
   ========================================================================= */

:root{
  /* Brand */
  --primary:#060097;
  --primary-dk:#040070;
  --secondary:#525293;
  --secondary-dk:#353656;
  --teal:#51c2bc;
  --teal-dk:#3a9e99;
  --gold:#ffcd57;
  --magenta:#c10fff;

  /* Neutrals */
  --ink:#1e293b;
  --gray:#67768e;
  --light:#f9f6fe;
  --surface:#f2f5f7;
  --white:#fff;
  --line:#e6e8f0;

  /* Gradients */
  --g-hero:linear-gradient(135deg,rgba(6,0,151,.88) 0%,rgba(53,54,86,.75) 60%,rgba(81,194,188,.5) 100%);
  --g-cta:linear-gradient(90deg,#060097 0%,#525293 100%);
  --g-card:linear-gradient(145deg,#f9f6fe 0%,#fff 100%);
  --g-dark:linear-gradient(135deg,#1e293b 0%,#353656 100%);

  /* Type */
  --f-head:'Montserrat',system-ui,sans-serif;
  --f-sub:'Raleway',system-ui,sans-serif;
  --f-body:'DM Sans',system-ui,sans-serif;

  --t-hero:clamp(2.4rem,5.4vw,4.6rem);
  --t-h1:clamp(2rem,4vw,3.4rem);
  --t-h2:clamp(1.6rem,3vw,2.5rem);
  --t-h3:clamp(1.2rem,2.2vw,1.75rem);

  /* Space + shape */
  --r:16px;
  --r-sm:10px;
  --sh-1:0 4px 24px rgba(6,0,151,.08);
  --sh-2:0 20px 60px rgba(6,0,151,.15);
  --nav-h:76px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;}
}

body{
  margin:0;
  font-family:var(--f-body);
  font-size:1rem;
  line-height:1.65;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--primary);text-decoration:none;transition:color .25s var(--ease);}
a:hover{color:var(--teal-dk);}

h1,h2,h3,h4{font-family:var(--f-head);color:var(--ink);line-height:1.15;margin:0 0 .6em;letter-spacing:-.02em;}
h1{font-size:var(--t-h1);font-weight:800;}
h2{font-size:var(--t-h2);font-weight:800;}
h3{font-size:var(--t-h3);font-weight:700;}
p{margin:0 0 1rem;}

.container{width:min(1200px,100% - 3rem);margin-inline:auto;}

.section{padding-block:clamp(3.5rem,7vw,6.5rem);}
.section--light{background:var(--light);}
.section--surface{background:var(--surface);}
.section--dark{background:var(--g-dark);color:#fff;}
.section--dark h2,.section--dark h3{color:#fff;}
.section--navy{background:linear-gradient(135deg,var(--primary) 0%,var(--secondary-dk) 100%);color:#fff;}
.section--navy h2,.section--navy h3{color:#fff;}

/* ---------------------------------------------------------------------------
   LINKS ON DARK SECTIONS

   The global link colour is --primary (#060097), a near-black navy. On the dark
   sections that is 1.41:1 against the card background -- the phone numbers in
   the Locations cards were effectively invisible, which on a clinic site is the
   one link you cannot afford to lose.

   White measures 10.22:1, teal on hover 4.77:1. Buttons are excluded: they set
   their own foreground and background together.
   ------------------------------------------------------------------------- */
.section--dark a:not(.btn),
.section--navy a:not(.btn),
.cta-band a:not(.btn),
.loc a:not(.btn){color:#fff;}
.section--dark a:not(.btn):hover,
.section--navy a:not(.btn):hover,
.cta-band a:not(.btn):hover,
.loc a:not(.btn):hover{color:var(--teal);}

.skip-link{position:absolute;left:-9999px;top:0;background:var(--primary);color:#fff;padding:.7rem 1.1rem;z-index:2000;}
.skip-link:focus{left:.5rem;top:.5rem;color:#fff;}

:focus-visible{outline:3px solid var(--teal);outline-offset:3px;}

/* --- section heading block ----------------------------------------------- */
.eyebrow{
  display:inline-block;font-family:var(--f-sub);font-weight:700;
  font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--teal-dk);margin:0 0 .6rem;
}
.section--dark .eyebrow,.section--navy .eyebrow{color:var(--teal);}
.sec-head{max-width:720px;margin:0 auto 3rem;text-align:center;}
.sec-head--left{margin-inline:0;text-align:left;}
.sec-head p{color:var(--gray);font-size:1.05rem;margin:0;}
.section--dark .sec-head p,.section--navy .sec-head p{color:rgba(255,255,255,.78);}

.gradient-text{
  background:linear-gradient(90deg,var(--teal) 0%,var(--gold) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* ===========================================================  TOP BAR ==== */
.topbar{background:var(--primary);color:#fff;font-size:.82rem;}
.topbar__in{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:42px;}
.topbar__contacts{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;}
.topbar a{color:#fff;display:inline-flex;align-items:center;gap:.45rem;}
.topbar a:hover{color:var(--teal);}
.topbar i{font-size:.75rem;opacity:.85;}
.topbar__label{opacity:.75;}

/* ==============================================================  NAV ===== */
.nav{
  position:sticky;top:0;z-index:1000;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 1px 0 var(--line);
  transition:background .35s var(--ease),box-shadow .35s var(--ease);
}
.nav__in{display:flex;align-items:center;gap:1.5rem;min-height:var(--nav-h);}
/* The wordmark is shown at its own proportions (483x132 trimmed), not squashed
   into a square. Both variants are stacked and cross-faded so the swap on
   scroll has no flash of the wrong colour. */
.nav__brand{position:relative;display:block;margin-right:auto;line-height:0;}
.nav__logo{height:42px;width:auto;object-fit:contain;transition:opacity .3s var(--ease);}
.nav__logo--light{position:absolute;inset:0;opacity:0;}
.nav[data-transparent="true"]:not(.is-stuck) .nav__logo--dark{opacity:0;}
.nav[data-transparent="true"]:not(.is-stuck) .nav__logo--light{opacity:1;}

.nav__links{display:flex;align-items:center;gap:.35rem;}
.nav__link{
  font-family:var(--f-sub);font-weight:600;font-size:.92rem;color:var(--ink);
  padding:.55rem .7rem;border-radius:var(--r-sm);background:none;border:0;cursor:pointer;
  display:inline-flex;align-items:center;gap:.4rem;font-family:var(--f-sub);
}
.nav__link:hover,.nav__link.is-current{color:var(--teal-dk);}
.nav__link i{font-size:.62rem;transition:transform .25s var(--ease);}
.nav__item{position:relative;}
.nav__item--has-menu:hover .nav__link i,
.nav__item--has-menu:focus-within .nav__link i{transform:rotate(180deg);}

.nav__menu{
  position:absolute;top:calc(100% + .35rem);left:0;min-width:250px;
  background:#fff;border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh-2);padding:.5rem;
  opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu,
.nav__menu.is-open{opacity:1;visibility:visible;transform:translateY(0);}
.nav__menu a{
  display:block;padding:.6rem .8rem;border-radius:var(--r-sm);
  font-size:.9rem;font-weight:600;color:var(--ink);font-family:var(--f-sub);
}
.nav__menu a:hover,.nav__menu a.is-current{background:var(--light);color:var(--primary);}

.nav__cta{margin-left:.5rem;}
.nav__burger{display:none;width:44px;height:44px;border:0;background:none;cursor:pointer;flex-direction:column;justify-content:center;gap:5px;padding:0 10px;}
.nav__burger span{display:block;height:2px;background:var(--ink);border-radius:2px;transition:transform .3s var(--ease),opacity .2s;}
.nav__burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav__burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav__burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Transparent over the homepage hero, solid once scrolled. */
.nav[data-transparent="true"]:not(.is-stuck){
  background:transparent;box-shadow:none;backdrop-filter:none;
}
.nav[data-transparent="true"]:not(.is-stuck) .nav__link{color:#fff;}
.nav[data-transparent="true"]:not(.is-stuck) .nav__burger span{background:#fff;}
.nav.is-stuck{box-shadow:0 6px 28px rgba(6,0,151,.1);}

/* ===========================================================  FOOTER ===== */
.foot{background:linear-gradient(135deg,#1e293b 0%,#060097 100%);color:rgba(255,255,255,.8);padding-top:clamp(3rem,6vw,4.5rem);}
.foot__grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:2.5rem;padding-bottom:3rem;}
.foot__logo{width:auto;height:52px;max-width:230px;object-fit:contain;margin-bottom:.2rem;}
.foot__blurb{margin:1rem 0 1.2rem;font-size:.92rem;line-height:1.7;}
.foot__head{font-family:var(--f-sub);font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:var(--teal);margin:0 0 1rem;}
.foot__list{list-style:none;margin:0;padding:0;display:grid;gap:.55rem;}
.foot__list a,.foot__loc a{color:rgba(255,255,255,.8);font-size:.92rem;}
.foot__list a:hover,.foot__loc a:hover{color:var(--teal);}
.foot__loc{display:grid;gap:.15rem;margin-bottom:1rem;font-size:.9rem;}
.foot__loc strong{color:#fff;font-family:var(--f-sub);}
.foot__hours{border-top:1px solid rgba(255,255,255,.14);padding-top:.9rem;font-size:.85rem;display:grid;gap:.3rem;}
.foot__hours div{display:flex;justify-content:space-between;gap:1rem;}
.foot__social{display:flex;gap:.6rem;}
.foot__social a{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.1);color:#fff;transition:background .25s,transform .25s var(--ease);
}
.foot__social a:hover{background:var(--teal);transform:translateY(-3px);}
.foot__bar{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.14);padding-block:1.2rem;font-size:.85rem;}
.foot__bar p{margin:0;}
.foot__bar a{color:rgba(255,255,255,.8);}
.foot__bar a:hover{color:var(--teal);}
.foot__legal{padding-bottom:2rem;}
.foot__legal p{margin:0;font-size:.78rem;line-height:1.6;color:rgba(255,255,255,.5);max-width:80ch;}
