/* =========================================================
   SANIGLOBAL – main stylesheet (used by /en, /de, /ba pages)
   ---------------------------------------------------------
   1. Settings (colors, fonts, spacing)  <- change things here
   2. Basics
   3. Header and navigation
   4. Hero
   5. Sections (intro, products, industries, sustainability,
      production, call to action)
   6. Footer
   7. Mobile adjustments
   ========================================================= */


/* ---------- 0. FONT ----------
   Inter (SIL Open Font License, see assets/fonts/LICENSE-Inter.txt), hosted on our own
   server – nothing is loaded from Google. One "variable" file covers all weights 100-900.
   Two files: basic Latin, and extra Latin letters (č ć đ š ž ł ą ę ...), loaded only if needed. */
@font-face {
  font-family: "Inter";
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}


/* ---------- 1. SETTINGS ---------- */
:root {
  /* Colors */
  --navy:        #0b2a55;   /* main brand color */
  --navy-dark:   #071c3d;   /* darker navy for footer and overlays */
  --navy-light:  #14407f;   /* hover / button gradient */
  --white:       #ffffff;
  --bg-light:    #eef3f8;   /* light grey-blue section background */
  --text:        #1b2433;   /* normal body text */
  --text-muted:  #5a6678;   /* secondary text */
  --line:        #d6dfea;   /* thin borders */

  /* Font (system font for now; we can switch to a self-hosted font later) */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;   /* self-hosted Inter, system fonts as fallback */

  /* Spacing and sizes */
  --max-width:   1200px;    /* maximum content width */
  --side:        clamp(20px, 4vw, 48px);   /* space at left/right edge */
  --section:     clamp(64px, 9vw, 120px);  /* space above/below sections */
  --radius:      16px;      /* rounded corners of cards */
  --header-h:    76px;      /* header height */
  --btn-radius:  999px;     /* corners of all buttons (999px = fully round, 6px = rectangular) */
  --btn-light:   #dde5f0;   /* light button with arrow (class .more) */
}


/* ---------- 2. BASICS ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--navy-dark); }   /* navy behind the page: shows above the header and below the footer when scrolling past the edge */

body {
  margin: 0;
  overflow-x: clip;             /* the page can never be wider than the screen (no white edge on phones) */
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-dark);   /* must be navy too: Safari takes the colour of the edges from the body */
  -webkit-font-smoothing: antialiased;
}

/* The page content itself is white (flow-root: no navy strip from margins at its edges) */
main { display: flow-root; background: var(--white); }

img { max-width: 100%; display: block; }

a { color: var(--navy); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--navy); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 300; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1em; }

/* Centered content column */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--side); }

.section       { padding: var(--section) 0; }
.section--grey { background: var(--bg-light); }

/* Small uppercase label above headings */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 14px;
}

.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
/* The arrow inside a button moves a little to the right on hover */
.btn > span[aria-hidden="true"] { display: inline-block; transition: transform .2s; }
.btn:hover > span[aria-hidden="true"] { transform: translateX(4px); }
/* Clear frame when a button is chosen with the keyboard (Tab key) */
.btn:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 3px; }

.btn--solid {   /* main button on light backgrounds: solid navy */
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}
.btn--solid:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn--glass {   /* secondary button on dark backgrounds and photos: white outline */
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,.7);
}
.btn--glass:hover { color: var(--navy); background: var(--white); border-color: var(--white); }

/* Light button with arrow (e.g. "Learn more") */
.more {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px;
  border-radius: var(--btn-radius);
  background: var(--btn-light); color: var(--navy);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none;
  transition: background .2s, color .2s;
}
.more::after { content: "→"; transition: transform .2s; }
.more:hover, a:hover > .more, a:hover .more { background: var(--navy); color: var(--white); }
.more:hover::after, a:hover .more::after { transform: translateX(4px); }

:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 3px; }

