/* ===================================================
   LINKED — Shared additions (every page)
   Services menu in the nav, plus the components used by the
   service, contact, privacy and 404 pages. Visual language
   matches cloudsStyle.css: dark glass, Inter, soft blue accent.
   =================================================== */

:root {
  --lk-accent: rgba(140, 180, 255, 0.9);
  --lk-accent-soft: rgba(140, 180, 255, 0.14);
  --lk-line: rgba(255, 255, 255, 0.08);
  --lk-card: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  --lk-text: rgba(255, 255, 255, 0.92);
  --lk-muted: rgba(255, 255, 255, 0.66);
  --lk-error: #ff9a9a;
}

/* ---------- Nav: Services submenu ---------- */
.nav-item.has-sub { position: relative; }
.nav-sub-trigger::after {
  content: '';
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.45em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
  opacity: 0.7;
}
.nav-sub {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  margin-top: 0.6rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.97) 0%, rgba(20, 25, 45, 0.99) 100%);
  border: 1px solid rgba(80, 140, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1002;
}
.nav-sub::before { /* hover bridge */
  content: '';
  position: absolute;
  top: -0.8rem;
  left: 0;
  right: 0;
  height: 0.8rem;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu .nav-sub li a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
}

/* Phones: show the services list inline inside the menu sheet */
.is-mobile .nav-sub {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 6px 14px;
  margin: 0;
  min-width: 0;
}
.is-mobile .nav-sub::before { display: none; }
.is-mobile .nav-menu .nav-sub li a {
  font-size: 1.05rem;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--lk-muted);
}
.is-mobile .nav-sub-trigger::after { display: none; }

/* Focus visibility everywhere we add links */
.nav-menu a:focus-visible,
.lk-page a:focus-visible,
.lk-page button:focus-visible,
.lk-page summary:focus-visible {
  outline: 2px solid rgba(140, 180, 255, 0.9);
  outline-offset: 3px;
}

/* ---------- Page shell ---------- */
.lk-page {
  position: relative;
  z-index: 20;
  color: var(--lk-text);
}
.lk-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}
.lk-wrap--narrow { max-width: 820px; }

.lk-crumbs {
  font-size: 0.78rem;
  color: var(--lk-muted);
  margin-bottom: 1.5rem;
}
.lk-crumbs a { color: var(--lk-muted); text-decoration: none; }
.lk-crumbs a:hover { color: var(--lk-accent); }

.lk-hero {
  padding: 9.5rem 0 3.5rem;
}
.lk-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lk-accent);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(140, 180, 255, 0.22);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.lk-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.lk-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--lk-muted);
  max-width: 62ch;
}
.lk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.lk-brandline {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(140, 180, 255, 0.6);
}

.lk-section { padding: 3.5rem 0; }
.lk-section + .lk-section { border-top: 1px solid var(--lk-line); }
.lk-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}
.lk-section h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.5rem;
}
.lk-section p,
.lk-section li {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--lk-muted);
}
.lk-section p + p { margin-top: 0.9rem; }
.lk-section a:not(.btn) { color: var(--lk-accent); }
.lk-intro { max-width: 62ch; margin-bottom: 2rem; }

.lk-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.lk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.lk-card {
  background: var(--lk-card);
  border: 1px solid var(--lk-line);
  border-radius: 18px;
  padding: 1.5rem;
}
.lk-card--link {
  display: block;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.lk-card--link:hover { border-color: rgba(140, 180, 255, 0.35); transform: translateY(-2px); }
.lk-card .lk-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--lk-accent);
}

.lk-list { list-style: none; display: grid; gap: 0.55rem; }
.lk-list li { position: relative; padding-left: 1.5rem; }
.lk-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 1px solid var(--lk-accent);
  background: var(--lk-accent-soft);
}
.lk-list--muted li::before { border-color: rgba(255, 255, 255, 0.3); background: none; }

.lk-price, .lk-section .lk-price {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #fff;
  margin: 0.25rem 0 0.25rem;
}
.lk-price small, .lk-section .lk-price small { font-size: 0.85rem; color: var(--lk-muted); }
.lk-note {
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 0.75rem;
}

.lk-steps { counter-reset: step; list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.lk-steps li {
  counter-increment: step;
  background: var(--lk-card);
  border: 1px solid var(--lk-line);
  border-radius: 18px;
  padding: 1.4rem;
}
.lk-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--lk-accent);
  margin-bottom: 0.6rem;
}
.lk-steps strong { display: block; color: #fff; font-weight: 500; margin-bottom: 0.3rem; }

.lk-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.lk-proof__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(140, 180, 255, 0.7) !important;
}

