/* ===== SpecCare Connect — Design Tokens ===== */
:root {
  --navy-900: #0B2140;
  --navy-800: #0F2A4A;
  --navy-700: #17385F;
  --blue-600: #1B5FE0;
  --blue-700: #144CC0;
  --teal-500: #2BB6A0;
  --teal-600: #219A87;
  --purple-500: #7C55E8;
  --orange-500: #F2921C;
  --pink-500: #EF5C90;
  --bg-tint: #EAF3FD;
  --bg-soft: #F6F9FD;
  --ink: #16233A;
  --ink-soft: #55637A;
  --line: #E3E9F2;
  --white: #FFFFFF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(15, 42, 74, 0.08);
  --shadow-pop: 0 18px 40px rgba(15, 42, 74, 0.14);
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue-600);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 24px rgba(27,95,224,0.3); }
.btn-outline { background: transparent; border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline:hover { background: var(--bg-tint); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-ghost { color: var(--blue-600); font-weight: 600; }
.link-arrow { color: var(--blue-600); font-weight: 600; font-size: 0.92rem; }
.link-arrow::after { content: '→'; margin-left: 6px; display: inline-block; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy-800); line-height: 1.1; }
.logo-text span { display: block; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--teal-500); font-weight: 700; }
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a {
  font-size: 0.94rem; font-weight: 500; color: var(--navy-800);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; border: 1px solid var(--line);
  color: var(--navy-800); flex-shrink: 0;
}
.mobile-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: white; align-items: center; justify-content: center; color: var(--navy-800);
  flex-shrink: 0; cursor: pointer;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 100;
}
.mobile-nav.open { display: block; }
.mobile-nav-backdrop {
  position: absolute; inset: 0; background: rgba(11, 33, 64, 0.45);
}
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(78vw, 320px);
  background: white; padding: 24px; overflow-y: auto;
  box-shadow: -12px 0 30px rgba(11,33,64,0.15);
  display: flex; flex-direction: column;
  animation: slideIn 0.2s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: white;
  display: flex; align-items: center; justify-content: center; color: var(--navy-800); cursor: pointer;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav-links a {
  padding: 14px 4px; font-size: 1.05rem; font-weight: 500; color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-links a.active { color: var(--blue-600); font-weight: 600; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mobile-nav-actions .btn { justify-content: center; width: 100%; }
body.nav-locked { overflow: hidden; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-actions .btn-outline.btn-sm { display: none; }
}
@media (max-width: 480px) {
  .header-actions .btn-primary.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #F3F8FD 100%);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy h1 { font-size: 2.9rem; font-weight: 700; }
.hero-copy h1 .accent { color: var(--teal-500); }
.hero-copy p { font-size: 1.08rem; max-width: 480px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; max-width: 160px; }
.trust-item .dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-tint); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.trust-item strong { display: block; font-size: 0.88rem; color: var(--navy-800); }
.trust-item span { font-size: 0.8rem; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  width: 100%; height: 420px; object-fit: cover;
  box-shadow: var(--shadow-pop);
}
.hero-badge {
  position: absolute; left: -24px; bottom: -22px;
  background: var(--white); border-radius: 999px;
  padding: 14px 20px; box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 14px; max-width: 320px;
}
.hero-badge span { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.hero-badge .heart {
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal-500);
  color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-badge { left: 12px; bottom: -18px; }
}

/* ===== Section wrapper ===== */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-900); color: white; }
.section-navy h2, .section-navy h3 { color: white; }
.section-navy p { color: #B9C6DC; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2rem; }

/* ===== Feature / pillar cards ===== */
.pillar-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
@media (max-width: 1000px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px 22px; text-align: center; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pillar-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; color: white;
}
.pillar-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar-card p { font-size: 0.9rem; margin-bottom: 14px; }

/* ===== Event cards ===== */
.event-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .event-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .event-row { grid-template-columns: 1fr; } }
.event-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.event-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.event-thumb { position: relative; height: 150px; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-date {
  position: absolute; top: 12px; left: 12px; background: var(--blue-600); color: white;
  border-radius: 8px; padding: 6px 10px; text-align: center; font-family: var(--font-display);
  line-height: 1.1;
}
.event-date small { display: block; font-size: 0.6rem; letter-spacing: 0.08em; }
.event-date strong { font-size: 1.1rem; }
.event-body { padding: 18px 20px 20px; }
.event-body h4 { font-size: 1rem; margin-bottom: 8px; }
.event-loc { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; display: flex; gap: 6px; align-items: flex-start;}

/* ===== Steps ===== */
.steps-row { display: flex; justify-content: space-between; position: relative; gap: 20px; flex-wrap: wrap; }
.steps-row::before {
  content: ''; position: absolute; top: 32px; left: 60px; right: 60px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { text-align: center; flex: 1; min-width: 150px; position: relative; z-index: 1; }
.step-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--blue-600);
  box-shadow: var(--shadow-card);
}
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; }

/* ===== App CTA banner ===== */
.app-banner { display: grid; grid-template-columns: 220px 1fr auto; gap: 40px; align-items: center; }
.app-phone { justify-self: center; }
.app-phone-frame {
  width: 190px; height: 260px; border: 8px solid #16233A; border-radius: 28px; background: var(--bg-tint);
  padding: 18px 14px; box-shadow: var(--shadow-pop);
}
.app-store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 8px; background: white; color: var(--navy-900);
  border-radius: 10px; padding: 8px 16px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
}
.store-badge small { display: block; font-weight: 400; font-size: 0.65rem; color: var(--ink-soft); }
@media (max-width: 800px) { .app-banner { grid-template-columns: 1fr; text-align: center; } .app-store-badges { justify-content: center; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #B9C6DC; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h5 { color: white; font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: white; }
.footer-brand p { font-size: 0.88rem; color: #90A0BC; margin: 14px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: white;
}
.footer-sub { display: flex; gap: 8px; }
.footer-sub input {
  flex: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  padding: 10px 12px; color: white; font-size: 0.85rem;
}
.footer-sub input::placeholder { color: #7C8AA6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; display: flex;
  justify-content: space-between; font-size: 0.8rem; color: #7C8AA6; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: #7C8AA6; margin-left: 18px; }
.footer-bottom a:hover { color: white; }

/* ===== Page header (inner pages) ===== */
.page-hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #F3F8FD 100%);
  padding: 56px 0; text-align: center;
}
.page-hero h1 { font-size: 2.3rem; }
.page-hero p { max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-600); }

/* ===== Generic grids / cards used across inner pages ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.info-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px;
  background: white; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.info-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px;
}
.filter-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 0.85rem;
  font-weight: 500; background: white; cursor: pointer;
}
.filter-chip.active { background: var(--blue-600); border-color: var(--blue-600); color: white; }

/* ===== Mobile refinements ===== */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .header-inner { padding: 14px 20px; }
  .logo-text { font-size: 1.02rem; }
  .hero { padding-top: 40px; }
  .hero-copy h1 { font-size: 2.05rem; }
  .hero-copy p { font-size: 1rem; max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-media img { height: 280px; }
  .hero-badge { position: static; margin-top: 16px; max-width: 100%; }
  .hero-trust { gap: 18px; }
  .section-head h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .steps-row::before { display: none; }
  .steps-row { flex-direction: column; gap: 28px; }
  .app-banner { gap: 24px; }
  .app-phone-frame { width: 150px; height: 210px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* Comfortable tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn, .filter-chip, .icon-btn, .mobile-toggle, .mobile-nav-close { min-height: 44px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