/* Text only for screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- 3. HEADER AND NAVIGATION ---------- */
/* Navy header (same colour as the footer) that stays on top while scrolling.
   At the top of the page it is solid; after scrolling it is slightly see-through with a soft blur. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--navy-dark);
  color: var(--white);
  transition: box-shadow .25s;
}
/* Soft shadow under the header, only after scrolling down (class added by main.js) */
.header.is-scrolled { box-shadow: 0 6px 24px rgba(4,16,44,.28); }
/* Blur: only in browsers that support it (others keep the solid navy).
   .82 = how solid the navy is (1 = not see-through); blur(10px) = strength of the blur;
   brightness(.5) darkens what is behind, so the header stays navy over white sections too. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header.is-scrolled { background-color: transparent; }
  .header.is-scrolled::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(7,28,61,.82);   /* = --navy-dark, see-through */
    -webkit-backdrop-filter: blur(10px) brightness(.5); backdrop-filter: blur(10px) brightness(.5);
  }
}
.header .container { height: 100%; display: flex; align-items: center; gap: 24px; }

/* Logo (SVG file in assets/img). Change the height to make it bigger/smaller. */
.logo { display: block; margin-right: auto; }
.logo img { height: 32px; width: auto; }   /* logo size in the header */

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--white); text-decoration: none; font-size: .95rem; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
/* The page you are on: a darker "pressed in" field behind the word (inset shadow).
   The negative margin keeps the menu items in the same place as before. */
.nav > a[aria-current="page"]:not(.btn),
.dd-btn.is-current {
  opacity: 1;
  padding: 7px 14px; margin: -7px -14px;
  border-radius: var(--btn-radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);   /* thin see-through white frame (lighter than the white Contact button) */
}
.nav > a[aria-current="page"]:not(.btn):hover { text-decoration: none; }

/* Dropdown menus (Products, Industries, Language): a button opens a small white list below it */
.dd { position: relative; }
.dd-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--white); font: inherit; font-size: .95rem;
  padding: 6px 0; opacity: .9;
}
.dd-btn:hover { opacity: 1; }
.dd-btn .chev { transition: transform .2s; opacity: .8; }
.dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* Products/Industries when you are on one of their pages: same pressed field (see .nav > a above) */
.dd-list {
  position: absolute; left: -14px; top: calc(100% + 14px); z-index: 60;
  min-width: 230px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(4,16,44,.25);
}
.nav .dd-list a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--text); opacity: 1; font-size: .95rem; white-space: nowrap; }
.nav .dd-list a:hover { background: var(--bg-light); text-decoration: none; }
.nav .dd-list a[aria-current] { font-weight: 600; color: var(--navy); background: var(--bg-light); }
/* Language menu: thin line on its left, list aligned to the right */
.dd--lang { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.25); }
.dd--lang .dd-btn { gap: 7px; font-size: .92rem; font-weight: 600; padding: 6px 4px; }
.dd--lang .dd-list { left: auto; right: 0; min-width: 170px; }

.nav .btn { padding: 9px 20px; font-size: .92rem; opacity: 1; }   /* white "Contact us" button */
.nav .btn--white { color: var(--navy); }   /* navy text (otherwise the white menu link color would win) */
.nav .btn:hover { text-decoration: none; }

/* Hamburger button (only visible on small screens) */
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--white); }


/* ---------- 4. HERO ---------- */
/* Light hero: text left on white, plywood photo on the right */
.hero {
  --hero-bg: #f5f7fa;                  /* the light color the photo fades into */
  position: relative;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 800px);
  display: flex;
  align-items: center;
  color: var(--navy);
  background: url(../img/main-header.webp) right center / cover no-repeat var(--hero-bg);
}
/* White fade on the left so the text sits on a clean background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-bg) 0%, var(--hero-bg) 30%, rgba(245,247,250,.85) 42%, rgba(245,247,250,0) 62%);
}
.hero .container { position: relative; width: 100%; padding-top: 50px; padding-bottom: 50px; }
.hero .eyebrow { color: var(--text-muted); font-size: .72rem; letter-spacing: .16em; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.hero .lead { color: var(--text-muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 24em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Outline button (white with thin border) */
.btn--outline { color: var(--navy); background: transparent; border-color: var(--navy); }   /* secondary button on light backgrounds */
.btn--outline:hover { color: var(--white); background: var(--navy); }

