/* ============================================================
   KILYX AG — Global Stylesheet
   Aesthetic: refined Swiss-corporate. Deep ink, warm paper,
   a single confident accent. Editorial spacing, sharp grid.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --ink:        #15211f;
  --ink-soft:   #2c3a37;
  --paper:      #f6f3ec;
  --paper-2:    #efe9dd;
  --line:       #d8d0c1;
  --accent:     #c2470d;
  --accent-2:   #e0631f;
  --teal:       #1d5d54;
  --teal-soft:  #28796d;
  --muted:      #6b756f;
  --white:      #fffdf8;
  --radius:     2px;
  --maxw:       1180px;
  --shadow:     0 18px 50px -28px rgba(21,33,31,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', serif; line-height: 1.08; font-weight: 600; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 20px; }
.topbar a:hover { color: var(--accent-2); }
.topbar .tb-right { display: flex; gap: 22px; }
@media (max-width: 720px){ .topbar .tb-left{ display:none; } .topbar .wrap{ justify-content:center; } }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,243,236,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 25px; letter-spacing: -.02em; }
.brand .ag { font-family:'Archivo',sans-serif; font-size: 12px; font-weight: 600; letter-spacing:.22em; color: var(--accent); border:1px solid var(--accent); padding: 2px 6px; border-radius: 2px; transform: translateY(-3px); }
nav.main { display: flex; gap: 30px; align-items: center; }
nav.main a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
nav.main a::after { content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--accent); transition: width .25s ease; }
nav.main a:hover::after, nav.main a.active::after { width: 100%; }
nav.main a.active { color: var(--ink); }
.btn {
  display: inline-block; background: var(--accent); color: var(--white);
  padding: 12px 22px; font-family:'Archivo',sans-serif; font-weight: 600; font-size: 15px;
  border-radius: var(--radius); transition: background .2s ease, transform .2s ease; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.teal { background: var(--teal); } .btn.teal:hover{ background: var(--teal-soft); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

@media (max-width: 920px){
  nav.main { position: fixed; inset: 116px 0 auto 0; flex-direction: column; background: var(--paper); padding: 24px 28px 32px; border-bottom: 1px solid var(--line); gap: 18px; align-items: flex-start; transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow); }
  nav.main.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  header.site .wrap .btn { display:none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(closest-side at 82% 18%, rgba(194,71,13,.30), transparent 70%),
    radial-gradient(closest-side at 10% 90%, rgba(29,93,84,.40), transparent 70%);
}
.hero .grid-lines { position:absolute; inset:0; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 38px; opacity:.05; }
.hero .wrap { position: relative; padding: 96px 28px 104px; max-width: var(--maxw); }
.eyebrow { display:inline-flex; align-items:center; gap:10px; font-family:'Archivo',sans-serif; font-size: 13px; font-weight:600; letter-spacing:.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 26px; }
.eyebrow::before { content:''; width:30px; height:1px; background: var(--accent-2); display:inline-block; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p.lead { margin-top: 26px; max-width: 56ch; font-size: 1.2rem; color: #d6cfbf; }
.hero .cta-row { margin-top: 38px; display:flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--accent); }
.section-head .eyebrow::before { background: var(--accent); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .section-head p { color:#c9c2b2; }
.bg-ink .eyebrow { color: var(--accent-2); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid.cols-3,.grid.cols-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid.cols-2,.grid.cols-3,.grid.cols-4{ grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card .num { font-family:'Fraunces',serif; font-size: 14px; color: var(--accent); font-weight:600; letter-spacing:.05em; }
.card h3 { font-size: 1.4rem; margin: 14px 0 12px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 18px; font-family:'Archivo',sans-serif; font-weight:600; font-size:.9rem; color: var(--accent); display:inline-flex; align-items:center; gap:8px; }
.card .more span { transition: transform .2s ease; }
.card:hover .more span { transform: translateX(4px); }
.icon { width: 46px; height: 46px; border-radius: 4px; background: var(--paper-2); display:flex; align-items:center; justify-content:center; color: var(--teal); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden; background: var(--white); }
.stats .stat { padding: 34px 26px; border-right: 1px solid var(--line); }
.stats .stat:last-child { border-right: none; }
.stats .stat .big { font-family:'Fraunces',serif; font-size: 2.4rem; font-weight:600; color: var(--teal); }
.stats .stat .lbl { font-size: .92rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px){ .stats{ grid-template-columns: 1fr 1fr; } .stats .stat:nth-child(2){ border-right:none; } .stats .stat:nth-child(1),.stats .stat:nth-child(2){ border-bottom:1px solid var(--line);} }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; gap: 36px; } }
.split ul.checks { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.split ul.checks li { display:flex; gap: 14px; align-items: flex-start; }
.split ul.checks li::before { content:''; flex: 0 0 22px; height: 22px; margin-top:3px; border-radius: 50%; background: var(--teal); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/16px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/16px no-repeat; }
.media-frame { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 28px; position: relative; }
.media-frame .tag { position:absolute; top:-13px; left: 24px; background: var(--accent); color:#fff; font-size:12px; font-weight:600; letter-spacing:.12em; padding:5px 12px; border-radius: 2px; }

/* mini bar chart decoration */
.barchart { display:flex; align-items:flex-end; gap:12px; height: 200px; }
.barchart .bar { flex:1; background: linear-gradient(var(--teal-soft), var(--teal)); border-radius: 3px 3px 0 0; position:relative; }
.barchart .bar:nth-child(4){ background: linear-gradient(var(--accent-2), var(--accent)); }
.barchart .bar span { position:absolute; top:-22px; left:0; right:0; text-align:center; font-size:12px; color: var(--muted); font-weight:600; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { counter-increment: step; font-family:'Fraunces',serif; font-size: 1.8rem; color: var(--accent); }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); color: var(--white); border-radius: var(--radius); padding: 60px; display:flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow:hidden; }
.cta-band::after { content:''; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border:40px solid rgba(255,255,255,.06); border-radius:50%; }
.cta-band h2 { font-size: 2rem; max-width: 18ch; }
.cta-band .btn { background: var(--white); color: var(--teal); }
.cta-band .btn:hover { background: var(--paper); }

