/* ═══════════════════════════════════════════════════════════════
   Blue-Chilli – blue-chilli.css
   WCAG 2.2 AA · SEO-optimised · Mobile-first
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:       #0c0f14;
  --surface:  #131720;
  --border:   rgba(255,255,255,0.07);
  --chilli:   #f05540;   /* tomato red – WCAG AA on both --bg and --surface */
  --chilli-d: #d04030;
  --sky:      #3da9fc;
  --text:     #e8eaf0;
  --muted:    #7a8394;
  --head:     'DM Serif Display', Georgia, serif;
  --body:     'DM Sans', system-ui, sans-serif;
  --r:        10px;
  --max:      1160px;
  --nav-h:    68px;
}

/* ─── 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(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Focus indicators (WCAG 2.4.7 / 2.4.11) ────────────────── */
:focus-visible {
  outline: 2px solid var(--chilli);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ─── Layout ─────────────────────────────────────────────────── */
.wrap    { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--surface); }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.05rem; }
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chilli);
  margin-bottom: 16px;
}
.muted { color: var(--muted); }
p { max-width: 62ch; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--chilli); color: #fff; }
.btn-primary:hover { background: var(--chilli-d); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); }

/* ─── Skip link (WCAG) ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: var(--chilli);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(12,15,20,0.90);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.site-nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ──────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img-wrap {
  display: flex;
  align-items: center;
  line-height: 0;
}
.logo-img-wrap img {
  height: 30px;
  width: auto;
  display: block;
}
.logo-wordmark {
  font-family: var(--head);
  font-size: 1.3rem;
  color: var(--text);
  white-space: nowrap;
}
.logo-wordmark em {
  color: var(--chilli);
  font-style: italic;
}

/* ── Desktop nav links ─────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links > li > a,
.nav-links > li > .dropdown-btn-wrap > a {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > .dropdown-btn-wrap > a:hover { color: var(--text); }

.nav-cta {
  color: var(--chilli) !important;
  font-weight: 600;
}

/* ── Services dropdown ─────────────────────────────────────── */
.has-dropdown {
  position: relative;
}
.dropdown-btn-wrap {
  display: flex;
  align-items: center;
}
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-radius: 4px;
}
.dropdown-toggle:hover { color: var(--text); }
.dropdown-toggle[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); }
.dropdown-arrow {
  font-size: 0.65rem;
  display: inline-block;
  transition: transform 0.2s;
  line-height: 1;
}

.services-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 8px 0;
  z-index: 600;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.services-menu.open {
  display: block;
  animation: dropFade 0.15s ease both;
}
/* Also open on hover for pure-mouse users */
@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover .services-menu { display: block; }
  .has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
}
.services-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px; height: 6px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: rgba(255,255,255,0.12);
}
.services-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.services-menu li a:hover,
.services-menu li a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  outline: none;
}
.services-menu .svc-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
}
@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger ─────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU (full-screen overlay)
   ═══════════════════════════════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary mobile links */
.mobile-primary-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.mobile-primary-links a {
  font-family: var(--head);
  font-size: 2.2rem;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.2s;
}
.mobile-primary-links a:hover { color: var(--chilli); }
.mobile-primary-links a.nav-cta { color: var(--chilli); }

