/* ============================================================
   MedEquipmentConnect — Shared Styles v2.0
   Professional B2B medical equipment marketplace
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy:        #0d1f3c;
  --navy-mid:    #1a365d;
  --navy-light:  #1e3a6e;
  --blue:        #2563eb;
  --blue-hover:  #1d4ed8;
  --blue-bg:     #eff6ff;
  --green:       #059669;
  --green-hover: #047857;
  --green-bg:    #ecfdf5;
  --text:        #111827;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --border-mid:  #d1d5db;
  --surface:     #f8fafc;
  --white:       #ffffff;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --transition:  0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
header .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

.logo { text-decoration: none; display: inline-flex; align-items: center; line-height: 1; flex-shrink: 0; }
.logo img { height: 33px; width: auto; }

nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
nav a:hover { color: white; background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-hover) !important; }

/* ── Hero ── */
.hero {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  color: white;
  padding: 96px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: #34d399;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}
.hero-bullets li::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 9l3.5 3.5L14 5.5' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Form Card ── */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.06);
}
.form-card h3 {
  color: var(--navy-mid);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.form-card .form-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-mid);
  font-size: 13.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn, .btn-submit {
  background: var(--green);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  letter-spacing: -0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: block;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover, .btn-submit:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}
.btn:active, .btn-submit:active { transform: translateY(0); }

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-mid);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0;
}
.section-desc {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Equipment Cards ── */
.equipment-section { padding: 88px 0; background: var(--surface); }
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.equipment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.equipment-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}
.equipment-card .icon-wrap {
  width: 52px; height: 52px;
  background: var(--blue-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}
.equipment-card .icon-wrap svg { width: 26px; height: 26px; }
.equipment-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.equipment-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.equipment-card .price-range {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* ── How It Works ── */
.how-it-works { padding: 88px 0; background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1.5px;
  background: var(--border);
  pointer-events: none;
}
.step { text-align: center; position: relative; }
.step-number {
  width: 56px; height: 56px;
  background: var(--navy-mid);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--border);
}
.step h3 {
  color: var(--navy-mid);
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* ── Stats / Trust ── */
.trust-section { padding: 72px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-section .section-title { text-align: center; margin-bottom: 44px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}
.stat-item {
  background: var(--white);
  padding: 32px 20px;
  text-align: center;
}
.stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy-mid);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── FAQ ── */
.faq-section { padding: 88px 0; background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--blue); }
.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--surface); }
.faq-item.open .faq-question { color: var(--navy-mid); background: var(--blue-bg); }
.faq-toggle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: background var(--transition), color var(--transition);
}
.faq-item.open .faq-toggle {
  background: var(--blue);
  color: white;
  content: "−";
}
.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-mid);
  font-size: 14.5px;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ── Disclaimer ── */
.disclaimer {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 40px 0;
  font-size: 13.5px;
  color: #92400e;
  line-height: 1.6;
}

/* ── CTA Banner (inner pages) ── */
.cta-section {
  background: var(--navy);
  padding: 72px 0;
  color: white;
  text-align: center;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  background: var(--green);
  color: white;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: -0.01em;
}
.cta-btn:hover {
  background: var(--green-hover);
  color: white;
  transform: translateY(-1px);
}

/* ── Cards (generic) ── */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}
.card h3 { color: var(--navy-mid); margin-bottom: 10px; font-size: 16.5px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border);
}
.feature-card h3 { color: var(--navy-mid); margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ── Content Sections (inner pages) ── */
.content-section { padding: 64px 0; }
.content-section h2 {
  color: var(--navy-mid);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.content-section p { color: var(--text-mid); margin-bottom: 16px; font-size: 15.5px; line-height: 1.7; }
.content-section ul { margin-left: 20px; margin-bottom: 20px; color: var(--text-mid); }
.content-section li { margin-bottom: 8px; font-size: 15.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }

/* ── Category Links ── */
.category-links { background: var(--surface); padding: 48px 0; }
.category-links h3 { text-align: center; color: var(--navy-mid); margin-bottom: 24px; font-size: 22px; font-weight: 700; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.links-grid a {
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--navy-mid);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.links-grid a:hover {
  background: var(--navy-mid);
  color: white;
  border-color: var(--navy-mid);
  transform: translateY(-1px);
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-logo { margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; line-height: 1.65; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: block;
  margin-bottom: 9px;
  font-size: 13.5px;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.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: 8px;
  font-size: 12.5px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  /* Tighter vertical rhythm on small screens */
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .hero-bullets { gap: 10px; margin-bottom: 28px; }

  .equipment-section, .how-it-works, .faq-section { padding: 52px 0; }
  .trust-section { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }

  /* Form card */
  .form-card { padding: 24px 20px; }
  .form-card h3 { font-size: 18px; }

  /* ── iOS input zoom fix: font-size must be ≥ 16px ── */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;          /* prevents iOS auto-zoom on focus */
    min-height: 44px;         /* minimum touch target */
    padding: 10px 14px;
  }
  .form-group select { padding-right: 36px; }

  /* Larger, easier-to-tap submit button */
  .btn, .btn-submit {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
  }

  /* Section titles */
  .section-title { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav: hide text links, keep CTA */
  nav a:not(.nav-cta) { display: none; }

  /* Sticky bottom CTA bar (visible after hero scrolls away) */
  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1.5px solid var(--border);
    padding: 12px 16px;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: block;
  }
  .mobile-cta-bar.visible { transform: translateY(0); }
  .mobile-cta-bar a {
    background: var(--green);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    display: block;
    text-decoration: none;
    width: 100%;
    letter-spacing: -0.01em;
  }
  .mobile-cta-bar a:hover { background: var(--green-hover); color: white; }

  /* Compensate body for sticky bar so footer isn't hidden */
  body { padding-bottom: 72px; }
}

/* Hide sticky bar on larger screens */
@media (min-width: 601px) {
  .mobile-cta-bar { display: none; }
}
