/* ===========================================================================
   gargmedical — Tushar Garg, DO
   Modern, minimalist, multiplatform. Plain CSS, no build step.
   Palette + type tuned for a clean clinical-but-personal feel.
   =========================================================================== */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f6f5;
  --text:      #18181b;   /* near-black */
  --muted:     #71717a;   /* neutral grey */
  --accent:    #18181b;   /* monochrome — no color accent */
  --accent-dk: #000000;
  --border:    #e7e7e4;
  --card-sh:   0 1px 2px rgba(0,0,0,.03);
  --card-sh-h: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.07);
  --radius:    14px;
  --maxw:      1080px;
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-do { color: var(--muted); }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 56px 0 44px; }
.hero-inner { display: flex; align-items: center; justify-content: center; gap: 30px; }
.avatar {
  width: 150px; height: 250px; flex-shrink: 0; border-radius: 16px;
  object-fit: cover; object-position: 50% 18%; background: var(--bg-alt);
  box-shadow: var(--card-sh-h);
}
.avatar.avatar-fallback { display: grid; place-items: center; border-radius: 16px; background: var(--text); color: #fff; font-weight: 800; font-size: 2.6rem; }
.avatar.avatar-fallback::after { content: 'TG'; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 6px; font-weight: 500; }
.hero-tag { font-size: 1.02rem; color: var(--muted); font-weight: 400; margin: 0; }
.accent { color: var(--accent); }
.lede { font-size: 1.02rem; color: var(--muted); max-width: 54ch; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Sections ---------------------------------------------------------- */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.5rem; letter-spacing: -.01em; margin: 0 0 6px; font-weight: 600; text-align: center; }
.section-sub { color: var(--muted); margin: 0 0 24px; font-size: 1rem; text-align: center; }

/* About — one centered paragraph */
.about-text { max-width: 640px; margin: 0 auto; text-align: center; font-size: 1.05rem; color: #3a3a40; }

/* ---- Tool tiles (clean, centered) -------------------------------------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 240px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--card-sh);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--card-sh-h); border-color: #d8d8d4; }
.tile-icon { font-size: 1.5rem; margin-bottom: 8px; }
.tile h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* ---- Tool cards (used on the DPC page) --------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); gap: 18px; justify-content: start; }
.card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--card-sh);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--card-sh-h); border-color: #d8d8d4; }
.card-icon { font-size: 1.7rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -.01em; }
.card p { margin: 0 0 18px; color: var(--muted); flex: 1; }
.card-go { font-weight: 600; color: var(--accent); }
.card-go.muted { color: var(--muted); }
.card-soon { background: transparent; border-style: dashed; box-shadow: none; cursor: default; }
.card-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* ---- Buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 500; font-size: 1rem;
  cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---- Contact / footer -------------------------------------------------- */
.contact-wrap { text-align: center; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: .92rem; }
.footer-top:hover { color: var(--text); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 820px) {
  .hero-inner { gap: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a { padding: 14px 24px; border-radius: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 44px 0 36px; }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .avatar { width: 140px; height: 233px; }
  .section { padding: 44px 0; }
  .hero-cta, .contact-actions { flex-direction: column; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
