/* ==========================================
   Texas Family Health Center - styles.css
   ========================================== */

:root {
  --navy:      #0c2461;
  --navy-dk:   #081a47;
  --navy-lt:   #1e3a8a;
  --red:       #cc2127;
  --red-dk:    #a31a1f;
  --white:     #ffffff;
  --off-white: #f7f9fc;
  --light:     #edf2f7;
  --text:      #1a202c;
  --text-muted:#5a6a7e;
  --border:    #dce3ed;
  --font:      'Segoe UI', Arial, sans-serif;
  --max-width: 1160px;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --trans:     all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
  letter-spacing: .01em;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dk); border-color: var(--red-dk); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dk); border-color: var(--navy-dk); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── Section headings ── */
.section-eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.section-header { margin-bottom: 48px; }
.section-header-center { text-align: center; margin-bottom: 48px; }
.section-header-center .section-sub { max-width: 580px; margin: 0 auto; }

/* ── Page banner (inner pages) ── */
.page-banner {
  background: var(--navy);
  padding: 60px 0 44px;
  color: var(--white);
}
.page-banner h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 6px; }
.page-banner .breadcrumb { font-size: .85rem; opacity: .65; }
.page-banner .breadcrumb a { color: var(--white); }
.page-banner .breadcrumb a:hover { opacity: 1; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
}
.nav-logo {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo svg { width: 22px; height: 22px; fill: white; }
.nav-brand-text span { display: block; }
.nav-brand-text .sub { font-size: .7rem; font-weight: 400; color: var(--text-muted); letter-spacing: .04em; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}
.nav-links > li > a {
  display: block;
  padding: 8px 13px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  transition: var(--trans);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--navy); background: var(--light); }

.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: .6rem; opacity: .6; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 190px;
  padding: 6px;
  list-style: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: .86rem;
  border-radius: 4px;
  color: var(--text);
  transition: var(--trans);
}
.dropdown-menu a:hover { background: var(--light); color: var(--navy); }

.nav-cta { background: var(--red); color: var(--white) !important; padding: 9px 22px !important; border-radius: var(--radius) !important; }
.nav-cta:hover { background: var(--red-dk) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--navy-dk); color: rgba(255,255,255,.75); }
.footer-top { padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-about p { font-size: .88rem; line-height: 1.75; margin-top: 10px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .88rem; opacity: .75; transition: var(--trans); }
.footer-links a:hover { opacity: 1; color: var(--white); }
.footer-info { list-style: none; }
.footer-info li { font-size: .86rem; margin-bottom: 10px; padding-left: 0; }
.footer-info li strong { display: block; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.footer-info a { transition: var(--trans); }
.footer-info a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  opacity: .5;
}

/* ==========================================
   SVG ICON HELPERS
   ========================================== */
.icon-box {
  width: 58px; height: 58px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 28px; height: 28px; }
.icon-box-navy { background: var(--navy); }
.icon-box-navy svg { fill: white; }
.icon-box-red { background: var(--red); }
.icon-box-red svg { fill: white; }
.icon-box-white { background: white; }
.icon-box-white svg { fill: var(--navy); }

/* ── Service card (dark navy, like original) ── */
.svc-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--trans);
}
.svc-card:hover { background: var(--navy-dk); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-card .svc-icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  opacity: .92;
}
.svc-card .svc-icon svg { width: 56px; height: 56px; fill: white; }
.svc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.svc-card p  { font-size: .88rem; opacity: .8; line-height: 1.7; }

/* ── White card ── */
.white-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.white-card:hover { box-shadow: var(--shadow-md); border-color: #b8cae0; }
.white-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.white-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ── Divider ── */
.red-bar { width: 48px; height: 3px; background: var(--red); margin-bottom: 18px; }
.red-bar-center { margin: 0 auto 18px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}
