/*
Theme Name: Robanchor Theme
Theme URI: https://robanchor.com
Author: BessRe group
Description: Robanchor — Robot Service Benelux. Design restored 1:1 from Lovable original.
Version: 1.1.0
License: GPL-3.0-or-later
*/

:root {
  --navy: oklch(24% .05 258);
  --navy-deep: oklch(19% .05 258);
  --teal: oklch(72% .13 180);
  --teal-tint: oklch(96% .03 180);
  --ice: oklch(82% .03 250);
  --ink: oklch(28% .03 258);
  --surface: oklch(97% .006 250);
  --background: oklch(100% 0 0);
  --muted: oklch(55% .03 258);
  --border: oklch(90% .01 250);
  --destructive: oklch(60% .22 27);
  --radius: .5rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 4.5vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.container-page { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* fade-up animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: .7s ease-out both fadeUp; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 120;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.site .hd {
  max-width: 80rem; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; height: 64px;
}
header.site .wordmark {
  font-weight: 800; font-size: 1.3rem; text-decoration: none;
  display: flex; align-items: baseline; gap: 2px;
}
header.site .wordmark .rob { color: #fff; }
header.site .wordmark .anchor { color: var(--teal); }
header.site .wordmark small {
  font-weight: 500; font-size: .72rem; color: var(--ice); margin-left: 8px;
}
nav.main { display: flex; align-items: center; gap: 4px; margin-left: auto; }
nav.main a {
  color: var(--ice); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; white-space: nowrap;
}
nav.main a:hover { color: #fff; background: rgba(255,255,255,.08); }
nav.main a.cta {
  background: var(--teal); color: var(--navy); font-weight: 700; margin-left: 8px;
}
nav.main a.cta:hover { background: var(--teal); filter: brightness(.95); }
details.dd { position: relative; }
details.dd summary {
  list-style: none; cursor: pointer; color: var(--ice);
  font-size: .92rem; font-weight: 600; padding: 8px 12px; border-radius: 6px;
}
details.dd summary::-webkit-details-marker { display: none; }
details.dd[open] summary { color: #fff; }
.dd-menu {
  position: absolute; top: 100%; right: 0; z-index: 200;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  min-width: 220px; padding: 8px; display: flex; flex-direction: column;
}
details.dd:not(.lang) .dd-menu { left: 0; right: auto; }
.dd-menu a { padding: 9px 12px; color: var(--ink); }
.dd-menu a:hover { background: var(--surface); }
details.dd.lang .dd-menu { min-width: 130px; }

.navtoggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
}
.hero .hero-bg { position: absolute; inset: 0; }
.hero .hero-bg video, .hero .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .hero-bg .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, oklch(24% .05 258 / .85), oklch(24% .05 258 / .60), oklch(24% .05 258 / .35));
}
.hero .container-page, .hero .wrap { position: relative; z-index: 10; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lede { font-size: 1.2rem; color: var(--ice); max-width: 40rem; }
.hero .kicker {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; color: var(--teal); margin-bottom: 24px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero .route { margin-top: 64px; display: flex; align-items: center; gap: 16px; font-size: .75rem; color: oklch(82% .03 250 / .8); letter-spacing: .1em; }

.btn { display: inline-block; padding: 14px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: .95rem; transition: all .15s ease; }
.btn.primary { background: var(--teal); color: var(--navy); }
.btn.primary:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }

/* Stats band — 浅色底，对齐旧站 */
.stats { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .wrap { padding: 32px 20px; }
.stats .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .num { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); line-height: 1.35; }
.stat .label { margin-top: 6px; font-size: .75rem; color: var(--muted); line-height: 1.6; }

/* Story video block */
.story { background: var(--surface); }
.story .story-head { max-width: 56rem; margin: 0 auto; text-align: center; margin-bottom: 32px; }
.story .eyebrow { text-align: center; }
.story .story-video { max-width: 56rem; margin: 0 auto; }
.story .story-video .frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); background: var(--navy);
}
.story .story-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 28px; transition: all .15s ease; }
.card:hover { border-color: var(--teal); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .92rem; }

/* Footer */
footer.site { background: var(--navy-deep); color: var(--ice); padding: 48px 0 32px; font-size: .88rem; }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; font-size: .9rem; }
footer.site a { color: var(--ice); text-decoration: none; display: block; margin: 6px 0; }
footer.site a:hover { color: var(--teal); }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; color: var(--muted); font-size: .78rem; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }

/* Mobile */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navtoggle { display: block; margin-left: auto; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); flex-direction: column; align-items: stretch; padding: 16px 24px; }
  nav.main.open { display: flex; }
  nav.main a, details.dd summary { padding: 12px 8px; font-size: 1rem; }
  .dd-menu { position: static; box-shadow: none; border: none; padding: 0 0 4px 16px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .hero .container-page, .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
}
