/* Buildevia — public site */
:root {
  --primary: #2346D6;
  --accent: #E8A92E;
  --ink: #172033;
  --paper: #FFFFFF;
  --mist: #F2F4F8;
  --line: #DCE1EA;
  --muted: #566074;
  --radius-s: 6px;
  --radius-m: 14px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; color: inherit; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: .95rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--primary); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-small { padding: .62rem 1.05rem; font-size: .95rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: .4rem 0; font: 500 .95rem var(--font-body); color: var(--primary); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 750 1.4rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand img { max-height: 42px; width: auto; }
.mark { width: 30px; height: 30px; color: var(--primary); flex: none; }
.mark .mark-start { fill: #fff; }
.mark .mark-end { fill: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .45rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { border-color: var(--line); }
.site-nav ul a[aria-current="page"] { border-color: var(--primary); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { color: var(--primary); border-color: var(--line); }
}

/* Dotted map grid used behind hero areas */
.hero, .page-head {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1.2px, transparent 0);
  background-size: 26px 26px;
}

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-slogan { font-weight: 600; color: var(--primary); margin-bottom: 1.1rem; font-size: 1.05rem; }
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.route { width: 100%; height: auto; overflow: visible; }
.route-line {
  fill: none; stroke: var(--primary); stroke-width: 11;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: route-draw 1.8s cubic-bezier(.55, .05, .25, 1) .15s forwards;
}
.station { opacity: 0; animation: station-in .35s ease-out forwards; animation-delay: var(--d); }
.station circle { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.station text { font: 600 16px var(--font-body); fill: var(--ink); }
.station-end .st-outer { fill: var(--accent); stroke: var(--ink); stroke-width: 4; }
.station-end .st-inner { fill: var(--ink); stroke: none; }
.station-end text { font-weight: 700; }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes station-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .station text { font-size: 21px; }
  .hero-visual { max-width: 560px; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-mist { background: var(--mist); }
.section-title { margin-bottom: 2rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.75rem; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
.section-link { margin-top: .75rem !important; font-weight: 600; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Services: stops on the line */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .5rem 3rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service-list h3 { display: flex; align-items: center; gap: .9rem; margin: 0; font-size: 1.35rem; }
.service-list h3::before { content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%; border: 3.5px solid var(--primary); background: #fff; }
.service-list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .service-list li { grid-template-columns: 1fr; } }

/* Process: a real sequence */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.process li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.process li::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font: 700 1.05rem var(--font-display);
}
.process li::after { content: ""; position: absolute; top: 1.25rem; left: 2.6rem; right: -2rem; height: 3px; background: var(--primary); opacity: .35; }
.process li:last-child::after { display: none; }
.process p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .process li:nth-child(2n)::after { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .process li::after { display: none; } }

/* Products */
.product-list { border-top: 1px solid var(--line); }
.product { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.product[hidden] { display: none; }
.product-media { width: 96px; height: 96px; border-radius: var(--radius-m); overflow: hidden; background: var(--mist); display: grid; place-items: center; text-decoration: none; flex: none; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-initial { width: 100%; height: 100%; display: grid; place-items: center; font: 800 2.3rem var(--font-display); color: #fff; background: var(--primary); }
.product-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; color: var(--muted); margin: 0 0 .35rem; }
.product-meta .cat { color: var(--primary); font-weight: 600; }
.product h3 { margin: 0 0 .35rem; font-size: 1.4rem; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--primary); }
.product-body p:last-child { margin: 0; color: var(--muted); }
.product-action { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; text-align: right; }
.price { font-weight: 600; }
.soon { display: inline-block; font-size: .95rem; color: var(--muted); border: 1px dashed #b9c1cf; border-radius: 999px; padding: .55rem 1rem; }
@media (max-width: 700px) {
  .product { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; }
  .product-media { width: 64px; height: 64px; border-radius: 10px; }
  .product-initial { font-size: 1.6rem; }
  .product-action { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter { font: 500 .95rem var(--font-body); padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { font-size: 1.15rem; color: var(--muted); padding: 2rem 0; }

/* Inner page header */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.25rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head p { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0; }
.back { display: inline-block; margin-bottom: 1.5rem; font-weight: 500; }
.product-title { display: flex; gap: 1.5rem; align-items: center; }
.product-title h1 { margin-bottom: .3em; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.product-media-lg { width: 112px; height: 112px; }
@media (max-width: 600px) { .product-title { flex-direction: column; align-items: flex-start; } .product-media-lg { width: 80px; height: 80px; } }
.page-404 .hero-actions { margin-top: 1.75rem; }

/* Product detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.detail-aside { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; background: #fff; }
.detail-price { font: 700 1.6rem var(--font-display); margin-bottom: 1rem; }
.detail-aside .soon { width: 100%; text-align: center; }
.detail-aside dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 1.4rem 0 0; font-size: .95rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.detail-aside dt { color: var(--muted); }
.detail-aside dd { margin: 0; text-align: right; font-weight: 500; }
.aside-note { font-size: .95rem; color: var(--muted); margin: 1.1rem 0 0; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; order: -1; } }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2b3446; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--radius-m); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(2rem, 6vw, 5rem); }
.about-aside .mark { width: 64px; height: 64px; margin-bottom: 1.25rem; }
.about-slogan { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.025em; max-width: 14ch; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.25rem; }
.value { border-top: 3px solid var(--primary); padding-top: 1.1rem; }
.value p { color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* Call-to-action band */
.band { background: var(--primary); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band h2 { margin-bottom: .3em; }
.band p { margin: 0; color: rgba(255, 255, 255, .85); }

/* Contact */
.contact { background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.contact p { color: rgba(255, 255, 255, .78); }
.contact a { color: #fff; }
.contact-direct { margin-top: 1.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.field .opt { font-weight: 400; opacity: .7; }
.field input, .field textarea {
  width: 100%; font: inherit; color: #fff;
  padding: .85rem 1rem; border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-s); margin: 0 0 1rem; max-width: none; }
.notice-success { background: #E3F4E8; color: #14532D; }
.notice-error { background: #FDE8E8; color: #7F1D1D; }

/* Donate */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: start; }
.donate-block { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.6rem; background: #fff; }
.donate-block h2 { font-size: 1.45rem; }
.donate-block > p { color: var(--muted); }
.pay-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.wallet { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.wallet label { display: block; font-weight: 600; margin-bottom: .4rem; }
.wallet-row { display: flex; gap: .5rem; }
.wallet input { flex: 1; min-width: 0; font: 500 .88rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--mist); color: var(--ink); }
.qr { display: none; margin-top: .5rem; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); width: fit-content; }
.qr.open { display: block; }
.bank { white-space: pre-line; background: var(--mist); padding: 1rem; border-radius: var(--radius-s); margin: 0; color: var(--ink) !important; }
.donate-thanks { margin-top: 2rem; font: 600 1.15rem var(--font-display); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 3.75rem 0 2rem; font-size: .97rem; }
.contact + .site-footer, main:has(> .contact:last-child) + .site-footer { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; }
.brand-light { color: #fff; }
.brand-light .mark { color: #fff; }
.brand-light .mark .mark-start { fill: var(--ink); }
.footer-slogan { font: 700 1.45rem/1.2 var(--font-display); color: #fff; letter-spacing: -0.02em; margin: 1rem 0 .75rem; max-width: 18ch; }
.footer-h { font: 600 1rem var(--font-body); color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 3rem; padding-top: 1.5rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-line { animation: none; stroke-dashoffset: 0; }
  .station { animation: none; opacity: 1; }
  * { transition: none !important; }
}
