/* IT Sidekick — global stylesheet */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f2faf6;
  --surface: #ffffff;
  --text: #111111;
  --text-muted: #5c6864;
  --border: #e4ede9;
  --ink: #0d0d0d;
  --ink-hover: #232323;
  --primary: #0b7d58;
  --primary-dark: #086847;
  --primary-contrast: #ffffff;
  --accent: #3ddc97;
  --accent-dark: #22b37d;
  --accent-contrast: #0d0d0d;
  --success-bg: #eaf6ec;
  --success-text: #1e6b34;
  --error-bg: #fbeaea;
  --error-text: #a5271c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-lift: 0 16px 40px rgba(17, 17, 17, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-dark); }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--text); }

.text-muted { color: var(--text-muted); }

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

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 56px 0; }

.section-textured {
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.btn.nav-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

@media (min-width: 720px) {
  .btn.nav-cta { display: inline-flex; }
}

@media (max-width: 719px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.06s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary-dark); color: var(--primary-dark); background: var(--bg-alt); }

.btn-block { width: 100%; border-radius: var(--radius-sm); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 84px;
}

.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  width: 380px;
  height: 380px;
  background: var(--primary);
  opacity: 0.14;
  bottom: -180px;
  left: -100px;
}

.hero-orb {
  position: absolute;
  top: -70px;
  right: -90px;
  width: 560px;
  max-width: 62vw;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 62% 42%, black 48%, transparent 74%);
  mask-image: radial-gradient(circle at 62% 42%, black 48%, transparent 74%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero h1 { margin-bottom: 22px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 30px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.flow-step .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-dark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
  flex-shrink: 0;
}

.flow-arrow {
  padding-left: 3px;
  color: var(--text-muted);
  font-size: 0.78rem;
  opacity: 0.55;
}

.check-list { display: flex; flex-direction: column; }

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--border);
}

.check-item:last-child { border-bottom: none; }

.check-item .check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-item .check-icon svg { width: 14px; height: 14px; }

/* Icon badge */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg { width: 22px; height: 22px; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.card h3 { margin-bottom: 8px; }

.card-meta {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

/* Portfolio case study */
.case-study {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-study:hover {
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.case-study .eyebrow { margin-bottom: 8px; }

/* Steps / process */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 12% 0%, var(--primary) 0%, var(--primary-dark) 65%);
  color: var(--primary-contrast);
  border-radius: var(--radius);
  padding: 56px 44px;
  text-align: center;
}

.cta-band h2 { color: var(--primary-contrast); }
.cta-band p {
  color: color-mix(in srgb, var(--primary-contrast) 82%, transparent);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--ink) 80%, black); }

/* Image placeholder (for content awaiting real photography) */
.image-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 20% 15%, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 60%),
    radial-gradient(120% 140% at 85% 85%, color-mix(in srgb, var(--primary) 30%, transparent) 0%, transparent 60%),
    var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.image-placeholder .mark {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow-lift);
}

.image-placeholder .mark img { width: 100%; height: 100%; object-fit: contain; }

.image-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* Forms */
.form-field { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea { resize: vertical; min-height: 120px; }

.field-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
  display: none;
}

.form-status.visible { display: block; }
.form-status.success { background: var(--success-bg); color: var(--success-text); }
.form-status.error { background: var(--error-bg); color: var(--error-text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--primary-dark); }

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

/* Chat widget */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease, background 0.15s ease;
}

.chat-launcher:hover { background: var(--primary-dark); transform: translateY(-2px); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .icon-close { display: none; }
.chat-launcher.open .icon-chat { display: none; }
.chat-launcher.open .icon-close { display: block; }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 100;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.open { display: flex; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  flex-shrink: 0;
}

.chat-header .brand-mark { width: 30px; height: 30px; }
.chat-header strong { font-size: 0.95rem; }
.chat-header span { display: block; font-size: 0.78rem; color: var(--text-muted); }

.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.chat-msg.typing { display: flex; align-items: center; gap: 4px; padding: 12px 15px; }
.chat-msg.typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: chat-typing 1.1s infinite ease-in-out;
}
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.chat-form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-form button:hover { background: var(--primary-dark); }
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-form button svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