/* Three facts with icons under the buttons */
.hero-facts {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  margin: 76px 0 0; padding: 0;   /* space between the buttons and the icon row */
  max-width: 900px;   /* wide enough for the longer German texts in one row */
  color: var(--text-muted);
  font-size: .85rem; line-height: 1.4;
}
.hero-facts li { display: flex; align-items: center; gap: 14px; }
/* Large thin line icon without a badge (same style as the values / benefits rows) */
.hero-facts .ico { flex: none; color: var(--navy); display: grid; place-items: center; }
.hero-facts .ico svg { width: 34px; height: 34px; stroke-width: 1.3; }


/* ---------- 5. SECTIONS ---------- */


/* Our company: photo left (to the screen edge), text right */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--white); }
.about-photo { width: 100%; height: 100%; min-height: 380px; max-height: 520px; object-fit: cover; }
.about-text { padding: clamp(40px, 6vw, 80px) var(--side) clamp(40px, 6vw, 80px) clamp(32px, 6vw, 96px); max-width: 640px; }
.about-text h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-text p { color: var(--text-muted); margin-bottom: 28px; }

/* Link with underline and arrow */

/* Industries: heading left, text + link right */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; margin-bottom: 40px; }
.split-head h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 0; }
.split-head p { color: var(--text-muted); margin-top: 22px; }
/* Text without a link: sits at the bottom, level with the last line of the heading */
.split-head--bottom { align-items: end; }
.split-head--bottom p { margin: 0; }

/* Products: 2 cards (photo + white text box) */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(11,42,85,.06);
  transition: box-shadow .3s, transform .3s;
}
.product-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
/* Grey box in place of a photo that is not ready yet */
.img-placeholder { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--bg-light); color: var(--text-muted); font-size: .9rem; }
.app--photo .img-placeholder { margin: 0 -26px 22px; border-bottom: 3px solid var(--navy); }   /* grey box in place of a missing card photo */
.product-body { padding: 26px 28px 28px; }
.product-body h3 { font-size: 1.3rem; margin-bottom: .3em; }
.product-body p { color: var(--text-muted); max-width: 26em; margin-bottom: 22px; }
/* Button on the product card: fills navy when the mouse is anywhere on the card */
.product-card:hover .btn--outline { color: var(--white); background: var(--navy); border-color: var(--navy); }
.product-card:hover .btn > span[aria-hidden="true"] { transform: translateX(4px); }
.product-card:hover { box-shadow: 0 14px 36px rgba(11,42,85,.14); transform: translateY(-3px); }

/* Industries: 4 photo tiles in white frames (lift up on hover, like the product cards) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  display: flex; flex-direction: column;
  padding: 10px 10px 18px;             /* white frame around the photo */
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(11,42,85,.06);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 10;   /* all photos same shape, cropped to fit */ object-fit: cover; border-radius: 4px; margin-bottom: 18px; }
.tile h3 { font-size: 1.08rem; margin: 0 8px .35em; }
.tile p { color: var(--text-muted); font-size: .95rem; margin: 0 8px; }
.tile:hover { box-shadow: 0 14px 36px rgba(11,42,85,.14); transform: translateY(-3px); border-color: #b9c8da; }

/* Sustainability: navy text left, forest photo right (to the screen edge) */
.sustain { display: grid; grid-template-columns: 55fr 45fr;   /* navy text 55%, photo 45% */ background: var(--navy); color: var(--white); }
.sustain-text {
  padding: clamp(48px, 7vw, 96px) clamp(32px, 6vw, 96px) clamp(48px, 7vw, 96px) max(var(--side), calc((100vw - var(--max-width)) / 2 + var(--side)));
  align-self: center;
}
.sustain-text .eyebrow { color: rgba(255,255,255,.75); }
.sustain-text h2 { color: var(--white); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.sustain-text p { color: rgba(255,255,255,.85); max-width: 32em; margin-bottom: 30px; }
.sustain-photo { width: 100%; height: 100%; min-height: 380px; max-height: 560px; object-fit: cover; object-position: 62% center; }   /* keep the river in view */

/* White round button (for navy backgrounds) */
.btn--white { color: var(--navy); background: var(--white); border-color: var(--white); }   /* main button on dark backgrounds */
.btn--white:hover { background: #e3eaf3; border-color: #e3eaf3; }

/* Production: text left, photo right */
.production { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.production h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.production p { color: var(--text-muted); max-width: 30em; margin-bottom: 26px; }
.production img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; }
.production img.img-square { aspect-ratio: 4 / 3; }   /* square product photo, cropped a little less */

/* Call to action: photo left, navy panel with a slanted edge on the right */
.cta {
  position: relative;
  margin-top: -1px;            /* no thin seam above this section while resizing */
  overflow: hidden;
  color: var(--white);
  background: url(../img/cta-plywood-curves.webp) left center / cover no-repeat #d9c3a5;
}
.cta::before {               /* the navy shape; change the % values to move the angle */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 26% 100%);
}
.cta .container { position: relative; display: flex; justify-content: flex-end; }
.cta-text { width: min(100%, 500px); padding: clamp(56px, 7vw, 96px) 0; }
.cta-text .eyebrow { color: rgba(255,255,255,.75); }
.cta-text h2 { color: var(--white); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.cta-text p { color: rgba(255,255,255,.85); margin-bottom: 30px; }


/* ---------- SUBPAGE HERO (photo + navy overlay) ----------
   The photo is set in the HTML: <section class="page-hero" style="background-image: url(...)"> */
.page-hero {
  position: relative;
  min-height: clamp(420px, 62svh, 640px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--navy-dark) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,28,61,.88) 0%, rgba(7,28,61,.45) 55%, rgba(7,28,61,.15) 100%);
}
.page-hero .container { position: relative; width: 100%; padding-top: 80px; padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero .eyebrow { color: rgba(255,255,255,.8); }
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 20px; }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 34em; margin: 0; }

