/* Lifco Al Rawabi Trading — site styles
   Tokens first; change colours and type here. */
/* Fonts are self-hosted (faster, no third-party requests). Both are SIL Open Font License. */
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --ink: #1f2225;
  --ink-2: #474b50;
  --muted: #666a6f;
  --paper: #ffffff;
  --stone: #f3f3f0;
  --stone-2: #e8e8e4;
  --line: #dcddd8;
  --red: #d42a2f;
  --red-dark: #b01f24;
  --dark: #202326;
  --dark-2: #2c3034;

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
address { font-style: normal; }
p { margin: 0 0 1em; }
ul, ol.crumbs { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.35rem, 1.6rem + 3.2vw, 4.25rem); }
h2, .h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); }
h3, .h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--stone { background: var(--stone); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-head p { margin: 0; max-width: 34em; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 .975rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* Top bar */
.topbar { background: var(--stone); color: var(--muted); font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.topbar__contact { display: flex; gap: 20px; }
.topbar a { text-decoration: none; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; align-items: center; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 12px; font-weight: 500; font-size: .975rem; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.nav__link.is-active { color: var(--red); }
.has-sub .nav__link { padding-right: 4px; }
.sub-toggle { background: none; border: 0; padding: 8px 6px; color: var(--ink); cursor: pointer; border-radius: var(--r-sm); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.sub {
  position: absolute; top: calc(100% + 10px); left: -8px; width: 330px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 18px 40px -18px rgba(31,34,37,.28); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle svg, .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub a { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.sub a span { display: block; font-weight: 600; }
.sub a small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.sub a:hover, .sub a[aria-current] { background: var(--stone); color: var(--ink); }
.sub__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.sub__all a { font-weight: 600; color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .topbar span:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line);
    border-radius: 999px; padding: 9px 16px; font: 600 .95rem var(--f-body); color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 16px; height: 1.8px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -5px; } .nav-toggle__bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 32px; overflow-y: auto; gap: 20px;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; padding: 16px 0; font-size: 1.1rem; }
  .sub-toggle { padding: 14px 10px; }
  .sub { position: static; width: 100%; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub { display: none; }
  .has-sub.is-open .sub, .has-sub.is-open:hover .sub { display: block; }
  .has-sub:hover .sub-toggle svg { transform: none; }
  .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
  .nav__cta { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.page-hero h1 { max-width: 16em; }
.page-hero .lede { margin-top: 8px; }

/* Home hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__since { display: flex; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero__since div { font-size: .925rem; color: var(--muted); line-height: 1.35; }
.hero__since strong { display: block; font: 500 1.75rem/1.1 var(--f-display); color: var(--ink); letter-spacing: -0.01em; }
.hero__media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1.02; }
.hero__media > * { border-radius: var(--r-lg); overflow: hidden; background: var(--stone); }
.hero__media > *:first-child { grid-row: span 2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__media > *:nth-child(2) { animation-delay: .08s; }
  .hero__media > *:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3; }
}

/* Brands: five picture cards, then a plain index of the rest */
.featured { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.featured__card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.featured__img { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--stone-2); margin-bottom: 14px; }
.featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured__card:hover .featured__img img { transform: scale(1.03); }
.featured__name { font: 500 1.4rem/1.15 var(--f-display); letter-spacing: -0.01em; }
.featured__card:hover .featured__name { color: var(--red); }
.featured__range { font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 1000px) { .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

.brands-more { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.brands-more p { margin: 0; color: var(--muted); }
.brand-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: 40px; }
.brand-index li { border-top: 1px solid var(--line); }
.brand-index a { display: block; padding: 14px 0 16px; text-decoration: none; color: var(--ink); }
.brand-index__name { display: block; font: 500 1.2rem/1.2 var(--f-display); }
.brand-index__range { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.brand-index a:hover .brand-index__name { color: var(--red); }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split__media { border-radius: var(--r-lg); overflow: hidden; background: var(--stone); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Fact list: short labelled figures from the current site */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 clamp(2.1rem, 1.6rem + 1.4vw, 2.9rem)/1 var(--f-display); letter-spacing: -0.02em; margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; max-width: 18em; }
.section--dark .facts, .section--dark .facts > div { border-color: rgba(255,255,255,.14); }
.section--dark .facts dd { color: rgba(255,255,255,.7); }

/* Feature list (reasons, services) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 48px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature__icon { width: 40px; height: 40px; color: var(--red); margin-bottom: 18px; }

/* Dark band */
.section--dark { background: var(--dark); color: #fff; }
.section--dark .muted, .section--dark .lede, .section--dark p { color: rgba(255,255,255,.75); }
.section--dark a:hover { color: #fff; }

/* Client wall */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.clients li { background: #fff; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; text-align: center; font: 500 1.2rem/1.2 var(--f-display); color: var(--ink-2); }
.clients img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.clients li:hover img { filter: none; opacity: 1; }

/* Brand page */
.brand-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.brand-hero__logo { height: 60px; width: auto; margin: 18px 0 20px; }
.brand-hero__origin { display: block; font-size: .9rem; color: var(--muted); margin: 12px 0 10px; }
.brand-hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--stone); }
.brand-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.brand-hero__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 900px) { .brand-hero { grid-template-columns: 1fr; } .brand-hero__media { aspect-ratio: 4 / 3; order: -1; } }

.range { padding-top: 56px; }
.range:first-child { padding-top: 0; }
.range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.range__head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: 0; }
.range__head span { color: var(--muted); font-size: .95rem; }
.range__note { display: flex; align-items: center; gap: 14px; margin: -6px 0 26px; font: italic 400 1.15rem/1.4 var(--f-display); color: var(--ink-2); }
.range__note::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--red); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; }
.product__img { aspect-ratio: 1; background: #fff; border-radius: var(--r-md); display: grid; place-items: center; padding: 2%; margin-bottom: 12px; }
.product__img img { max-height: 100%; width: auto; object-fit: contain; }
.product h3 { font: 600 1rem/1.3 var(--f-body); letter-spacing: 0; margin: 0; }
.product p { font-size: .9rem; color: var(--muted); margin: 2px 0 0; }
.products--feature { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.products--feature .product__img { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; }
.products--feature .product__img img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.products--feature h3 { font: 500 1.45rem/1.2 var(--f-display); }

.grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.grade { background: #fff; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.grade__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: #fff; margin: -12px -12px 24px; }
.grade__img img { width: 100%; height: 100%; object-fit: contain; }
.grade dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 8px 0 20px; font-size: .95rem; }
.grade dt { color: var(--muted); }
.grade dd { margin: 0; font-weight: 600; }
.grade h4 { font: 600 .9rem var(--f-body); color: var(--muted); margin: 0 0 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .875rem; }

.other-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.other-brands a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.other-brands a:hover { border-color: var(--ink); color: var(--ink); }
.other-brands b { display: block; font: 500 1.3rem var(--f-display); }
.other-brands span { color: var(--muted); font-size: .9rem; }

.spec { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: -8px 0 24px; font-size: .95rem; }
.spec div { display: flex; gap: 8px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }

/* Group companies */
.group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 48px; }
.group__row { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.group__row h3 { font: 600 1rem/1.35 var(--f-body); letter-spacing: 0; margin: 0; }
.group__row h3 span { display: block; color: var(--muted); font-weight: 400; }
.group__row ul li { padding: 2px 0; color: var(--ink-2); }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: 500 .95rem var(--f-body); color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 48px 32px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post-card[hidden] { display: none; }
.post-card__img { aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: var(--stone); margin-bottom: 18px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card:hover h3 { color: var(--red); }
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-meta .cat { color: var(--red); font-weight: 600; }
.post-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); margin: 0; }
.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 64px; text-decoration: none; color: var(--ink); }
.post-featured .post-card__img { aspect-ratio: 16 / 10; margin: 0; }
.post-featured h2 { margin-bottom: 12px; }
.post-featured:hover h2 { color: var(--red); }
@media (max-width: 900px) { .post-featured { grid-template-columns: 1fr; } }
.article-hero { max-width: 860px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--stone); margin-bottom: clamp(40px, 5vw, 64px); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(32px, 6vw, 96px); }
.article .prose { font-size: 1.1rem; line-height: 1.75; }
.article aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .95rem; }
.article aside h2 { font: 600 1rem var(--f-body); letter-spacing: 0; }
.article aside .btn { margin-top: 12px; }
.callout { background: var(--stone); border-radius: var(--r-md); padding: 20px 24px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--stone-2); font-weight: 600; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article aside { position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list > div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.form { background: var(--stone); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.form h2 { font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,34,37,.1); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .error { color: var(--red-dark); font-size: .9rem; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px; font-weight: 500; }
.form-status--ok { background: #e6f1e8; color: #1e5a2b; }
.form-status--err { background: #fbe9e9; color: var(--red-dark); }
.form small.fine { display: block; color: var(--muted); margin-top: 14px; }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--stone); border: 0; width: 100%; }
@media (max-width: 900px) { .contact-grid, .form-row { grid-template-columns: 1fr; } .form-row { gap: 0; } }

/* Certificates */
.certs { display: flex; flex-wrap: wrap; gap: 12px; }
.certs li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.section--dark .certs li { border-color: rgba(255,255,255,.5); }

/* CTA band */
.cta { background: var(--dark); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta__title { margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.75); margin: 0; max-width: 36em; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #17191b; color: rgba(255,255,255,.72); padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 210px; margin-bottom: 20px; }
.footer-brand p { max-width: 26em; }
.footer-h { font: 600 .95rem var(--f-body); color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-contact { line-height: 1.8; margin-bottom: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.social a { border-bottom: 1px solid rgba(255,255,255,.3); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px; font-size: .875rem; }
.footer-base p { margin: 0; }
.footer-base a + a { margin-left: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 66px; }
  body { font-size: 1rem; }
  .logo img { width: 160px; }
  .topbar__contact { gap: 14px; font-size: .8rem; }
  .topbar__contact span { display: none; }
  .group__row, .contact-list > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* Home hero headline sits in a half-width column */
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4rem); letter-spacing: -0.02em; }
.hero__since { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 36px; }
@media (max-width: 420px) { .hero__since { grid-template-columns: 1fr 1fr; } }
