/* =============================================
   CTRL-TAB IT Consultancy — Site Stylesheet
   Design: Black & white, no colour
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@600&display=swap');

/* ── Tokens ── */
:root {
  --bg:         #ffffff;
  --bg-surface: #f6f6f6;
  --bg-elevated:#eeeeee;
  --border:     #d8d8d8;
  --text:       #333333;
  --text-muted: #777777;
  --text-head:  #111111;
  --radius:     3px;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--text-head); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-head);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  flex-shrink: 0;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
nav a {
  font-size: .85rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: color .12s;
  text-decoration: none !important;
  white-space: nowrap;
}
nav a:hover { color: var(--text-head); }
nav a.active { color: var(--text-head); font-weight: 500; }

.nav-cta { margin-left: auto; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  transition: background .12s, color .12s;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text-head);
  color: #ffffff;
  border-color: var(--text-head);
}
.btn-primary:hover { background: #333; }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--text-head); color: var(--text-head); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  display: block;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 2px;
}
.nav-mobile a {
  display: block;
  padding: 8px 4px;
  font-size: .9rem;
  color: var(--text-muted);
}
.nav-mobile a.active { color: var(--text-head); font-weight: 500; }
.nav-mobile a:hover { color: var(--text-head); text-decoration: none; }
.nav-mobile .btn { margin-top: 10px; width: fit-content; }

/* ── Main ── */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  padding: 64px 0 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  border-bottom: 1px solid var(--border);
}
.hero-text {
  padding-top: 12px;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-role {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-head);
  margin-bottom: 8px;
  line-height: 1.3;
}
.hero-subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo {
  width: 360px;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* ── Clients ── */
.clients-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.clients-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.clients-logos img {
  height: 30px;
  width: auto;
  opacity: .4;
  filter: grayscale(1);
  transition: opacity .2s;
}
.clients-logos img:hover { opacity: .7; }

/* ── Sections ── */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 28px;
}

/* ── Prose ── */
.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-head);
  margin: 32px 0 8px;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose ul {
  list-style: none;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose ul li {
  padding-left: 16px;
  position: relative;
  color: var(--text);
}
.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: .85em;
}
.prose a { color: var(--text-head); text-decoration: underline; }
.prose a.btn { color: #ffffff; text-decoration: none; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text-head);
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: background .12s;
}
.service-card:hover { background: var(--bg-surface); text-decoration: none; }
.service-card-icon {
  margin-bottom: 18px;
  line-height: 1;
}
.service-card-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-head);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}
.service-card-arrow {
  margin-top: 20px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Service detail ── */
.service-sidebar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 56px;
  align-items: start;
  padding: 48px 0;
}
.services-nav-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.services-nav-card h4 {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.services-nav-card a {
  display: block;
  padding: 6px 8px;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1px;
  transition: color .1s;
}
.services-nav-card a:hover { color: var(--text-head); }
.services-nav-card a.active { color: var(--text-head); font-weight: 500; }

.cta-card {
  border: 1px solid var(--border);
  padding: 20px;
  margin-top: 16px;
}
.cta-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cta-card .btn { width: 100%; justify-content: center; }

/* ── CV ── */
.cv-wrapper { padding: 40px 0 60px; }
.cv-frame {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col p, .footer-col a {
  font-size: .875rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text-head); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 16px 24px;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { display: none; }
  .nav-toggle { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .hero-photo { width: 100%; max-width: 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .service-sidebar { grid-template-columns: 1fr; }
  .services-nav-card { position: static; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
