/* Terra Monts corporate styling */
:root {
  --nn-blue: #00008f;
  --nn-blue-dark: #000063;
  --nn-blue-soft: #e8ecf8;
  --ink: #1a1a22;
  --muted: #56566a;
  --line: #dededf;
  --bg: #ffffff;
  --tint: #f4f4f8;
  --red: #c8352b;
  --pill: 85px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
  --font: "Inter", "Noto Sans", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--nn-blue); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* skip link: parked above the page (not off to the side, which made the right-to-left pages scroll sideways) */
.skip { position: absolute; top: .75rem; inset-inline-start: .75rem; z-index: 200; transform: translateY(-300%); background: #fff; color: var(--nn-blue); padding: .75rem 1.25rem; border-radius: var(--pill); box-shadow: 0 8px 24px -10px rgba(10,12,40,.35); }
.skip:focus { transform: none; }

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.display { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; }
.h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.lead { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 44ch; font-weight: 400; }
.body-text { color: var(--muted); max-width: 62ch; }
.body-text + .body-text { margin-top: 1.25rem; }
.label { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nn-blue); }
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section--tint { background: var(--tint); }
.section--blue { background: var(--nn-blue); color: #fff; }
.section--blue .lead, .section--blue .body-text { color: rgba(255,255,255,.82); }
.section--blue .label { color: rgba(255,255,255,.72); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .h2 { margin-top: .75rem; }
.section__head .lead { margin-top: 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .65rem; min-height: 3.25rem; padding: 0 2.5rem; border: 2px solid transparent; border-radius: var(--pill); font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .2s; }
.btn i { font-style: normal; transition: transform .25s; }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--nn-blue); color: #fff; }
.btn--solid:hover { background: var(--nn-blue-dark); }
.btn--outline { border-color: var(--nn-blue); color: var(--nn-blue); }
.btn--outline:hover { background: var(--nn-blue); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--nn-blue); }
.btn--white { background: #fff; color: var(--nn-blue); }
.btn--white:hover { background: var(--nn-blue-soft); }
.link { display: inline-flex; align-items: center; gap: .55rem; color: var(--nn-blue); font-weight: 500; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .25s; }
.link i { font-style: normal; transition: transform .25s; }
.link:hover { border-color: var(--nn-blue); }
.link:hover i { transform: translateX(4px); }
.section--blue .link { color: #fff; }
.section--blue .link:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.75rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo svg { width: 2.2rem; height: 2.2rem; flex: none; }
.logo__word { font-size: 1.0625rem; font-weight: 700; letter-spacing: .16em; color: var(--nn-blue); }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .6rem .9rem; font-size: .9375rem; color: var(--ink); border-radius: 6px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--nn-blue); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--nn-blue); font-weight: 600; box-shadow: inset 0 -2px 0 var(--nn-blue); border-radius: 0; }
.nav a.btn--solid { color: #fff; }
.nav a.btn--solid:hover { color: #fff; background: var(--nn-blue-dark); }
.nav .btn { min-height: 2.75rem; padding: 0 1.6rem; font-size: .9375rem; margin-left: .75rem; }
.burger { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 1.1rem; height: 2px; margin: 0 auto; background: var(--ink); position: relative; transition: transform .25s, background-color .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 940px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 4.75rem; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .9rem .25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 1.25rem 0 0; justify-content: center; }
}

.hero { position: relative; min-height: max(21rem, calc(100vh - 4.75rem - 1px)); min-height: max(21rem, calc(100svh - 4.75rem - 1px)); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--nn-blue-dark); }
.hero--inner { }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,60,.78) 0%, rgba(0,0,60,.38) 45%, rgba(0,0,60,.12) 100%); }
.hero__copy { position: relative; z-index: 1; padding: clamp(1.75rem, 3vw, 2.75rem) 0; max-width: 42rem; max-height: 100%; overflow: hidden; }
.hero__copy .lead { color: rgba(255,255,255,.88); margin-top: 1rem; line-height: 1.5; max-width: 46ch; }
.hero__copy .label { color: rgba(255,255,255,.8); margin-bottom: 1rem; display: block; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card { display: flex; flex-direction: column; gap: .85rem; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); border-radius: 14px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.04); }
.card p { color: var(--muted); }
.card .link { margin-top: auto; padding-top: .5rem; align-self: flex-start; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.section--blue .stats { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.25); }
.stat { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem); }
.section--blue .stat { background: var(--nn-blue); }
.stat b { display: block; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--nn-blue); }
.section--blue .stat b { color: #fff; }
.stat span { display: block; margin-top: .75rem; font-size: .9375rem; color: var(--muted); max-width: 22ch; }
.section--blue .stat span { color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.pills { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin-top: 2rem; }
.pills li { padding: .6rem 1.35rem; border: 1px solid var(--line); border-radius: var(--pill); font-size: .9375rem; color: var(--nn-blue); background: #fff; }
.hero .pills { margin-top: 1.25rem; }
.hero .pills li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.hero__copy .lead { line-height: 1.45; }
.hero .pills { margin-top: 1rem; }
.hero .pills li { padding: .45rem 1.1rem; font-size: .875rem; }



.rows { list-style: none; border-top: 1px solid var(--line); margin-top: clamp(2rem, 4vw, 3rem); }
.rows li { display: grid; grid-template-columns: 5rem 1fr 1.1fr; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.75rem, 3vw, 2.75rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.rows b { font-size: 1rem; font-weight: 400; color: var(--nn-blue); }
.rows p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .rows li { grid-template-columns: 1fr; gap: .75rem; } }

.list { list-style: none; border-top: 1px solid var(--line); }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.list li span { font-size: .9375rem; color: var(--muted); }

.quote { text-align: center; max-width: 34rem; margin: 0 auto; }
.quote blockquote { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.15; letter-spacing: -0.015em; }
.quote figcaption { margin-top: 1.5rem; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }

.target { display: flex; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; margin-top: 2.5rem; padding: 2.25rem 2rem; background: var(--nn-blue-soft); border-radius: 14px; }
.target b { font-size: 3.25rem; font-weight: 400; line-height: 1; letter-spacing: -0.03em; color: var(--nn-blue); }
.target span { font-size: .9375rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.chip { padding: .6rem 1.35rem; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--nn-blue); color: var(--nn-blue); }
.chip[aria-pressed="true"] { background: var(--nn-blue); border-color: var(--nn-blue); color: #fff; }
.chip b { font-weight: 400; margin-left: .4rem; opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0; background: var(--bg); border: 1px solid var(--line); list-style: none; }
.product { background: #fff; padding: 1.75rem; display: flex; flex-direction: column; gap: .4rem; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); transition: background-color .2s; }
.product:hover { background: var(--nn-blue-soft); }
.product__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .8125rem; }
.product__cat { color: var(--nn-blue); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.product__form { color: var(--muted); }
.product__form[data-form="Injection"] { color: var(--red); }
.product h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: .01em; }
.product p { color: var(--muted); font-size: .9375rem; min-height: 2.8em; }
.product__meta { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }
.product__meta span:last-child { color: var(--muted); }
.note { margin-top: 2rem; font-size: .9375rem; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.details { list-style: none; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.details li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.details small { display: block; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.details a, .details span { font-size: 1.125rem; }
.details a:hover { color: var(--nn-blue); }
.form { background: var(--tint); padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9375rem; font-weight: 500; }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--nn-blue); box-shadow: 0 0 0 3px rgba(0,0,143,.12); }
.field input::placeholder, .field textarea::placeholder { color: #8a8a99; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red); font-size: .875rem; }
.status { padding: .9rem 1.1rem; font-size: .9375rem; }
.status[data-kind="ok"] { background: var(--nn-blue-soft); color: var(--nn-blue); }
.status[data-kind="error"] { background: #fbeceb; color: var(--red); }
.form .btn { justify-content: center; }
@media (max-width: 900px) { .contact, .form__row { grid-template-columns: 1fr; } }

.footer { background: var(--nn-blue); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer .logo__word { color: #fff; }
.footer .logo svg rect:first-of-type { fill: #ffffff; }
.footer .logo svg path:first-of-type { fill: var(--nn-blue); }
.footer p { color: rgba(255,255,255,.8); max-width: 34ch; margin-top: 1.25rem; }
.footer h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .7rem; }
.footer ul a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .875rem; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal--2 { animation-delay: .08s; }
.reveal--3 { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  * { transition: none !important; }
}

.topbar { background: var(--nn-blue-dark); color: rgba(255,255,255,.88); font-size: .8125rem; }
.topbar div { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; min-height: 2.4rem; padding-top: .35rem; padding-bottom: .35rem; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer; }
.lang__btn:hover { border-color: var(--nn-blue); color: var(--nn-blue); }
.lang__btn svg { width: 1.05rem; height: 1.05rem; }
.lang__menu { position: absolute; top: calc(100% + .5rem); inset-inline-end: 0; min-width: 10rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -20px rgba(0,0,0,.35); padding: .35rem; display: none; z-index: 95; }
.lang__menu[data-open="true"] { display: block; }
.lang__menu button { display: block; width: 100%; text-align: start; padding: .65rem .9rem; border: 0; border-radius: 10px; background: none; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer; }
.lang__menu button:hover { background: var(--tint); }
.lang__menu button[aria-current="true"] { color: var(--nn-blue); font-weight: 600; background: var(--nn-blue-soft); }
@media (max-width: 940px) { .lang { margin-top: 1rem; } .lang__btn { width: 100%; justify-content: center; } .lang__menu { inset-inline: 0; } .topbar div { justify-content: center; text-align: center; } }

.news { list-style: none; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1rem,3vw,3rem); padding: clamp(1.5rem,3vw,2.5rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.news h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.news p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .news li { grid-template-columns: 1fr; gap: .75rem; } }

.quick { background: var(--nn-blue-soft); padding: clamp(1.75rem,3vw,2.5rem); }
.quick h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nn-blue); margin-bottom: 1.25rem; }
.quick ul { list-style: none; display: grid; gap: .85rem; }
.quick a { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .85rem; border-bottom: 1px solid rgba(0,0,143,.18); color: var(--nn-blue); font-weight: 500; }
.quick li:last-child a { border-bottom: 0; padding-bottom: 0; }

.checks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,3vw,2.5rem); margin-top: clamp(2rem,4vw,3rem); }
.checks li { padding-top: 1.5rem; border-top: 2px solid rgba(255,255,255,.6); font-size: 1.0625rem; }
@media (max-width: 860px) { .checks { grid-template-columns: 1fr; } }

[dir="rtl"] body, [dir="rtl"] .btn, [dir="rtl"] .chip, [dir="rtl"] .field input, [dir="rtl"] .field textarea, [dir="rtl"] .lang__btn, [dir="rtl"] .lang__menu button { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", var(--font); }
[dir="rtl"] .display, [dir="rtl"] .h2, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .label, [dir="rtl"] .footer h2, [dir="rtl"] .quick h2, [dir="rtl"] .details small, [dir="rtl"] .quote figcaption, [dir="rtl"] .product__cat, [dir="rtl"] .logo__word { letter-spacing: 0; }
[dir="rtl"] .btn i, [dir="rtl"] .link i { transform: scaleX(-1); }
[dir="rtl"] .btn:hover i, [dir="rtl"] .link:hover i { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .split--reverse .split__media { order: 0; }

/* Brand logo */
.logo { gap: .65rem; }
.logo__icon { height: 2.75rem; width: auto; flex: none; }
.logo__word-img { height: 1rem; width: auto; flex: none; }
.footer .logo__word-img { height: 1rem; }
.footer .logo__icon { filter: brightness(1.45) saturate(.4); }
@media (max-width: 520px) { .logo__icon { height: 2.3rem; } .logo__word-img { height: .9rem; } }


/* Page head (image shown whole, not cropped into a band) */
.page-head { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-head .split__media { aspect-ratio: 4 / 3; border-radius: 14px; }

/* Filtered-out products must actually disappear: .product sets display:flex,
   which otherwise wins over the hidden attribute. */
.product[hidden] { display: none !important; }


/* Enquiry form when it sits in a two-column section (home page) */
.split .form { margin: 0; }
.split .form .h3 { margin-bottom: .25rem; }

/* banner text sits a little below centre where the banner is tall enough */
@media (min-width: 1440px) { .hero__copy { transform: translateY(4.25rem); } }
@media (min-width: 1200px) and (max-width: 1439px) { .hero__copy { transform: translateY(2rem); } }
@media (max-width: 760px) { .hero { min-height: max(26rem, calc(100vh - 4.75rem - 1px)); min-height: max(26rem, calc(100svh - 4.75rem - 1px)); } }

/* single page: menu links scroll to sections, which stop just below the sticky header */
main section[id] { scroll-margin-top: calc(4.75rem + 1px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* =====================================================================
   POLISH LAYER (Sept 2026) — refines the rules above; wording, section
   order, heading sizes and brand colours are unchanged.
   ===================================================================== */
:root {
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10,12,40,.06), 0 14px 34px -18px rgba(10,12,40,.28);
  --shadow-hover: 0 2px 4px rgba(10,12,40,.06), 0 24px 46px -20px rgba(10,12,40,.36);
  --ease: cubic-bezier(.2,.7,.2,1);
  --section-y: 6rem;               /* 96px desktop */
}
@media (max-width: 1024px) { :root { --section-y: 4.5rem; } }   /* 72px tablet */
@media (max-width: 640px)  { :root { --section-y: 3.5rem; } }   /* 56px phone  */
picture { display: contents; }

/* 1. Typography — same sizes as before, stronger weight */
.display { font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.h2 { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.h3, .product h3 { font-weight: 600; letter-spacing: -.005em; }
[dir="rtl"] .display, [dir="rtl"] .h2 { font-weight: 700; }
.lead { line-height: 1.6; }
.label, .details small, .quote figcaption { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.details small { color: var(--nn-blue); margin-bottom: .35rem; }

/* 2. One vertical rhythm */
.section { padding-block: var(--section-y); }
.label + .h2, .label + .display { margin-top: .75rem; }
.h2 + .lead, .h2 + .body-text, .display + .lead, .section__head .lead { margin-top: 1.25rem; }
.lead + .body-text, .lead + .lead, .body-text + .body-text { margin-top: 1rem; }
.section__head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.actions { margin-top: 2rem; }

/* 3. Banner — readable on every photo, paired buttons, gentle entrance */
.hero::after {
  background:
    linear-gradient(90deg, rgba(0,0,45,.84) 0%, rgba(0,0,45,.7) 36%, rgba(0,0,45,.36) 62%, rgba(0,0,45,.12) 100%),
    linear-gradient(to top, rgba(0,0,50,.45) 0%, rgba(0,0,50,0) 45%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, rgba(0,0,45,.84) 0%, rgba(0,0,45,.7) 36%, rgba(0,0,45,.36) 62%, rgba(0,0,45,.12) 100%),
    linear-gradient(to top, rgba(0,0,50,.45) 0%, rgba(0,0,50,0) 45%);
}
@media (max-width: 1024px) {   /* on phones and tablets the text spans most of the width: darken evenly */
  .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(to top, rgba(0,0,45,.9) 0%, rgba(0,0,45,.78) 55%, rgba(0,0,45,.6) 100%); }
}
.hero .display { text-shadow: 0 2px 24px rgba(0,0,40,.3); }
.hero__copy { overflow: visible; isolation: isolate; }
.hero__copy::before { content: ""; position: absolute; z-index: -1; inset: -12% -18%; background: radial-gradient(closest-side, rgba(0,0,40,.55), rgba(0,0,40,0)); pointer-events: none; }
.hero__copy .lead { color: rgba(255,255,255,.92); margin-top: 1.25rem; }
.btn--white { background: #fff; color: var(--nn-blue); border-color: #fff; }
.btn--white:hover { background: var(--nn-blue-soft); border-color: var(--nn-blue-soft); color: var(--nn-blue); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .12s; }
.hero__copy > :nth-child(3) { animation-delay: .24s; }

/* 4. Header — shadow on scroll, clear active underline, smooth mobile menu */
.header { transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.header[data-scrolled="true"] { border-bottom-color: transparent; box-shadow: 0 10px 28px -16px rgba(10,12,40,.3); }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: .9rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--nn-blue); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a[aria-current="page"] { box-shadow: none; border-radius: 6px; }
.nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav a.btn[aria-current="page"] { border-radius: var(--pill); color: #fff; font-weight: 500; box-shadow: 0 0 0 3px rgba(0,0,143,.18); }
@media (max-width: 940px) {
  .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); max-height: calc(100vh - 4.75rem); max-height: calc(100svh - 4.75rem); overflow-y: auto; box-shadow: 0 22px 34px -24px rgba(10,12,40,.4); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s; }
  .nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
  .nav a:not(.btn)::after { display: none; }
  .nav a:not(.btn):hover { background: none; }
  .nav a[aria-current="page"]:not(.btn) { color: var(--nn-blue); font-weight: 600; }
}

/* 5. Cards and photos — one radius, one shadow */
.card__media, .split__media, .target, .form, .grid, .status { border-radius: var(--radius); }
.split__media { box-shadow: var(--shadow); }
.section--tint .card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); gap: .75rem; padding-bottom: 1.75rem; }
.section--tint .card__media { border-radius: 0; }
.section--tint .card > :not(.card__media) { padding-inline: 1.5rem; }
.section--tint .card .h3 { margin-top: .5rem; }
@media (hover: hover) and (min-width: 901px) {
  .card { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
}

/* 6. Partner figures */
.stat b { font-weight: 600; font-size: clamp(2.5rem, 4.6vw, 3.75rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { margin-top: .9rem; line-height: 1.45; }
.section--blue .stat span { color: rgba(255,255,255,.86); }
.target b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* 7. Products */
.chip { font-weight: 500; }
.chip b { font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { box-shadow: 0 8px 18px -10px rgba(0,0,143,.6); }
.chip[aria-pressed="true"] b { opacity: .85; }
.grid { overflow: hidden; box-shadow: var(--shadow); }
.product { padding: 1.75rem 1.6rem; transition: background-color .2s var(--ease); }
.product h3 { transition: color .2s var(--ease); }
.product p { min-height: 0; margin-bottom: 1.25rem; }
.product__meta { margin-top: auto; }
.product__meta span:first-child { font-weight: 600; color: var(--ink); }
.product:hover h3 { color: var(--nn-blue); }
.product:hover .product__form[data-form="Injection"] { color: #a8281f; }   /* keeps AA contrast on the hover tint */

/* 8. Falsified medicines — numbered steps */
.checks { counter-reset: tip; }
.checks li { counter-increment: tip; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.35); line-height: 1.55; }
.checks li::before { content: counter(tip); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); font-size: 1rem; font-weight: 600; }

/* 9. Contact form */
.form { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.field input, .field textarea { border-radius: var(--radius-sm); border-color: #cfd0d8; }
.field input:hover, .field textarea:hover { border-color: #a4a5b4; }
.field input:focus, .field textarea:focus { border-color: var(--nn-blue); box-shadow: 0 0 0 4px rgba(0,0,143,.14); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover { border-color: var(--red); }
.field [aria-invalid="true"]:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200,53,43,.16); }
.field__error { display: flex; align-items: center; gap: .45rem; font-size: .875rem; color: var(--red); }
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; }
.status { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.5; }
.status[hidden] { display: none; }
.status[data-kind="success"] { background: var(--nn-blue-soft); color: var(--nn-blue); font-weight: 500; }
.status[data-kind="success"]::before { content: "\2713"; flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--nn-blue); color: #fff; font-size: .8rem; }
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading i { display: none; }
.btn.is-loading::after { content: ""; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 10. Footer */
.footer { padding: clamp(3rem, 5vw, 4rem) 0 2rem; }
.footer__grid { grid-template-columns: 1fr; }
.footer__grid > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.footer p { margin-top: 0; max-width: 42ch; }
.footer__base { margin-top: 2.25rem; }
@media (max-width: 640px) { .footer__grid > div { flex-direction: column; align-items: flex-start; } }

/* Keyboard focus that shows on dark backgrounds too */
.hero :focus-visible, .section--blue :focus-visible, .footer :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .btn.is-loading::after { animation: none; }
  .card:hover { transform: none; }
}

/* Right-to-left pages: keep English names, numbers, units and phone numbers in the right order */
.chip b { margin-left: 0; margin-inline-start: .4rem; }
[dir="rtl"] .product h3, [dir="rtl"] .product > p { unicode-bidi: plaintext; text-align: right; }
[dir="rtl"] .product__meta span { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat b, [dir="rtl"] .target b { direction: ltr; unicode-bidi: isolate; text-align: right; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }

/* Partner section: centre the "Visit Caplin Point" button */
#partner .actions { justify-content: center; }

/* ---------------------------------------------------------------
   Scroll animations (only active when site.js adds .js-anim, and
   never for visitors who prefer reduced motion)
   --------------------------------------------------------------- */
.js-anim .anim { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease), clip-path 1.1s var(--ease); transition-delay: var(--anim-delay, 0s); will-change: opacity, transform; }
.js-anim .anim--up { transform: translateY(28px); }
.js-anim .anim--media { transform: scale(.96); clip-path: inset(6% 6% 6% 6% round 18px); }
.js-anim .anim.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 0); }
.js-anim .anim--media img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js-anim .anim--media.in img { transform: scale(1); }

/* banner photo: slow, gentle zoom-out when the page opens */
.hero img { animation: hero-settle 9s cubic-bezier(.2,.6,.2,1) both; transform-origin: 60% 45%; }
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: scale(1); } }

/* banner: scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: clamp(1.25rem, 3vh, 2rem); z-index: 1; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.75); border-radius: 14px; opacity: .9; transition: opacity .4s var(--ease); pointer-events: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
.scroll-cue.is-gone { opacity: 0; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 560px) { .scroll-cue { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero img, .scroll-cue::after { animation: none; }
  .js-anim .anim, .js-anim .anim--media img { opacity: 1; transform: none; clip-path: none; transition: none; }
}
