/* Shared styles for all eight pages. No framework or external fonts. */
:root {
  --ink: #25262a;
  --muted: #62636a;
  --accent: #b30e2b;
  --accent-hover: #900b22;
  --surface: #f4f4f2;
  --border: #dededb;
  --content-width: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  scrollbar-gutter: stable;
}
/* Inter font - SIL Open Font License 1.1.
   Copyright and full license: ../fonts/Inter-LICENSE.txt */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* open-sans-regular - latin - SIL Open Font License 1.1. 
Copyright and full license: ../fonts/OpenSans-LICENSE.txt */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
button { font: inherit; }
address { font-style: normal; }
.email-address { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.2; color: #555; font-weight: 400;}
h1 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); letter-spacing: -0.045em; ; font-weight: 400;}
h2 { font-size: clamp(1.2rem, 2.0vw, 1.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.25rem; }
figure { margin: 0; }
.container { width: min(var(--content-width), calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.lead { max-width: 48rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; }
.eyebrow, .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin-bottom: 1rem; }
.label { color: var(--muted); }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: 0.7rem 1rem; background: #fff; z-index: 10; }
.skip-link:focus { top: 1rem; }

/* Navigation remains visible without JavaScript. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 100px; }
.brand { flex-shrink: 0; }
.brand img { width: 300px; }
.site-nav ul { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 1rem 0; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.menu-toggle { align-items: center; gap: 0.65rem; min-height: 44px; padding: 0.5rem 0.7rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; }
.menu-icon { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

/* Home */
/* The decorative image fills the hero; the panel grows with its content. */
.home-hero {
  display: grid;
  place-items: center;
  min-height: clamp(25rem, 27vw, 30rem);
  padding: clamp(1rem, 4vw, 4rem) 1rem;
  background: var(--surface) url("../images/start-krucom.jpg") center / cover no-repeat;
  /* Include an accent line top and bottom */
  border-top: 1px solid #b30e2b;
  border-bottom: 40px solid #b30e2b;
}
.hero-content {
  width: min(100%, 40rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  /* Transparency applies only to the panel background, not its text. */
  background: rgb(255 255 255 / 70%);
}
.home-hero h1 { font-size: clamp(2rem, 3.3vw, 2.75rem); color: #111; }
.home-hero .lead { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.home-hero .eyebrow { margin-bottom: 1rem; }
.button { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0.75rem 1.25rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; border-radius: 3px; }
.button:hover { background: var(--accent-hover); color: #fff; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); }
.text-link { display: inline-block; font-weight: 700; margin-top: 0.5rem; }

/* Product */
.product-intro { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 4rem; }
.product-image { width: 370px; justify-self: center; }
.resource-band { background: var(--surface); border-block: 1px solid var(--border); }
.resources { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding-block: 1.8rem; }
.resources h2 { font-size: 1.25rem; margin: 0; }
.resources a { font-weight: 700; }
.file-type { display: inline-block; font-size: 0.75rem; margin-left: 0.5rem; }
.spaced-list { margin: 0; padding-left: 1.2rem; }
.spaced-list li { padding-left: 0.4rem; margin-bottom: 0.75rem; }
.spaced-list li::marker { color: var(--accent); }
.regulatory { border-top: 1px solid var(--border); padding-block: 2rem 3rem; }
.regulatory h2 { font-size: 1.25rem; }

/* About and contact */
.page-intro { padding-bottom: 2.5rem; }
.founders img { width: 100%; }
figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.85rem; }
.story { max-width: 760px; }
blockquote { border-left: 3px solid var(--accent); margin: 2.5rem 0 0; padding-left: 1.5rem; font-size: 1.4rem; line-height: 1.5; }
blockquote p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.contact-grid a { overflow-wrap: anywhere; }
.contact-office { padding: 1.5rem; background: var(--surface); }
.contact-office h2, .contact-person h2 { font-size: 1.4rem; }
.contact-person img { width: 100%; aspect-ratio: 1.45; object-fit: cover; margin-bottom: 1.4rem; }
.contact-person .role { color: var(--muted); margin-top: -0.5rem; }
.contact-note { max-width: 760px; }

/* Footer */
.site-footer { color: #ddd; background: #28292c; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-block: 3rem; }
.site-footer h2 { color: #fff; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer a { color: #fff; overflow-wrap: anywhere; }
.site-footer .label { color: #bbb; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #515255; padding-block: 1rem; }

@media (min-width: 761px) {
  .menu-toggle { display: none; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 84px; }
  .brand img { width: 210px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.7rem; }
  .two-columns, .product-intro, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-image { max-width: 80%; }
  .resources { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .contact-person { max-width: 420px; }
  .contact-person img { max-width: 350px; }
  .footer-grid { padding-block: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-nav, .menu-toggle, .skip-link, .footer-bottom, .button { display: none !important; }
  body, .site-footer { color: #000; background: #fff; }
  .site-footer a, .site-footer h2, .site-footer .label { color: #000; }
  .section { padding-block: 1.5rem; }
  .site-header { border: 0; }
}

/* Language links switch to the equivalent page and work without JavaScript. */
.language-nav { display: flex; gap: 0.75rem; flex-shrink: 0; }
.language-nav a { padding-block: 0.6rem; font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.language-nav a:hover, .language-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3em; }
@media (min-width: 761px) and (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; column-gap: 1.5rem; padding-block: 0.5rem; }
  .site-nav { margin-left: auto; }
  .language-nav { width: 100%; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .language-nav { order: 1; width: 100%; justify-content: flex-end; gap: 1rem; }
  .site-nav { order: 2; }
  .language-nav a { min-height: 44px; }
}
@media print {
  .language-nav { display: none; }
  .site-header { position: static; }
}
