/* =========================================================
   Caveo Consult ApS — V2 design system
   Clean & corporate · minimal · refreshed palette
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand / neutrals */
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eaf1f9;
  --line: #e3e9f1;
  --ink: #0c1c2e;          /* headings, dark sections */
  --ink-soft: #12263c;
  --text: #223247;         /* body */
  --muted: #5d6b7e;        /* secondary text / EN language */
  --brand: #1d57e4;        /* primary accent */
  --brand-600: #1747be;    /* hover */
  --brand-50: #eaf0fd;     /* light tint */

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12,28,46,.06), 0 1px 1px rgba(12,28,46,.04);
  --shadow: 0 18px 40px -22px rgba(12,28,46,.35);
  --shadow-lg: 0 30px 60px -28px rgba(12,28,46,.45);
  --ring: 0 0 0 4px rgba(29,87,228,.16);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 116px);

  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #cdd8e6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--ink .eyebrow { color: #8fb0ff; }
.section--ink .eyebrow::before { background: #8fb0ff; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; }
h1 { font-size: clamp(2.35rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.65; }
.text-muted { color: var(--muted); }
.lang-en { color: var(--muted); }             /* secondary language */
.lang-en--onlight { color: var(--muted); }
.section--ink .lang-en { color: #93a4b8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(29,87,228,.8); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef3fb; color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 40px; height: 34px; color: var(--brand); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); }
.brand-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  color: var(--ink); padding: .6rem .9rem; border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--brand); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand); }
.nav-link .caret { width: 14px; height: 14px; opacity: .6; transition: transform .2s ease; }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.dropdown a:hover { background: var(--surface); color: var(--brand); }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(29,87,228,.10), transparent 60%),
    linear-gradient(180deg, var(--surface), #fff 70%);
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { margin-bottom: 20px; }
.hero .hero-sub { max-width: 46ch; margin-bottom: 14px; }
.hero .btn-row { margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-badge .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; }
.hero-badge .lbl { font-size: .86rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.hero-media .float-card {
  position: absolute; left: -26px; bottom: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.hero-media .float-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.hero-media .float-card .ic svg { width: 22px; height: 22px; }
.hero-media .float-card strong { font-family: var(--font-head); color: var(--ink); font-size: .96rem; display: block; }
.hero-media .float-card span { font-size: .8rem; color: var(--muted); }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .ic svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 6px; }
.card .en-sub { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; font-family: var(--font-head); font-weight: 600; }
.card p { font-size: .98rem; }
.card .link-arrow { margin-top: 18px; }

/* Media card (image on top) */
.media-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.media-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media-card:hover .thumb img { transform: scale(1.05); }
.media-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; }
.split-body p + p { margin-top: 1rem; }
.split-body h2 { margin-bottom: 20px; }

/* ---------- Profile / person ---------- */
.person { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.person .avatar { width: 92px; height: 92px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-sm); border: 3px solid #fff; }
.person .role { color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* ---------- Tag list (expertise) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: .86rem; font-weight: 500; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .5rem .95rem;
}
.section--ink .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #dbe5f1; }

/* ---------- Numbered / feature list ---------- */
.feature-list { display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.feature-list .check svg { width: 15px; height: 15px; }
.section--ink .feature-list .check { background: rgba(143,176,255,.16); color: #a9c1ff; }

/* ---------- Project / board cards ---------- */
.stack-cards { display: grid; gap: 20px; }
.entry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
.entry:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.entry .kicker { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.entry h3 { margin: 8px 0 6px; }
.entry .meta { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.entry .pill { display: inline-block; font-size: .74rem; font-weight: 600; font-family: var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border-radius: var(--radius-pill); padding: .28rem .7rem; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; letter-spacing: -.02em; }
.stat .lbl { color: #9fb0c4; font-size: .92rem; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(40px, 6vw, 72px); background: linear-gradient(135deg, #12263c, #0c1c2e); color: #fff; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 100% 0%, rgba(29,87,228,.35), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; max-width: 22ch; }
.cta-band p { color: #b9c6d6; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { display: grid; gap: 8px; margin-top: 30px; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; transition: background .15s ease; }
.info-item:hover { background: var(--surface); }
.info-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-item .k { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.info-item .v { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.35; word-break: break-word; }
.info-item:hover .v { color: var(--brand); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fdfefe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; font-family: var(--font-head); color: var(--brand); display: none; }
.form-status.show { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Map frame ---------- */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9b6c6; padding-block: clamp(48px, 6vw, 72px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand .logo-mark { color: #fff; }
.site-footer .brand-tag { color: #7f8ea0; }
.footer-about { margin-top: 18px; font-size: .95rem; max-width: 34ch; color: #93a4b8; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #a9b6c6; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a { color: #cdd8e6; display: inline-flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; color: #8fb0ff; flex: none; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #cdd8e6; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7f8ea0; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16/10; }
  .hero-media .float-card { left: 16px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu, .nav-cta .btn { display: none; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 14px var(--gutter) 26px; gap: 2px; max-height: calc(100vh - 74px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  body.nav-open .nav-menu { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: .85rem .4rem; font-size: 1.05rem; border-radius: 8px; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li:last-child { border-bottom: 0; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 10px 14px; min-width: 0;
  }
  .has-dropdown .caret { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 18px; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .btn:hover, .entry:hover { transform: none !important; }
}
