/* Entraf d.o.o. -- entraf.hr
   Brand: charcoal and brick red on white; Bebas Neue for headlines, Inter for text.
   The one motif: the logo's north-light factory roof (sawtooth) and the chimney's three brick bands. */

@font-face { font-family: "Bebas Neue"; src: url("fonts/BebasNeue-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1f1f1f;
  --charcoal: #23282a;
  --brick: #8b1a1a;
  --paper: #ffffff;
  --concrete: #edeeec;
  --steel: #5c6467;
  --line: #d3d6d4;
  --on-dark: #e9ebea;
  --on-dark-muted: #a9afb1;

  --display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* one roof tooth: vertical glazing on the left, the slope rising to the right (as in the logo) */
  --tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V10L40 0v20z' fill='%2323282a'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: 112px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a {
  font: 400 21px/1 var(--display);
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--charcoal);
  padding: 8px 0 5px;
  border-bottom: 3px solid transparent;
  display: inline-block;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--brick); }

.menu-toggle { display: none; }

/* ---------- headlines ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(56px, 9.5vw, 148px); line-height: .88; }
h2 { font-size: clamp(38px, 4.6vw, 56px); line-height: .95; }
h3 { font-size: 30px; line-height: 1; }
p { margin: 0 0 1em; }
.lede { font-size: 20px; line-height: 1.5; max-width: 38em; }

/* ---------- home hero: photo, the roofline, the chimney ---------- */
.hero { position: relative; background: var(--charcoal); color: var(--paper); overflow: hidden; }
.hero-photo { position: relative; height: clamp(260px, 46vw, 520px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.hero-photo::after {           /* the sawtooth roof that the photo sits behind */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(36px, 6vw, 72px);
  background: var(--tooth) repeat-x left bottom / clamp(90px, 15vw, 180px) 100%;
}
.chimney {                      /* rises from the roofline into the photo, as in the logo */
  position: absolute; z-index: 2;
  right: calc(var(--gutter) + clamp(20px, 6vw, 96px));
  bottom: -1px;
  width: clamp(30px, 4vw, 58px);
  height: clamp(150px, 30vw, 360px);
  background: var(--charcoal);
}
.chimney span { position: absolute; left: 0; right: 0; height: 9%; background: var(--brick); }
.chimney span:nth-child(1) { top: 0; }
.chimney span:nth-child(2) { top: 17%; }
.chimney span:nth-child(3) { top: 34%; }
.hero-body { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--paper); max-width: 9.5em; }
.hero .lede { color: var(--on-dark); margin-top: 24px; }
.button {
  display: inline-block; margin-top: 12px;
  font: 400 24px/1 var(--display); letter-spacing: .04em; text-decoration: none;
  background: var(--brick); color: #fff; padding: 15px 26px 12px;
}
.button:hover { background: #a32222; }

@media (prefers-reduced-motion: no-preference) {
  .chimney span { transform-origin: left center; animation: band .5s cubic-bezier(.2,.7,.2,1) both; }
  .chimney span:nth-child(1) { animation-delay: .35s; }
  .chimney span:nth-child(2) { animation-delay: .2s; }
  .chimney span:nth-child(3) { animation-delay: .05s; }
  @keyframes band { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--steel); margin: 0; max-width: 34em; }

/* what we do: three columns divided by rules, never boxed */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--charcoal); }
.service { padding: 28px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service h3 { margin-bottom: 16px; }
.service p { color: #2f3436; }

ul.bands, ol.steps { list-style: none; margin: 0 0 1em; padding: 0; }
ul.bands li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.bands li::before { content: ""; position: absolute; left: 0; top: .68em; width: 14px; height: 4px; background: var(--brick); }
ul.bands ul.bands { margin-top: 8px; }

/* the LV & MV scope is a real sequence from design to start-up */
ol.steps { counter-reset: step; }
ol.steps > li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 0 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
ol.steps > li:last-child { border-bottom: 0; }
ol.steps > li::before { content: counter(step); font: 400 26px/1 var(--display); color: var(--brick); padding-top: 1px; }
ol.steps ul { list-style: none; margin: 6px 0 0; padding: 0; color: var(--steel); font-size: 15px; }
ol.steps ul li { display: inline; }
ol.steps ul li + li::before { content: ", "; }

/* product rows */
.products { border-top: 3px solid var(--charcoal); }
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 180px; gap: 24px 40px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.product h3 { font-size: clamp(36px, 4.4vw, 54px); line-height: .95; }
.product p { margin: 0; color: var(--steel); }
.product img { width: 180px; height: 110px; object-fit: cover; filter: grayscale(.3); }
.product:hover h3 { color: var(--brick); }
.product:hover img { filter: none; }
.product img.dark { filter: grayscale(.3) brightness(1.9); }
.product:hover img.dark { filter: brightness(1.9); }

.band-concrete { background: var(--concrete); }

/* ---------- inner pages ---------- */
.page-head { position: relative; background: var(--charcoal); color: var(--paper); padding: clamp(48px, 7vw, 88px) 0 calc(clamp(48px, 7vw, 88px) + 28px); overflow: hidden; }
.page-head::before {             /* the photo, dimmed behind the title */
  content: ""; position: absolute; inset: 0; background: var(--head-img, none) center / cover no-repeat; opacity: .28; filter: grayscale(.6);
}
.page-head::after {              /* roof teeth in paper white closing the band */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V10L40 0v20z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x left bottom / 84px 100%;
}
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(52px, 8vw, 120px); max-width: 11em; }
.page-head .lede { color: var(--on-dark); margin: 22px 0 0; }

.article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; padding: clamp(48px, 7vw, 88px) 0; }
.article aside { align-self: start; position: sticky; top: 24px; }
.article aside img { width: 100%; }
.article aside figcaption { color: var(--steel); font-size: 14px; margin-top: 10px; }
.article .body { max-width: 44em; }
.article .body h2 { font-size: clamp(32px, 3.4vw, 42px); margin: 0 0 14px; padding-top: 22px; border-top: 3px solid var(--charcoal); }
.article .body h2 + p { margin-top: 0; }
.article .body section + section { margin-top: 44px; }

