/* =========================================================
   Omkar Kotmire — personal brand site
   Palette & type from brand-colors-font.md
   ========================================================= */

:root {
  --blue: #188BF6;
  --blue-light: #EFF6FF;
  --blue-text: #0B6BCB; /* darker brand-blue for small text: 5.3:1 on white (brand blue is 3.5:1) */
  --blue-fill: #0B6BCB; /* fills behind white text: 5.3:1 */
  --blue-fill-hover: #0959A8; /* 7:1 */
  --headline: #262626;
  --body: #525252;
  --muted: #737373;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --border: #E5E5E5;
  --divider: #EEEEEE;
  --red: #DC2626;
  --green: #16A34A;
  --green-text: #15803D; /* 5:1 on white; brand green is 3.3:1 */
  --amber: #F59E0B;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(38, 38, 38, .04), 0 8px 24px rgba(38, 38, 38, .06);
  --shadow-lg: 0 2px 4px rgba(38, 38, 38, .04), 0 20px 48px rgba(24, 139, 246, .12);
  --max: 1160px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
  accent-color: var(--blue-fill);
}

::selection { background: var(--blue-light); color: var(--headline); }
.contact ::selection { background: var(--blue-fill); color: #fff; }
.contact-form ::selection { background: var(--blue-light); color: var(--headline); }

h1, h2, h3 {
  color: var(--headline);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--blue-fill);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font: 700 15px/1 var(--font);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-fill);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 107, 203, .26);
}
.btn-primary:hover { background: var(--blue-fill-hover); }
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }

.btn-ghost {
  background: var(--bg);
  color: var(--headline);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-text); }

.btn-sm { padding: 10px 18px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Section heads ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--divider); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); text-wrap: balance; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-fill);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
}
.logo-text { font-weight: 800; color: var(--headline); font-size: 17px; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--body);
  transition: color .2s;
}
.nav-menu a:not(.btn):hover { color: var(--blue-text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--headline);
  border-radius: 2px;
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 440px at 85% 42%, var(--blue-light), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hl {
  color: var(--blue);
  background: linear-gradient(transparent 70%, var(--blue-light) 70%);
}

.lead { font-size: 19px; max-width: 560px; margin-bottom: 36px; }
.lead strong { font-weight: 700; color: var(--headline); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 400px; }

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-light), #DCEBFF);
  box-shadow: var(--shadow-lg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 96px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
}
.photo-fallback[hidden] { display: none; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.float-card--top { top: 28px; left: -40px; }
.float-card--bottom { bottom: 32px; right: -28px; }
.float-num { font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1; }
.float-label { font-size: 13px; font-weight: 600; color: var(--headline); line-height: 1.35; }

.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}

/* ---------- Brands ---------- */
.brands { padding: 40px 0; border-block: 1px solid var(--divider); }
.brands-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
}
.brand-row li {
  font-size: 20px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.brand-row img { height: 32px; width: auto; filter: grayscale(1); opacity: .6; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--headline);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat:first-child .stat-num { color: var(--blue); }
.stat-label { font-size: 15px; font-weight: 500; color: var(--muted); }

/* ---------- Expertise cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Icon sits beside the heading; the description spans the full card width */
.card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-icon { display: flex; padding-top: 1px; }
.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 20px; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.card p { grid-column: 1 / -1; margin-top: 12px; font-size: 15.5px; }

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.tool-list li {
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 180px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--divider);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 174px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border);
}
.tl-item:first-child::before { border-color: var(--blue); background: var(--blue-light); }

.tl-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 2px;
  text-align: right;
  padding-right: 24px;
}
.tl-item:first-child .tl-date { color: var(--blue-text); }
.tl-body h3 { font-size: 20px; }
.tl-company { font-weight: 600; color: var(--headline); opacity: .75; margin: 2px 0 10px; }
.tl-body p:last-child { font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--headline);
  color: #D4D4D4;
}
.contact h2 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 18px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy > p { font-size: 18px; max-width: 460px; }

.contact-links { margin-top: 24px; display: grid; justify-items: start; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  color: #fff;
  transition: color .2s;
}
.contact-links a:hover { color: #7CC0FF; }
.contact-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  background: var(--bg);
  color: var(--body);
  padding: 32px;
  border-radius: 20px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--headline); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 500 16px/1.4 var(--font);
  color: var(--headline);
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}
.field select { cursor: pointer; }
.field.invalid input,
.field.invalid textarea { border-color: var(--red); }
.field-error { font-size: 13.5px; font-weight: 600; color: var(--red); }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; }

.form-status { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green-text); }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--headline); border-top: 1px solid #3A3A3A; color: #A3A3A3; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px;
  font-size: 14px;
}
.footer-inner a { display: inline-block; padding: 12px 4px; }
.footer-inner a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 340px; }
  .float-card--top { left: -24px; }
  .float-card--bottom { right: -16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { padding: 12px 8px; }
  .nav-menu .btn { margin-top: 8px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 72px; }
  .lead { font-size: 17px; }

  .cards { grid-template-columns: 1fr; }

  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .tl-item::before { left: 0; }
  .tl-date { text-align: left; padding-right: 0; }

  .contact-form { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .float-card { padding: 10px 14px; }
  .float-num { font-size: 26px; }
  .float-card--top { left: 8px; }
  .float-card--bottom { right: 8px; }
  .hero-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
