/* MDU Partners — Medical Directory Unlimited */

:root {
  --ink: #152033;
  --ink-soft: #3E4A5C;
  --paper: #F6F3ED;
  --paper-2: #EEE9E0;
  --white: #FFFCF7;
  --navy: #17314F;
  --navy-deep: #102238;
  --teal: #1F6B62;
  --teal-dark: #16554E;
  --gold: #A47C3B;
  --line: #DDD6C8;
  --shadow: 0 10px 30px rgba(21, 32, 51, 0.08);
  --radius: 16px;
  --header-h: 4.5rem;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --wrap: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--teal-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--navy-deep);
}

.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(31, 107, 98, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
}

h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.lede,
.section-intro {
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
  max-width: var(--measure);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-secondary:hover {
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 0.5rem;
}

.section-intro {
  margin-top: 0.85rem;
  margin-bottom: 2.25rem;
}

.cards {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--paper);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.directory {
  margin-top: 1.75rem;
  padding: 1.75rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.directory-kicker {
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.directory-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-dark);
}

.text-link:hover {
  text-decoration: underline;
  color: var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact {
  background: var(--navy);
  color: #F6F3ED;
  padding: 4rem 0;
}

.contact .eyebrow {
  color: #C9A46A;
}

.contact h2 {
  margin-bottom: 0.85rem;
}

.contact p {
  margin: 0;
  max-width: var(--measure);
  color: rgba(246, 243, 237, 0.88);
  font-size: 1.2rem;
}

.contact a {
  color: #fff;
  font-weight: 600;
}

.contact a:hover {
  color: #F0E0C0;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 243, 237, 0.78);
  padding: 1.75rem 0 2rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
}

.copyright,
.privacy {
  margin: 0;
}

.privacy {
  max-width: 46rem;
  line-height: 1.5;
}

.error-page {
  min-height: calc(100vh - 12rem);
  padding: 5rem 0;
}

.error-inner {
  max-width: 36rem;
}

@media (max-width: 800px) {
  .cards,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.7rem;
    min-height: 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem 1rem;
  }

  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.05rem;
  }

  .wrap {
    width: min(100% - 1.75rem, var(--wrap));
  }

  .brand-sub {
    display: none;
  }

  .lede,
  .section-intro,
  .contact p {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
