/* ==========================================================================
   Webfypro Inc — Design tokens (WWT-inspired corporate system, light + dark)
   ========================================================================== */
:root {
  /* Flippable semantic tokens (light mode defaults) */
  --paper: #ffffff;         /* page / card backgrounds */
  --paper-alt: #f8f9fa;     /* alternating section backgrounds */
  --paper-alt-2: #f1f3f5;   /* subtle gradient / block backgrounds */
  --ink: #0f172a;           /* headings, strong text */
  --body-text: #475569;     /* body copy */
  --muted-text: #94a3b8;    /* captions, labels */
  --line: #e2e8f0;          /* hairline borders */
  --line-strong: #cbd5e1;   /* stronger borders (inputs, outline buttons) */

  /* Fixed tokens — identical in both themes */
  --white: #ffffff;         /* text/elements on permanently-dark surfaces */
  --ink-fixed: #0f172a;     /* permanently-dark surfaces (device mockups, contact card) */
  --navy-800: #16233c;
  --blue-600: #0066cc;
  --blue-700: #0052cc;
  --blue-50: #eaf2ff;
  --blue-100: #d6e8ff;
  --footer-bg: #0b1220;
  --footer-text: #94a3b8;
  --accent-soft: #7fb8ff;

  /* kept for the 3D hero scene materials (unrelated to page chrome) */
  --gold-500: #b08d57;
  --teal-400: #4fd1c5;

  /* Type */
  --font-display: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1280px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-tight: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px -18px rgba(15, 23, 42, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme overrides — only the flippable tokens change */
html[data-theme="dark"] {
  --paper: #0b1220;
  --paper-alt: #111a2b;
  --paper-alt-2: #16223a;
  --ink: #f1f5f9;
  --body-text: #b7c2d1;
  --muted-text: #8291a8;
  --line: #22304a;
  --line-strong: #34445e;
  --blue-50: rgba(0, 102, 204, 0.16);
  --blue-100: rgba(0, 102, 204, 0.28);
  --shadow-tight: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ==========================================================================
   Utility
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--platinum { background: var(--paper-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
}
.on-dark .eyebrow { color: var(--accent-soft); }
.on-dark .eyebrow::before { background: var(--accent-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.h-display { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; }
.h-section { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; }
.h-card { font-size: 1.2rem; line-height: 1.3; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.65; color: var(--body-text); }
.on-dark .lede { color: rgba(255, 255, 255, 0.72); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 14px 28px -10px rgba(0, 102, 204, 0.45); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.15rem;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(15,23,42,0.02); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.logo-mark { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.logo-full { letter-spacing: -0.01em; }
.logo-full span { color: var(--blue-600); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links .btn-primary { display: none; }
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--body-text);
  position: relative; padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--blue-600); border-radius: 2px; transition: right 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-toggle {
  display: flex; align-items: center; border: 1.5px solid var(--line-strong);
  border-radius: 999px; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: 0.76rem;
}
.lang-toggle button {
  background: none; border: none; color: var(--body-text);
  padding: 0.4rem 0.7rem; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle button.active { background: var(--blue-600); color: var(--white); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: none; color: var(--body-text); flex-shrink: 0;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--blue-600); color: var(--blue-600); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  position: relative; z-index: 210;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions > .btn-primary { display: none; }
  .nav-links {
    position: fixed; inset: 0 0 0 26%; z-index: 200;
    background: var(--paper); flex-direction: column; justify-content: center; gap: 1.8rem;
    transform: translateX(100%); transition: transform 0.4s var(--ease), background-color 0.35s var(--ease);
    padding: 2rem; box-shadow: -20px 0 40px rgba(15,23,42,0.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-links .btn-primary { display: inline-flex; font-size: 0.95rem; margin-top: 0.5rem; align-self: flex-start; }
  .nav-actions .lang-toggle { display: none; }
}

/* Sticky sub-nav (anchor bar) */
.sub-nav {
  position: fixed; top: 77px; left: 0; right: 0; z-index: 90;
  background: var(--paper-alt);
  background: color-mix(in srgb, var(--paper-alt) 94%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.sub-nav .container { display: flex; gap: clamp(1.2rem, 3vw, 2.2rem); overflow-x: auto; scrollbar-width: none; }
.sub-nav .container::-webkit-scrollbar { display: none; }
.sub-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--body-text);
  padding-block: 0.85rem; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.sub-nav a:hover { color: var(--blue-600); border-bottom-color: var(--blue-600); }

.hero.has-subnav, .page-header.has-subnav { padding-top: clamp(9.5rem, 14vw, 12rem); }

@media (max-width: 640px) {
  .sub-nav { top: 69px; }
  .hero.has-subnav, .page-header.has-subnav { padding-top: clamp(8.5rem, 16vw, 10.5rem); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(8rem, 13vw, 10.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background: var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero-copy h1 { margin-bottom: 1.3rem; }
.hero-copy p.lede { max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-actions .btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.hero-actions .btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 2.6rem); flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-weight: 800; }
.hero-stats div span { font-family: var(--font-display); font-weight: 600; font-size: 0.76rem; color: var(--muted-text); }

/* 3D WebGL hero scene */
.hero3d-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-tight);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hero3d-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.hero3d-tag {
  position: absolute; left: 1.2rem; bottom: 1.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; color: var(--muted-text);
  display: flex; align-items: center; gap: 0.5em; pointer-events: none; text-transform: uppercase; letter-spacing: 0.05em;
}
.hero3d-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero3d-stage { aspect-ratio: 1 / 0.8; }
}

/* Hero headline reveal */
.line-mask { display: block; overflow: hidden; }
.line-inner {
  display: inline-block; transform: translateY(115%); opacity: 0;
  animation: lineUp 0.8s var(--ease) forwards;
}
.line-mask:nth-of-type(1) .line-inner { animation-delay: .1s; }
.line-mask:nth-of-type(2) .line-inner { animation-delay: .24s; }
@keyframes lineUp { to { transform: translateY(0); opacity: 1; } }
.line-inner.accent { color: var(--blue-600); }

.hero-fade { opacity: 0; transform: translateY(14px); animation: fadeUp 0.6s var(--ease) forwards; }
.hero-fade-0 { animation-delay: .02s; }
.hero-fade-1 { animation-delay: .42s; }
.hero-fade-2 { animation-delay: .54s; }
.hero-fade-3 { animation-delay: .66s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .line-inner, .hero-fade { animation: none !important; opacity: 1!important; transform: none!important; }
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); will-change: left, top;
}
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); }
.cursor-ring {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(0, 102, 204, 0.4);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.is-active { width: 54px; height: 54px; border-color: var(--blue-600); background: rgba(0, 102, 204, 0.08); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor .service-card { cursor: none; }
@media (max-width: 860px), (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==========================================================================
   Services grid (home preview + services page)
   ========================================================================== */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--line-strong); }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 1.3rem;
  background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue-600);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.6rem; font-weight: 700; }
.service-card p { color: var(--body-text); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.1rem; }
.service-card .card-link { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 0.4em; }
.service-card .card-link svg { width: 0.9em; height: 0.9em; transition: transform 0.3s var(--ease); }
.service-card:hover .card-link svg { transform: translateX(4px); }

@media (max-width: 980px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-6 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Value props
   ========================================================================== */
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-item .num { font-family: var(--font-display); font-weight: 800; color: var(--blue-600); font-size: 0.85rem; padding-top: 0.2rem; }
.value-item h4 { margin-bottom: 0.4rem; font-size: 1.08rem; }
.value-item p { color: var(--body-text); font-size: 0.94rem; line-height: 1.55; }
@media (max-width: 800px) { .value-strip { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ==========================================================================
   Responsive device mockup (phone + laptop, pure CSS)
   Bezels are intentionally fixed-dark in both themes, like real device hardware.
   ========================================================================== */
.device-showcase {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 3rem 1rem 1rem;
}
.device-laptop {
  width: min(560px, 100%); background: var(--ink-fixed); border-radius: 14px 14px 0 0;
  padding: 10px 10px 0; box-shadow: var(--shadow-hover);
}
.device-laptop .screen {
  background: var(--paper-alt); border-radius: 8px 8px 0 0; aspect-ratio: 16/10; overflow: hidden;
  display: grid; gap: 8px; padding: 14px; transition: background-color 0.35s var(--ease);
}
.device-laptop .bar { height: 8px; border-radius: 4px; background: var(--line-strong); }
.device-laptop .bar.w60 { width: 60%; } .device-laptop .bar.w40 { width: 40%; } .device-laptop .bar.w80 { width: 80%; }
.device-laptop .blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 4px; }
.device-laptop .blocks div { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, var(--blue-100), var(--paper-alt-2)); }
.device-laptop .base { height: 12px; background: var(--navy-800); border-radius: 0 0 6px 6px; }
.device-phone {
  width: 128px; background: var(--ink-fixed); border-radius: 22px; padding: 8px;
  box-shadow: var(--shadow-hover); margin-left: -2.5rem; margin-bottom: -1rem; position: relative; z-index: 2;
}
.device-phone .screen {
  background: var(--paper); border-radius: 15px; aspect-ratio: 9/18.5; overflow: hidden;
  display: grid; gap: 6px; padding: 10px 8px; border: 1px solid var(--line); transition: background-color 0.35s var(--ease);
}
.device-phone .notch { width: 34%; height: 5px; border-radius: 3px; background: var(--ink-fixed); margin: 0 auto 4px; }
.device-phone .bar { height: 6px; border-radius: 3px; background: var(--line); }
.device-phone .bar.w70 { width: 70%; } .device-phone .bar.w50 { width: 50%; }
.device-phone .chip { height: 34px; border-radius: 6px; background: linear-gradient(135deg, var(--blue-100), var(--paper-alt-2)); margin-top: 4px; }

@media (max-width: 560px) {
  .device-laptop { width: 100%; }
  .device-phone { width: 96px; margin-left: -1.6rem; }
}

/* ==========================================================================
   Testimonials — centered, minimal quote block
   ========================================================================== */
.testimonials { background: var(--paper-alt); transition: background-color 0.35s var(--ease); }
.testi-head { text-align: center; margin-bottom: 2.6rem; }
.testi-head .eyebrow { justify-content: center; }
.testi-head h2 { margin-top: 0.7rem; }
.testi-track-wrap { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.6s var(--ease); }
.testi-slide { flex: 0 0 100%; }
.testi-card {
  text-align: center;
  max-width: 720px; margin-inline: auto;
  padding-block: 0.5rem;
}
.testi-quote-mark { display: none; }
.testi-card p.quote {
  color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.45;
  margin-bottom: 1.8rem; letter-spacing: -0.01em;
}
.testi-person { display: flex; align-items: center; gap: 0.8rem; justify-content: center; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 0.85rem; }
.testi-person strong { display: block; color: var(--ink); font-size: 0.95rem; }
.testi-person span { font-family: var(--font-display); font-size: 0.8rem; color: var(--muted-text); }

.testi-controls { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 2.4rem; }
.testi-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--ink); display: grid; place-items: center; transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.testi-arrow:hover { border-color: var(--blue-600); color: var(--blue-600); }
.testi-arrow svg { width: 16px; height: 16px; }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); border: none; padding: 0; transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
.testi-dots button.active { background: var(--blue-600); transform: scale(1.3); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--blue-600);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { max-width: 22ch; color: var(--white); }
.cta-banner .btn-primary { background: var(--white); color: var(--blue-700); }
.cta-banner .btn-primary:hover { background: var(--paper-alt); box-shadow: 0 14px 28px -10px rgba(0,0,0,0.25); }

/* ==========================================================================
   Footer — always dark, regardless of site theme
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; line-height: 1.6; max-width: 32ch; color: var(--footer-text); }
.footer-col h5 { font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--accent-soft); margin-bottom: 1rem; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.footer-social a:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page header (services / contact)
   ========================================================================== */
.page-header {
  background: var(--paper-alt);
  padding-top: clamp(7.5rem, 12vw, 9.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.page-header h1 { margin-top: 1rem; max-width: 24ch; }
.page-header p.lede { margin-top: 1.1rem; max-width: 55ch; }

/* ==========================================================================
   Services detail rows
   ========================================================================== */
.service-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.6rem);
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-row.reverse .service-visual { order: 2; }
.service-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: var(--paper-alt); border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color 0.35s var(--ease);
}
.service-visual svg { width: 42%; height: 42%; color: var(--blue-600); opacity: 0.9; }
.service-visual svg.illustration { width: 88%; height: 88%; opacity: 1; }
.service-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; color: var(--blue-600); margin-bottom: 0.7rem; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.service-copy h2 { margin-bottom: 0.9rem; }
.service-copy p.lede { margin-bottom: 1.3rem; }
.service-copy ul { display: grid; gap: 0.6rem; }
.service-copy li { display: flex; gap: 0.6em; align-items: flex-start; font-size: 0.95rem; color: var(--body-text); }
.service-copy li svg { width: 1.1em; height: 1.1em; flex-shrink: 0; margin-top: 0.15em; color: var(--blue-600); }

@media (max-width: 800px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-visual { order: 0; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: flex-start; }
.contact-form-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-tight); border: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.field { margin-bottom: 1.4rem; position: relative; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--ink); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); font-family: var(--font-body); font-size: 0.98rem;
  background: var(--paper); color: var(--ink); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.35s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-50); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field-hidden { position: absolute; left: -9999px; opacity: 0; }
.form-msg { margin-top: 1rem; font-size: 0.9rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #e6f7f0; color: #0a7a4d; }
.form-msg.error { background: #fdeeee; color: #b5382c; }
html[data-theme="dark"] .form-msg.success { background: rgba(10, 122, 77, 0.2); color: #4ade80; }
html[data-theme="dark"] .form-msg.error { background: rgba(181, 56, 44, 0.2); color: #f87171; }

.contact-info-card {
  background: var(--ink-fixed); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item .icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-item .icon svg { width: 18px; height: 18px; color: var(--accent-soft); }
.contact-info-item h4 { font-size: 0.9rem; margin-bottom: 0.25rem; color: var(--white); }
.contact-info-item p, .contact-info-item a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.contact-info-item a:hover { color: var(--white); }
.contact-note {
  margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.6;
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
