/*
 * Reference-locked presentation layer.
 * Every dimension below is calibrated against references 01–08.
 */

@font-face {
  font-family: "Kosar Noto";
  src: url("../fonts/NotoSansArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kosar Noto";
  src: url("../fonts/NotoSansArabic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ref-paper: #f7f1e8;
  --ref-paper-light: #fffdf8;
  --ref-cream: #eee2d1;
  --ref-kraft: #c99136;
  --ref-kraft-dark: #8f5d22;
  --ref-olive: #707245;
  --ref-ink: #2e1d13;
  --ref-muted: #67594f;
  --ref-line: rgba(83, 57, 37, .18);
  --ref-shadow: 0 10px 25px rgba(55, 36, 22, .12);
  --ref-radius: 14px;
  --ref-max: 1280px;
  --ref-gutter: clamp(18px, 3vw, 42px);
}

body.kosar-site {
  color: var(--ref-ink);
  background: var(--ref-paper);
  font-family: "Kosar Noto", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

body.kosar-site h1,
body.kosar-site h2,
body.kosar-site h3,
body.kosar-site strong,
body.kosar-site .kosar-button {
  font-family: "Kosar Noto", Tahoma, Arial, sans-serif;
}

.ref-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--ref-paper);
  background-image:
    radial-gradient(rgba(88, 61, 42, .065) .55px, transparent .7px),
    linear-gradient(35deg, rgba(255,255,255,.1), transparent 50%);
  background-size: 7px 7px, 100% 100%;
}

.ref-shell {
  width: min(calc(100% - (2 * var(--ref-gutter))), var(--ref-max));
  margin-inline: auto;
}

/* Header — same shared module in all approved pages. */
.site-header,
.site-header.is-sticky {
  position: relative;
  z-index: 50;
  top: auto;
  background: rgba(255, 253, 248, .98);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header__inner {
  width: min(calc(100% - (2 * var(--ref-gutter))), var(--ref-max));
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(215px, 1fr) auto minmax(310px, 1fr);
  align-items: center;
  gap: 24px;
  margin-inline: auto;
  direction: ltr;
}

.site-header .kosar-brand {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  direction: rtl;
}

.site-header .kosar-brand__mark {
  width: 65px;
  height: 72px;
  object-fit: contain;
  flex: none;
}

.site-header .kosar-brand__copy { display: block; }
.site-header .kosar-brand__copy strong {
  display: block;
  color: var(--ref-ink);
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.site-header .kosar-brand__copy small { display: none; }

.site-header .primary-nav {
  grid-column: 2;
  grid-row: 1;
  direction: rtl;
}
.site-header .primary-nav ul { gap: clamp(12px, 1.45vw, 22px); }
.site-header .primary-nav a {
  min-height: 44px;
  padding-top: 4px;
  color: var(--ref-ink);
  font-size: .82rem;
  font-weight: 700;
}
.site-header .primary-nav a::after {
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ref-kraft);
}
.site-header .primary-nav .current-menu-item > a::after { width: 100%; }

.site-header__action {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 236px;
  min-height: 47px;
  padding: 8px 18px;
  direction: rtl;
  border-radius: 7px;
  font-size: .84rem;
}

.kosar-button {
  color: var(--ref-ink);
  background: linear-gradient(135deg, #d7a44c, #c68c30);
  border-color: #c58b31;
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(138, 86, 25, .16);
}
.kosar-button:hover {
  color: var(--ref-ink);
  background: linear-gradient(135deg, #e0b15d, #cd9639);
}

/* Shared split hero. */
.ref-hero {
  position: relative;
  overflow: hidden;
  background: var(--ref-paper-light);
}
.ref-hero::before {
  position: absolute;
  inset: 0 50% 0 0;
  content: "";
  opacity: .75;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(141, 104, 64, .08) 49%, transparent 50%),
    linear-gradient(90deg, transparent 48%, rgba(141, 104, 64, .05) 49%, transparent 50%);
  background-size: 210px 210px, 160px 160px;
}
.ref-hero__layout {
  min-height: 285px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  direction: ltr;
}
.ref-hero__copy {
  grid-column: 1;
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 35px 54px 40px 10px;
  direction: rtl;
  text-align: center;
}
.ref-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.1vw, 3.8rem);
  font-weight: 900;
  line-height: 1.27;
  letter-spacing: -.045em;
}
.ref-hero__copy h1 span { display: block; }
.ref-hero__copy p {
  margin: 8px 0 0;
  color: var(--ref-ink);
  font-size: clamp(1.05rem, 1.85vw, 1.62rem);
  line-height: 1.6;
}
.ref-hero__media {
  grid-column: 2;
  position: relative;
  min-height: 100%;
  margin-right: calc((100vw - min(var(--ref-max), calc(100vw - (2 * var(--ref-gutter))))) / -2);
  overflow: hidden;
  background-color: #997552;
  background-image: var(--ref-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.ref-corrugated-edge {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 -1px;
  width: auto;
  height: 100%;
  aspect-ratio: 130 / 230;
  pointer-events: none;
}
.ref-corrugated-edge svg { width: 100%; height: 100%; filter: drop-shadow(3px 0 2px rgba(56,35,20,.18)); }

.ref-hero--home .ref-hero__layout { min-height: clamp(420px, 37vw, 505px); }
.ref-hero--home .ref-hero__copy { padding: 54px 54px 82px 5px; }
.ref-hero--home .ref-hero__copy h1 { font-size: clamp(3rem, 4.7vw, 4.45rem); }
.ref-hero--home .ref-hero__copy p { margin-top: 16px; font-size: clamp(1.05rem, 1.55vw, 1.35rem); }
.ref-hero--home .ref-hero__media { background-position: 55% center; }
.ref-primary-action { margin-top: 30px; min-width: 260px; min-height: 52px; }

.ref-hero--about .ref-hero__media { background-position: 50% 48%; }
.ref-hero--products .ref-hero__media { background-position: 45% center; }
.ref-hero--contact .ref-hero__layout { min-height: 240px; }
.ref-hero--contact .ref-hero__copy h1 { font-size: clamp(1.95rem, 3.5vw, 3.1rem); white-space: nowrap; }
.ref-hero--contact .ref-hero__copy p { font-size: clamp(.95rem, 1.55vw, 1.2rem); }
.ref-hero--projects .ref-hero__layout { min-height: 275px; }

/* Metrics. */
.ref-stats {
  min-height: 106px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  direction: rtl;
  overflow: hidden;
  background: rgba(255, 253, 249, .97);
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  box-shadow: var(--ref-shadow);
}
.ref-stat {
  min-width: 0;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding-inline: 28px;
}
.ref-stat + .ref-stat { border-inline-start: 1px solid rgba(106, 73, 44, .28); }
.ref-stat > svg { width: 47px; height: 47px; color: var(--ref-olive); flex: none; }
.ref-stat strong { display: block; font-size: clamp(1.7rem, 2.8vw, 2.45rem); line-height: 1.05; }
.ref-stat span { display: block; margin-top: 7px; color: var(--ref-ink); font-size: .83rem; white-space: nowrap; }

.ref-section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin: 0 0 18px;
}
.ref-section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(145, 102, 53, .55));
}
.ref-section-title span:last-child { transform: scaleX(-1); }
.ref-section-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.ref-cta {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 15px 70px;
  overflow: hidden;
  background: linear-gradient(115deg, #d29a3f, #c78d33);
  border-radius: var(--ref-radius);
}
.ref-cta__texture {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  opacity: .42;
  background-image: url("../images/reference/export-strength.webp");
  background-position: left bottom;
  background-size: cover;
  mix-blend-mode: multiply;
}
.ref-cta h2 { position: relative; z-index: 1; margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.85rem); font-weight: 900; }
.ref-cta__button {
  position: relative;
  z-index: 1;
  min-width: 215px;
  color: #fff9ee;
  background: rgba(69, 40, 20, .78);
  border-color: rgba(69, 40, 20, .35);
  box-shadow: none;
}
.ref-cta__button:hover { color: white; background: rgba(54,31,16,.9); }

