/* =========================================================
   Allen R. Seeger, MD — Urology concept
   Concept by Full Circle MSP
   Direction: "calm clinical current" — coastal teal, the flow
   line as signature, warm sand humanizing a clinical palette.
   ========================================================= */

:root {
  --paper:   #F7F5F0;   /* warm off-white background          */
  --paper-2: #FFFFFF;   /* cards                              */
  --ink:     #0A2630;   /* deep teal-ink text                 */
  --ink-2:   #3F5660;   /* muted body                         */
  --deep:    #0E4C5A;   /* brand deep teal                    */
  --deep-2:  #0A3A45;   /* darker teal sections               */
  --current: #19A7BC;   /* bright aqua — the "flow" accent     */
  --surf:    #BFE3E6;   /* pale aqua wash                     */
  --sand:    #E4D9C4;   /* warm sand                          */
  --sand-2:  #EFE8D9;   /* lighter sand                       */
  --gold:    #C2913B;   /* prestige accent, used sparingly    */
  --line:    #DCD6C9;   /* hairlines on paper                 */

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body:    "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono:    "Spline Sans Mono", ui-monospace, monospace;

  --wrap: 1140px;
  --gut: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: 0; }
em { font-style: italic; }

a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--current); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--current); display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--current); color: #04222a; box-shadow: 0 10px 28px -12px rgba(25,167,188,0.8); }
.btn--primary:hover { background: #15bdd4; transform: translateY(-2px); }
.btn--ghost { border-color: var(--deep); color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1.05em 2em; font-size: 1.08rem; }
.btn--call { background: var(--ink); color: #fff; padding: 0.6em 1em; font-size: 0.9rem; }
.btn--call:hover { background: var(--deep); }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__tile { fill: var(--deep); }
.loader__wave { stroke: var(--surf); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.1s var(--ease) forwards; }
.loader__wave--2 { stroke: var(--current); animation-delay: 0.18s; opacity: 0.85; }
.loader__letters { fill: #fff; font-family: var(--ff-display); font-weight: 600; font-size: 34px;
  opacity: 0; animation: fadeUp 0.6s var(--ease) 0.5s forwards; }
.loader__line { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__line span { display: block; height: 100%; width: 40%; background: var(--current);
  animation: slide 1.2s ease-in-out infinite; }
.loader__cap { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); opacity: 0; animation: fadeUp 0.6s var(--ease) 0.7s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   SCROLL RAIL (signature)
   ========================================================= */
.rail { position: fixed; top: 0; bottom: 0; left: max(14px, calc((100vw - var(--wrap)) / 2 - 26px));
  width: 2px; z-index: 5; pointer-events: none; }
.rail__track { position: absolute; inset: 0; background: var(--line); }
.rail__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(to bottom, var(--surf), var(--current)); transition: height 0.1s linear; }
.rail__fill::after { content: ""; position: absolute; bottom: -4px; left: -3px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--current); box-shadow: 0 0 0 4px rgba(25,167,188,0.18); }
@media (max-width: 1320px) { .rail { display: none; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gut);
  background: rgba(247,245,240,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, padding 0.3s, background 0.3s;
}
.nav.is-stuck { border-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { display: block; line-height: 0; }
.mk-tile { fill: var(--deep); }
.mk-wave { stroke: var(--current); stroke-width: 5; stroke-linecap: round; }
.mk-letters { fill: #fff; font-family: var(--ff-display); font-weight: 600; font-size: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; }
.brand__name em { color: var(--deep); font-style: normal; }
.brand__tag { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--ink-2); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--current); transition: width 0.25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__flow { position: absolute; inset: 0; z-index: 0; opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent); }
.hero__flow svg { position: absolute; top: 38%; left: -2%; width: 104%; height: 60%; }
.hero__flow #flowPath { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw-flow 2.6s var(--ease) 0.3s forwards; }
@keyframes draw-flow { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 600; margin: 0.55em 0 0.4em; letter-spacing: -0.02em; }
.hero__title em { color: var(--deep); font-style: italic; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 56ch; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

/* stats */
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(48px, 7vw, 84px); background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: var(--paper-2); padding: clamp(22px, 3vw, 34px) clamp(18px, 2vw, 28px); }
.stat__num { display: block; font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--deep); line-height: 1; letter-spacing: -0.02em; }
.stat__lbl { display: block; margin-top: 0.6em; font-size: 0.86rem; color: var(--ink-2); }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-block: clamp(64px, 10vw, 130px); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about__portrait { position: relative; }
.portrait { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4;
  background: radial-gradient(85% 62% at 50% 18%, rgba(25,167,188,0.30), transparent 62%),
              linear-gradient(165deg, var(--deep), var(--deep-2)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; display: block; }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.about__chip { position: absolute; right: -14px; bottom: -14px; background: var(--deep); color: #fff;
  border-radius: 14px; padding: 14px 18px; line-height: 1; box-shadow: 0 18px 40px -18px rgba(10,38,48,0.6); }
.about__chip-k { display: block; font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--surf); }
.about__chip-v { display: block; font-family: var(--ff-display); font-size: 1.5rem; font-weight: 600; margin-top: 4px; }
.about__body h2 { margin: 0.5em 0 0.7em; max-width: 18ch; }
.about__body p { margin-bottom: 1.1em; color: var(--ink-2); max-width: 56ch; }

.creds { list-style: none; margin-top: 1.8em; display: grid; gap: 0; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 0.95em 0;
  border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.creds li span { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); padding-top: 2px; }

/* =========================================================
   CARE
   ========================================================= */
.care { padding-block: clamp(56px, 8vw, 110px); background: var(--sand-2); }
.sec-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { margin: 0.5em 0 0.5em; }
.sec-head__lead { color: var(--ink-2); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 2.6vw, 34px); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10,38,48,0.35); border-color: var(--surf); }
.card__ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 14px; background: var(--surf); color: var(--deep); margin-bottom: 18px; }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--ink-2); font-size: 0.96rem; }

