/* ============================================================
   PB Medical LLC — styles
   Palette: navy #032A54 · slate #6F8EA9 · taupe #9A8D80 · cream #EFEAE0
   ============================================================ */

:root {
  --navy: #032A54;
  --navy-deep: #021d3b;
  --slate: #6F8EA9;
  --taupe: #9A8D80;
  --cream: #EFEAE0;
  --paper: #FBFAF7;
  --ink: #1c2430;
  --muted: #5a6472;
  --line: rgba(3, 42, 84, 0.12);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: var(--slate); }

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--navy);
  margin: 0 0 1.4rem;
}
.section__title--light { color: #fff; }

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.prose p { margin: 0 0 1.15rem; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose--light p { color: rgba(255, 255, 255, 0.82); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__mark { width: 34px; height: 34px; border-radius: 7px; }
.nav__wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(3, 42, 84, 0.22);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy); background: rgba(3, 42, 84, 0.04); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -20%, #fff 0%, var(--cream) 60%, #e6e0d4 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero__logo {
  width: clamp(220px, 32vw, 340px);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 6px 20px rgba(3, 42, 84, 0.08));
}
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  margin: 0 0 2.25rem;
  max-width: 640px;
}
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

/* Wave divider under hero */
.wave-divider {
  height: 60px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,70 480,0 720,20 C960,40 1200,64 1440,26 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,70 480,0 720,20 C960,40 1200,64 1440,26 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- About ---------- */
.section--about { background: var(--paper); text-align: center; padding-top: clamp(2rem, 5vw, 3.5rem); }
.section--about .lead { margin-left: auto; margin-right: auto; }

/* ---------- Dark / Profile ---------- */
.section--dark {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
}
.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.profile__aside { display: flex; justify-content: center; }
.profile__seal {
  width: 240px;
  height: 240px;
  background: var(--cream);
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.profile__creds {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0.1rem 0 0.6rem;
}
.profile__role {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--slate);
  margin: 0 0 1.75rem;
}

/* ---------- Landing / Splash ---------- */
.landing { min-height: 100vh; }
.splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: radial-gradient(120% 90% at 50% 20%, #fff 0%, var(--cream) 62%, #e6e0d4 100%);
}
.splash__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.splash__logo {
  width: clamp(240px, 40vw, 400px);
  height: auto;
  filter: drop-shadow(0 8px 26px rgba(3, 42, 84, 0.10));
}
.splash__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--navy);
  margin: 2rem 0 0;
  max-width: 620px;
}
.splash__nav {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.splash__nav a { color: var(--navy); transition: opacity 0.2s ease; }
.splash__nav a:hover { opacity: 0.6; }
.splash__dot { color: var(--taupe); }
.splash__legal {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  padding-top: 2rem;
}

/* ---------- Credentials ---------- */
.section--credentials { background: var(--cream); }
.creds { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.cred {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(3, 42, 84, 0.14);
  align-items: baseline;
}
.cred:last-child { border-bottom: 1px solid rgba(3, 42, 84, 0.14); }
.cred__year {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.cred__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0 0 0.2rem;
}
.cred__org { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.section--contact { background: var(--paper); }
.contact__mark { width: 56px; height: 56px; margin: 0 auto 1.5rem; border-radius: 12px; }
.section--contact .lead { margin-left: auto; margin-right: auto; }
.section--contact .btn { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}
.footer__mark { width: 30px; height: 30px; border-radius: 6px; }
.footer__legal { margin: 0; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .profile { grid-template-columns: 1fr; text-align: center; }
  .profile__aside { order: -1; }
  .profile__seal { width: 180px; height: 180px; }
  .prose--light { text-align: left; }
  .cred { grid-template-columns: 1fr; gap: 0.35rem; }
}
