/* ============================================================
   PCMacMedic IT Consulting — shared stylesheet
   Theme: "Clean Room" — bright clinical white, logo palette.
   Navy #002e62 · Blue #0079c2 · Pink #e60d64
   ============================================================ */

:root {
  --navy:       #002e62;
  --navy-deep:  #001b3a;
  --blue:       #0079c2;
  --blue-soft:  #eaf3fb;
  --pink:       #e60d64;
  --pink-deep:  #c40a55;
  --ink:        #1a2230;
  --ink-soft:   #48536a;
  --muted:      #7e8aa0;
  --paper:      #ffffff;
  --paper-2:    #f7fafd;
  --line:       #e4e9f0;
  --line-2:     #eef2f7;
  --maxw:       1140px;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 10px 26px -18px rgba(0,46,98,.35);
  --shadow-lg:  0 24px 50px -30px rgba(0,46,98,.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f2;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 42px; flex-wrap: wrap; gap: 6px;
}
.topbar a { color: #eaf3fb; font-weight: 600; }

/* ---------- header / nav ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center; color: #fff;
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 18px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.brand .name {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: -.01em; color: var(--navy); line-height: 1;
}
.brand .name span { color: var(--blue); }
.brand .tag {
  font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

/* logo image — header (white bg, sits on white header) */
.logo-img { height: 52px; width: auto; max-width: 280px; display: block; flex-shrink: 0; }
.brand-tag {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-left: 12px; border-left: 2px solid var(--line);
  align-self: center; white-space: nowrap; line-height: 1.2;
}

/* logo image — footer (white bg panel so the JPG reads on navy) */
.logo-img-footer {
  height: 40px; width: auto; display: block;
  background: #fff; padding: 6px 10px; border-radius: 6px; margin-bottom: 10px;
}

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: .01em; color: #3a4456; text-decoration: none;
  padding: 6px 0; position: relative;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--pink); transition: width .25s ease;
}
nav.main a:hover::after, nav.main a.active::after { width: 100%; }
nav.main a:hover, nav.main a.active { color: var(--navy); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

.btn {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .01em; cursor: pointer;
  padding: 13px 26px; border-radius: var(--radius-sm); border: 2px solid var(--pink);
  background: var(--pink); color: #fff; transition: .2s; text-decoration: none;
}
.btn:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--navy); border-color: #d5dde8; }
.btn.ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
/* legacy "amber" class kept so older markup still styles correctly */
.btn.amber { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.amber:hover { background: var(--pink-deep); border-color: var(--pink-deep); }

/* ---------- hero ---------- */
.hero {
  background: var(--paper); color: var(--ink); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent, var(--blue-soft)); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding: 80px 28px 86px; }
.eyebrow {
  font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--pink); font-weight: 700; margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.04; font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 20px; max-width: 16ch; color: var(--navy);
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead {
  font-size: clamp(18px, 2.1vw, 20px); max-width: 54ch; color: var(--ink-soft); margin: 0 0 32px; line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* In the V1 hero the ghost button needs dark text since the bg is light */
.hero-actions .btn.ghost { color: var(--navy); border-color: #d5dde8; }
.hero-actions .btn.ghost:hover { background: var(--navy); color: #fff; }

/* ---------- generic sections ---------- */
section.block { padding: 74px 0; }
section.block.alt { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--pink); }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; font-weight: 800;
  letter-spacing: -.01em; margin: 0 0 12px; color: var(--navy);
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px; font-size: 20px;
}
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; color: var(--navy); font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }

/* ---------- stats (navy band) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  background: var(--navy); border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.stat-lbl { font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #9fc0e0; margin-top: 8px; }

/* ---------- case studies ---------- */
.case { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case .tag { font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); font-weight: 700; }
.case h3 { font-size: 22px; margin: 8px 0 14px; letter-spacing: -.01em; color: var(--navy); }
.case .meta { font-family: "Archivo", sans-serif; font-size: 13px; color: var(--muted); letter-spacing: .03em; }
.case .outcome { margin-top: 12px; font-weight: 600; color: var(--blue); }

/* ---------- skill columns ---------- */
.skills { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px 48px; }
.skillset h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.skillset ul { list-style: none; margin: 0; padding: 0; }
.skillset li { padding: 6px 0; font-size: 15.5px; color: var(--ink-soft); display: flex; gap: 10px; }
.skillset li::before { content: "▸"; color: var(--blue); }

/* ---------- contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "Archivo", sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: "Archivo", sans-serif; font-size: 16px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,121,194,.15);
}
.field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: 14px; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 16px; }
.alert.ok { background: #e4f3ea; border: 1px solid #b7ddc5; color: #1f6b3d; }
.alert.err { background: #fce4ec; border: 1px solid #f5b9cf; color: var(--pink-deep); }

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #aec6e0; padding: 54px 0 26px; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
footer.site h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
footer.site a { color: #cfe0f2; display: block; padding: 4px 0; }
footer.site .brand .name { color: #fff; }
footer.site .brand .name span { color: #5fb3e8; }
footer.site .brand .mark { background: linear-gradient(135deg, var(--blue), #5fb3e8); }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #7d97b8; }

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

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  nav.main { position: fixed; inset: 88px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow); }
  nav.main.open { transform: none; }
  nav.main a { padding: 14px 28px; border-bottom: 1px solid var(--line); }
  nav.main a::after { display: none; }
  .nav-toggle { display: block; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .case { grid-template-columns: 1fr; gap: 10px; }
  .skills { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; gap: 26px; }
  .hero::after { display: none; }
}
