/* Dr B Mogafe — General Practice Website */

:root {
  --blue-900: #0a3d6b;
  --blue-800: #0d4f8c;
  --blue-700: #1565b8;
  --blue-600: #1e7ae0;
  --blue-500: #3d94f5;
  --blue-100: #e8f2fc;
  --blue-50: #f4f9fe;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --accent: #0ea5e9;
  --success: #059669;
  --shadow-sm: 0 1px 3px rgba(10, 61, 107, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 61, 107, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 61, 107, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-h: 72px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-600);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blue-900);
}

.logo:hover {
  color: var(--blue-800);
}

.logo-icon {
  width: 42px;
  height: 42px;
  color: var(--blue-700);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.logo-text small {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
}

.nav-links a:hover {
  color: var(--blue-700);
}

.nav-cta {
  background: var(--blue-700) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--blue-800) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--blue-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}

.btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 45%, var(--blue-100) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.15;
  color: var(--blue-700);
  pointer-events: none;
}

.ekg-line {
  width: 100%;
  height: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--white);
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-900);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-700);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: min(420px, 100%);
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.hero-card svg {
  width: 28px;
  height: 28px;
  color: var(--blue-700);
  flex-shrink: 0;
}

.hero-card strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--blue-900);
}

.hero-card span {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* Trust bar */
.trust-bar {
  background: var(--blue-900);
  color: var(--white);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-label span,
.section-header span,
.approach-text span,
.hours-card span,
.location-card span,
.contact-info span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.section-label h2,
.section-header h2,
.approach-text h2,
.hours-card h2,
.location-card h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.2;
}

.section-header.center {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-header p {
  margin-top: 1rem;
  color: var(--gray-600);
}

/* About */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--gray-600);
}

.about-content p strong {
  color: var(--gray-800);
}

.credentials {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.credentials li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue-900);
}

.credentials svg {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  flex-shrink: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Approach */
.approach {
  background: var(--blue-900);
  color: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.approach-text span {
  color: var(--blue-500);
}

.approach-text h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.approach-text > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.approach-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.approach-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--blue-500);
}

.approach-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.approach-list span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin: 0;
}

.approach-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* Hours & Location */
.hours {
  background: var(--gray-50);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.hours-card,
.location-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.hours-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 0.875rem 0;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.hours-table th {
  font-weight: 600;
  color: var(--gray-800);
}

.hours-table td {
  text-align: right;
  font-weight: 600;
  color: var(--blue-700);
}

.hours-table tr.closed td {
  color: var(--gray-400);
}

.hours-note {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.location-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--gray-600);
  margin: 1.5rem 0;
}

.location-card address strong {
  color: var(--blue-900);
  font-size: 1.05rem;
}

.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* Emergency banner */
.emergency-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius);
}

.emergency-banner svg {
  width: 28px;
  height: 28px;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.emergency-banner strong {
  display: block;
  font-size: 1rem;
  color: #991b1b;
  margin-bottom: 0.35rem;
}

.emergency-banner p {
  font-size: 0.9375rem;
  color: #7f1d1d;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.emergency-phone {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #dc2626 !important;
}

.emergency-phone:hover {
  color: #991b1b !important;
}

.footer-bottom .disclaimer a {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: underline;
}

.footer-bottom .disclaimer a:hover {
  color: var(--white);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info > p {
  color: var(--gray-600);
  margin: 1rem 0 2rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-details svg {
  width: 24px;
  height: 24px;
  color: var(--blue-700);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-details strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.contact-details a {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form {
  padding: 2.5rem;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 1.5rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61, 148, 245, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.form-note.success {
  color: var(--success);
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand strong {
  display: block;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--blue-500);
}

.footer-links strong,
.footer-contact strong {
  display: block;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
}

.disclaimer {
  margin-top: 0.5rem;
  opacity: 0.6;
  max-width: 40rem;
  margin-inline: auto;
}

.footer-credit {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.55;
}

.footer-credit a {
  color: var(--blue-500);
  font-weight: 500;
}

.footer-credit a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .approach-grid,
  .hours-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-frame {
    margin-inline: auto;
  }

  .credentials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    left: 0;
    right: 0;
  }
}
