/* ==========================================================================
   Dosittec Computers — site styles
   Brand tokens mirror the Dosittec brand kit (see brand kit artifact):
   ink #12181F, ink-muted #5B6472, surface-100 #FAFAFA, surface-200 #FFFFFF,
   line #E7E5E0, brand (installation) #0EA5E9 / #0284C7, consulting #0D9488.
   ========================================================================== */

:root {
  --ink: #12181F;
  --ink-on-dark: #F2F3F5;
  --ink-muted: #5B6472;
  --ink-muted-on-dark: #9AA4B2;
  --surface-100: #FAFAFA;
  --surface-200: #FFFFFF;
  --line: #E7E5E0;
  --line-on-dark: #232B33;
  --brand: #0EA5E9;
  --brand-strong: #0284C7;
  --consulting: #0D9488;
  --dark: #12181F;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 40px; --space-6: 64px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface-200);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-logo .wordmark strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #0A4168;
}

.brand-logo .wordmark span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #0A4168;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--brand);
}

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover { background: var(--brand-strong); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #ffffff; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero-banner {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 24, 31, 0.85) 0%, rgba(18, 24, 31, 0.6) 45%, rgba(18, 24, 31, 0.25) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-banner-content h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: #ffffff;
}

.hero-banner-content p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

.hero-actions { display: flex; gap: var(--space-3); }

.hero-actions .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}
.hero-actions .btn-outline:hover { background: #ffffff; color: var(--ink); }

/* ---------- Sections ---------- */

.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-4) 0; }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}
.section-eyebrow .bar {
  width: 8px; height: 28px; border-radius: 4px;
}
.section-eyebrow.brand .bar { background: var(--brand); }
.section-eyebrow.consulting .bar { background: var(--consulting); }
.section-eyebrow h2 { font-size: 26px; }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin: 0; }

.service-card-lg {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-card-lg .icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.service-card-lg.brand .icon { background: var(--brand); }
.service-card-lg.consulting .icon { background: var(--consulting); }
.service-card-lg h3 { font-size: 22px; }
.service-card-lg ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-muted); line-height: 1.4; }
.service-card-lg .more { font-weight: 600; font-size: 15px; margin-top: auto; }
.service-card-lg.brand .more { color: var(--brand); }
.service-card-lg.consulting .more { color: var(--consulting); }

/* ---------- Strip / CTA ---------- */

.strip-dark {
  background: var(--dark);
  color: var(--ink-on-dark);
  padding: var(--space-4) 0;
}
.strip-dark .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}
.strip-dark a.link-accent { color: #38BDF8; font-weight: 600; }

.cta-banner {
  background: var(--dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cta-banner p { color: var(--ink-muted-on-dark); margin: 0; }
.cta-banner h2 { color: #ffffff; font-size: 24px; margin-bottom: 8px; }

/* ---------- Portfolio ---------- */

.project-card { overflow: hidden; padding: 0; }
.project-photo {
  height: 320px;
  background: var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #6B7280; font-size: 13px; font-weight: 500;
}
.project-body { padding: var(--space-4); display: flex; flex-direction: column; gap: 8px; }
.project-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--brand); }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-200);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.field-row { display: flex; gap: var(--space-3); }
.field-row .field { flex: 1; }

.contact-layout { display: flex; gap: var(--space-5); align-items: flex-start; }
.contact-form-card { flex: 1.3; }
.contact-side { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info-card {
  background: #68B5E1;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  color: #0A4168;
}
.contact-info-card h3 { color: #0A4168; font-size: 17px; }
.contact-info-card .row { display: flex; flex-direction: column; gap: 4px; }
.contact-info-card .row .label { font-size: 12px; color: #0A4168; opacity: 0.75; }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.form-notice {
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 14px;
}
.form-notice.success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-notice.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--ink-on-dark);
  padding: var(--space-6) 0 var(--space-4);
}
.footer-top {
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  padding-bottom: var(--space-5);
}
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-row strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #68B5E1; }
.footer-brand p { font-size: 14px; line-height: 1.5; color: var(--ink-muted-on-dark); margin: 0; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-nav .heading { font-size: 14px; letter-spacing: 0.08em; color: #ffffff; margin-bottom: 4px; }
.footer-nav a { color: var(--ink-muted-on-dark); }
.footer-nav a:hover { color: var(--brand); }

.footer-divider { height: 1px; background: var(--line-on-dark); margin-bottom: var(--space-3); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  font-size: 13px; color: #6B7280;
}
.footer-bottom .footer-links { display: flex; gap: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-banner { height: 520px; }
  .contact-layout { flex-direction: column; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .field-row { flex-direction: column; }
  .cta-banner, .strip-dark .wrap { flex-direction: column; align-items: flex-start; }
  .hero-banner { height: 460px; }
  .hero-banner-content h1 { font-size: 32px; }
  .hero-overlay { background: rgba(18, 24, 31, 0.72); }
}