/* Homepage. */
.ref-home__stats { position: relative; z-index: 8; margin-top: -49px; }
.ref-home__stats .ref-stats { width: 88%; margin-inline: auto; }
.ref-home-services { padding: 37px 0 55px; }
.ref-home-services .ref-section-title { margin-inline: auto; max-width: 1040px; }
.ref-home-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-photo-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  background: #bc9568;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 14px;
  box-shadow: var(--ref-shadow);
}
.ref-photo-card__media {
  position: absolute;
  inset: 0;
  display: block;
  background-image: var(--ref-image);
  background-position: center;
  background-size: cover;
  transition: transform 300ms ease;
}
.ref-photo-card:hover .ref-photo-card__media { transform: scale(1.025); }
.ref-photo-card::after { position: absolute; inset: 48% 0 0; content: ""; background: linear-gradient(transparent, rgba(42,25,13,.7)); pointer-events: none; }
.ref-photo-card__caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  color: white;
}
.ref-photo-card__caption h3 { margin: 0; font-size: 1.05rem; }
.ref-photo-card__caption p { margin: 2px 0 0; color: rgba(255,255,255,.82); font-size: .73rem; }
.ref-photo-card__caption > span { width: 49px; height: 49px; display: grid; place-items: center; flex: none; color: white; background: rgba(112,114,69,.92); border-radius: 50%; }
.ref-photo-card__caption svg { width: 27px; height: 27px; }
.ref-home__cta { padding-bottom: 50px; }

