/* ══════════════════════════════════════════
   UKSOFT — Services pages shared stylesheet
   Mirrors design tokens from /index.html
══════════════════════════════════════════ */
:root {
  --bg:          #F0FAF7;
  --surface:     #FFFFFF;
  --elevated:    #E2F5EE;
  --text:        #041E14;
  --text-sec:    rgba(4,30,20,0.60);
  --text-muted:  rgba(4,30,20,0.38);
  --teal:        #0C7A5C;
  --teal-bright: #10A87E;
  --teal-dim:    rgba(12,122,92,0.12);
  --teal-border: rgba(12,122,92,0.20);
  --border:      rgba(4,30,20,0.08);
  --nav-bg:      rgba(240,250,247,0.86);
  --hero-glow-1: rgba(12,122,92,0.18);
  --hero-glow-2: rgba(16,168,126,0.10);
  --cta-grad:    linear-gradient(135deg,#0C7A5C 0%,#14A87A 100%);
  --cta-txt:     #ffffff;
}
[data-theme="dark"] {
  --bg:          #04110E;
  --surface:     #091A14;
  --elevated:    #112219;
  --text:        #EDF8F4;
  --text-sec:    rgba(237,248,244,0.58);
  --text-muted:  rgba(237,248,244,0.30);
  --teal:        #14C896;
  --teal-bright: #1ADBA5;
  --teal-dim:    rgba(20,200,150,0.12);
  --teal-border: rgba(20,200,150,0.18);
  --border:      rgba(20,200,150,0.08);
  --nav-bg:      rgba(4,17,14,0.88);
  --hero-glow-1: rgba(20,200,150,0.16);
  --hero-glow-2: rgba(10,120,90,0.10);
  --cta-grad:    linear-gradient(135deg,#0DA874 0%,#14C896 100%);
  --cta-txt:     #04110E;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body {
  font-family:'DM Sans',sans-serif;
  background:var(--bg); color:var(--text);
  line-height:1.6; overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color:transparent;
  transition:background 0.4s ease, color 0.4s ease;
}
button, a, input, textarea, select {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
img, svg { max-width:100%; display:block; }

/* Subtle grain */
body::after {
  content:''; position:fixed; inset:0;
  pointer-events:none; z-index:9990; opacity:0.022;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.container { max-width:1160px; margin:0 auto; padding:0 1.5rem; }

h1, h2, h3, h4 { font-family:'Outfit', sans-serif; color:var(--text); }

.eyebrow {
  font-family:'DM Sans', sans-serif;
  font-size:0.72rem; font-weight:500;
  letter-spacing:0.16em; text-transform:uppercase;
  color:var(--teal); display:block; margin-bottom:1.1rem;
}

/* ── Buttons ── */
.btn {
  font-family:'DM Sans', sans-serif; font-weight:600;
  font-size:0.82rem; letter-spacing:0.07em; text-transform:uppercase;
  padding:0.75rem 1.75rem; border-radius:6px; border:none;
  cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; gap:0.5rem;
  transition:opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
.btn-grad { background:var(--cta-grad); color:var(--cta-txt); }
.btn-grad:hover { opacity:0.88; transform:translateY(-2px); }
.btn-outline { background:transparent; color:var(--text); border:1px solid var(--border); }
.btn-outline:hover { border-color:var(--teal); color:var(--teal); transform:translateY(-2px); }
.btn-nav {
  background:transparent; color:var(--text);
  border:1px solid var(--border);
  padding:0.7rem 1.5rem; margin:0 0.4rem; font-size:0.78rem;
  border-radius:6px; text-decoration:none;
  display:inline-flex; align-items:center;
  font-family:'DM Sans', sans-serif; font-weight:600;
  letter-spacing:0.07em; text-transform:uppercase;
  transition:border-color 0.2s ease, color 0.2s ease;
}
.btn-nav:hover { border-color:var(--teal); color:var(--teal); }

/* ── Nav ── */
#navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  background:var(--nav-bg);
  border-bottom:1px solid var(--border);
  padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right);
  transition:background 0.4s ease;
}
@supports not (backdrop-filter: blur(20px)) { #navbar { background:var(--bg); } }
.nav-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.nav-logo { text-decoration:none; display:flex; align-items:baseline; gap:0.3rem; flex-shrink:0; }
.nav-logo-name {
  font-family:'Outfit', sans-serif; font-size:1.2rem; font-weight:800;
  color:var(--teal); letter-spacing:-0.01em;
}
.nav-logo-tag {
  font-size:0.6rem; font-weight:500; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--text-muted);
}
.nav-links { display:flex; align-items:center; gap:2rem; list-style:none; }
.nav-links a {
  font-family:'DM Sans', sans-serif; font-size:0.76rem; font-weight:500;
  letter-spacing:0.1em; text-transform:uppercase;
  color:var(--text-sec); text-decoration:none; transition:color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color:var(--teal); }
.nav-actions { display:flex; align-items:center; gap:0.6rem; }
.icon-btn {
  width:40px; height:40px; border-radius:6px;
  border:1px solid var(--border); background:var(--elevated);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--text-sec);
  transition:border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { border-color:var(--teal); color:var(--teal); }
.icon-btn:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }

/* ── Hero ── */
.svc-hero {
  position:relative; overflow:hidden;
  padding:9rem 0 5rem;
  border-bottom:1px solid var(--border);
}
.svc-hero::before {
  content:''; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(circle at 20% 30%, var(--hero-glow-1) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, var(--hero-glow-2) 0%, transparent 50%);
}
.svc-hero .container { position:relative; z-index:1; }
.crumbs {
  display:flex; flex-wrap:wrap; gap:0.45rem;
  font-size:0.74rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--text-muted); margin-bottom:1.25rem;
}
.crumbs a { color:var(--text-sec); text-decoration:none; transition:color 0.2s ease; }
.crumbs a:hover { color:var(--teal); }
.crumbs span[aria-current="page"] { color:var(--teal); }
.svc-hero h1 {
  font-size:clamp(2.4rem, 6vw, 4.4rem);
  font-weight:800; line-height:1.02; letter-spacing:-0.03em;
  margin-bottom:1.25rem; max-width:18ch;
}
.svc-hero .lede {
  font-size:1.05rem; font-weight:300; color:var(--text-sec);
  line-height:1.78; max-width:640px; margin-bottom:2rem;
}
.svc-hero .hero-ctas { display:flex; gap:1rem; flex-wrap:wrap; }

/* ── Sections ── */
.section { padding:5.5rem 0; }
.section-alt { background:var(--surface); }
.section-hd { margin-bottom:3rem; max-width:720px; }
.section-hd h2 {
  font-size:clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight:800; letter-spacing:-0.025em; line-height:1.08;
}
.section-hd p {
  margin-top:1rem; font-size:0.98rem; font-weight:300;
  color:var(--text-sec); line-height:1.78;
}

/* Lead paragraph block */
.prose p {
  font-size:1rem; font-weight:300; color:var(--text-sec);
  line-height:1.8; margin-bottom:1rem; max-width:72ch;
}
.prose strong { color:var(--text); font-weight:600; }

/* Feature grid (offerings) */
.feature-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:12px; overflow:hidden;
}
.feature-card {
  background:var(--bg); padding:2rem 1.75rem;
  display:flex; flex-direction:column;
  transition:background 0.3s ease;
}
.feature-card:hover { background:var(--elevated); }
.feature-icon {
  width:40px; height:40px; border-radius:10px;
  background:var(--teal-dim); border:1px solid var(--teal-border);
  display:flex; align-items:center; justify-content:center;
  color:var(--teal); margin-bottom:1rem;
}
.feature-card h3 {
  font-size:1.05rem; font-weight:700;
  letter-spacing:-0.01em; margin-bottom:0.55rem;
}
.feature-card p {
  font-size:0.88rem; color:var(--text-sec); line-height:1.7;
}

