/* ==========================================================================
   Mediflare — Style Skeleton
   Structural reset, layout, and empty design tokens.
   Visual identity will be adopted from the homepage design.
   ========================================================================== */

:root {
  /* --- Palette (populate from design) --- */
  --accent: #6b7280;
  --accent-dark: #4b5563;
  --accent-pale: #f3f4f6;
  --ink: #1f2937;
  --ink-mid: #475569;
  --ink-soft: #64748b;
  --border: #e5e7eb;
  --bg: #ffffff;
  --surface: #ffffff;

  /* --- Typography (populate from design) --- */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);

  /* --- Layout --- */
  --container-max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1vw + 14px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-family: var(--font-display); color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: clamp(14px, 1.2vw, 16px); font-weight: 700; }
p { max-width: 65ch; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 8px 16px; background: var(--accent); color: #fff;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* Container */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section spacing */
section, .section {
  padding-block: clamp(40px, 8vw, 96px);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700; font-size: 20px; color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-mid);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-icon {
  display: block; width: 24px; height: 2px;
  background: var(--ink); position: relative;
}
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px;
  background: var(--ink);
}
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

/* Footer */
.site-footer {
  background: var(--ink); color: #e5e7eb;
  padding-block: 48px 24px;
}
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--ink-soft); margin-top: 8px; font-size: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-soft);
}
.footer-bottom a { font-size: 13px; }

/* Hero (placeholder) */
.hero {
  padding-block: clamp(48px, 10vw, 120px);
  text-align: center;
}
.hero h1 { margin-bottom: 16px; }
.hero p { margin-inline: auto; color: var(--ink-mid); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  cursor: pointer; border: none; transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent-pale); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Responsive */
@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px; gap: 12px;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
