/* ============================================================
   CloudCraftersUK — Design Tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors (sampled from logo) */
  --navy: #131D41;
  --navy-deep: #0A0E24;
  --lime: #8CEA2A;
  --lime-dim: #6FC220;

  /* Surfaces */
  --bg: #08090c;
  --bg-elevated: #121420;
  --bg-elevated-2: #181b2a;
  --bg-card: #14161f;
  --border: #262838;
  --border-strong: #34364a;

  /* Text */
  --fg: #F5F6F2;
  --fg-muted: #A6A9BB;
  --fg-faint: #6E7186;
  --on-lime: #0A0E24;

  /* Semantic */
  --accent: var(--lime);
  --accent-fg: var(--on-lime);
  --danger: #FF6B5E;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;

  --container: 1200px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

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

section { position: relative; }

/* ============================================================
   Typography utility scale
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

h1, .h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2, .h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 56ch;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 0 0 rgba(140,234,42,0);
}
.btn-primary:hover {
  background: #A0F53E;
  box-shadow: 0 6px 24px -4px rgba(140,234,42,0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-dark {
  background: var(--navy-deep);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-dark:hover { border-color: var(--lime); color: var(--lime); }

.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 16px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  background: rgba(8,9,12,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { color: var(--lime); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-transform: uppercase;
  transition: color var(--dur-base) var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  white-space: nowrap;
}
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-4);
  margin-top: var(--space-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 32ch; }
.footer-brand .brand { font-size: 1.15rem; }
.footer-brand p { color: var(--fg-muted); font-size: 14px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color var(--dur-base) var(--ease);
}
.footer-col a:hover { color: var(--lime); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--fg-muted);
}
.footer-social a:hover { color: var(--lime); border-color: var(--lime); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-faint);
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 8px 28px -6px rgba(140,234,42,0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: #A0F53E; }

/* ============================================================
   Section spacing helpers
   ============================================================ */
.section { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-6) 0; }
.section-tight { padding-top: 0; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.card:hover { border-color: var(--border-strong); }

.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(140,234,42,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  margin-bottom: var(--space-4);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ============================================================
   Badge / pill / tag
   ============================================================ */
.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
}

.badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(140,234,42,0.12);
  color: var(--lime);
  border: 1px dashed var(--lime-dim);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Grid helpers
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

/* ============================================================
   Stars / rating
   ============================================================ */
.stars { display: inline-flex; gap: 2px; color: var(--lime); }
.stars svg { width: 16px; height: 16px; }

/* ============================================================
   Forms
   ============================================================ */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-3); }
.form-field label { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--fg);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--fg-faint); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(140,234,42,0.18);
}
.form-field .field-error {
  font-size: 12px;
  color: var(--danger);
  display: none;
}
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--danger); }
.form-field.invalid .field-error { display: block; }
.form-note { font-size: 12px; color: var(--fg-faint); text-align: center; margin-top: var(--space-2); }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(140,234,42,0.12);
  border: 1px solid var(--lime-dim);
  color: var(--lime);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.form-success.visible { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee-strip {
  background: var(--lime);
  color: var(--on-lime);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Service rows (numbered list)
   ============================================================ */
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.3fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease);
}
.service-row:hover { background: var(--bg-elevated); }
.service-row .service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg-faint);
  font-size: 14px;
}
.service-row h3 { font-size: 1.4rem; }
.service-row p { color: var(--fg-muted); font-size: 14px; max-width: 48ch; }

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .service-row .service-num { display: none; }
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: transparent;
  border: none;
  color: var(--fg);
  text-align: left;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.faq-question svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--lime);
  transition: transform var(--dur-base) var(--ease);
}
.faq-item[data-open="true"] .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease);
}
.faq-answer p {
  color: var(--fg-muted);
  padding-bottom: var(--space-4);
  max-width: 68ch;
}

/* ============================================================
   Hero graphic (SVG based, no external images)
   ============================================================ */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 20% 15%, rgba(140,234,42,0.16), transparent 55%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

/* ============================================================
   Utility: reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions > .nav-phone { display: none; }
  .nav-actions > a.btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand { font-size: 0.95rem; white-space: nowrap; }

  .mobile-nav {
    position: fixed;
    inset: 0;
    top: 73px;
    background: var(--bg);
    z-index: 99;
    padding: var(--space-5) var(--space-4);
    flex-direction: column;
    gap: var(--space-2);
    overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fg);
  }
  .mobile-nav a[aria-current="page"] { color: var(--lime); }
  .mobile-nav .btn { margin-top: var(--space-4); }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: var(--space-6) 0; }
  .back-to-top { bottom: 18px; right: 18px; width: 46px; height: 46px; }
}