/* Bullet list */
.checklist { list-style:none; display:grid; gap:0.85rem; }
.checklist li {
  position:relative; padding-left:1.85rem;
  font-size:0.95rem; color:var(--text-sec); line-height:1.65;
}
.checklist li::before {
  content:''; position:absolute; left:0; top:0.45rem;
  width:14px; height:14px; border-radius:50%;
  background:var(--teal-dim); border:1px solid var(--teal-border);
  background-image:linear-gradient(var(--teal),var(--teal));
  background-size:6px 2px;
  background-repeat:no-repeat;
  background-position:center;
}
.checklist li strong { color:var(--text); font-weight:600; }

/* Two-column feature row */
.two-col {
  display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:start;
}
.two-col h2 {
  font-size:clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight:800; letter-spacing:-0.025em; line-height:1.08;
  margin-bottom:1rem;
}
.two-col p { font-size:0.98rem; font-weight:300; color:var(--text-sec); line-height:1.8; margin-bottom:1rem; }

/* Process */
.process-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:0; background:var(--border);
  border:1px solid var(--border); border-radius:12px; overflow:hidden;
}
.proc-step {
  background:var(--bg); padding:2.25rem 1.75rem;
  border-right:1px solid var(--border);
  transition:background 0.3s ease;
}
.proc-step:last-child { border-right:none; }
.proc-step:hover { background:var(--elevated); }
.proc-num {
  font-family:'Outfit', sans-serif; font-size:2.2rem; font-weight:800;
  color:var(--teal); opacity:0.4; line-height:1; margin-bottom:0.6rem;
}
.proc-step h3 {
  font-size:0.95rem; font-weight:700; letter-spacing:-0.01em; margin-bottom:0.45rem;
}
.proc-step p { font-size:0.84rem; color:var(--text-sec); line-height:1.65; }

