/* =============================================================
   süd.cleaning — Website Design System
   Same DNA as the pitch deck. SF Pro font stack.
   ============================================================= */

:root {
  /* ---------- Type stack (SF Pro family + system fallbacks) ---------- */
  --ff-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ff-text:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ff-rounded: ui-rounded, "SF Compact Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --ff-mono:    ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;

  /* ---------- Type scale (web) ---------- */
  --t-display: clamp(64px, 8.5vw, 132px);
  --t-h1:      clamp(48px, 6vw,  96px);
  --t-h2:      clamp(36px, 4.2vw, 64px);
  --t-h3:      clamp(24px, 2.2vw, 32px);
  --t-lede:    clamp(20px, 1.5vw, 26px);
  --t-body:    18px;
  --t-small:   16px;
  --t-micro:   13px;

  /* ---------- Spacing ---------- */
  --pad-x:  clamp(24px, 5vw, 110px);
  --sec-y:  clamp(96px, 11vw, 180px);
  --gap-l:  64px;
  --gap-m:  32px;
  --gap-s:  16px;

  /* ---------- Palette: warm off-white + teal accent ---------- */
  --bg:        #faf8f4;
  --bg-soft:   #f1ede5;
  --bg-deep:   #efe9dd;
  --ink:       #14181d;
  --ink-soft:  #4a5560;
  --ink-mute:  #8a939d;
  --line:      #1a1f25;
  --line-soft: rgba(20, 24, 29, 0.08);
  --line-x:    rgba(20, 24, 29, 0.14);
  --card:      #ffffff;

  --accent:      oklch(0.58 0.085 196);
  --accent-soft: oklch(0.94 0.025 196);
  --accent-ink:  oklch(0.32 0.06 196);
  --accent-glow: oklch(0.58 0.085 196 / 0.20);

  /* ---------- Misc ---------- */
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 var(--line-soft);
  --shadow-hover: 0 18px 40px -20px rgba(20, 24, 29, 0.18), 0 2px 0 var(--line-soft);
}

[data-theme="dark"] {
  --bg:        #0e1216;
  --bg-soft:   #161b21;
  --bg-deep:   #0a0d10;
  --ink:       #f3efe7;
  --ink-soft:  #b5bcc4;
  --ink-mute:  #6f7884;
  --line:      #f3efe7;
  --line-soft: rgba(243, 239, 231, 0.10);
  --line-x:    rgba(243, 239, 231, 0.18);
  --card:      #181d23;

  --accent-soft: oklch(0.25 0.05 196);
  --accent-ink:  oklch(0.85 0.07 196);
  --shadow-hover: 0 18px 40px -20px rgba(0,0,0,0.6), 0 2px 0 var(--line-soft);
}

/* =============================================================
   Base
   ============================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection {
  background: color-mix(in oklch, var(--accent) 35%, transparent);
  color: var(--ink);
}

/* =============================================================
   Typography utilities
   ============================================================= */
.display, h1.display {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--t-display);
  line-height: 0.93;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.h1 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0;
}
.lede {
  font-family: var(--ff-text);
  font-weight: 400;
  font-size: var(--t-lede);
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
  max-width: 60ch;
}
.body { font-size: var(--t-body); color: var(--ink-soft); line-height: 1.55; max-width: 64ch; }
.body p { margin: 0 0 1em; }
.small { font-size: var(--t-small); color: var(--ink-soft); }