/* Services sub-group in mobile menu */
.mobile-services-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 12px;
  text-align: center;
}
.mobile-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 24px;
}
.mobile-services-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.mobile-services-grid a:hover,
.mobile-services-grid a:focus-visible {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  outline: none;
}
.mobile-services-grid .svc-icon { opacity: 0.7; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,60,47,0.14) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow .pill {
  background: rgba(230,60,47,0.15);
  border: 1px solid rgba(230,60,47,0.3);
  color: var(--chilli);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.hero-eyebrow .line {
  width: 40px; height: 1px;
  background: var(--chilli);
  opacity: 0.5;
}
.hero-eyebrow .subtitle-small { color: var(--muted); font-size: 0.8rem; }
h1 em { font-style: italic; color: var(--chilli); }
.hero-sub {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-stats {
  margin-top: 72px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--head);
  font-size: 2.4rem;
  color: var(--text);
}
.hero-stat span { font-size: 0.82rem; color: var(--muted); }
.hero-stat .accent { color: var(--chilli); }

/* ─── Marquee strip ───────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.strip-inner span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-inner .dot { color: var(--chilli); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES OVERVIEW GRID
   ═══════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 56px;
}
.service-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s;
}
.service-card:hover { background: #111620; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--chilli);
  margin-top: auto;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

.ico-hosting  { background: rgba(61,169,252,0.12);  color: var(--sky); }
.ico-web      { background: rgba(230,60,47,0.12);   color: var(--chilli); }
.ico-nextcloud{ background: rgba(0,130,201,0.12);   color: #0082c9; }
.ico-api      { background: rgba(180,120,255,0.12); color: #b47aff; }
.ico-wcag     { background: rgba(50,200,120,0.12);  color: #32c878; }
.ico-vitec    { background: rgba(255,190,50,0.12);  color: #ffbe32; }

/* ═══════════════════════════════════════════════════════════════
   PHILOSOPHY / OM OSS
   ═══════════════════════════════════════════════════════════════ */
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.philosophy-text p { color: var(--muted); margin-top: 16px; }
blockquote {
  border-left: 3px solid var(--chilli);
  padding-left: 24px;
  margin-top: 32px;
  font-family: var(--head);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}
blockquote footer {
  margin-top: 12px;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}
.philosophy-pillars { display: flex; flex-direction: column; }
.pillar {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pillar:first-child { border-top: 1px solid var(--border); }
.pillar-num {
  font-family: var(--head);
  font-size: 2rem;
  color: var(--border);
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}
.pillar h4 { color: var(--text); margin-bottom: 4px; }
.pillar p  { font-size: 0.87rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   SERVICE DETAIL SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.service-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.service-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.service-layout.flip { direction: rtl; }
.service-layout.flip > * { direction: ltr; }
.service-header h2 { margin-top: 12px; }
.service-header p  { color: var(--muted); margin-top: 16px; font-size: 0.93rem; }
.feature-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}
.feature-list li::before {
  content: '→';
  color: var(--chilli);
  flex-shrink: 0;
  margin-top: 1px;
}
.service-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.tag.hi {
  border-color: rgba(230,60,47,0.3);
  color: var(--chilli);
  background: rgba(230,60,47,0.07);
}
.vitec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,190,50,0.08);
  border: 1px solid rgba(255,190,50,0.25);
  color: #ffbe32;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 20px;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}
.mini-card h4 { font-family: var(--body); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.mini-card p  { font-size: 0.78rem; color: var(--muted); }

/* WCAG bars */
.wcag-bar { margin-top: 4px; }
.wcag-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.wcag-bar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  height: 6px;
  overflow: hidden;
}
.wcag-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #32c878;
  transition: width 1s ease;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════════════ */
.cta-band {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin: 12px auto 0; }
.cta-band p  { color: var(--muted); margin: 20px auto 0; }
.cta-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo {
  gap: 10px;
}
.footer-brand .logo-img-wrap img { height: 26px; }
.footer-brand p {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 0.87rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--chilli); border-color: var(--chilli); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp 0.7s ease both; }
.delay-1  { animation-delay: 0.15s; }
.delay-2  { animation-delay: 0.30s; }
.delay-3  { animation-delay: 0.45s; }
.delay-4  { animation-delay: 0.60s; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .philosophy-layout { grid-template-columns: 1fr; gap: 40px; }
  .service-layout    { grid-template-columns: 1fr; gap: 40px; }
  .service-layout.flip { direction: ltr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 28px; }
  .mini-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 20px; right: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION (WCAG 2.2.2)
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