/* =========================================================
   TRUST BAND
   ========================================================= */
.band { background: var(--deep-2); color: #EAF4F5; padding-block: clamp(60px, 9vw, 120px);
  position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(25,167,188,0.22), transparent 60%); }
.band__grid { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.band__title { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 14ch; }
.band__list { list-style: none; display: grid; gap: 1.4em; }
.band__list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding-bottom: 1.4em; border-bottom: 1px solid rgba(255,255,255,0.12); }
.band__list li:last-child { border-bottom: none; padding-bottom: 0; }
.band__k { font-family: var(--ff-mono); color: var(--current); font-size: 0.9rem; padding-top: 3px; }
.band__list strong { color: #fff; font-weight: 600; }
.band__list span:last-child { color: #BBD3D7; }

/* =========================================================
   HOSPITALS
   ========================================================= */
.hospitals { padding-block: clamp(56px, 8vw, 110px); }
.hosp-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.hosp-list li { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--current);
  border-radius: 12px; padding: 1.1em 1.3em; font-family: var(--ff-display); font-size: 1.18rem; font-weight: 500; }
.footnote { margin-top: 1.4em; font-family: var(--ff-mono); font-size: 0.74rem; color: var(--ink-2); letter-spacing: 0.02em; }

/* =========================================================
   VISIT
   ========================================================= */
.visit { padding-block: clamp(56px, 8vw, 110px); background: var(--sand-2); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.visit__info h2 { margin: 0.5em 0 1em; max-width: 16ch; }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 1.1em 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: none; }
.info-row__k { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); padding-top: 4px; }
.info-row a { color: var(--deep); font-weight: 600; border-bottom: 1px solid var(--surf); }
.hours { border-collapse: collapse; width: 100%; max-width: 320px; }
.hours td { padding: 4px 0; font-size: 0.98rem; }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.hours__closed { color: var(--gold); }
.visit__map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: 0 24px 50px -30px rgba(10,38,48,0.4); background: var(--sand); }
.visit__map iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(0.9); }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--deep);
  background: repeating-linear-gradient(45deg, var(--sand) 0 22px, var(--sand-2) 22px 44px); }
.map-fallback__addr { font-family: var(--ff-body); font-size: 0.98rem; color: var(--ink); line-height: 1.5; }
.map-fallback__cta { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); border-bottom: 1px solid var(--current); padding-bottom: 2px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-band { background: var(--deep); color: #fff; padding-block: clamp(56px, 8vw, 100px); text-align: center; }
.cta-band__inner { max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-band p { color: #C5DCE0; margin: 0.7em auto 1.8em; max-width: 44ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--ink); color: #B9C9CE; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__name { font-family: var(--ff-display); color: #fff; font-size: 1.2rem; font-weight: 600; }
.foot__sub { font-size: 0.85rem; }
.foot__contact { text-align: right; font-size: 0.92rem; line-height: 1.8; }
.foot__contact a { color: var(--surf); }
.foot__legal { margin-top: 22px; }
.foot__legal p { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: #6E848B; }

/* =========================================================
   CONCEPT BADGE (corner)
   ========================================================= */
.concept {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,38,48,0.92); color: #EAF4F5; backdrop-filter: blur(8px);
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.6); transition: transform 0.25s var(--ease), opacity 0.25s;
}
.concept strong { color: var(--current); font-weight: 600; }
.concept:hover { transform: translateY(-2px); }
.concept__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--current);
  box-shadow: 0 0 0 0 rgba(25,167,188,0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25,167,188,0.6); } 70%,100% { box-shadow: 0 0 0 9px rgba(25,167,188,0); } }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .about__grid, .visit__grid, .band__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 340px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot__contact { text-align: left; }
}
@media (max-width: 560px) {
  .nav__call span { display: none; }
  .nav__call { padding: 0.6em 0.7em; }
  .cards, .hosp-list { grid-template-columns: 1fr; }
  .creds li, .info-row { grid-template-columns: 1fr; gap: 4px; }
  .foot__grid { flex-direction: column; align-items: flex-start; }
  .concept { font-size: 0.66rem; padding: 8px 11px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .loader { display: none; }
  .hero__flow #flowPath, .loader__wave { stroke-dashoffset: 0; }
}