/* FAQ */
.faq-list { display:grid; gap:0.9rem; }
.faq-item {
  background:var(--bg); border:1px solid var(--border);
  border-radius:10px; padding:1rem 1.25rem;
  transition:border-color 0.2s ease;
}
.faq-item[open] { border-color:var(--teal-border); }
.faq-item summary {
  cursor:pointer; list-style:none;
  font-family:'Outfit', sans-serif; font-size:1rem; font-weight:600;
  color:var(--text); display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:0.25rem 0;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after {
  content:'+'; font-size:1.4rem; color:var(--teal); transition:transform 0.2s ease;
}
.faq-item[open] summary::after { content:'−'; }
.faq-item p {
  margin-top:0.65rem; font-size:0.92rem; font-weight:300;
  color:var(--text-sec); line-height:1.7;
}

/* CTA band */
.cta-band {
  background:var(--surface);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:4.5rem 0;
}
.cta-band-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:2.5rem; flex-wrap:wrap;
}
.cta-band h2 {
  font-size:clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight:800; letter-spacing:-0.025em; line-height:1.05;
  max-width:520px;
}
.cta-band p {
  font-size:0.95rem; color:var(--text-sec); line-height:1.7; margin-top:0.75rem;
  max-width:520px;
}
.cta-band-actions { display:flex; gap:0.75rem; flex-wrap:wrap; }

/* Related services strip */
.related-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:12px; overflow:hidden;
}
.related-card {
  background:var(--bg); padding:1.5rem 1.5rem;
  text-decoration:none; color:inherit;
  display:flex; flex-direction:column; gap:0.4rem;
  transition:background 0.25s ease, transform 0.2s ease;
}
.related-card:hover { background:var(--elevated); }
.related-card .lbl {
  font-size:0.7rem; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--teal); font-weight:600;
}
.related-card h4 { font-size:1rem; font-weight:700; letter-spacing:-0.01em; }
.related-card p { font-size:0.85rem; color:var(--text-sec); line-height:1.6; }

/* Footer */
#footer { background:var(--surface); }
.footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:3rem; padding:4rem 0 3rem;
}
.footer-brand-txt {
  font-size:0.875rem; font-weight:300;
  color:var(--text-sec); line-height:1.72;
  max-width:270px; margin-top:0.75rem;
}
.footer-col h4 {
  font-size:0.72rem; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase;
  margin-bottom:1.25rem; color:var(--text);
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:0.65rem; }
.footer-links a {
  font-size:0.875rem; font-weight:300;
  color:var(--text-sec); text-decoration:none;
  transition:color 0.2s ease;
}
.footer-links a:hover { color:var(--teal); }
.contact-row {
  display:flex; align-items:flex-start; gap:0.6rem; margin-bottom:0.8rem;
}
.contact-row svg { flex-shrink:0; margin-top:2px; }
.contact-row a, .contact-row span {
  font-size:0.875rem; font-weight:300;
  color:var(--text-sec); text-decoration:none;
  transition:color 0.2s ease;
}
.contact-row a:hover { color:var(--teal); }
.footer-bottom {
  border-top:1px solid var(--border); padding:1.5rem 0;
  display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:0.75rem;
}
.footer-bottom p { font-size:0.78rem; color:var(--text-muted); }

/* Responsive */
@media (max-width:900px) {
  .nav-links { display:none; }
  .footer-top { grid-template-columns:1fr 1fr; gap:2rem; }
  .two-col { grid-template-columns:1fr; gap:2.5rem; }
  .cta-band-inner { flex-direction:column; align-items:flex-start; }
  .container { padding:0 1.25rem; }
  .svc-hero { padding:7.5rem 0 4rem; }
}
@media (max-width:600px) {
  .footer-top { grid-template-columns:1fr; }
  .container { padding:0 1rem; }
  .icon-btn { width:44px; height:44px; }
  .section { padding:4rem 0; }
  .proc-step { border-right:none; border-bottom:1px solid var(--border); }
  .proc-step:last-child { border-bottom:none; }
}

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

@media print {
  #navbar, .cta-band { display:none !important; }
  body { background:#fff !important; color:#000 !important; }
  a { color:#000 !important; text-decoration:underline; }
}
