/* Layout: one wide frame, label column on the left, content on the right; sections divided by hairlines. */
:root {
  --bg: #ffffff;
  --ink: #121715;
  --muted: #5a6561;
  --line: #dde3e0;
  --fill: #f4f7f5;
  --accent: #0d5a48;
  --accent-soft: #edf4f1;
  --on-accent: #ffffff;
  --ok: #0d5a48;
  --err: #a2281f;
  /* Footer band */
  --foot-bg: #121715;
  --foot-text: #e3e9e6;
  --foot-muted: #93a19b;
  --foot-line: #2a332f;
  --foot-icon: #5fbf9f;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-1: .8125rem; --s0: 1.0625rem; --s1: 1.25rem; --s2: 1.625rem; --s3: 2.25rem; --s4: clamp(2.5rem, 6vw, 4.4rem);
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  /* The brand is deliberately light-only: white, dark text, deep green. */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--s0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bg); padding: 8px 12px; border: 1px solid var(--accent); border-radius: 4px; }

.label {
  font-family: var(--font-mono); font-size: var(--s-1); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.head-right { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--ink);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 9px 18px; font-size: .9rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sections */
section { border-bottom: 1px solid var(--line); }
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: var(--s3); max-width: 22ch; }
.sec-head .lede { color: var(--muted); max-width: 58ch; margin-top: 14px; font-size: var(--s1); line-height: 1.5; }
.about-cta { margin-top: 24px; }

/* Photos: stock images represent categories, not Yashna facilities */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--fill); border: 1px solid var(--line); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; max-width: 18ch; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { margin-top: 22px; font-size: var(--s1); color: var(--muted); max-width: 44ch; line-height: 1.5; }
/* Product links separated by hairlines. The row is shifted left and clipped so the divider
   before whichever link starts a line is hidden, including after wrapping. */
.cats { margin: 18px 0 0 -15px; padding-block: 4px; overflow: hidden; display: flex; flex-wrap: wrap; row-gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cats a { text-decoration: none; padding: 2px 14px; margin-left: -1px; border-left: 1px solid var(--line); }
.cats a:hover { color: var(--accent); }
.benefits { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.benefits li { display: inline-flex; align-items: center; gap: 9px; }
.benefits li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .photo { aspect-ratio: 4 / 3.4; }
.hero .photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; max-width: 360px;
}
.hero .photo figcaption strong { font-family: var(--font-display); font-weight: 600; }
.hero .photo figcaption span { color: var(--muted); font-size: .92rem; }

/* Role strip: what Yashna does and where products come from */
.role .wrap { padding-block: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.role .statement { font-family: var(--font-display); font-size: var(--s2); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; max-width: 36ch; text-wrap: pretty; }
.role-note { margin-top: 16px; color: var(--muted); max-width: 62ch; }
.sources { margin-top: 32px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.sources div { padding: 18px 20px 4px 0; display: grid; gap: 4px; min-width: 0; }
.sources div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.sources strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.sources span { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product .photo { aspect-ratio: 4 / 3; }
.product .photo .hs { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: var(--s-1); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.product h3 { font-size: var(--s2); }
.product .desc { color: var(--muted); }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 6.75rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; min-width: 0; }
.product .link { font-family: var(--font-display); font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; gap: 8px; margin-top: auto; }
.product .link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--accent); }
.product .more { color: var(--ink); }
.product .more + .link { margin-top: 0; }
.products-note { margin-top: 36px; padding: 18px 20px; background: var(--fill); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); display: grid; gap: 4px; }
.products-note strong { color: var(--ink); font-weight: 600; }
.terms { margin-top: 16px; color: var(--ink); }
.terms .spec { margin-top: 8px; }
.terms .spec div { grid-template-columns: 9.5rem 1fr; }
.terms .spec div:last-child { border-bottom: 0; }

/* How we supply */
.supply { background: var(--fill); }
.supply .tagline { font-family: var(--font-display); font-size: var(--s1); font-weight: 500; color: var(--accent); margin-top: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { position: relative; padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--s-1); color: var(--accent);
}
.steps .rail { height: 1px; background: var(--line); position: relative; margin: 6px 0 14px; }
.steps .rail::after { content: ""; position: absolute; left: 0; top: -4.5px; width: 10px; height: 10px; border-radius: 50%; background: var(--fill); border: 1px solid var(--accent); }
.steps li:last-child .rail::after { background: var(--accent); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: .98rem; }
.supply-photos { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }
.supply-photos .photo { aspect-ratio: 16 / 10; }
.supply-photos figcaption { position: absolute; left: 12px; bottom: 12px; font-size: .88rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.route { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--muted); font-size: .98rem; }
.route strong { color: var(--ink); font-weight: 600; }
.route .line { flex: 1 1 60px; height: 1px; background: var(--line); min-width: 40px; }

/* Why Yashna */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why article { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.why h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.why p { color: var(--muted); }
.why .mark { width: 18px; height: 1px; background: var(--accent); margin-bottom: 10px; }

/* RFQ */
.rfq-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 80px); }
.rfq-side { display: grid; gap: 32px; align-content: start; min-width: 0; }
.next-steps { color: var(--muted); font-size: .98rem; }
.next-steps strong { color: var(--ink); font-weight: 600; }
.next-steps a { color: var(--accent); }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; align-content: start; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
  transition: border-color .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
