/* Glasswing — site styles */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --wing: #7aa2d6;        /* logo blue */
  --wing-soft: #dbe6f5;
  --mist: #f2f6fb;        /* tinted sections */
  --blue: #2c5a96;        /* links & buttons (AA on white) */
  --blue-dark: #1f4373;
  --ink: #152338;         /* headings, footer */
  --text: #2c3a4e;
  --muted: #5b6a7e;
  --line: #d9e2ee;
  --white: #ffffff;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 46rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; border-radius: var(--radius); }
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: auto; }
.brand:hover { color: var(--ink); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.nav-list a { display: block; padding: 0.5rem 0.85rem; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: var(--radius); }
.nav-list a:hover { background: var(--mist); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--wing); border-radius: 0; }
.nav-phone a { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }

@media (max-width: 47.99rem) {
  .js .menu-toggle {
    display: inline-block; font: inherit; font-weight: 600; color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.45rem 0.9rem; cursor: pointer;
  }
  .js .nav-list { display: none; }
  .js .nav-open .nav-list {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 4.5rem; z-index: 5;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .js .nav-open .nav-list a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .site-header { position: relative; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--blue); color: var(--white); text-decoration: none;
  padding: 0.85rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--blue);
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--mist); color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--wing-soft); border-color: var(--wing-soft); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.text-link { font-weight: 600; }

.kicker { color: var(--blue); font-weight: 600; font-size: 1rem; margin-bottom: 0.9rem; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 40em; }
.strong { font-weight: 600; color: var(--ink); font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 3rem; padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { max-width: 14em; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 30rem; }
.hero-art img { width: 100%; }
@media (max-width: 47.99rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; justify-self: start; max-width: 9rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-flush { padding-top: 0; }
.section-tint { background: var(--mist); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-h { margin: 0; }
.split-h p { color: var(--muted); margin-top: 1rem; }
.split-body { max-width: 38rem; }
@media (max-width: 47.99rem) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-short { padding-bottom: clamp(4rem, 10vw, 8rem); }
.page-head h1 { max-width: 18em; }

/* ---------- Solutions index ---------- */
/* Each row is marked with a feather stripe borrowed from the logo. */
.svc-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-top: 1px solid var(--line); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 1rem; align-content: start; padding: 1.4rem 0.5rem 1.5rem 0; text-decoration: none; color: inherit; height: 100%; }
.svc-index a::before {
  content: ""; grid-row: 1 / span 2; width: 2.25rem; height: 0.7rem; margin-top: 0.5rem;
  background: var(--wing); border-bottom-left-radius: 70% 100%;
  transition: width 0.2s ease, background-color 0.2s;
}
.svc-name { font-weight: 700; color: var(--ink); font-size: 1.15rem; line-height: 1.3; }
.svc-sum { color: var(--muted); margin-top: 0.3rem; font-size: 0.98rem; }
.svc-index a:hover .svc-name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.svc-index a:hover::before { background: var(--blue); }
.after-list { margin: 2rem 0 0; }
@media (max-width: 47.99rem) { .svc-index { grid-template-columns: 1fr; } }

/* ---------- Service article ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-top: 0; }
.prose p + h2 { margin-top: 2.5rem; }
.aside-card { border: 1px solid var(--line); border-top: 4px solid var(--wing); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 1.5rem; }
.aside-card h2 { font-size: 1.25rem; }
.aside-card p { color: var(--muted); }
.aside-meta { margin: 1.25rem 0 0; font-size: 0.98rem; line-height: 1.8; }
@media (max-width: 47.99rem) { .article-grid { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- About ---------- */
.industries { margin: 0; }
.industries > div { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.industries > div:first-child { border-top: 0; padding-top: 0; }
.industries dt { font-weight: 700; color: var(--ink); font-size: 1.2rem; margin-bottom: 0.35rem; }
.industries dd { margin: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.values li { border-top: 3px solid var(--wing); padding-top: 1.25rem; }
.values p { margin: 0; color: var(--text); }
@media (max-width: 60rem) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .values { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: #c9d5e6; padding: clamp(3rem, 7vw, 4.5rem) 0; }
.band h2 { color: var(--white); }
.band p { max-width: 38rem; margin: 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem 3rem; flex-wrap: wrap; }
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.band-phone { color: var(--wing-soft); font-weight: 500; }
.band-phone:hover { color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-form { max-width: 40rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; font-size: 0.98rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #b9c7d9; border-radius: var(--radius); padding: 0.75rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--wing-soft); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 1rem 0 0; min-height: 1.6em; font-weight: 500; }
.form-status.is-ok { color: #1f6b3a; }
.form-status.is-error { color: #a32c2c; }
.contact-details { background: var(--mist); border-radius: var(--radius); padding: 2rem; }
.contact-details h2 { font-size: 1.3rem; }
.contact-details dl { margin: 0; }
.contact-details dl > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.contact-details dt { font-size: 0.9rem; color: var(--muted); }
.contact-details dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 47.99rem) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b4c2d6; border-top: 1px solid #22324b; font-size: 0.96rem; }
.band + .site-footer { border-top-color: #2a3c58; }
.footer-grid { display: grid; grid-template-columns: 1fr 2.1fr 0.8fr 1.3fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }
.footer-brand p { margin-top: 0.75rem; }
.footer-h { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-cols { columns: 2; column-gap: 1.5rem; }
.footer-cols li { break-inside: avoid; }
.site-footer a { color: #d6e1f0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid #2a3c58; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: 0.9rem; color: #8d9db4; }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } .footer-cols { columns: 1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
