/* Brusa Tooling — static site styles */
:root {
  --accent: #0073aa;
  --accent-2: #38a7dc;
  --text: #272626;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --footer-bg: #24292e;
  --footer-text: #ffffff;
  --header-bg: #ffffff;
  --border: #e5e5e5;
  --container: 1170px;
  --font: Arial, Helvetica, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #1fa2bd;
  --accent-2: #1f90a6;
  --text: #ffffff;
  --bg: #202527;
  --bg-alt: #2c3235;
  --footer-bg: #191d1f;
  --header-bg: #202527;
  --border: #3a4144;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 15px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; background: var(--bg); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.site-logo img { width: 180px; height: auto; }
.site-logo .logo-dark { display: none; }
:root[data-theme="dark"] .site-logo .logo-light { display: none; }
:root[data-theme="dark"] .site-logo .logo-dark { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--text); font-size: 14px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.main-nav .lang img { width: 16px; height: 11px; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.theme-toggle, .nav-toggle {
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); line-height: 0;
}
.theme-toggle svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 85vw);
    background: var(--header-bg); padding: 70px 24px 24px;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,.15); overflow-y: auto; z-index: 100;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 12px 0; font-size: 16px; }
  .main-nav .lang-row { display: flex; gap: 16px; border-bottom: 0; padding-top: 12px; }
  body.nav-open .main-nav { transform: none; }
  .nav-close { position: absolute; top: 18px; right: 18px; font-size: 28px; line-height: 1; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; display: none; }
  body.nav-open .nav-backdrop { display: block; }
}
@media (min-width: 961px) {
  .nav-close, .nav-backdrop { display: none; }
  .main-nav { margin-left: auto; }
  .main-nav .lang-row { display: contents; }
}

/* ---------- Main ---------- */
main { flex: 1; }
.page-title { text-align: center; margin: 50px 0 40px; font-size: 2.25rem; }
.section { padding-block: 40px; }
.spacer { height: 40px; }

/* Hero (homepage cover) */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background-image: url("../uploads/2023/01/btpatternCerikaserio001.webp");
  background-repeat: repeat; background-position: 50% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background: linear-gradient(135deg, rgb(10,10,19) 0%, rgb(40,116,252) 100%);
}
.hero .container { position: relative; padding-block: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 56px); margin-bottom: .5em; color: #fff; }
.hero p { font-size: 1.125em; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: 3px; font-size: 14px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-2); text-decoration: none; color: #fff; }

/* Column grids */
.cols { display: grid; gap: 30px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; }
@media (max-width: 960px) { .cols-3, .cols-4 { --cols: 2; } }
@media (max-width: 600px) { .cols { --cols: 1 !important; } }
.card img { width: 100%; aspect-ratio: 511 / 768; object-fit: cover; margin-bottom: 12px; }
.card h3 { font-size: 1.5rem; margin-bottom: .8em; }

/* Galleries */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); margin-block: 40px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-3 { --cols: 3; } .gallery-4 { --cols: 4; }
@media (max-width: 600px) { .gallery-3, .gallery-4 { --cols: 2; } }

.feature-img { margin: 0 auto 40px; max-width: 840px; }
.feature-img img { width: 100%; }
.prose { }

/* Contact */
.contact-block { text-align: center; padding-block: 20px 60px; }
.contact-block p { font-size: 1.1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 14px; margin-top: 60px; }
.site-footer a { color: var(--footer-text); }
.footer-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-block: 40px 30px; }
.footer-main .footer-title { font-weight: 700; font-size: 18px; margin-bottom: .5em; }
.footer-logo img { max-width: 260px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 16px 24px; font-size: 13px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom ul a { font-weight: 700; text-transform: uppercase; font-size: 11px; }
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-logo img { margin-inline: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* --- IT pages --- */
.gallery figcaption { text-align: center; font-size: 14px; padding: 8px 0 0; }
.gallery figure:has(figcaption) img { height: auto; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.stack img { max-width: 100%; height: auto; }
.contact-block h3, .cols[style*="center"] h3 { margin-bottom: .6em; }

/* --- EN pages --- */
.cols-center { align-items: center; }
.contact-cols { text-align: center; margin-block: 40px; }
.contact-cols h3 { margin-bottom: .6em; }
.acc-imgs { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.acc-imgs img { max-width: 100%; height: auto; }
.gallery figcaption { text-align: center; font-size: .9rem; margin-top: 8px; }
.gallery figure:has(figcaption) img { height: auto; }
.prose ul { padding-left: 1.4em; }

/* --- Map embed (company/contact pages) --- */
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--bg-alt); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { margin-top: .6em; font-size: 14px; }
.map-consent { display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, var(--bg-alt) 0 12px, var(--bg) 12px 24px); }
.map-consent-inner { padding: 16px; max-width: 320px; }
.map-consent-inner p { font-size: 13px; margin-bottom: 12px; }
.map-pin { width: 36px; height: 36px; color: var(--accent); margin: 0 auto 8px; display: block; }
