/* ============================================================
   Faith Global Healthcare LLC — Main Stylesheet
   Brand: Navy #1B2D5B | Terracotta #C4622D | Warm White #FAF8F5
   Fonts: Playfair Display (headings) | Source Sans 3 (body)
   WCAG 2.1 AA compliant
   No tracking pixels. No analytics scripts.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy:         #1B2D5B;
  --navy-dark:    #142248;
  --terracotta:   #C4622D;
  --terracotta-dark: #a8511f;
  --warm-white:   #FAF8F5;
  --white:        #FFFFFF;
  --text-dark:    #1a1a2e;
  --text-medium:  #4a5568;
  --text-light:   #718096;
  --border-light: #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
  --warning-bg:   #fff8e1;
  --warning-border: #f59e0b;
  --success-bg:   #f0fdf4;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --max-width:    1140px;
  --section-pad:  5rem 1.5rem;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;
  --transition:   0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--warm-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta-dark); }
ul { list-style: none; }

/* --- Skip Navigation (Accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-nav:focus { top: 1rem; color: var(--white); }

/* --- Layout Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-pad); }
.section--navy { background-color: var(--navy); color: var(--white); }
.section--white { background-color: var(--white); }
.section--warm { background-color: var(--warm-white); }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}
.section--navy .section-label { color: #f5a87a; }

.section-intro {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 680px;
  margin: 1rem auto 2.5rem;
}
.section--navy .section-intro { color: rgba(255,255,255,0.85); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background-color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo:hover .logo-name { color: var(--terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links > li > a:hover, .nav-links > li > a.active {
  color: var(--terracotta);
  background: rgba(196,98,45,0.07);
}
.nav-links .nav-cta { margin-left: 0.5rem; }
.nav-links .nav-cta a { padding: 0.6rem 1.25rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.5rem 0;
  display: none;
  z-index: 100;
}
.dropdown li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: background var(--transition);
}
.dropdown li a:hover { background: var(--warm-white); color: var(--terracotta); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-home { padding: 6rem 1.5rem 5rem; }
.breadcrumb { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

/* --- Card Grids --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(196,98,45,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.card p { color: var(--text-medium); font-size: 0.9375rem; }
.card-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; font-size: 0.9375rem; color: var(--terracotta); }
.card-link:hover { color: var(--terracotta-dark); }

.card--navy {
  background: var(--navy);
  border-color: var(--navy-dark);
  color: var(--white);
}
.card--navy h3 { color: var(--white); }
.card--navy p { color: rgba(255,255,255,0.82); }

/* --- Steps / Process --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.step { text-align: center; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h4 { margin-bottom: 0.5rem; color: var(--navy); }
.step p { color: var(--text-medium); font-size: 0.9375rem; }

/* --- Trust / Feature Tiles --- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.trust-tile {
  padding: 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}
.trust-tile-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.trust-tile h4 { color: var(--white); margin-bottom: 0.4rem; font-size: 1rem; }
.trust-tile p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }

/* --- Values grid --- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.value-item {
  padding: 1.75rem 1.5rem;
  background: var(--warm-white);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.value-item h4 { color: var(--navy); margin-bottom: 0.5rem; }
.value-item p { color: var(--text-medium); font-size: 0.9375rem; margin: 0; }

/* --- PHI Warning Box --- */
.phi-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-left: 4px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: #92400e;
}
.phi-warning strong { display: block; margin-bottom: 0.4rem; font-size: 1rem; }

/* --- Secure Form Placeholder --- */
.secure-form-placeholder {
  background: var(--white);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.secure-form-placeholder .lock-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.secure-form-placeholder h3 { color: var(--navy); margin-bottom: 0.75rem; }
.secure-form-placeholder p { color: var(--text-medium); max-width: 500px; margin: 0 auto 1.5rem; font-size: 0.9375rem; }

/* --- Contact Info Block --- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.contact-block h4 { color: var(--navy); margin-bottom: 0.5rem; }
.contact-block p, .contact-block a { color: var(--text-medium); font-size: 0.9375rem; }
.contact-block a:hover { color: var(--terracotta); }

/* --- Service Badge --- */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(27,45,91,0.08);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin: 0.5rem 0.25rem 0 0;
}

/* --- Admin Review Notice (visible in code only via comment) --- */
/* All [FGHC admin to verify] flags from source copy are preserved as HTML comments */

/* --- CTA Band --- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 2rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo-name { font-family: var(--font-heading); font-size: 1.125rem; color: var(--white); font-weight: 700; margin-bottom: 0.4rem; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.footer-compliance {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.78); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { font-size: 0.9rem; margin-bottom: 0.6rem; color: rgba(255,255,255,0.78); }
.footer-contact-item a { color: rgba(255,255,255,0.78); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* --- List styles in content --- */
.content-list { list-style: disc; padding-left: 1.5rem; color: var(--text-medium); }
.content-list li { margin-bottom: 0.5rem; }
.check-list { list-style: none; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: 0.6rem; color: var(--text-medium); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }

/* --- Privacy Page specific --- */
.legal-section { margin-bottom: 2.5rem; }
.legal-section h3 { color: var(--navy); border-bottom: 2px solid var(--border-light); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.legal-notice {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 2rem;
}

/* --- Two-col layout --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col-text h2 { margin-bottom: 1.25rem; }
.two-col-text p { color: var(--text-medium); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

@media (max-width: 768px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  /* Mobile Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    z-index: 999;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > li > a { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border-light); }
  .nav-links > li:last-child > a { border-bottom: none; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 0.5rem; }
  .nav-links .nav-cta a { display: block; text-align: center; padding: 0.8rem; }
  .dropdown { position: static; border: none; box-shadow: none; padding: 0.25rem 0 0.25rem 1rem; display: block; }
  .dropdown li a { border-bottom: 1px solid var(--border-light); padding: 0.6rem 0.5rem; }

  /* Layout */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-band-actions { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