/* About. */
.ref-about__content { position: relative; z-index: 7; margin-top: -28px; padding-bottom: 30px; }
.ref-story-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr .9fr;
  align-items: center;
  overflow: hidden;
  background: rgba(255,253,249,.97);
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  box-shadow: var(--ref-shadow);
}
.ref-story-card h2 { margin: 0; padding: 25px 52px; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 900; text-align: center; }
.ref-story-card__copy { min-height: 78px; display: grid; place-items: center; padding: 8px 28px; border-inline: 1px solid rgba(152,111,60,.45); text-align: center; }
.ref-story-card__copy p { margin: 0; font-size: 1rem; line-height: 1.65; }
.ref-story-card__art { align-self: stretch; background-image: var(--ref-image); background-position: center; background-repeat: no-repeat; background-size: contain; }
.ref-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 15px; }
.ref-value-card {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 15px 30px;
  background: rgba(255,253,249,.86);
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  box-shadow: 0 7px 18px rgba(55,36,22,.07);
}
.ref-value-card > span { width: 69px; height: 69px; display: grid; place-items: center; flex: none; color: var(--ref-olive); background: #f0e5d3; border-radius: 50%; }
.ref-value-card svg { width: 39px; height: 39px; }
.ref-value-card h3 { margin: 0 0 5px; font-size: 1.18rem; }
.ref-value-card p { margin: 0; font-size: .82rem; }
.ref-growth { margin-top: 14px; }
.ref-growth .ref-section-title { margin-bottom: 10px; }
.ref-growth__steps { display: grid; grid-template-columns: repeat(4, 1fr); direction: rtl; }
.ref-growth-step { position: relative; min-height: 88px; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; }
.ref-growth-step > svg { width: 31px; height: 31px; color: var(--ref-olive); }
.ref-growth-step > span { font-size: .76rem; }
.ref-growth-step > i { position: absolute; top: 35px; left: -22%; width: 44%; height: 1px; background: linear-gradient(90deg, var(--ref-olive), #c48d3d); }
.ref-growth-step > i::before, .ref-growth-step > i::after { position: absolute; top: -3px; width: 7px; height: 7px; content: ""; border-radius: 50%; background: var(--ref-olive); }
.ref-growth-step > i::before { right: 0; }
.ref-growth-step > i::after { left: 0; background: var(--ref-kraft); }
.ref-about__stats { margin-top: 4px; min-height: 91px; }
.ref-about .ref-stat { min-height: 59px; }
.ref-about .ref-cta { margin-top: 12px; min-height: 82px; }

/* Products. */
.ref-products__content { position: relative; z-index: 7; margin-top: -65px; padding-bottom: 30px; }
.ref-filter-bar {
  width: 78%;
  min-height: 65px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  align-items: center;
  margin-inline: auto;
  padding: 8px 18px;
  background: rgba(255,253,249,.97);
  border: 1px solid var(--ref-line);
  border-radius: 13px;
  box-shadow: var(--ref-shadow);
}
.ref-filter-bar a { min-height: 44px; display: grid; place-items: center; padding: 6px 12px; font-size: .82rem; font-weight: 700; border-radius: 7px; }
.ref-filter-bar a.is-active { background: linear-gradient(135deg, #d8a348, #c88c31); }
.ref-filter-bar > span { width: 1px; height: 24px; background: rgba(114,75,45,.32); }
.ref-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.ref-product-card {
  min-height: 141px;
  display: grid;
  grid-template-columns: 61% 39%;
  direction: ltr;
  overflow: hidden;
  background: rgba(255,253,249,.96);
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(55,36,22,.07);
}
.ref-product-card__media { display: block; background-image: var(--ref-image); background-position: center; background-size: cover; }
.ref-product-card__body { position: relative; display: grid; place-items: center; align-content: center; gap: 7px; padding: 12px 8px; direction: rtl; text-align: center; }
.ref-product-card__body > svg { width: 31px; height: 31px; color: var(--ref-olive); }
.ref-product-card__body h2 { margin: 0; font-size: .94rem; line-height: 1.35; }
.ref-round-link { width: 31px; height: 31px; display: grid; place-items: center; color: var(--ref-ink); background: var(--ref-kraft); border-radius: 50%; }
.ref-round-link svg { width: 16px; height: 16px; }
.ref-product-features {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin-top: 14px;
  padding: 10px 22px;
  background: rgba(255,253,249,.93);
  border: 1px solid var(--ref-line);
  border-radius: 13px;
  box-shadow: 0 5px 12px rgba(55,36,22,.05);
}
.ref-product-features > div { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 25px; }
.ref-product-features > div + div { border-inline-start: 1px solid rgba(114,75,45,.3); }
.ref-product-features svg { width: 35px; height: 35px; color: var(--ref-olive); }
.ref-dots { display: flex; gap: 6px; direction: ltr; }
.ref-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(112,114,69,.35); }
.ref-dots i:nth-child(-n+3) { background: var(--ref-olive); }
.ref-products .ref-cta { margin-top: 13px; }

/* Services. */
.ref-service-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: 55% 45%;
  direction: ltr;
  overflow: hidden;
  background: rgba(255,253,249,.96);
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(55,36,22,.08);
}
.ref-service-card__media { background-image: var(--ref-image); background-position: center; background-size: cover; }
.ref-service-card__body { display: grid; place-items: center; align-content: center; gap: 5px; padding: 10px; direction: rtl; text-align: center; }
.ref-service-card__body h2 { margin: 0 0 2px; font-size: .98rem; line-height: 1.35; }
.ref-service-card__body > svg { width: 31px; height: 31px; color: var(--ref-olive); }
.ref-service-path { margin-top: 20px; }
.ref-service-path .ref-section-title { margin-bottom: 13px; }
.ref-service-path__steps {
  min-height: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding-inline: 28px;
  background: rgba(255,253,249,.94);
  border: 1px solid var(--ref-line);
  border-radius: 13px;
  box-shadow: 0 6px 14px rgba(55,36,22,.06);
}
.ref-path-step { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.ref-path-step > span { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--ref-olive); border-radius: 50%; }
.ref-path-step > span svg { width: 26px; height: 26px; }
.ref-path-step strong { font-size: .94rem; }
.ref-path-step > i { color: var(--ref-kraft-dark); }
.ref-path-step > i svg { width: 17px; height: 17px; }

/* Capabilities. */
.ref-infrastructure { margin-top: 22px; }
.ref-infrastructure__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-infra-card { overflow: hidden; background: rgba(255,253,249,.96); border: 1px solid var(--ref-line); border-radius: 12px; box-shadow: 0 6px 14px rgba(55,36,22,.08); }
.ref-infra-card__media { height: 118px; background-image: var(--ref-image); background-position: center; background-size: cover; }
.ref-infra-card__caption { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 4px 12px; }
.ref-infra-card__caption h3 { margin: 0; font-size: .85rem; }
.ref-infra-card__caption > span { width: 45px; height: 45px; display: grid; place-items: center; margin-top: -28px; color: white; background: var(--ref-olive); border-radius: 50%; border: 3px solid rgba(255,253,249,.9); }
.ref-infra-card__caption svg { width: 24px; height: 24px; }
.ref-capability-lower { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-top: 25px; direction: rtl; }
.ref-capability-lower .ref-section-title { gap: 15px; margin-bottom: 12px; }
.ref-capability-lower .ref-section-title h2 { font-size: 1.2rem; }
.ref-production-flow__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; direction: rtl; }
.ref-production-flow__gallery > div { height: 122px; background-image: var(--ref-image); background-position: center; background-size: cover; border-radius: 10px; box-shadow: 0 4px 10px rgba(55,36,22,.08); }
.ref-quality-control__steps { min-height: 122px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 10px; background: rgba(255,253,249,.75); border: 1px solid var(--ref-line); border-radius: 11px; }
.ref-quality-control__steps > div { display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.ref-quality-control__steps span { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--ref-olive); border-radius: 50%; }
.ref-quality-control__steps svg { width: 25px; height: 25px; }
.ref-quality-control__steps strong { font-size: .64rem; line-height: 1.5; }

/* Projects. */
.ref-projects__content { position: relative; z-index: 7; margin-top: -18px; padding-bottom: 28px; }
.ref-project-filter {
  width: 76%;
  min-height: 59px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  align-items: center;
  margin-inline: auto;
  padding: 7px 13px;
  background: rgba(255,253,249,.96);
  border: 1px solid var(--ref-line);
  border-radius: 999px;
  box-shadow: var(--ref-shadow);
}
.ref-project-filter a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 5px 9px; border: 1px solid rgba(110,76,47,.14); border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ref-project-filter a.is-active { color: #302014; background: var(--ref-kraft); border-color: var(--ref-kraft); }
.ref-project-filter svg { width: 21px; height: 21px; }
.ref-page .pagination { margin: 24px auto; }
.ref-page .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ref-page .pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--ref-line); border-radius: 7px; background: #faf7ef; }
.ref-page .pagination .current { background: #c79a53; color: #302014; }
.ref-project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 15px; }
.ref-project-card { overflow: hidden; background: rgba(255,253,249,.96); border: 1px solid var(--ref-line); border-radius: 12px; box-shadow: 0 6px 14px rgba(55,36,22,.08); }
.ref-project-card__media { height: 150px; display: block; background-image: var(--ref-image); background-position: center; background-size: cover; }
.ref-project-card__caption { min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 4px 12px; }
.ref-project-card__caption h2 { margin: 0; font-size: .82rem; }
.ref-project-card__caption span { width: 46px; height: 46px; display: grid; place-items: center; margin-top: -28px; color: white; background: var(--ref-olive); border: 3px solid white; border-radius: 50%; }
.ref-project-card__caption svg { width: 23px; height: 23px; }
.ref-project-feature { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; margin-top: 18px; direction: rtl; }
.ref-project-feature__side { overflow: hidden; background: rgba(255,253,249,.96); border: 1px solid var(--ref-line); border-radius: 12px; }
.ref-project-feature__side > div { height: 174px; background-image: var(--ref-image); background-position: center; background-size: cover; }
.ref-project-feature__side footer { min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 17px; }
.ref-project-feature__side footer span { width: 45px; height: 45px; display: grid; place-items: center; margin-top: -26px; color: white; background: var(--ref-olive); border: 3px solid white; border-radius: 50%; }
.ref-project-feature__side footer svg { width: 23px; height: 23px; }
.ref-project-feature__process { min-width: 0; display: grid; grid-template-columns: 1.1fr 1.7fr; direction: ltr; align-items: center; padding: 18px; background: rgba(255,253,249,.77); border: 1px solid var(--ref-line); border-radius: 12px; }
.ref-project-feature__title { direction: rtl; padding: 0 20px; }
.ref-project-feature__title h2 { margin: 0 0 13px; font-size: 1.65rem; }
.ref-project-feature__title p { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 9px 12px; background: linear-gradient(135deg, #d9a448, #c88d31); border-radius: 6px; font-size: .72rem; }
.ref-project-feature__title p svg { width: 15px; }
.ref-project-feature__title a { display: block; padding: 7px 12px; border: 1px solid #a8793e; border-radius: 6px; text-align: center; font-size: .75rem; font-weight: 700; }
.ref-project-feature__stages { min-width: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; direction: rtl; }
.ref-project-feature__stages > div { height: 120px; background-image: var(--ref-image); background-position: center; background-size: cover; border-radius: 8px; }
.ref-project-feature__stages > span { color: var(--ref-kraft-dark); }
.ref-project-feature__stages svg { width: 17px; }

/* Export. */
.ref-export-hero { position: relative; overflow: hidden; background: var(--ref-paper-light); }
.ref-export-hero__layout { min-height: 340px; display: grid; grid-template-columns: 28% 35% 37%; align-items: stretch; direction: ltr; }
.ref-export-hero__map { grid-column: 1; align-self: stretch; margin-left: calc((100vw - min(var(--ref-max), calc(100vw - (2 * var(--ref-gutter))))) / -2); background-image: var(--ref-image); background-position: left center; background-repeat: no-repeat; background-size: contain; }
.ref-export-hero__copy { grid-column: 2; align-self: center; position: relative; z-index: 4; padding: 25px 12px; direction: rtl; text-align: center; }
.ref-export-hero__copy h1 { margin: 0; font-size: clamp(2.1rem, 3.8vw, 3.35rem); line-height: 1.25; letter-spacing: -.04em; }
.ref-export-hero__copy > p { margin: 9px 0 13px; font-size: 1.08rem; }
.ref-export-count { width: 265px; min-height: 95px; display: flex; align-items: center; justify-content: center; gap: 24px; margin-inline: auto; background: rgba(255,253,249,.97); border: 1px solid var(--ref-line); border-radius: 12px; box-shadow: var(--ref-shadow); }
.ref-export-count > svg { width: 43px; height: 43px; color: var(--ref-olive); }
.ref-export-count strong { display: block; font-size: 2rem; line-height: 1; }
.ref-export-count span { display: block; margin-top: 7px; font-size: .82rem; }
.ref-export-hero__media { grid-column: 3; position: relative; margin-right: calc((100vw - min(var(--ref-max), calc(100vw - (2 * var(--ref-gutter))))) / -2); background-image: var(--ref-image); background-position: center; background-size: cover; }
.ref-export__content { padding: 16px 0 26px; }
.ref-export-solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref-export-card { padding: 9px; background: rgba(255,253,249,.95); border: 1px solid var(--ref-line); border-radius: 12px; box-shadow: 0 6px 14px rgba(55,36,22,.08); }
.ref-export-card header { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.ref-export-card h2 { margin: 0; font-size: .94rem; }
.ref-export-card header svg { width: 31px; height: 31px; color: var(--ref-olive); }
.ref-export-card > div { height: 110px; background-image: var(--ref-image); background-position: center; background-size: cover; border-radius: 8px; }
.ref-export-route { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 18px; align-items: end; direction: ltr; }
.ref-export-route__image { height: 137px; background-image: var(--ref-image); background-position: center; background-size: cover; border-radius: 9px; box-shadow: 0 5px 12px rgba(55,36,22,.08); }
.ref-export-route__steps { direction: rtl; }
.ref-export-route__steps .ref-section-title { margin-bottom: 8px; }
.ref-export-route__steps > div { display: grid; grid-template-columns: auto auto auto auto auto auto auto; align-items: center; justify-content: space-between; }
.ref-route-step { display: grid; place-items: center; gap: 5px; }
.ref-route-step i { width: 52px; height: 52px; display: grid; place-items: center; color: var(--ref-olive); background: #eee3d1; border-radius: 50%; }
.ref-route-step svg { width: 28px; height: 28px; }
.ref-route-step strong { font-size: .74rem; }
.ref-export-route__steps b { color: var(--ref-kraft-dark); }
.ref-export-route__steps b svg { width: 17px; }
.ref-export .ref-cta { margin-top: 16px; }

/* Contact. */
.ref-contact__content { position: relative; z-index: 7; margin-top: -8px; padding-bottom: 28px; }
.ref-contact-grid { display: grid; grid-template-columns: .72fr 1.45fr; gap: 15px; direction: rtl; align-items: stretch; }
.ref-contact-panel,
.ref-quote-panel { background: rgba(255,253,249,.96); border: 1px solid var(--ref-line); border-radius: 13px; box-shadow: var(--ref-shadow); }
.ref-contact-panel { padding: 22px 30px; }
.ref-contact-panel h2, .ref-quote-panel h2 { margin: 0 0 13px; font-size: 1.45rem; text-align: center; }
.ref-contact-list { display: grid; }
.ref-contact-row { min-height: 65px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--ref-line); }
.ref-contact-row:last-child { border-bottom: 0; }
.ref-contact-row > span { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: white; background: var(--ref-olive); border-radius: 50%; }
.ref-contact-row svg { width: 25px; height: 25px; }
.ref-contact-row div { min-width: 0; flex: 1; }
.ref-contact-row strong { display: block; font-size: .87rem; }
.ref-contact-row small { display: block; max-width: 220px; overflow: hidden; color: var(--ref-muted); font-size: .67rem; white-space: nowrap; text-overflow: ellipsis; }
.ref-quote-panel { padding: 22px 28px; }
.ref-quote-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 13px; }
.ref-quote-form label { display: block; }
.ref-quote-form label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ref-quote-form input, .ref-quote-form select, .ref-quote-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 8px 12px;
  color: var(--ref-ink);
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(100,70,48,.19);
  border-radius: 5px;
  outline: 0;
  font: inherit;
  font-size: .73rem;
}
.ref-quote-form textarea { min-height: 70px; resize: vertical; }
.ref-quote-form .is-wide { grid-column: 1 / -1; }
.ref-quote-form button { min-height: 43px; width: 100%; }
.ref-contact-promises { min-height: 73px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; margin-top: 13px; background: rgba(255,253,249,.94); border: 1px solid var(--ref-line); border-radius: 12px; box-shadow: 0 5px 12px rgba(55,36,22,.06); }
.ref-contact-promises > div { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.ref-contact-promises > div + div { border-inline-start: 1px solid rgba(114,75,45,.3); }
.ref-contact-promises svg { width: 35px; height: 35px; color: var(--ref-olive); }
.ref-contact-promises strong { font-size: .88rem; }
.ref-contact-visit { min-height: 110px; display: grid; grid-template-columns: 1fr 1.55fr; margin-top: 13px; overflow: hidden; background: rgba(255,253,249,.9); border: 1px solid var(--ref-line); border-radius: 12px; }
.ref-contact-visit__copy { position: relative; display: grid; place-items: center; align-content: center; gap: 12px; }
.ref-contact-visit__copy::after { position: absolute; inset: auto -12% -58% auto; width: 150px; height: 120px; content: ""; background: url("../images/reference/export-strength.webp") center/cover; transform: rotate(-12deg); }
.ref-contact-visit__copy h2 { position: relative; z-index: 1; margin: 0; font-size: 1.3rem; }
.ref-contact-visit__copy span { width: 52px; height: 1px; background: var(--ref-kraft-dark); }
.ref-contact-visit__image { background-image: var(--ref-image); background-position: center; background-size: cover; }

/* Footer is below the reference frame and intentionally quiet. */
.site-footer { padding: 32px 0 20px; }
.site-footer__grid { grid-template-columns: minmax(0,1.45fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.15fr); gap: 28px; }
.site-footer__grid > div { min-width: 0; }
.site-footer .footer-links, .site-footer .footer-links > ul { display: block; }
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a { display: inline-block; padding-block: 4px; }
.site-footer .footer-contact a { overflow-wrap: anywhere; }
.site-footer .footer-location { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #bca58b; border-radius: 6px; padding: 7px 10px; margin-top: 16px; font-size: 12px; min-height: 44px; }
.site-footer .footer-location svg { width: 20px; height: 20px; flex: 0 0 20px; }
.site-footer .footer-social { display: flex; gap: 8px; margin-top: 8px; }
.site-footer .footer-social a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.site-footer p { color: #d8cbbd; font-size: 13px; }
.site-footer__bottom { margin-top: 28px; color: #d0c0b1; flex-wrap: wrap; }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer__grid > :first-child { grid-column: auto; }
  .site-footer .footer-links a, .site-footer .footer-contact a { min-height: 44px; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
.site-footer .kosar-brand__mark { object-fit: contain; filter: invert(1) sepia(.2); }
.site-footer .kosar-brand__copy strong { color: #fffaf2; }

@media (max-width: 1120px) {
  .site-header__inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .site-header .kosar-brand { grid-column: 2; }
  .site-header .primary-nav, .site-header__action { display: none; }
  .site-header .menu-toggle { grid-column: 1; grid-row: 1; display: inline-flex; justify-self: start; direction: rtl; }
  .site-header .mobile-nav { inset-block-start: 72px; max-height: calc(100dvh - 72px); }
  .ref-home-services__grid { grid-template-columns: repeat(2, 1fr); }
  .ref-photo-card:last-child, .ref-service-card:last-child { grid-column: 1 / -1; }
  .ref-products-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-product-card { min-height: 150px; }
  .ref-capability-lower { grid-template-columns: 1fr; }
  .ref-project-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-project-feature { grid-template-columns: 1fr; }
  .ref-project-feature__side { display: none; }
  .ref-project-filter { width: 92%; }
  .ref-filter-bar { width: 92%; }
}

@media (max-width: 780px) {
  :root { --ref-gutter: 14px; --ref-radius: 11px; }
  body.kosar-site { font-size: 15px; }
  .site-header__inner { min-height: 66px; }
  .site-header .kosar-brand { gap: 7px; }
  .site-header .kosar-brand__mark { width: 42px; height: 49px; }
  .site-header .kosar-brand__copy strong { max-width: none; font-size: .78rem; }
  .site-header .mobile-nav { inset-block-start: 66px; max-height: calc(100dvh - 66px); }
  .site-header .menu-toggle { width: 42px; height: 42px; border: 0; }

  .ref-hero::before { inset: 0; }
  .ref-hero__layout, .ref-hero--home .ref-hero__layout, .ref-hero--contact .ref-hero__layout, .ref-hero--projects .ref-hero__layout { min-height: 0; display: flex; flex-direction: column; }
  .ref-hero__copy, .ref-hero--home .ref-hero__copy { order: 1; width: 100%; min-height: 195px; display: grid; place-items: center; align-content: center; padding: 26px 10px 24px; }
  .ref-hero--home .ref-hero__copy { min-height: 250px; }
  .ref-hero__copy h1, .ref-hero--home .ref-hero__copy h1, .ref-hero--contact .ref-hero__copy h1 { font-size: clamp(2rem, 9.5vw, 3rem); white-space: normal; }
  .ref-hero__copy p { margin-top: 7px; font-size: .98rem; }
  .ref-primary-action { min-width: 0; min-height: 45px; margin-top: 14px; padding-inline: 17px; font-size: .72rem; }
  .ref-hero__media { order: 2; width: calc(100% + (2 * var(--ref-gutter))); min-height: clamp(235px, 66vw, 340px); margin-inline: calc(-1 * var(--ref-gutter)); background-position: center; }
  .ref-corrugated-edge { width: auto; }

  .ref-stats { grid-template-columns: 1fr; }
  .ref-stat { min-height: 79px; justify-content: space-between; padding-inline: 25px; }
  .ref-stat + .ref-stat { border-inline-start: 0; border-top: 1px solid var(--ref-line); }
  .ref-stat > svg { width: 37px; height: 37px; }
  .ref-stat strong { font-size: 1.75rem; }
  .ref-stat span { font-size: .72rem; }
  .ref-home__stats { margin-top: -24px; }
  .ref-home__stats .ref-stats { width: 100%; }

  .ref-section-title { gap: 13px; }
  .ref-section-title h2 { font-size: 1.25rem; }
  .ref-cta { min-height: 120px; flex-direction: column; gap: 14px; padding: 20px; text-align: center; }
  .ref-cta__texture { width: 60%; }
  .ref-cta h2 { font-size: 1.18rem; }
  .ref-cta__button { min-width: 210px; }

  .ref-home-services { padding-top: 28px; }
  .ref-home-services__grid, .ref-products-grid, .ref-infrastructure__grid, .ref-project-grid { grid-template-columns: 1fr; }
  .ref-photo-card, .ref-photo-card:last-child { grid-column: auto; min-height: 260px; }
  .ref-home__cta { padding-bottom: 28px; }

  .ref-about__content { margin-top: -14px; }
  .ref-story-card { grid-template-columns: 1fr; }
  .ref-story-card h2 { padding: 19px 20px 10px; }
  .ref-story-card__copy { min-height: 80px; border-inline: 0; border-top: 1px solid var(--ref-line); }
  .ref-story-card__art { min-height: 95px; order: 3; }
  .ref-values { grid-template-columns: 1fr; }
  .ref-value-card { min-height: 92px; }
  .ref-growth__steps { grid-template-columns: repeat(2, 1fr); }
  .ref-growth-step > i { display: none; }

  .ref-products__content { margin-top: -22px; }
  .ref-filter-bar { width: 100%; min-height: 0; display: flex; gap: 6px; padding: 7px; overflow-x: auto; border-radius: 9px; }
  .ref-filter-bar > span { display: none; }
  .ref-filter-bar a { min-width: max-content; min-height: 38px; }
  .ref-product-card { min-height: 138px; }
  .ref-product-features { grid-template-columns: repeat(2, 1fr); }
  .ref-product-features > div:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--ref-line); }
  .ref-product-features > div:nth-child(4) { border-top: 1px solid var(--ref-line); }

  .ref-service-card, .ref-service-card:last-child { grid-column: auto; min-height: 132px; }
  .ref-service-path__steps { grid-template-columns: repeat(2, 1fr); gap: 17px 8px; padding: 16px; }
  .ref-path-step:nth-child(2) > i { display: none; }

  .ref-infrastructure__grid { gap: 12px; }
  .ref-infra-card__media { height: 170px; }
  .ref-production-flow__gallery { grid-template-columns: repeat(2, 1fr); }
  .ref-production-flow__gallery > div { height: 120px; }
  .ref-quality-control__steps { grid-template-columns: repeat(2, 1fr); gap: 15px 0; }

  .ref-projects__content { margin-top: -12px; }
  .ref-project-filter { width: 100%; display: flex; gap: 6px; padding: 7px; overflow-x: auto; border-radius: 9px; }
  .ref-project-filter a { min-width: max-content; }
  .ref-project-card__media { height: 210px; }
  .ref-project-feature__process { grid-template-columns: 1fr; gap: 16px; }
  .ref-project-feature__title { order: 2; }

  .ref-export-hero__layout { min-height: 0; display: flex; flex-direction: column; }
  .ref-export-hero__map { position: absolute; inset: 0 auto auto 0; width: 44%; height: 250px; margin: 0; opacity: .55; }
  .ref-export-hero__copy { order: 1; min-height: 260px; padding: 30px 10px 20px; }
  .ref-export-hero__copy h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .ref-export-count { width: 230px; min-height: 82px; }
  .ref-export-hero__media { order: 2; min-height: 270px; margin-inline: calc(-1 * var(--ref-gutter)); }
  .ref-export-solutions__grid { grid-template-columns: 1fr; }
  .ref-export-card > div { height: 180px; }
  .ref-export-route { grid-template-columns: 1fr; }
  .ref-export-route__image { order: 2; }

  .ref-contact__content { margin-top: -5px; }
  .ref-contact-grid { grid-template-columns: 1fr; }
  .ref-contact-panel { order: 2; }
  .ref-quote-panel { order: 1; }
  .ref-contact-promises { grid-template-columns: 1fr; }
  .ref-contact-promises > div + div { border-inline-start: 0; border-top: 1px solid var(--ref-line); }
  .ref-contact-visit { grid-template-columns: 1fr; }
  .ref-contact-visit__copy { min-height: 100px; }
  .ref-contact-visit__image { min-height: 150px; }
}

@media (max-width: 480px) {
  .ref-quote-panel, .ref-contact-panel { padding: 20px 15px; }
  .ref-quote-form { grid-template-columns: 1fr; }
  .ref-quote-form .is-wide { grid-column: auto; }
  .ref-product-features { grid-template-columns: 1fr; }
  .ref-product-features > div + div, .ref-product-features > div:nth-child(3), .ref-product-features > div:nth-child(4) { border-inline-start: 0; border-top: 1px solid var(--ref-line); }
  .ref-growth__steps, .ref-service-path__steps, .ref-production-flow__gallery, .ref-quality-control__steps { grid-template-columns: 1fr; }
  .ref-project-feature__stages { grid-template-columns: 1fr; }
  .ref-project-feature__stages > span { transform: rotate(-90deg); justify-self: center; }
  .ref-export-route__steps > div { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ref-export-route__steps b { display: none; }
}

@media (min-width: 1800px) {
  :root { --ref-max: 1500px; }
  .site-header__inner { min-height: 94px; }
  .ref-hero--home .ref-hero__layout { min-height: 570px; }
  .ref-hero__layout { min-height: 330px; }
}
