/* Professional networking card — mobile-first, credible, fast */
:root {
  --bg:        #eef2f7;
  --surface:   #ffffff;
  --surface-2: #f4f7fb;
  --border:    #c8d3e3;
  --text:      #0c2340;
  --muted:     #4a5d75;
  --accent:    #da291c;
  --blue:      #0c2340;
  --radius:    14px;
  --maxw:      560px;
  --bar-h:     72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #fff; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 0 calc(var(--bar-h) + 16px);
}

.is-hidden { display: none !important; }

/* ---- Hero --------------------------------------------------------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(12,35,64,.08);
  overflow: hidden;
}

.hero-banner {
  height: 110px;
  background-color: #1a2f4a;
  background-image: url("assets/refinery-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-body {
  padding: 14px 16px 16px;
}

.hero-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue);
}

.hero-headline {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.hero-location {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hero-summary {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.hero-objective {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
}

/* ---- CTA buttons -------------------------------------------------- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 8px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
}

.cta svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta:active { opacity: .85; }

.cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- Certifications (prominent) ----------------------------------- */
.block {
  margin: 14px 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(12,35,64,.04);
}

.block-certs {
  border-top: 3px solid var(--accent);
}

.block-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent);
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cert-card {
  padding: 11px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}

.cert-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
}

.cert-detail {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

/* ---- Bullets & timeline ------------------------------------------- */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bullet-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline { display: flex; flex-direction: column; gap: 10px; }

.tl-item {
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
}

.tl-item:first-child { padding-top: 0; border-top: none; }

.tl-role {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--blue);
}

.tl-company {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.tl-period {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.tl-points {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-points li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.tl-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Sticky action bar -------------------------------------------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(12,35,64,.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}

.action-bar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 700;
  text-decoration: none;
}

.action-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-btn:active { opacity: .85; }

.action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 380px) {
  .certs-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 20px; }
}

@media (min-width: 620px) {
  .page { padding-top: 12px; }
  .hero { margin: 0 16px; border-radius: var(--radius); border: 1px solid var(--border); }
  .hero-banner { border-radius: var(--radius) var(--radius) 0 0; }
  .action-bar {
    max-width: var(--maxw);
    left: 50%;
    right: auto;
    bottom: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transform: translateX(-50%) translateY(12px);
  }

  .action-bar.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