/* Variant: tall photo, all text on the left, dark fade from the left */
.page-hero--side { align-items: center; min-height: clamp(600px, 86svh, 800px); }
.page-hero--side::before {
  background: linear-gradient(90deg, rgba(7,28,61,.88) 0%, rgba(7,28,61,.65) 38%, rgba(7,28,61,.15) 68%, rgba(7,28,61,0) 100%);
}
.page-hero--side .container { padding-top: 64px; padding-bottom: 64px; }
.page-hero-text { max-width: 33em; margin-bottom: 30px; }
/* Side hero (Sustainability page): same text sizes as "Our company" on the homepage */
.page-hero--side h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; }
.page-hero-text p { color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.55; margin-bottom: 1em; }
.page-hero-text .strong { color: var(--white); font-weight: 600; font-size: 1.1rem; margin: 1.4em 0 0; }

/* Button + certificates row in the hero (Sustainability page) */
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.certs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 18px 22px; margin: 12px 0 0; padding: 28px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }   /* own row under the button, thin line above */
.cert { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: .72rem; line-height: 1.35; }   /* small text under FSC, EUDR, E1, B1 */
.cert + .cert { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.3); }
.cert strong { display: block; font-size: .95rem; font-weight: 600; }
.cert-note { font-size: .78em; font-weight: 500; opacity: .85; }   /* the small word "certified" next to the certificates */
.cert span:last-child { color: rgba(255,255,255,.85); font-weight: 600; }   /* small text, bold */
.cert-logo { height: 52px; width: auto; }
/* Grey box until the real FSC logo is approved (remove when the logo is added) */
.cert-placeholder { display: grid; place-items: center; width: 48px; height: 52px; border: 1px dashed rgba(255,255,255,.6); border-radius: 4px; font-size: .62rem; text-align: center; line-height: 1.2; color: rgba(255,255,255,.75); }


/* Key facts bar under the hero: 4 facts with icons, thin lines between */
.stats { background: #f5f7fa; border-bottom: 1px solid var(--line); }
.stats-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 28px; padding-bottom: 28px; margin: 0 auto; }
.stats-list li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 20px; border-left: 1px solid var(--line); color: var(--text); font-size: .98rem; line-height: 1.35; }
.stats-list li:first-child { border-left: 0; justify-content: flex-start; padding-left: 0; }
.stats-list svg { flex: none; color: var(--navy); }
.stats-list strong { display: block; color: var(--navy); font-weight: 600; font-size: 1.05rem; }


/* ---------- CONTACT PAGE ---------- */

