/* David Cherian — static site styles.
   Layout lives in inline styles on each element; this file only holds
   what inline styles can't express: resets, hover/focus states, motion. */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #faf9f7;
  color: #1a1917;
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { display: block; }
a { color: #1a1917; text-decoration: none; }
a:hover { color: #b8452a; }

@keyframes dcpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Header nav */
.nav a { color: #6f6c65; transition: color 160ms; }
.nav a:hover { color: #1a1917; }

/* Wordmark — declared here so it survives any inline-style loss,
   and pinned to weight 500 which Space Grotesk ships (no synthetic bold). */
.brand {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: #1a1917;
}
.brand:hover { color: #1a1917; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 120ms cubic-bezier(.2,0,0,1), background-color 160ms, border-color 160ms;
}
.btn-dark { background: #1a1917; color: #faf9f7; }
.btn-dark:hover { background: #000; color: #faf9f7; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(26,25,23,.16); color: #1a1917; }
.btn-ghost:hover { border-color: rgba(26,25,23,.42); color: #1a1917; transform: translateY(-1px); }

/* Case study cards */
.card {
  display: block;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(26,25,23,.09);
  background: #fff;
  overflow: hidden;
  transition: transform 120ms cubic-bezier(.2,0,0,1), box-shadow 200ms, border-color 200ms;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(26,25,23,.08);
  border-color: rgba(26,25,23,.16);
  color: #1a1917;
}
.card-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(26,25,23,.09);
  border-radius: 16px;
  background: #fff;
  transition: transform 120ms cubic-bezier(.2,0,0,1), box-shadow 200ms, border-color 200ms;
}
.card-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(26,25,23,.08);
  border-color: rgba(26,25,23,.16);
  color: #1a1917;
}

/* Contact links */
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26,25,23,.12);
  min-width: min(280px, 100%);
  transition: border-color 200ms;
}
.contact-link:hover { border-color: rgba(26,25,23,.4); color: #1a1917; }

/* Carousel controls */
.car-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26,25,23,.16);
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  color: #1a1917;
  cursor: pointer;
  transition: border-color 120ms, transform 120ms cubic-bezier(.2,0,0,1);
}
.car-btn:hover { border-color: rgba(26,25,23,.42); transform: translateY(-1px); }
.car-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(26,25,23,.18);
  transition: background-color 120ms;
}
.car-dot[aria-current="true"] { background: #1a1917; }

:focus-visible { outline: 2px solid #b8452a; outline-offset: 3px; }

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