textarea { min-height: 150px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.err-msg { color: var(--err); font-size: .85rem; display: none; }
.field.invalid .err-msg { display: block; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.form-foot p { flex-basis: 100%; color: var(--muted); font-size: .9rem; max-width: 56ch; margin-top: 4px; }
.form-foot p a { color: var(--accent); }
.send-error { grid-column: 1 / -1; color: var(--err); font-weight: 600; }

.result { grid-column: 1 / -1; border: 1px solid var(--accent); border-radius: 6px; padding: 24px; display: grid; gap: 14px; background: var(--accent-soft); }
.result h3 { font-size: 1.25rem; }
.result pre {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .85rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 14px; max-height: 260px; overflow: auto;
}
.result .row { display: flex; flex-wrap: wrap; gap: 10px; }
.result .status { font-size: .9rem; color: var(--ok); min-height: 1.2em; }

/* Footer */
/* Footer: dark band with an accent rule; brand on the left, business contacts on the right,
   copyright and links in a bottom bar. */
footer { background: var(--foot-bg); color: var(--foot-text); border-top: 3px solid var(--accent); padding-block: 56px 28px; font-size: .95rem; }
footer :focus-visible { outline-color: var(--foot-icon); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foot-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 64px; align-items: start; }
.foot-brand strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; color: #fff; }
.foot-brand .legal { display: block; margin-top: 2px; font-size: .85rem; color: var(--foot-muted); }
.foot-brand p { margin-top: 18px; font-size: 1.05rem; line-height: 1.55; max-width: 40ch; }
.foot-products { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.foot-products a { color: var(--foot-text); text-decoration: none; }
.foot-products a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; justify-self: end; max-width: 54ch; }
.foot-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; min-width: 0; }
.foot-contact svg { width: 20px; height: 20px; margin-top: 2px; color: var(--foot-icon); }
.foot-contact address { font-style: normal; }
.foot-contact a { color: var(--foot-text); text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact small { color: var(--foot-muted); font-size: .85rem; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--foot-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .85rem; color: var(--foot-muted); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-bottom nav a { color: var(--foot-text); text-decoration: none; }
.foot-bottom nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Motion: content is visible at rest; JS only adds a gentle lift to blocks below the fold. */
.lift { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
.lift.pending { transform: translateY(18px); opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift, .lift.pending { transition: none; transform: none; opacity: 1; }
  .btn, .btn .arrow { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .head-right { gap: 8px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 12px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .site-head .wrap { gap: 10px; }
  .brand b { font-size: .95rem; }
  .head-right .btn.small { padding: 8px 11px; font-size: .84rem; white-space: nowrap; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .photo { aspect-ratio: 16 / 10; }
  .sec-head, .role .wrap { grid-template-columns: 1fr; gap: 16px; }
  .products { grid-template-columns: 1fr; gap: 56px; }
  .product .photo { aspect-ratio: 16 / 9; }
  .why { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 2.5rem 1fr; column-gap: 16px; padding: 0 0 28px; }
  .steps li::before { grid-row: 1 / 3; padding-top: 6px; }
  .steps .rail { display: none; }
  .supply-photos { grid-template-columns: 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .sources { grid-template-columns: 1fr; }
  .sources div, .sources div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .foot-main { grid-template-columns: 1fr; }
  .foot-contact { justify-self: start; }
}
@media (max-width: 600px) {
  .why { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .hero .actions .btn, .form-foot .btn { flex: 1 1 100%; }
  .cats { font-size: .95rem; margin-left: -11px; }
  .cats a { padding: 2px 10px; }
  .route .line { display: none; }
  .hero .photo figcaption { position: static; max-width: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .hero .photo { aspect-ratio: auto; }
  .hero .photo img { aspect-ratio: 16 / 10; height: auto; }
}

/* Styles used only by the generated pages (product pages, FAQ, 404). The rest comes from the home page CSS. */

/* Breadcrumb */
.crumbs { border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Page header: same grid as the home hero, with a product photo on the right */
.page-hero .photo { aspect-ratio: 4 / 3; }
.page-hero .hs { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: var(--s-1); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.page-hero.text-only .hero-grid { grid-template-columns: 1fr; }
.page-hero.text-only h1 { max-width: 22ch; }

/* Long-form copy */
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: var(--s2); margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose a { color: var(--accent); }

/* Links to the other product pages */
.other-products { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.other-products a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.other-products a:hover { border-color: var(--accent); color: var(--accent); }
.page-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 980px) {
  .page-hero .photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .page-cta .btn { flex: 1 1 100%; }
}
