/* ===========================
   HISPANIC HEALTHBRIDGE
   styles.css
   =========================== */

:root {
  --green-dark:    #0a4a2e;
  --green-mid:     #1a6e45;
  --green-light:   #2d9e65;
  --green-pale:    #e8f5ee;
  --red-accent:    #c0392b;
  --red-light:     #fdf0ef;
  --gold:          #c8991a;
  --gold-light:    #fdf6e3;
  --text-dark:     #1a1a1a;
  --text-mid:      #444;
  --text-muted:    #777;
  --white:         #ffffff;
  --off-white:     #f9f8f6;
  --border:        #e0ddd8;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-pale);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section-label.light {
  color: var(--green-pale);
  background: rgba(255,255,255,0.15);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.75;
}

.accent {
  color: var(--green-mid);
  font-style: italic;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,110,69,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  flex-shrink: 0;
}

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

.logo-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.logo-text strong {
  font-weight: 600;
  color: var(--green-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  background: var(--green-pale);
}

.nav-cta {
  background: var(--green-mid) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(45,158,101,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,153,26,0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,153,26,0.15);
  border: 1px solid rgba(200,153,26,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
  font-weight: 600;
}

.hero .btn-primary:hover {
  background: #b8880f;
  border-color: #b8880f;
  color: var(--white);
}

.hero .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
}

.stat {
  flex: 1;
  min-width: 160px;
  padding: 0 28px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  margin: 0 28px;
  flex-shrink: 0;
}

/* ---- ABOUT ---- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 16px;
}

.mission-card {
  background: var(--green-pale);
  border: 1px solid rgba(26,110,69,0.15);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-mid), var(--gold));
}

.mission-icon {
  font-size: 28px;
  color: var(--green-mid);
  margin-bottom: 14px;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--green-dark);
}

.mission-card p {
  color: var(--green-dark);
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.85;
}

/* ---- WHATSAPP SECTION ---- */
.whatsapp-section {
  background: var(--off-white);
  text-align: center;
}

.whatsapp-section .section-label,
.whatsapp-section .section-heading,
.whatsapp-section .section-sub {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- FOUNDER ---- */
.founder {
  background: var(--white);
}

.founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

.founder-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.founder-photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--green-pale);
  box-shadow: 0 0 0 8px rgba(26,110,69,0.08);
  position: relative;
  background: var(--green-pale);
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--green-mid);
}

.founder-badge-wrap {
  text-align: center;
}

.founder-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid rgba(200,153,26,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  text-align: center;
}

.founder-bio h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 6px;
}

.founder-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-mid);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.founder-bio p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}

.highlights {
  background: var(--off-white);
  border-left: 3px solid var(--green-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.highlights h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.highlights ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlights li {
  font-size: 14px;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 600;
}

.credentials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.credential {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-pale);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ---- SERVICES ---- */
.services {
  background: var(--green-dark);
  color: var(--white);
}

.services .section-heading {
  color: var(--white);
}

.services .section-sub {
  color: rgba(255,255,255,0.65);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--green-dark);
  padding: 36px 28px;
  transition: background 0.2s;
}

.service-card:hover {
  background: var(--green-mid);
}

.service-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ---- NEWSLETTER ---- */
.newsletter {
  background: var(--off-white);
}

.newsletter-card {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 64px 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.newsletter-card::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.newsletter-card h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.newsletter-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.newsletter-form .form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

.newsletter-form input:focus {
  border-color: var(--gold);
}

.newsletter-form .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
  font-weight: 600;
  flex-shrink: 0;
}

.newsletter-form .btn-primary:hover {
  background: #b8880f;
  border-color: #b8880f;
  color: var(--white);
}

.form-consent {
  margin-top: 4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-success {
  display: none;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
}

/* ---- FOOTER ---- */
.footer {
  background: #070f0b;
  padding: 48px 0;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

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

.footer-logo .logo-text {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}

.footer-logo .logo-text strong {
  color: var(--white);
}

.footer-logo-img {
  height: 30px;
  opacity: 0.85;
}

.footer-tagline {
  font-size: 14px;
  max-width: 440px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 12px;
  margin-top: 8px;
}

.footer-copy a {
  color: var(--gold);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 56px; }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .stat-divider { display: none; }

  .about-grid,
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-photo-col {
    flex-direction: row;
    justify-content: flex-start;
  }

  .founder-photo-wrap {
    width: 120px;
    height: 120px;
  }

  .founder-initials { font-size: 36px; }

  .newsletter-card {
    padding: 40px 28px;
  }

  .newsletter-form .form-row {
    flex-direction: column;
  }

  .newsletter-form .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