.lk-quote {
  border-left: 2px solid rgba(140, 180, 255, 0.4);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.lk-quote p { font-style: italic; color: rgba(255, 255, 255, 0.78); }
.lk-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.85rem; color: var(--lk-muted); }

/* FAQ */
.lk-faq { display: grid; gap: 0.6rem; }
.lk-faq details {
  background: var(--lk-card);
  border: 1px solid var(--lk-line);
  border-radius: 14px;
  padding: 0 1.25rem;
}
.lk-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.lk-faq summary::-webkit-details-marker { display: none; }
.lk-faq summary::after { content: '+'; color: var(--lk-accent); font-size: 1.2rem; line-height: 1; }
.lk-faq details[open] summary::after { content: '–'; }
.lk-faq details > div { padding: 0 0 1.2rem; }

/* CTA band */
.lk-cta {
  text-align: center;
  padding: 4.5rem 0 5.5rem;
}
.lk-cta h2 { margin-bottom: 0.75rem; }
.lk-cta p { max-width: 52ch; margin: 0 auto; }
.lk-cta .lk-actions { justify-content: center; }
.lk-cta-alt {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--lk-muted) !important;
}

/* ---------- Contact form ---------- */
.lk-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.lk-form {
  background: var(--lk-card);
  border: 1px solid var(--lk-line);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.lk-field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.lk-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.lk-field label .lk-opt { font-weight: 300; color: var(--lk-muted); }
.lk-field input,
.lk-field select,
.lk-field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* stops iOS zoom on focus */
  color: #fff;
  background: rgba(5, 8, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lk-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%), linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.lk-field select option { color: #0a0a1a; background: #fff; }
.lk-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.lk-field input:focus,
.lk-field select:focus,
.lk-field textarea:focus {
  outline: none;
  border-color: rgba(140, 180, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(140, 180, 255, 0.18);
}
.lk-field [aria-invalid="true"] { border-color: var(--lk-error); }
.lk-field-error {
  font-size: 0.82rem;
  color: var(--lk-error);
  min-height: 0;
}
.lk-field-error:empty { display: none; }
.lk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.lk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lk-form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.lk-form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.lk-form-status:empty { display: none; }
.lk-form-status--error { background: rgba(255, 120, 120, 0.1); border: 1px solid rgba(255, 120, 120, 0.35); color: #ffd2d2; }
.lk-form-status a { color: #fff; }
.lk-form-fine { font-size: 0.8rem !important; color: rgba(255, 255, 255, 0.5) !important; margin-top: 1rem; }
.lk-form-fine a { color: rgba(255, 255, 255, 0.7) !important; }
.lk-success { text-align: left; }
.lk-success h2 { font-size: 1.6rem; font-weight: 300; color: #fff; margin-bottom: 0.75rem; }
.lk-success p { color: var(--lk-muted); line-height: 1.7; }

.lk-aside { display: grid; gap: 1rem; }
.lk-contact-line { display: grid; gap: 0.15rem; }
.lk-contact-line span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(140, 180, 255, 0.7); }
.lk-contact-line a { color: #fff !important; text-decoration: none; font-size: 1rem; }
.lk-contact-line a:hover { color: var(--lk-accent) !important; }

/* Short-enquiry nudge used on the detailed brief pages */
.lk-brief-nudge {
  position: relative;
  z-index: 30;
  margin: 1.25rem auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.lk-brief-nudge a { color: rgba(140, 180, 255, 0.95); }

@media (max-width: 860px) {
  .lk-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lk-row { grid-template-columns: 1fr; }
  .lk-hero { padding: 7.5rem 0 2.5rem; }
  .lk-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-sub, .lk-card--link { transition: none; }
}

/* ---------- Homepage additions ---------- */
.ps-cta-alt {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(10, 22, 40, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0;
  transition: opacity 0.4s ease 1s;
}
.ps-glass-card.ps-slide-up .ps-cta-alt { opacity: 1; }
.is-mobile .ps-cta-alt { opacity: 1; }
.contact-direct {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.contact-direct a { color: rgba(140, 180, 255, 0.95); }
.service-features a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(140, 180, 255, 0.3); }
.service-features a:hover { color: rgba(140, 180, 255, 1); }
.sw-project[id] { scroll-margin-top: 90px; }
.lk-form input, .lk-form select, .lk-form textarea { scroll-margin-top: 110px; }