/* Light intro at the top of subpages */
.page-intro { background: #f5f7fa; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-intro h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.03em; }
.page-intro .lead { margin: 0; }
/* Dark navy version (Privacy policy) */
.page-intro--navy { background: var(--navy-dark); }
.page-intro--navy .eyebrow { color: rgba(255,255,255,.75); }
.page-intro--navy h1 { color: var(--white); }
.page-intro--navy .lead { color: rgba(255,255,255,.75); }
/* Title left, small date right, on the same line as the title */
.page-intro-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; align-items: flex-end; align-items: last baseline; }
.page-intro-row h1 { margin-bottom: 0; }
.page-intro-date { margin: 0; }

/* ---------- Company page ---------- */
/* "Who we are": text on the right in normal grey paragraphs */
.company-intro { margin-bottom: 0; align-items: start; }
.company-intro p { margin: 0 0 1em; }
.company-intro > div:last-child { padding-top: 34px; }
/* 4 values with round icons */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { background: var(--white); border-radius: var(--radius); padding: 30px 26px; }
.value h3 { font-size: 1.15rem; margin: 0 0 8px; }
.value p { color: var(--text-muted); font-size: .94rem; line-height: 1.55; margin: 0; }
/* Production: photo left, numbered steps right */
.production--steps { grid-template-columns: 1.15fr 1fr; }
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 56px; color: var(--text-muted); font-size: .95rem; line-height: 1.5; }
.steps-list li::before { content: "0" counter(step); position: absolute; left: 0; top: 0; font-weight: 600; font-size: .85rem; letter-spacing: .08em; color: var(--navy); border-top: 2px solid var(--navy); padding-top: 4px; width: 36px; }
.steps-list strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
/* Our sites: navy band with the two map cards side by side */
.sites { background: var(--navy); color: var(--white); padding: var(--section) 0; }
.sites .eyebrow { color: rgba(255,255,255,.75); }
.sites h2 { color: var(--white); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 40px; }
.sites-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

/* ---------- Product and industry pages ---------- */
/* Navy hero: text left, photo right */
.sub-hero { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 96px) 0; }
.sub-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sub-hero .eyebrow { color: rgba(255,255,255,.75); }
.sub-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 18px; }
.sub-hero .lead { color: rgba(255,255,255,.8); margin: 0; }
.sub-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(4,16,44,.35); }
/* Sub-hero with a wide product photo as background (product pages).
   Text sits on the empty navy left side, the panel is on the right. */
.sub-hero--photo { position: relative; overflow: hidden; background: var(--navy); min-height: clamp(440px, 42vw, 620px); display: flex; align-items: center; }
.sub-hero--photo .sub-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 75% center; border-radius: 0; box-shadow: none; }
.sub-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,28,61,.5) 0%, rgba(7,28,61,.2) 40%, rgba(7,28,61,0) 60%); }  /* darker left side so the text stays readable */
.sub-hero--photo .container { position: relative; z-index: 2; width: 100%; }
.sub-hero--photo .container > div { max-width: 520px; }
.sub-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* On the wide product photos the background behind the second button is light, so the
   glass button gets a solid navy base instead of a see-through one */