.ratings { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.ratings th, .ratings td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ratings th { font-weight: 400; color: var(--steel); width: 46%; padding-right: 16px; }
/* values carry units (kA, form 4b): Bebas has no lower case, so they stay in Inter */
.ratings td { font: 700 18px/1.3 var(--text); color: var(--charcoal); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; padding: clamp(48px, 7vw, 88px) 0; align-items: start; }
.about-grid .statement { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.45; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; border-top: 3px solid var(--charcoal); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--steel); font-size: 15px; }
.facts dd { margin: 4px 0 0; font: 400 28px/1.05 var(--display); letter-spacing: .02em; }
.facts .wide { grid-column: 1 / -1; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; padding: clamp(48px, 7vw, 88px) 0; }
.contact-lines a { display: block; font: 400 clamp(40px, 5.6vw, 72px)/1 var(--display); letter-spacing: .01em; text-decoration: none; color: var(--charcoal); padding: 14px 0 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-lines a:first-child { border-top: 3px solid var(--charcoal); }
.contact-lines a:hover { color: var(--brick); }
.contact-lines a.mail { font: 700 clamp(26px, 3.4vw, 42px)/1.15 var(--text); letter-spacing: -.01em; }
.contact-lines small { display: block; font: 400 15px/1.4 var(--text); color: var(--steel); letter-spacing: 0; margin-bottom: 6px; }
address { font-style: normal; }
.legal { color: var(--steel); font-size: 15px; line-height: 1.55; }
.legal strong { color: var(--ink); }
.map-link { display: inline-block; margin-top: 10px; color: var(--brick); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--charcoal); color: var(--on-dark-muted); margin-top: 0; padding: 72px 0 40px; font-size: 15px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px;
  background: var(--tooth) repeat-x left bottom / 84px 100%;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 32px 48px; }
.site-footer h2 { color: var(--paper); font-size: 30px; margin-bottom: 12px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
.footer-nav { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav li { margin-bottom: 6px; }
.copyright { margin-top: 48px; padding-top: 18px; border-top: 1px solid #3a4043; font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .section-head, .article, .about-grid, .contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .article aside { position: static; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service { padding: 24px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .product { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .product img { display: none; }
}
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: 92px; }
  .menu-toggle {
    display: inline-block; font: 400 22px/1 var(--display); letter-spacing: .04em;
    background: none; border: 2px solid var(--charcoal); color: var(--charcoal); padding: 9px 14px 6px; cursor: pointer;
  }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .nav a { font-size: 26px; padding: 10px 0 7px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
}