.micro {
  font-family: var(--ff-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.accent-text { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.center::after  { display: none; }

/* =============================================================
   Wordmark
   ============================================================= */
.wordmark {
  font-family: var(--ff-rounded);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.wordmark .dot { color: var(--accent); }
.wordmark.lg { font-size: clamp(56px, 8vw, 132px); letter-spacing: -0.045em; }

/* =============================================================
   Layout
   ============================================================= */
.container {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  max-width: 1680px;
  margin: 0 auto;
}
.section {
  padding: var(--sec-y) var(--pad-x);
  position: relative;
}
.section.tight { padding-top: calc(var(--sec-y) * 0.7); padding-bottom: calc(var(--sec-y) * 0.7); }
.section.dark {
  background: var(--ink);
  color: var(--bg);
}
.section.dark .lede,
.section.dark .body,
.section.dark .small { color: rgba(250, 248, 244, 0.7); }
.section.dark .micro,
.section.dark .eyebrow { color: rgba(250, 248, 244, 0.55); }

.row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap-l);
  align-items: end;
}
@media (max-width: 880px) {
  .row { grid-template-columns: 1fr; gap: var(--gap-m); align-items: start; }
}

/* =============================================================
   Decorative motifs (dot grid + soft blob)
   ============================================================= */
.dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
[data-motif="off"] .dotgrid { display: none; }
[data-motif="off"] .blob   { display: none; }
.section.dark .dotgrid {
  background-image: radial-gradient(circle at 1px 1px, var(--bg) 1px, transparent 0);
  opacity: 0.04;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.blob.accent { background: var(--accent); }
.blob.soft   { background: var(--accent-soft); opacity: 0.9; filter: blur(60px); }

.section > * { position: relative; z-index: 1; }

/* =============================================================
   Top navigation (sticky)
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-mute);
  transition: all 0.15s;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .arrow {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 10px;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* mobile menu */
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after  { top: 5px; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  padding: 100px var(--pad-x) 40px;
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-menu-foot {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

/* compact nav for phones — language toggle + CTA move into the menu */
@media (max-width: 640px) {
  .nav-right .lang-toggle,
  .nav-right .nav-cta { display: none; }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 18px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.btn .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 90%, var(--ink)); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-x);
}
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-ghost .arrow { background: var(--accent); color: var(--ink); }

.section.dark .btn-ghost {
  color: var(--bg);
  border-color: rgba(250,248,244,0.18);
}
.section.dark .btn-ghost:hover { border-color: var(--bg); background: rgba(250,248,244,0.04); }

/* call-style link */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}
.btn-call:hover { border-bottom-color: var(--accent); }
.btn-call .ico { color: var(--accent); }

/* =============================================================
   Cards
   ============================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 36px 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-x); }
.card .idx {
  font-family: var(--ff-mono);
  font-size: var(--t-micro);
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.card .ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.card .ico.circle {
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .card .ico.circle { color: var(--ink); }

.card h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
}
.card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* =============================================================
   Pills / badges
   ============================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 22%, transparent);
  flex-shrink: 0;
}
.pill .dot.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 22%, transparent); }
  50%      { box-shadow: 0 0 0 9px color-mix(in oklch, var(--accent) 8%, transparent); }
}

/* =============================================================
   Photo placeholder
   ============================================================= */
.placeholder {
  position: relative;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-soft) 0px, var(--bg-soft) 12px,
      transparent 12px, transparent 24px
    ),
    var(--bg-deep);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  color: var(--ink-mute);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.placeholder .ph-label {
  background: var(--card);
  border: 1px solid var(--line-soft);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--ink-soft);
  max-width: 100%;
}
.placeholder.tall  { aspect-ratio: 4/5; }
.placeholder.wide  { aspect-ratio: 16/10; }
.placeholder.square { aspect-ratio: 1/1; }

/* Filled state — placeholder hosts a real image */
.placeholder.filled {
  background: var(--bg-soft);
  padding: 0;
  display: block;
}
.placeholder.filled > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.placeholder.filled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,24,29,0.22) 100%);
  pointer-events: none;
}
.placeholder.filled .ph-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in oklch, var(--card) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--line-soft);
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
  max-width: calc(100% - 36px);
}
.placeholder.filled .ph-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  padding: clamp(64px, 7vw, 110px) var(--pad-x) 48px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer h4 {
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-soft); font-size: 15px; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* =============================================================
   Sticky mini-CTA
   ============================================================= */
.sticky-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.4), 0 4px 12px -6px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sticky-cta.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sticky-cta .arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid; place-items: center;
}

/* =============================================================
   Animations / reveal
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1), transform 0.7s cubic-bezier(.22, 1, .36, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* page transition (very subtle) — safe: default state is fully visible */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  main { animation: pageFadeIn 0.5s ease; }
}
