/* Finnscrew - site styles.
   Identity carried over from the original site: blue radial-gradient header, navy menu bar,
   serif headings, navy section menu. Fonts are self-hosted (static/fonts, SIL OFL). */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #2d3252;
  --navy-deep: #1f2340;
  --navy-ink: #181b33;
  --blue: #007fc5;
  --blue-dark: #00669e;
  --blue-soft: #e5f1fa;
  --steel: #eef2f7;
  --text: #363b48;
  --muted: #646a7a;
  --border: #dde2ea;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(24, 27, 51, .06), 0 8px 24px rgba(24, 27, 51, .08);
  --shadow-lift: 0 2px 4px rgba(24, 27, 51, .08), 0 16px 40px rgba(24, 27, 51, .16);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --brand-gradient: radial-gradient(ellipse 70% 140% at 50% 50%, #0b84c9 0%, #1867a8 35%, #27427a 70%, #2d3252 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--sans); font-size: 106.25%; line-height: 1.65; color: var(--text); background: #fff; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.2; margin: 1.6em 0 .55em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin: 0; }
h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; float: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; background: #fff; padding: .5em 1em; }
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------ header */
.brand-band { background: var(--navy) var(--brand-gradient); color: #fff; }
.brand-inner { display: flex; align-items: center; gap: 24px; min-height: 112px; }
.logo img { width: 237px; }  /* native size of the only logo file we have; larger would blur */
.tagline { width: 341px; margin-left: auto; opacity: .95; }

.site-nav { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 2px 0 var(--navy-deep); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.site-nav a {
  display: block; padding: 13px 18px; color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
}
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav .active > a { background: #fff; color: var(--navy); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .tagline { display: none; }
  .brand-inner { min-height: 80px; }
  .logo img { width: 176px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .6em; margin-left: auto;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px;
    color: #fff; font: inherit; font-weight: 600; padding: .45em .9em; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 1px;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav .container { padding-inline: 0; }
  .site-nav ul { flex-direction: column; padding-block: 6px; }
  .site-nav li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .site-nav a { padding: 12px var(--gutter); }
}

/* ------------------------------------------------------------ title band */
.title-band { background: var(--steel); border-bottom: 1px solid var(--border); padding-block: 26px 30px; }
.title-band.has-image {
  background: linear-gradient(90deg, rgba(24, 27, 51, .88) 0%, rgba(31, 35, 64, .6) 55%, rgba(31, 35, 64, .25) 100%),
              var(--band-image) center 40% / cover no-repeat;
  border-bottom: 0; padding-block: 64px 56px;
}
.title-band.has-image h1, .title-band.has-image .breadcrumbs, .title-band.has-image .breadcrumbs a { color: #fff; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "\203A"; margin: 0 .55em; opacity: .6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ page */
.page { padding-block: 40px 72px; }
.page-body { display: grid; gap: 44px; }
.has-sidebar .page-body { grid-template-columns: 268px minmax(0, 1fr); }
@media (max-width: 860px) { .has-sidebar .page-body { grid-template-columns: 1fr; } }
.content > :first-child { margin-top: 0; }
.content ul:not([class]) li::marker { color: var(--blue); }
.content ul:not([class]) li { padding-left: .2em; margin-bottom: .2em; }
.content ul.columns { columns: 2 220px; column-gap: 32px; }
.content ul.columns li { break-inside: avoid; }
.content ul.columns li::marker { color: var(--blue); }
.content > :last-child { margin-bottom: 0; }
.prose { max-width: 70ch; }
.lead, .content > p:first-child { font-size: 1.12rem; color: var(--navy); }

/* Section menu - navy blocks, as on the original site */
.section-nav { align-self: start; position: sticky; top: 16px; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav > ul > li > a {
  display: block; background: var(--navy-deep); color: #fff; font-family: var(--serif); font-size: 1.15rem;
  padding: 14px 18px; border-radius: var(--radius) var(--radius) 0 0; text-decoration: none;
}
.section-nav > ul > li > ul > li { margin-top: 3px; }
.section-nav > ul > li > ul > li > a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; padding: 11px 18px; text-decoration: none; font-weight: 600;
}
.section-nav > ul > li > ul > li > a::after { content: "\203A"; font-size: 1.3em; line-height: 1; opacity: .7; }
.section-nav > ul > li > ul > li.active > a::after { transform: rotate(90deg); }
.section-nav > ul > li > ul > li:last-child > a { border-radius: 0 0 var(--radius) var(--radius); }
.section-nav > ul > li > ul > li.active:last-child > a { border-radius: 0; }
.section-nav ul ul ul { background: var(--steel); padding: 4px 0; }
.section-nav ul ul ul a { display: block; padding: 8px 18px 8px 30px; color: var(--navy); text-decoration: none; font-size: .95rem; }
.section-nav ul ul ul a:hover { background: #e2e8f0; }
.section-nav > ul > li > ul > li > a:hover { background: #3a4068; color: #fff; }
.section-nav a[aria-current] { background: var(--blue) !important; color: #fff !important; }
@media (max-width: 860px) { .section-nav { position: static; order: 2; } }

/* ------------------------------------------------------------ home */
.layout-home .page { padding-top: 0; background: linear-gradient(var(--navy) 0 130px, transparent 130px); max-width: none; }
.layout-home .page-body { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.hero { margin: 0 0 64px; padding-top: 28px; }
.hero-slides { display: grid; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lift); background: var(--navy-ink); }
.hero-slides img { grid-area: 1 / 1; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-slides img.is-active { opacity: 1; }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.hero-dots button {
  width: 32px; height: 6px; padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--border); transition: background .3s;
}
.hero-dots button[aria-current="true"] { background: var(--blue); }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }
@media (max-width: 700px) { .layout-home .page { background: linear-gradient(var(--navy) 0 90px, transparent 90px); } .hero { padding-top: 16px; margin-bottom: 44px; } }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 6px; }
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 72px; }
.intro h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); margin-top: 0; }
.intro-text > p:not(.eyebrow) { font-size: 1.1rem; }
.intro-image { justify-self: center; filter: drop-shadow(0 20px 30px rgba(24, 27, 51, .22)); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts li { border-top: 3px solid var(--blue); padding-top: 12px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1.15; margin-bottom: 4px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 24px; } .intro-image { order: -1; max-width: 340px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.feature-cards, .cards, .gallery, .people, .maps { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 24px; }
.feature-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 72px; }
.feature-cards a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-cards a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--text); }
.feature-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h2 { margin: 0 0 8px; font-size: 1.35rem; }
.card-body p { color: var(--muted); }
.more { margin-top: auto; color: var(--blue); font-weight: 600; }
.more::after { content: " \2192"; transition: margin .2s; }
a:hover .more::after { margin-left: 4px; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  background: var(--navy) var(--brand-gradient); color: #dfe8f5; border-radius: 12px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 56px); box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.cta-band p { margin: 0; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button, button[type="submit"] {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff; border: 2px solid transparent; border-radius: 6px; padding: .7em 1.5em;
  transition: background .15s, color .15s;
}
.button:hover, button[type="submit"]:hover { background: var(--blue-dark); color: #fff; }
.cta-band .button { background: #fff; color: var(--navy); }
.cta-band .button:hover { background: var(--blue-soft); color: var(--navy); }
.cta-band .button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .button-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------------------ products */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: 40px; align-items: start; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product-image { order: -1; } }
.product-image { margin: 0; }
.product-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-text > p:first-child { font-size: 1.12rem; color: var(--navy); }
.product h2 { font-size: 1.2rem; margin-top: 1.8em; }

.gallery { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(24, 27, 51, .15); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.06); }

.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 1.75em; }
.cards a {
  display: block; height: 100%; padding: 18px 20px; text-decoration: none; background: #fff;
  border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.cards a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cards strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.cards strong::after { content: "\00a0\2192"; color: var(--blue); font-family: var(--sans); }
.cards span { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; }

/* ------------------------------------------------------------ delivery */
.process { list-style: none; padding: 0; counter-reset: step; max-width: 780px; }
.process > li { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.process > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 0 0 5px var(--blue-soft);
}
.process > li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 50px; bottom: 6px; width: 2px; background: var(--border); }
.process h2 { margin: 7px 0 4px; font-size: 1.3rem; }
.process p { margin: 0; }
.process-branch { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.process-branch li { background: var(--steel); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; }
.process-branch h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tag { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); background: var(--blue-soft); padding: .2em .6em; border-radius: 99px; vertical-align: middle; margin-left: .3em; }

/* ------------------------------------------------------------ history */
.timeline { list-style: none; padding: 0; margin: 0 0 3em; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.timeline li { background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); padding: 14px 18px 16px; font-size: .95rem; line-height: 1.5; }
.timeline .year { display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }

/* ------------------------------------------------------------ company / contact */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.side-panel { background: var(--steel); border-radius: var(--radius); padding: 20px; align-self: start; }
.side-panel img { border-radius: 6px; margin-bottom: 20px; }
address { font-style: normal; margin-bottom: 1.2em; line-height: 1.55; }

.people { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; font-size: .9rem; color: var(--muted); line-height: 1.45; margin-block: 28px 32px; }
.people li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.people img { width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: 50%; margin: 0 auto 12px; box-shadow: 0 0 0 4px var(--blue-soft); }
.people strong { display: block; color: var(--navy); font-size: 1rem; }

.maps { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.maps img { border: 1px solid var(--border); border-radius: 6px; width: 100%; }

/* ------------------------------------------------------------ forms */
.form-section { margin-top: 3em; max-width: 780px; background: var(--steel); border-radius: 12px; padding: clamp(20px, 4vw, 36px); }
.form-section h2 { margin-top: 0; }
.form { max-width: 880px; }
.form fieldset { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px 24px 24px; margin: 0 0 22px; }
.form legend { float: left; width: 100%; font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.25rem; padding: 0; margin-bottom: 16px; }
.form legend + * { clear: both; }
.form-section .form fieldset { box-shadow: none; background: transparent; padding: 0; margin: 0 0 16px; }
.form fieldset.rotation { box-shadow: none; padding: 0; margin: 20px 0; background: transparent; }
.form fieldset.rotation legend { font-size: 1rem; margin-bottom: 8px; }
.form fieldset.checks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 20px; }
.fields > label, .fields > .pair { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); }
.fields > label > input, .fields > label > select, .fields > label > textarea { display: block; margin-top: 5px; }
.fields .full { grid-column: 1 / -1; }
.pair { display: flex !important; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.pair span { flex-basis: 100%; }
.pair input { flex: 1; min-width: 0; width: auto; }
.checks label { display: flex; align-items: center; gap: .5em; font-weight: 600; color: var(--navy); }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); width: 100%;
  padding: .55em .7em; border: 1px solid #c3cad6; border-radius: 6px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 127, 197, .18); outline: none; }
.req { color: var(--muted); font-weight: 400; font-size: .8rem; }
.diagram { margin: 0 0 20px; max-width: 640px; width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js [data-other-target]:not(.is-shown), .js [data-prop].is-hidden { display: none; }

/* ------------------------------------------------------------ lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 18, 35, .88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button {
  position: fixed; top: 16px; right: 16px; font: inherit; font-size: 1.6rem; line-height: 1;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer;
}

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-deep); color: #c3c8d9; font-size: .92rem; line-height: 1.6; border-top: 4px solid var(--blue); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 40px; padding-block: 52px 44px; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fb6e0; margin: 4px 0 14px; }
.footer-brand img:first-child { width: 166px; margin-bottom: 14px; }
.footer-brand p { max-width: 26ch; }
.footer-seal { width: 88px; margin-top: 8px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45em; }
.footer-contact address strong { color: #fff; }
.footer-mail { font-weight: 600; }
.footer-bottom { background: var(--navy-ink); color: #8a90a8; font-size: .85rem; padding-block: 16px; }
.footer-bottom a { color: #b5bbd0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .footer-brand, .footer-contact { grid-column: 1 / -1; } .footer-brand p { max-width: none; } }
