/* Pure Medical Hub — Design System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --pmh-primary: #0c4a52;
  --pmh-primary-dark: #083840;
  --pmh-primary-light: #1a7a88;
  --pmh-accent: #c4a35a;
  --pmh-accent-light: #e8d5a8;
  --pmh-surface: #f5f8f9;
  --pmh-surface-alt: #eef3f4;
  --pmh-text: #1a2b32;
  --pmh-muted: #5c6f78;
  --pmh-border: #d8e2e6;
  --pmh-white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(12, 74, 82, 0.06);
  --shadow-md: 0 8px 30px rgba(12, 74, 82, 0.1);
  --shadow-lg: 0 20px 50px rgba(12, 74, 82, 0.14);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--pmh-text);
  line-height: 1.65;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* clip overrides hidden where supported — prevents horizontal scroll without breaking sticky header */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}


h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

a {
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--pmh-primary);
  color: var(--pmh-white);
  border-radius: var(--radius);
  font-weight: 600;
}

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

/* Header */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pmh-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--pmh-primary) 0%, var(--pmh-primary-light) 100%);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pmh-white);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--pmh-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pmh-accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--pmh-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  background: var(--pmh-primary);
  color: var(--pmh-white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--pmh-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hamburger span {
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section--compact {
  min-height: 52vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 56, 64, 0.92) 0%,
    rgba(12, 74, 82, 0.78) 45%,
    rgba(12, 74, 82, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(196, 163, 90, 0.2);
  border: 1px solid rgba(196, 163, 90, 0.4);
  color: var(--pmh-accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--pmh-white);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero-desc {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--pmh-accent);
  color: var(--pmh-primary-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--pmh-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--pmh-white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pmh-white);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--pmh-primary);
  color: var(--pmh-white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-dark:hover {
  background: var(--pmh-primary-dark);
  transform: translateY(-2px);
}

/* Section utilities */
.section-padding {
  padding: 5rem 0;
}

.section-padding-sm {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
  .section-padding-sm {
    padding: 2.75rem 0;
  }
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pmh-primary-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--pmh-text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--pmh-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* Image + Content blocks */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .split-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-image:hover img {
  transform: scale(1.03);
}

.split-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}

.split-accent {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 40%;
  height: 40%;
  background: var(--pmh-accent);
  opacity: 0.15;
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--pmh-white);
  border: 1px solid var(--pmh-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 122, 136, 0.25);
}

.info-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pmh-surface);
  border-radius: var(--radius);
  color: var(--pmh-primary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition), color var(--transition);
}

.info-card:hover .info-card-icon {
  background: var(--pmh-primary);
  color: var(--pmh-white);
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
  color: var(--pmh-text);
}

.info-card p {
  font-size: 0.9375rem;
  color: var(--pmh-muted);
  line-height: 1.65;
}

/* Image cards */
.image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 56, 64, 0.92) 0%, rgba(8, 56, 64, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.image-card-overlay h3 {
  font-size: 1.375rem;
  color: var(--pmh-white);
  margin-bottom: 0.5rem;
}

.image-card-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.image-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pmh-accent-light);
  letter-spacing: 0.02em;
}

.image-card-link:hover {
  color: var(--pmh-white);
}

/* Information section */
.info-section {
  background: var(--pmh-surface);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.info-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-list-item .check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--pmh-primary);
  color: var(--pmh-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  margin-top: 0.2rem;
}

.info-list-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-list-item p {
  font-size: 0.9375rem;
  color: var(--pmh-muted);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--pmh-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--pmh-border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--pmh-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--pmh-muted);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--pmh-white);
  border: 1px solid var(--pmh-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: rgba(26, 122, 136, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--pmh-text);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--pmh-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pmh-surface);
  border-radius: 50%;
  color: var(--pmh-primary);
  font-size: 0.75rem;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--pmh-primary);
  color: var(--pmh-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 12rem;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--pmh-muted);
  line-height: 1.7;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--pmh-primary-dark) 0%, var(--pmh-primary) 50%, var(--pmh-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(196, 163, 90, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--pmh-white);
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Newsletter */
.newsletter-box {
  background: var(--pmh-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--pmh-border);
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--pmh-border);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--pmh-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 122, 136, 0.12);
}

/* Contact form */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--pmh-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--pmh-text);
  background: var(--pmh-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--pmh-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 122, 136, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pmh-text);
  margin-bottom: 0.375rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--pmh-primary-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pmh-white);
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--pmh-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  max-width: 72ch;
}

/* Article / resource cards */
.resource-card {
  background: var(--pmh-white);
  border: 1px solid var(--pmh-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.resource-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.resource-card-body {
  padding: 1.5rem;
}

.resource-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pmh-primary-light);
  margin-bottom: 0.5rem;
}

.resource-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.resource-card-body p {
  font-size: 0.875rem;
  color: var(--pmh-muted);
  line-height: 1.6;
}

/* Office hours */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--pmh-border);
}

.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--pmh-text);
}

.hours-table td:last-child {
  color: var(--pmh-muted);
  text-align: right;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Topic pills */
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--pmh-white);
  border: 1px solid var(--pmh-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pmh-text);
  transition: border-color var(--transition), background var(--transition);
}

.topic-pill:hover {
  border-color: var(--pmh-primary-light);
  background: var(--pmh-surface);
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .benefit-row {
    grid-template-columns: 1fr;
  }
}

.benefit-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.benefit-item .benefit-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--pmh-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.benefit-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.9375rem;
  color: var(--pmh-muted);
}

html,
body {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