.sub-hero--photo .btn--glass { background: rgba(7,28,61,.45); }
.sub-hero--photo .btn--glass:hover { color: var(--navy); background: var(--white); }
/* Applications: white cards with a navy line on top (on grey background) */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app { background: var(--white); border-radius: var(--radius); padding: 28px 26px; border-top: 3px solid var(--navy); }
.app h3 { font-size: 1.1rem; margin: 0 0 8px; }
.app p { color: var(--text-muted); font-size: .94rem; line-height: 1.55; margin: 0; }
/* Card with a photo on top: the photo fills the card width, the navy line sits under the photo */
.app--photo { border-top: 0; padding-top: 0; overflow: hidden; }
.app--photo img { display: block; width: calc(100% + 52px); max-width: none; height: auto; margin: 0 -26px 22px; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--navy); }
/* Values row (Company page): 4 columns with thin dividers, large line icons, no cards */
.values--row { gap: 0; border-top: 2px solid var(--navy); }
.values--row .value { background: none; border-radius: 0; padding: 28px 28px 4px 0; }
.values--row .value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value-mark { display: block; color: var(--navy); margin-bottom: 16px; }   /* large line icon above the title */
/* Technical data table (product pages): label + value per row, two columns on wide screens */
.spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 2px solid var(--navy); }
.spec > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }   /* label and value on one baseline */
.spec dt { color: var(--navy); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.spec dd { margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.5; }
.spec-muted { opacity: .65; font-size: .88rem; margin-left: 6px; }   /* lighter extra info, e.g. tolerance values */
.spec-note { margin: 20px 0 0; color: var(--text-muted); font-size: .9rem; }
/* Product variants (beech plywood page): photo on light background, text below */
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.variant { display: flex; flex-direction: column; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.variant:hover { box-shadow: 0 14px 36px rgba(11,42,85,.12); transform: translateY(-3px); }
.variant img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.variant-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.variant h3 { font-size: 1.15rem; margin: 0 0 8px; }
.variant p { color: var(--text-muted); font-size: .94rem; line-height: 1.55; margin: 0 0 18px; }
.variant .more { margin-top: auto; align-self: flex-start; color: var(--navy); }
/* Only 2 industry tiles (solid wood panels page) */
.tiles--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }

/* ---------- Downloads page: cards with a document icon ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dl-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; transition: box-shadow .2s, transform .2s; }
.dl-card:hover { box-shadow: 0 14px 36px rgba(11,42,85,.10); transform: translateY(-2px); }
.dl-icon { color: var(--navy); margin-bottom: 18px; }   /* large thin line icon, no badge */
.dl-icon svg { width: 34px; height: 34px; stroke-width: 1.3; }
.dl-tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-light); margin-bottom: 6px; }
.dl-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.dl-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 24px; }
.dl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.dl-meta { font-size: .82rem; color: var(--text-muted); }
.dl-soon { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.dl-foot .btn { padding: 8px 16px; font-size: .88rem; }
/* "Need another document?" box */
.dl-request { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-top: 48px; padding: clamp(28px, 4vw, 44px); background: #f5f7fa; border-radius: var(--radius); }
.dl-request h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; margin: 0 0 6px; }
.dl-request p { color: var(--text-muted); margin: 0; }

/* ---------- Legal text (Privacy policy): one row per topic, heading left, text right ---------- */
/* Starts at the left edge of the page, in line with "LEGAL / Privacy policy" above; text column limited for easy reading */
.legal-text { font-size: .95rem; line-height: 1.6; }
.legal-item { display: grid; grid-template-columns: 260px minmax(0, 44em); gap: 12px clamp(32px, 5vw, 72px); padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.legal-item:first-child { border-top: 0; padding-top: 0; }
.legal-item h2 { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0; padding-top: 3px; line-height: 1.5; }
.legal-item p { margin: 0 0 .6em; }
.legal-item > div > :last-child { margin-bottom: 0; }
/* "Legal basis" note: smaller, grey, with a thin navy line on the left */
.legal-basis { font-size: .88rem; color: var(--text-muted); border-left: 2px solid var(--navy); padding-left: 12px; margin-top: 1em !important; }
/* "Your rights": one under the other, no bullet points, aligned left with the other text */
.rights-list { list-style: none; padding: 0; margin: .6em 0 1em; display: grid; gap: 6px; }

/* Navy section: maps left (wider), form right (narrower) */
.contact { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 96px) 0; }
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }

/* The two maps share the height of the form equally (credit line below) */
.contact-maps { display: grid; grid-template-rows: 1fr 1fr auto; gap: 24px; }
.map-card {
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.map { position: relative; display: block; min-height: 220px; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.map:hover img { filter: brightness(1.15); }
/* White location pin in the middle of the map */
.pin {
  position: absolute; left: 50%; top: 50%;
  width: 26px; height: 26px;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: var(--white);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--navy); }
.map-info { padding: 24px; }
.map-info h3 { color: var(--white); font-size: 1.05rem; }
.map-info p { color: rgba(255,255,255,.75); font-size: .95rem; }
.map-info .more { gap: 8px; padding: 8px 16px; background: rgba(255,255,255,.14); color: var(--white); font-size: .85rem; white-space: nowrap; }   /* on navy: see-through */
.map-info .more:hover { background: var(--white); color: var(--navy); }
.map-credit { font-size: .75rem; color: rgba(255,255,255,.5); margin: -8px 0 0; }
.map-credit a { color: inherit; }

/* White form card */
.form-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: 0 20px 50px rgba(4,16,44,.35); }
.form-card h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: 22px; }

#contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--text); }
#contact-form input[type=text], #contact-form input[type=email], #contact-form input[type=tel], #contact-form textarea {
  font: inherit; font-size: .95rem; font-weight: 400;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fafbfd; color: var(--text);
  width: 100%;
}
#contact-form textarea { resize: vertical; min-height: 120px; }
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(20,64,127,.15); background: var(--white); }
#contact-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text-muted); }
#contact-form .check input { margin-top: 4px; accent-color: var(--navy); }
#contact-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }

/* Spam trap: moved off screen, invisible for people */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Messages after sending */
.form-status { padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 16px; }
.form-status.ok    { background: #e6f4ea; color: #1d5b2c; }
.form-status.error { background: #fdecea; color: #8a1f17; }


/* ---------- 6. FOOTER ---------- */
.footer { position: relative; margin-top: -1px; background: var(--navy-dark); color: rgba(255,255,255,.75); font-size: .95rem; padding: 73px 0 0; }   /* -1px: no thin seam above the footer while resizing */
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
/* 4 equal columns: Company | Products | Industries | Contact */
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: start; }
.footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
/* Email and phone with small icons in front */
.footer .contact-list a { display: inline-flex; align-items: center; gap: 10px; }
.footer .contact-list svg { flex: none; opacity: .8; }
.footer .contact-list .places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }   /* "Bihać & Novi Grad" on one line */
.footer .contact-list .amp { opacity: .6; }   /* the & between the two cities */

.footer .social { display: flex; gap: 18px; justify-content: center; }   /* LinkedIn / Facebook / Instagram icons */
.footer .social a { display: grid; place-items: center; width: 36px; height: 36px; }
.footer .social a:hover { color: var(--white); }
.copy { font-size: .86em; opacity: .8; }   /* copyright line: small, quiet text */
.footer-bottom {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 28px; align-items: center;   /* 3 parts: left, exact centre, right */
  font-size: .87rem;
}
.footer-bottom nav { display: flex; gap: 22px; justify-self: end; }


/* ---------- "Page not found" (404.html in the site root) ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 40px var(--side); }
.notfound .logo-img { height: 34px; width: auto; margin: 0 auto 48px; }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 600; color: var(--white); line-height: 1; margin: 0 0 12px; letter-spacing: -0.03em; }
.notfound h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.notfound p { max-width: 30em; margin: 0 auto 28px; }
.notfound .btn { margin: 4px; }

/* Very wide screens (e.g. 4K): the page stays at most 1920 px wide and is centred, so
   full-width photos are not stretched; a calm grey frame fills the space left and right */
