/* ============================================================
   Aafiya Med Pty Ltd — Company Website Stylesheet
   Design: Professional, investor-grade, medical/health brand
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary:       #0A2E4D;   /* Deep navy */
  --primary-light: #1a4a72;
  --accent:        #00A86B;   /* Emerald green */
  --accent-dark:   #007a4e;
  --accent-light:  #e6f9f2;
  --bg:            #F0F7FF;   /* Off-white blue */
  --bg-white:      #ffffff;
  --text:          #1A1A2E;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    0.22s ease;
  --max-width:     1160px;
  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

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

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  color: var(--primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* --- Layout Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p, .section-dark li { color: rgba(255,255,255,0.85); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-dark .section-label { color: #6de9b9; }

.section-intro {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-intro p { color: var(--text-muted); font-size: 1.05rem; }
.section-dark .section-intro p { color: rgba(255,255,255,0.75); }

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 7px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3d65 60%, #0a4a3a 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,168,107,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,168,107,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 740px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,168,107,0.2);
  border: 1px solid rgba(0,168,107,0.4);
  color: #6de9b9;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* --- Stats Strip --- */
.stats-strip {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-value span { color: var(--accent); }

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.card-dark:hover { background: rgba(255,255,255,0.10); }

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-dark .card-icon { background: rgba(0,168,107,0.2); }

.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.72); }

/* --- Process Steps --- */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }

.step-num {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body { padding-top: 12px; }
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead th {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: var(--accent-light); }

td { padding: 13px 18px; vertical-align: top; }

td.highlight { font-weight: 700; color: var(--accent-dark); }
td.total { font-weight: 700; color: var(--primary); border-top: 2px solid var(--primary); }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-item {
  position: relative;
  padding-bottom: 36px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}

.tl-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.tl-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tl-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Phase Cards (Roadmap) --- */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phase-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-top: 4px solid var(--accent);
}

.phase-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.phase-card h3 { font-size: 1.05rem; margin-bottom: 12px; }

.phase-card ul { display: flex; flex-direction: column; gap: 6px; }
.phase-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.phase-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* --- Compliance Badges --- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compliance-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--accent);
}

.compliance-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.compliance-card .subtitle { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }

.compliance-card ul { display: flex; flex-direction: column; gap: 10px; }
.compliance-card li {
  font-size: 0.92rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.compliance-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Highlight Box --- */
.highlight-box {
  background: var(--accent-light);
  border: 1px solid rgba(0,168,107,0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { color: var(--text); font-size: 0.95rem; margin-bottom: 0; }
.highlight-box strong { color: var(--accent-dark); }

.warning-box {
  background: #fff8e6;
  border: 1px solid #f6c94e44;
  border-left: 4px solid #f6c94e;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col-wide { grid-template-columns: 3fr 2fr; }
.two-col-narrow { grid-template-columns: 2fr 3fr; }

/* --- Tag List --- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(0,168,107,0.25);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag-blue {
  background: #e8f0fe;
  color: #1a56db;
  border-color: #c7d7fc;
}

/* --- Checklist --- */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 1px;
}

/* --- Number List --- */
.num-list { display: flex; flex-direction: column; gap: 16px; }
.num-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
}
.num-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 1px;
}

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,107,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Footer --- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; margin-bottom: 0; }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  line-height: 1.5;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, var(--primary), #1a4a72, #0d3d65, #0a3050);
  background-size: 300% 300%;
  animation: gradientShift 20s ease infinite;
  padding: 64px 0;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.page-hero p  { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 600px; margin-bottom: 0; position: relative; z-index: 1; }
.page-hero .breadcrumb { position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* --- CTA Band --- */
.cta-band {
  background: var(--accent);
  padding: 64px 0;
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-band .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* --- Metric Callout --- */
.metric-callout {
  text-align: center;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.metric-callout .value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}
.metric-callout .value span { color: var(--accent); }
.metric-callout .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 70px 0 60px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary); padding: 16px; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  .cards-grid, .cards-grid-2, .cards-grid-4 { grid-template-columns: 1fr; }
  .two-col, .two-col-wide, .two-col-narrow { grid-template-columns: 1fr; gap: 32px; }
  .compliance-grid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
}

/* --- Hero Two-Column Layout --- */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-illustration {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* --- Process Flow Diagram --- */
.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 56px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 180px;
  padding: 0 12px;
}

.flow-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.flow-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
}

