/* Desmond Moller Ltd — global stylesheet. Brand tokens from assets/images/brand-identity.json. */
:root {
  --brand-primary: #B0A090;
  --brand-primary-dark: #8a7a68;
  --brand-primary-soft: #AACCFF;
  --brand-sage: #AACCFF;
  --brand-sage-pale: #e4ede7;
  --brand-accent: #952B2B;
  --brand-accent-dark: #952B2B;
  --brand-green: #00A651;
  --brand-alert: #FF0000;
  --brand-ink: #333333;
  --paper: #f9f8f7;
  --card: #ffffff;
  --ink: #333333;
  --muted: #625650;
  --line: #e3ddd8;
  --radius: 14px;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 88px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brand-primary-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--brand-primary); text-underline-offset: 3px; }
a:hover { color: var(--brand-primary-dark); }

img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }

.container { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }

section { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* Accessible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand-primary-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; min-width: 48px; padding: 0.8rem 1.6rem;
  border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; }
.btn-accent { background: var(--brand-accent); color: #fff; }
.btn-accent:hover { background: var(--brand-accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-primary-dark); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-sage-pale); color: var(--brand-primary-dark); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card); border-bottom: 1px solid var(--line);
  height: var(--header-h); transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(30, 77, 58, 0.14); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.brand-block { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; min-height: 48px; }
.brand-block img { height: 56px; width: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--brand-sage); flex: none; }
.brand-word { font-weight: 800; font-size: 1.12rem; color: var(--brand-primary-dark); line-height: 1.15; }
.brand-word small { display: block; font-weight: 600; font-size: 0.78rem; color: var(--muted); }
.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop a { padding: 0.7rem 0.9rem; text-decoration: none; font-weight: 600; color: var(--ink); border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { background: var(--brand-sage-pale); color: var(--brand-primary-dark); }
.nav-cta { margin-left: 0.5rem; }
.nav-desktop a.btn-primary { color: #fff; }
.nav-desktop a.btn-primary:hover { background: var(--brand-primary-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; width: 48px; height: 48px; cursor: pointer; color: var(--brand-primary-dark); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; background: var(--card); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: flex; align-items: center; min-height: 48px; padding: 0.6rem 0.25rem; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-sage-pale) 0%, var(--paper) 100%); overflow: hidden; position: relative; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy .kicker { display: inline-block; background: var(--brand-primary); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; box-shadow: 0 12px 32px rgba(30, 77, 58, 0.18); }
.hero-badge { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255, 255, 255, 0.96); border-radius: 12px; padding: 0.6rem 1rem; font-weight: 700; color: var(--brand-primary-dark); border: 1px solid var(--line); }

/* Signature web motif */
.web-motif { width: 100%; height: auto; display: block; }
.web-motif .thread { stroke: var(--brand-primary-soft); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.web-motif.drawn .thread { animation: draw-thread 1.6s ease forwards; }
@keyframes draw-thread { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .web-motif.drawn .thread { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Cards */
.card-grid { display: grid; gap: 1.5rem; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service-card img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.service-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.service-card-body h3 { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.service-card-body h3 svg { width: 22px; height: 22px; color: var(--brand-primary); flex: none; }
.service-card-body p { color: var(--muted); margin: 0; flex: 1; }
.card-link { font-weight: 700; color: var(--brand-primary-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; }
.card-link:hover { color: var(--brand-accent); }

/* Split sections */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.check-list { list-style: none; margin: 1rem 0; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.check-list li svg { position: absolute; left: 0; top: 0.25rem; width: 20px; height: 20px; color: #00A651; }

/* Timeline (single process infographic, home page only) */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 0.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: var(--brand-sage); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 1.75rem 3.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .step-num { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timeline h3 { margin-bottom: 0.25rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* CTA band */
.cta-band { background: var(--brand-primary-dark); color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--brand-sage-pale); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Footer */
.site-footer { background: var(--brand-primary-dark); color: #e9efec; margin-top: 3rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 56px; width: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--brand-sage); }
.footer-brand strong { font-size: 1.15rem; }
.footer-brand small { display: block; font-weight: 400; color: var(--brand-sage-pale); }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.25rem; padding-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.92rem; color: var(--brand-sage-pale); }
.byte-badge { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--brand-sage-pale); min-height: 40px; }

/* Contact rows */
.contact-row { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.contact-row svg { width: 26px; height: 26px; color: var(--brand-primary); flex: none; }
.contact-row a { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--brand-primary-dark); min-height: 44px; display: inline-flex; align-items: center; }
.contact-row a:hover { color: var(--brand-accent); }
.map-embed iframe { width: 100%; height: 380px; border-radius: var(--radius); }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { width: 100%; background: none; border: 0; text-align: left; font: inherit; font-weight: 700; color: var(--brand-primary-dark); padding: 1rem 1.25rem; min-height: 56px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.05rem; }
.faq-a { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq-item:not(.open) .faq-a { display: none; }

/* Blog */
.blog-card img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.prose img { width: 100%; border-radius: var(--radius); object-fit: cover; }

/* Back to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand-primary); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); z-index: 60; }
.to-top.show { display: inline-flex; }
.to-top svg { width: 22px; height: 22px; }

/* Gallery */
.gallery { display: grid; gap: 1rem; }
.gallery img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 4 / 3; }

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