@media (min-width: 1921px) {
  /* The grey frame is an "image" over navy, so Safari still uses navy beyond the top and bottom edge */
  html { background: var(--navy-dark) linear-gradient(#e3e9f0, #e3e9f0); }
  body { max-width: 1920px; margin: 0 auto; box-shadow: 0 0 60px rgba(4,16,44,.10); }
}

/* ---------- 7. MOBILE ADJUSTMENTS ---------- */

/* Tablets and smaller laptops */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .values--row { row-gap: 8px; }
  .values--row .value:nth-child(3) { padding-left: 0; border-left: 0; }   /* 2 columns: new row starts without divider */
  .apps { grid-template-columns: repeat(2, 1fr); }
  .variants { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .stats-list li { justify-content: flex-start; border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Switch to hamburger menu */
@media (max-width: 980px) {
  .menu-btn { display: block; }

  .nav {
    display: none;                     /* hidden until hamburger is clicked */
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--side) 24px;
    background: var(--navy-dark);      /* same as the header, always solid (easy to read) */
    border-bottom: 1px solid rgba(110,175,255,.35);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
  /* Dropdowns inside the mobile menu: full-width rows, lists open in place */
  .dd { border-bottom: 1px solid rgba(255,255,255,.1); }
  .dd-btn { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; }
  .dd-list { position: static; margin: 0 0 12px; box-shadow: none; min-width: 0; }
  .dd--lang { border-left: 0; padding-left: 0; border-bottom: 0; }
  .dd--lang .dd-btn { justify-content: flex-start; }
  .nav .btn { justify-content: center; margin-top: 8px; padding: 14px; }
  /* Pressed field for the current page: full row width in the mobile menu */
  .nav > a[aria-current="page"]:not(.btn), .dd-btn.is-current { padding: 14px 12px; margin: 4px -12px; }
  .dd-btn.is-current { width: calc(100% + 24px); }

  .split-head, .about, .sustain, .production { grid-template-columns: 1fr; }
  .production--steps { grid-template-columns: 1fr; }
  .sub-hero .container { grid-template-columns: 1fr; }
  /* Phones: photo moves below the text, cropped around the panel */
  .sub-hero--photo { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .sub-hero--photo::before { display: none; }
  .sub-hero--photo .sub-hero-bg { position: static; order: 2; height: auto; aspect-ratio: 4 / 3; object-position: 72% 55%; margin-top: 32px; }
  .company-intro > div:last-child { padding-top: 0; }
  .legal-item { grid-template-columns: 1fr; padding: 28px 0; }
  .sustain-text { padding-left: var(--side); padding-right: var(--side); }
  .sustain-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .about-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .about-text { padding-left: var(--side); }
  .contact-grid { grid-template-columns: 1fr; }
  /* CTA on small screens: photo strip on top, navy below with a slanted top edge */
  .cta::before { clip-path: polygon(0 44%, 100% 30%, 100% 100%, 0 100%); }
  .cta-text { padding-top: 270px; }
}

/* Phones */
@media (max-width: 640px) {
  /* Certificates: one under the other, no vertical lines */
  .certs { flex-direction: column; gap: 14px; }
  .cert + .cert { padding-left: 0; border-left: 0; }
  .cert .cert-placeholder, .cert .cert-logo { order: 2; }   /* FSC logo right next to its text, all texts start at the same line */
  body { font-size: 16px; }
  .tiles, .products { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values--row .value, .values--row .value + .value { padding: 22px 0 18px; border-left: 0; }
  .values--row .value + .value { border-top: 1px solid var(--line); }
  .apps, .tiles--2 { grid-template-columns: 1fr; }
  .variants { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  /* Phones: the photo stays behind the text, softened with a Gaussian blur and a light
     (not fully white) layer, so the text is readable and the panels still show through */
  .hero { min-height: 560px; background-position: 70% center; }
  .hero::before {
    background: rgba(245,247,250,.62);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  /* Three facts: one under the other (instead of 2 + 1) */
  .hero-facts { flex-direction: column; gap: 16px; margin-top: 40px; }
  .hero-facts br { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }   /* phones: bottom bar stacked and centred */
  .footer-bottom nav { justify-self: center; }
  .map-card, .form-row { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: 1fr; }
  /* On phones the photo is behind all the text, so darken it evenly */
  /* Phones: the photo behind the text is softened with a Gaussian blur (like the homepage hero),
     on all photo heroes (Company, Sustainability) */
  .page-hero::before { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .page-hero--side::before { background: rgba(7,28,61,.6); }
  /* Certificates: under the button, no line on the left */
  .map { min-height: 200px; }
}

/* =========================================================
   FAQ page: questions that open with a click (<details>)
   ========================================================= */
.faq { max-width: 860px; }
.faq-group { font-size: 1.35rem; margin: 48px 0 12px; }
.faq-group:first-child { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; color: var(--navy); font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform .2s; }   /* + turns into × when open */
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; color: var(--text-muted); line-height: 1.6; max-width: 720px; }
.faq .dl-request { margin-top: 56px; }

/* ---------- BACK TO TOP BUTTON ----------
   Round, floating at the bottom right; made by main.js (part 6) and shown after scrolling down.
   Same see-through navy and blur as the header. */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.3); border-radius: 50%;
  background: var(--navy-dark); color: var(--white); cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, background-color .2s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .to-top { background: rgba(7,28,61,.82); -webkit-backdrop-filter: blur(10px) brightness(.5); backdrop-filter: blur(10px) brightness(.5); }
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--navy-dark); }
@media print { .to-top { display: none; } }