/* ---------- Article / legal page ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: 70px 0 60px; position: relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(closest-side at 88% 30%, rgba(194,71,13,.25), transparent 70%); }
.page-hero .wrap { position: relative; }
.page-hero .crumbs { font-size: 13px; color: #b8b1a2; margin-bottom: 18px; letter-spacing:.04em; }
.page-hero .crumbs a:hover { color: var(--accent-2); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero p { margin-top: 18px; color:#d6cfbf; max-width: 58ch; }

.prose { max-width: 760px; margin: 0 auto; padding: 70px 0; }
.prose h2 { font-size: 1.7rem; margin: 42px 0 14px; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { color: var(--muted); font-size: .9rem; border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 30px; }
.prose table { width:100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); font-family:'Archivo',sans-serif; }

/* service detail layout */
.svc-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding: 70px 0; align-items: start; }
@media (max-width: 940px){ .svc-layout{ grid-template-columns: 1fr; } }
.svc-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.svc-side .panel { border:1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; }
.svc-side .panel h4 { font-family:'Archivo',sans-serif; font-size: 13px; letter-spacing:.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.svc-side .panel a { display:block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.svc-side .panel a:last-child { border-bottom: none; }
.svc-side .panel a:hover { color: var(--accent); }
.svc-side .panel a.cur { color: var(--accent); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; gap: 40px; } }
.field { margin-bottom: 20px; }
.field label { display:block; font-size: 14px; font-weight: 600; margin-bottom: 7px; font-family:'Archivo',sans-serif; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-family:'Archivo',sans-serif; font-size: 15px; color: var(--ink); transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display:flex; gap:12px; align-items:flex-start; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.info-block { display:grid; gap: 22px; }
.info-item { border-left: 3px solid var(--teal); padding-left: 16px; }
.info-item .k { font-size: 12px; letter-spacing:.12em; text-transform: uppercase; color: var(--muted); font-family:'Archivo',sans-serif; }
.info-item .v { font-size: 1.05rem; margin-top: 4px; }
.info-item .v a:hover { color: var(--accent); }
#formStatus { margin-top: 16px; font-weight: 600; }
.map-frame { margin-top: 26px; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width:100%; height: 260px; border:0; display:block; filter: grayscale(.25); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family:'Fraunces',serif; font-size: 1.2rem; display:flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content:'+'; color: var(--accent); font-family:'Archivo',sans-serif; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #c9c2b2; padding: 70px 0 30px; font-size: 14px; }
footer.site .cols { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px){ footer.site .cols{ grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ footer.site .cols{ grid-template-columns: 1fr; } }
footer.site .brand { color: var(--paper); margin-bottom: 14px; }
footer.site h5 { font-family:'Archivo',sans-serif; font-size: 12px; letter-spacing:.16em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
footer.site a:hover { color: var(--accent-2); }
footer.site ul { list-style: none; display:grid; gap: 9px; }
footer.site .legal-line { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display:flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #9a9488; }
footer.site .legal-line a { margin-left: 16px; }
.company-reg { line-height: 1.9; }
.company-reg strong { color: var(--paper); font-weight: 600; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* cookie banner */
#cookieBanner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); z-index: 200; display: none; font-size: 14px;
}
#cookieBanner.show { display: block; animation: slideup .4s ease; }
@keyframes slideup { from { transform: translateY(20px); opacity:0; } to { transform: none; opacity:1; } }
#cookieBanner p { margin-bottom: 16px; color:#d6cfbf; }
#cookieBanner p a { color: var(--accent-2); text-decoration: underline; }
#cookieBanner .cb-actions { display:flex; gap: 12px; flex-wrap: wrap; }
#cookieBanner .btn { padding: 10px 18px; font-size: 14px; }