.flow-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.flow-connector {
  display: flex;
  align-items: center;
  padding-bottom: 50px;
  color: var(--accent);
  font-size: 1.6rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* --- Architecture Stack Visual --- */
.arch-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.arch-layer:last-child { border-bottom: none; }
.arch-layer:hover { background: var(--bg); }

.arch-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.arch-body h4 {
  font-size: 0.88rem;
  margin-bottom: 2px;
  color: var(--primary);
}

.arch-body p {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* --- Coverage Bar Chart --- */
.coverage-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.coverage-chart h4 {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-row { display: flex; flex-direction: column; gap: 5px; }

.chart-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.chart-meta span { font-weight: 400; color: var(--text-muted); }

.chart-track {
  height: 26px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chart-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  min-width: 28px;
}

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
}

@media (max-width: 768px) {
  .flow-connector { display: none; }
  .process-flow { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .flow-step { max-width: 140px; }
}

/* --- Enhanced Animations & Interactions --- */

/* Smooth page transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.6s ease-out;
}

/* Button hover enhancements */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.98);
}

/* Card hover effects */
.card {
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,168,107,0.15);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* Loading spinner for forms */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

/* Pulse animation for badges */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Progress bar animation */
@keyframes fillProgress {
  from { width: 0; }
}

.chart-fill {
  animation: fillProgress 1.5s ease-out;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 999;
  width: 0;
  transition: width 0.1s ease-out;
}

/* --- Accessibility Enhancements --- */

/* Skip to content link */
.skip-link:focus {
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Hide outline for mouse users */
.using-mouse *:focus {
  outline: none;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible states for buttons */
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: #000;
    --text: #000;
    --bg: #fff;
    --border: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-badge {
    animation: none;
  }
}

/* --- Enhanced Form Styles --- */

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,107,0.1);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: var(--accent);
}

/* Form error messages */
.error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-msg::before {
  content: '⚠';
}

/* Success states */
.success-msg {
  color: var(--accent-dark);
  font-size: 0.8rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.success-msg::before {
  content: '✓';
}

/* --- Modal Enhancements --- */

.modal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Tooltips --- */

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* --- Print Styles --- */

@media print {
  .nav, .footer, .btn, .modal {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* --- Dark Mode Support (optional) --- */

@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode */
  /*
  :root {
    --primary: #1a4a72;
    --bg: #0f1419;
    --bg-white: #1a1f2e;
    --text: #e1e8f0;
    --text-muted: #8b949e;
    --border: #30363d;
  }
  */
}

/* ============================================================
   DEPTH & MOTION ENHANCEMENTS
   ============================================================ */

/* --- Animated Hero Gradient --- */
.hero {
  background: linear-gradient(-45deg, #0A2E4D, #0d3d65, #0a4a3a, #001e06);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Hero Ambient Orbs --- */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
}

.hero-orb-1 {
  width: 640px; height: 640px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(0,168,107,0.14) 0%, transparent 65%);
  animation: orbDrift 22s ease-in-out infinite;
}

.hero-orb-2 {
  width: 480px; height: 480px;
  bottom: -180px; left: -100px;
  background: radial-gradient(circle, rgba(0,168,107,0.10) 0%, transparent 65%);
  animation: orbDrift 28s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 320px; height: 320px;
  top: 35%; left: 25%;
  background: radial-gradient(circle, rgba(109,233,185,0.06) 0%, transparent 65%);
  animation: orbDrift 18s ease-in-out 6s infinite;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(28px, -18px) scale(1.04); }
  50%       { transform: translate(-18px, 28px) scale(0.97); }
  75%       { transform: translate(14px, 12px) scale(1.02); }
}

/* --- Floating Hero Illustration --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  40%       { transform: translateY(-12px); }
  70%       { transform: translateY(-6px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

/* --- Scroll-reveal slide variants --- */
.animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-left.visible,
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger delays for card grids --- */
.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay:   0ms; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }
.stagger-children > .animate-on-scroll:nth-child(7) { transition-delay: 600ms; }
.stagger-children > .animate-on-scroll:nth-child(8) { transition-delay: 700ms; }

/* --- Section photo block --- */
.section-image-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.section-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.section-image-block:hover img {
  transform: scale(1.04);
}

.section-image-block .image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,46,77,0.88));
  color: rgba(255,255,255,0.9);
  padding: 40px 20px 18px;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* --- CTA button pulse glow --- */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(0,168,107,0.45); }
  50%       { box-shadow: 0 0 0 12px rgba(0,168,107,0); }
}

.hero-actions .btn-primary {
  animation: ctaGlow 3.5s ease-in-out infinite;
}

/* hero-physician page also gets orb support */
.hero-physician {
  position: relative;
  overflow: hidden;
}

/* --- Background mesh texture for sections --- */
.bg-mesh {
  position: relative;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10,46,77,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
.bg-mesh > .container {
  position: relative;
  z-index: 1;
}

/* --- Utility Classes --- */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
