/* =========================================================
   Rawasi Al Karam Catering — main stylesheet
   Brand: primary #2E4130 / #1C261D, secondary #899064 / #E6D7C4 / #907E5E
   Layout uses logical properties so one stylesheet serves RTL and LTR.
   ========================================================= */

:root {
  --forest: #2E4130;
  --ink: #1C261D;
  --olive: #899064;
  --olive-dark: #6B7148;
  --sand: #E6D7C4;
  --taupe: #907E5E;
  --paper: #F7F3ED;
  --paper-2: #EFE7DB;
  --white: #FFFFFF;

  --text: #1C261D;
  --muted: #5B6157;
  --on-dark: #F3ECE2;
  --on-dark-muted: rgba(243, 236, 226, .72);
  --line: rgba(28, 38, 29, .12);
  --line-dark: rgba(230, 215, 196, .16);

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 84px;
  --shadow: 0 18px 40px -22px rgba(28, 38, 29, .45);
  --shadow-sm: 0 6px 18px -10px rgba(28, 38, 29, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[lang="en"] body, html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 600; color: inherit; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
ul { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
::selection { background: var(--olive); color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--forest { background: var(--forest); color: var(--on-dark); }
.section--dark, .section--forest { isolation: isolate; }
.section--patterned::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/brand/pattern-olive.svg") repeat; background-size: 180px; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.section--patterned-light { background-image: url("../img/brand/pattern-forest.svg"); background-size: 180px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; color: var(--olive-dark);
  margin-bottom: 18px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; }
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: currentColor;
  box-shadow: 14px 0 0 -2px currentColor;
  margin-inline-end: 12px;
}
.section--dark .eyebrow, .section--forest .eyebrow, .on-dark .eyebrow { color: var(--sand); }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section--dark .lead, .section--forest .lead, .on-dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none; display: grid; gap: 24px 64px; align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.section-head--split h2 { margin-bottom: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--white); --btn-bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn--sand, .on-dark .btn--primary, .section--dark .btn--primary, .section--forest .btn--primary, .cta-band .btn--primary {
  --btn-bg: var(--sand); --btn-fg: var(--ink); --btn-bd: var(--sand);
}
.btn--sand:hover, .on-dark .btn--primary:hover, .section--dark .btn--primary:hover, .section--forest .btn--primary:hover, .cta-band .btn--primary:hover {
  --btn-bg: var(--white); --btn-bd: var(--white);
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--forest); --btn-bd: rgba(46, 65, 48, .35); }
.btn--ghost:hover { --btn-bg: var(--forest); --btn-fg: var(--white); --btn-bd: var(--forest); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(230, 215, 196, .45); }
.btn--ghost-light:hover { --btn-bg: rgba(230, 215, 196, .12); --btn-bd: var(--sand); --btn-fg: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--forest);
  border-bottom: 1.5px solid transparent; transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: currentColor; gap: 12px; }
.link-arrow svg { width: 18px; height: 18px; }
.section--dark .link-arrow, .section--forest .link-arrow { color: var(--sand); }
[dir="rtl"] .flip-rtl, [dir="rtl"] .link-arrow svg, [dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: rgba(230, 215, 196, .18); transition: opacity .3s;
}
.site-header.is-solid {
  --header-h: 72px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  color: var(--ink);
  box-shadow: 0 8px 30px -18px rgba(28, 38, 29, .4);
}
.site-header.is-solid::after { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; position: relative; }
.brand-logo { height: 36px; width: auto; transition: opacity .3s; }
.brand-logo--dark { position: absolute; inset-inline-start: 0; top: 0; opacity: 0; }
.site-header.is-solid .brand-logo--light { opacity: 0; }
.site-header.is-solid .brand-logo--dark { opacity: 1; }

.main-nav { margin-inline-start: auto; }
.main-nav-list { list-style: none; display: flex; gap: 4px; }
.main-nav-list a {
  display: block; padding: 8px 11px; font-size: .95rem; font-weight: 500; white-space: nowrap;
  border-radius: var(--radius); position: relative; opacity: .9;
  transition: opacity .2s, background .2s;
}
.main-nav-list a:hover { opacity: 1; background: rgba(230, 215, 196, .12); }
.site-header.is-solid .main-nav-list a:hover { background: var(--paper); }
.main-nav-list a[aria-current="page"] { opacity: 1; }
.main-nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 11px; bottom: 2px; height: 2px; background: var(--olive);
}
.main-nav-footer { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid rgba(230, 215, 196, .35); transition: background .2s, border-color .2s;
}
.lang-switch:hover { background: rgba(230, 215, 196, .14); }
.site-header.is-solid .lang-switch { border-color: var(--line); }
.site-header.is-solid .lang-switch:hover { background: var(--paper); }
.site-header:not(.is-solid) .header-cta { --btn-bg: var(--sand); --btn-fg: var(--ink); --btn-bd: var(--sand); }
.site-header:not(.is-solid) .header-cta:hover { --btn-bg: var(--white); --btn-bd: var(--white); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(230, 215, 196, .35);
  border-radius: var(--radius); background: transparent; cursor: pointer; position: relative;
}
.site-header.is-solid .nav-toggle { border-color: var(--line); }
.nav-toggle span {
  position: absolute; inset-inline-start: 12px; width: 20px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .main-nav-list a { padding: 8px 8px; font-size: .9rem; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-actions { margin-inline-start: auto; }
  .main-nav {
    position: fixed; inset: 0; top: 0; z-index: -1;
    margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--ink); color: var(--on-dark);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .main-nav::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("../img/brand/pattern-olive.svg") repeat; background-size: 180px; opacity: .25;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open .site-header { background: var(--ink); color: var(--white); box-shadow: none; }
  .nav-open .site-header .brand-logo--light { opacity: 1; }
  .nav-open .site-header .brand-logo--dark { opacity: 0; }
  .nav-open .site-header .lang-switch, .nav-open .site-header .nav-toggle { border-color: rgba(230, 215, 196, .35); }
  .main-nav-list { flex-direction: column; gap: 0; }
  .main-nav-list a {
    font-size: 1.35rem; padding: 14px 0; border-radius: 0; opacity: 1;
    border-bottom: 1px solid var(--line-dark);
  }
  .main-nav-list a:hover { background: none; color: var(--sand); }
  .main-nav-list a[aria-current="page"] { color: var(--sand); }
  .main-nav-list a[aria-current="page"]::after { display: none; }
  .main-nav-footer { display: grid; gap: 14px; margin-top: 32px; }
  .main-nav-footer .btn { --btn-bg: var(--sand); --btn-fg: var(--ink); --btn-bd: var(--sand); }
  .main-nav-phone { text-align: center; font-weight: 600; color: var(--sand); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  :root { --header-h: 68px; }
  .brand-logo { height: 32px; }
  .lang-switch { padding: 7px 10px; font-size: .86rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(100svh, 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 64px);
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.04); animation: hero-zoom 14s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(28, 38, 29, .96) 0%, rgba(28, 38, 29, .55) 45%, rgba(28, 38, 29, .35) 100%),
    linear-gradient(to var(--hero-side, right), rgba(28, 38, 29, .85) 0%, rgba(28, 38, 29, .2) 70%);
}
[dir="rtl"] .hero { --hero-side: left; }
.hero::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; z-index: -1;
  background: url("../img/brand/pattern-sand.svg") repeat; background-size: 180px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
          mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-content { padding-bottom: clamp(48px, 7vw, 88px); }
.hero-content > * { max-width: 820px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--sand); }
/* Key word in the home headline (إعاشة / Catering): larger, sand, with an olive marker underline */
.hero h1 .hl {
  display: inline-block; font-size: 1.22em; font-weight: 700; line-height: 1.1;
  padding-inline: .08em; margin-inline-end: .12em;
  background: linear-gradient(transparent 64%, rgba(137, 144, 100, .75) 64%, rgba(137, 144, 100, .75) 90%, transparent 90%);
}
.hero .lead { color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.hero .eyebrow { color: var(--sand); }

.hero-stats {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-dark);
  background: rgba(28, 38, 29, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { margin: 0; }
.stat { display: flex; flex-direction: column; padding: 28px 24px; border-inline-start: 1px solid var(--line-dark); }
.stat dd { order: -1; margin: 0; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-value { display: block; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; color: var(--sand); }
.stat-label { display: block; margin-top: 8px; font-size: .92rem; color: var(--on-dark-muted); line-height: 1.45; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--white);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
  background: var(--ink); overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to var(--hero-side, right), rgba(28, 38, 29, .96) 0%, rgba(28, 38, 29, .8) 45%, rgba(28, 38, 29, .45) 100%);
}
[dir="rtl"] .page-hero { --hero-side: left; }
.page-hero::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 30%; z-index: -1;
  background: url("../img/brand/pattern-sand.svg") repeat; background-size: 180px; opacity: .8;
}
.page-hero h1 { max-width: 18ch; margin-bottom: 18px; }
html[lang="ar"] .page-hero h1 { max-width: 20ch; }
.page-hero .lead { color: rgba(255, 255, 255, .8); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 22px; color: var(--sand); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.breadcrumb a { opacity: .8; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Clients ---------- */
.clients-strip { padding-block: clamp(40px, 5vw, 64px); background: var(--white); border-bottom: 1px solid var(--line); }
.clients-strip-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.clients-strip-head p { margin: 0; font-weight: 600; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.clients-strip-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 20px; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .logo-track { animation-name: marquee-rtl; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + 10px)); } }
.logo-tile {
  flex: none; width: 168px; height: 96px; display: grid; place-items: center; padding: 14px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.logo-tile img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.logo-tile:hover img { filter: none; opacity: 1; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 40vw), 1fr)); gap: 16px; }
.logo-grid .logo-tile { width: auto; height: 120px; }
.logo-grid .logo-tile img { max-height: 76px; }
.logo-grid figure { margin: 0; }
.logo-grid figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); text-align: center; line-height: 1.4; }

/* ---------- Split media blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-frame--wide img { aspect-ratio: 4 / 3; }
.media-frame::before {
  content: ""; position: absolute; z-index: -1;
  inset-block: 28px -28px; inset-inline: -28px 28px;
  border: 1.5px solid var(--olive); border-radius: var(--radius-lg); opacity: .5;
}
.media-frame { isolation: isolate; margin: 0 0 28px; margin-inline-start: 28px; }
.media-badge {
  position: absolute; inset-inline-end: -12px; bottom: 32px;
  background: var(--forest); color: var(--white);
  padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 240px;
}
.media-badge strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--sand); font-weight: 600; }
.media-badge span { font-size: .9rem; color: var(--on-dark-muted); }
@media (max-width: 560px) {
  .media-frame { margin-inline-start: 14px; margin-bottom: 14px; }
  .media-frame::before { inset-block: 14px -14px; inset-inline: -14px 14px; }
  .media-badge { inset-inline-end: 12px; bottom: 16px; padding: 14px 18px; }
}

.photo-caption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; display: grid; gap: 14px; margin: 24px 0 0; }
.checklist li { position: relative; padding-inline-start: 30px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 10px;
  background: var(--olive); box-shadow: 0 0 0 4px rgba(137, 144, 100, .2);
}
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
@media (max-width: 640px) { .checklist--cols { grid-template-columns: 1fr; } }
.section--dark .checklist li::before, .section--forest .checklist li::before { background: var(--sand); box-shadow: 0 0 0 4px rgba(230, 215, 196, .15); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .card-grid, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset-inline: -1px; top: -1px; height: 3px;
  background: var(--forest); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .4s var(--ease);
}
[dir="rtl"] .card { --origin: right; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 20px; align-self: flex-start; }
.card-num { position: absolute; inset-inline-end: 28px; top: 26px; font-size: .85rem; font-weight: 600; color: var(--olive); letter-spacing: .08em; }
.card--muted { background: var(--paper); }
.card--secondary { background: transparent; border-style: dashed; }

.icon-box {
  width: 56px; height: 56px; display: grid; place-items: center; flex: none;
  border-radius: var(--radius); background: var(--paper-2); color: var(--forest); margin-bottom: 24px;
}
.icon-box svg { width: 28px; height: 28px; }
.section--dark .icon-box, .section--forest .icon-box, .tile .icon-box { background: rgba(230, 215, 196, .1); color: var(--sand); }

/* Service card icons: large brand tile with pattern corner and inner ring */
.card .icon-box {
  position: relative; isolation: isolate; overflow: hidden;
  width: 78px; height: 78px; border-radius: 22px; margin-bottom: 28px;
  background: linear-gradient(145deg, var(--forest) 0%, var(--ink) 100%);
  color: var(--sand);
  box-shadow: 0 14px 28px -14px rgba(28, 38, 29, .6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card .icon-box::before {
  content: ""; position: absolute; z-index: -1; inset-block-start: -18px; inset-inline-end: -18px; width: 56px; height: 56px;
  background: url("../img/brand/pattern-olive.svg"); background-size: 56px; opacity: .55;
  transition: transform .6s var(--ease);
}
.card .icon-box::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(230, 215, 196, .16); border-radius: 17px; pointer-events: none; }
.card .icon-box svg { width: 46px; height: 46px; stroke-width: 1.4; }
.card:hover .icon-box { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 18px 32px -14px rgba(28, 38, 29, .7); }
.card:hover .icon-box::before { transform: rotate(45deg) scale(1.2); }
@media (max-width: 640px) { .card .icon-box { width: 68px; height: 68px; border-radius: 19px; } .card .icon-box svg { width: 40px; height: 40px; } }

/* Dark industry tiles */
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--forest); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 34px);
  display: flex; flex-direction: column; min-height: 260px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 180px; height: 180px; z-index: -1;
  background: url("../img/brand/pattern-olive.svg"); background-size: 180px; opacity: .45;
  transition: transform .6s var(--ease);
}
.tile:hover { transform: translateY(-4px); background: var(--ink); }
.tile:hover::after { transform: scale(1.15) rotate(8deg); }
.tile h3 { color: var(--white); }
.tile p { color: var(--on-dark-muted); font-size: .98rem; }
.section--dark .tile { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.section--dark .tile:hover { background: rgba(255, 255, 255, .07); }

/* ---------- Service detail rows ---------- */
.service-detail { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.service-index { font-size: .9rem; font-weight: 600; color: var(--olive-dark); margin-bottom: 14px; display: block; letter-spacing: .08em; }
.service-detail--secondary { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); border: 0; margin-top: 32px; }

/* ---------- Operating models ---------- */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.model { background: var(--ink); padding: clamp(28px, 3.4vw, 44px); }
.section--forest .model { background: var(--forest); }
.model h3 { color: var(--white); }
.model p { color: var(--on-dark-muted); }
.model-tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--sand); padding: 4px 10px; border-radius: 3px; margin-bottom: 18px; }
@media (max-width: 900px) { .model-grid { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 28px; height: 1px; background: var(--line); }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); position: relative;
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
  background: var(--white); border: 1.5px solid var(--forest); border-radius: 50%;
  font-weight: 600; color: var(--forest);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; inset-inline-start: 27px; inset-inline-end: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding-bottom: 28px; }
  .step::before { grid-row: span 2; margin: 0; }
}

.steps--compact { grid-template-columns: 1fr; gap: 0; }
.steps--compact::before { top: 0; bottom: 28px; inset-inline-start: 27px; inset-inline-end: auto; width: 1px; height: auto; }
.steps--compact .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding-bottom: 24px; }
.steps--compact .step::before { grid-row: span 2; margin: 0; }
.steps--compact .step p { margin: 0; }
.section--forest .steps::before, .section--dark .steps::before { background: var(--line-dark); }
.section--forest .step::before, .section--dark .step::before { background: var(--forest); border-color: var(--sand); color: var(--sand); }
.section--forest .step p, .section--dark .step p { color: var(--on-dark-muted); }

/* Light stats row (on white sections) */
.stats--light .stat { border-color: var(--line); }
.stats--light .stat-value { color: var(--forest); }
.stats--light .stat-label { color: var(--muted); }
@media (max-width: 760px) { .stats--light .stat:nth-child(n+3) { border-top-color: var(--line); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(28, 38, 29, .85), transparent);
  color: var(--white); font-size: .86rem; font-weight: 500;
}
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 150px; gap: 10px; } }

/* Event photo mosaic */
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(360px, 40vw, 540px); }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(28, 38, 29, .85), transparent);
  color: var(--white); font-size: .84rem; font-weight: 500;
}
@media (max-width: 640px) { .mosaic { height: 340px; gap: 10px; } }
.btn-row .link-arrow { align-self: center; }

/* Wide CTA tile closing the sectors grid */
.tile--wide { grid-column: span 2; }
.tile--cta { background: var(--olive); border-color: transparent; }
.section--dark .tile--cta { background: rgba(137, 144, 100, .28); border-color: rgba(137, 144, 100, .5); }
@media (max-width: 640px) { .tile--wide { grid-column: auto; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: 32px 28px 8px 0; padding-inline: 0 28px; border-inline-end: 1px solid var(--line); }
.value:last-child { border-inline-end: 0; }
.value + .value { padding-inline-start: 28px; }
.value-num { font-size: .85rem; font-weight: 600; color: var(--olive-dark); display: block; margin-bottom: 18px; }
.value p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(2) { border-inline-end: 0; }
  .value:nth-child(3) { padding-inline-start: 0; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding-inline: 0; border-inline-end: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
}

/* Vision / mission pair */
.statement { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); height: 100%; }
.statement--dark { background: var(--forest); color: var(--on-dark); border: 0; }
.statement--dark p { color: var(--on-dark-muted); }
.statement h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* Feature list (quality / capabilities) */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.feature .icon-box { margin: 0; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .98rem; }
.section--dark .feature, .section--forest .feature { border-color: var(--line-dark); }
.section--dark .feature p, .section--forest .feature p { color: var(--on-dark-muted); }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* Notice / statement box */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--olive);
  border-radius: var(--radius); padding: 24px 28px;
}
.notice svg { width: 32px; height: 32px; color: var(--forest); }
.notice h3 { font-size: 1.1rem; margin-bottom: 6px; }
.notice p { color: var(--muted); margin: 0; }

/* Industry rows */
.industry-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); align-items: start; }
.industry-row:last-child { border-bottom: 1px solid var(--line); }
.industry-row .icon-box { width: 72px; height: 72px; margin: 0; }
.industry-row .icon-box svg { width: 34px; height: 34px; }
.industry-row h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: 10px; }
.industry-row p { color: var(--muted); }
.industry-clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-block; font-size: .84rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--forest); }
@media (max-width: 860px) {
  .industry-row { grid-template-columns: 56px 1fr; gap: 16px 20px; }
  .industry-row .icon-box { width: 56px; height: 56px; }
  .industry-row > :last-child { grid-column: 2; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; margin-top: 32px; }
.contact-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s, box-shadow .25s;
}
a.contact-card:hover { border-color: var(--forest); box-shadow: var(--shadow-sm); }
.contact-card .icon-box { width: 52px; height: 52px; margin: 0; }
.contact-card .icon-box svg { width: 24px; height: 24px; }
.contact-card span { display: block; font-size: .85rem; color: var(--muted); }
.contact-card strong { display: block; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card--wa .icon-box { background: #E7F6EC; color: #128C4A; }

.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-panel h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 8px; }
.field .req { color: #A4452F; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--forest); box-shadow: 0 0 0 4px rgba(46, 65, 48, .12); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.field.has-error input, .field.has-error textarea { border-color: #A4452F; background: #FBF1EE; }
.field-error { display: none; color: #A4452F; font-size: .85rem; margin-top: 6px; }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-footer p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1 1 220px; }
.form-status { display: none; margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); font-weight: 500; }
.form-status.is-success { display: block; background: #E9F2E6; color: #22492A; border: 1px solid #B9D3B2; }
.form-status.is-error { display: block; background: #FBF1EE; color: #7E3423; border: 1px solid #E6C2B8; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; background: var(--forest); color: var(--white); padding-block: clamp(56px, 7vw, 88px); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/brand/pattern-olive.svg") repeat; background-size: 180px; opacity: .5;
  -webkit-mask-image: linear-gradient(to var(--hero-side, left), #000, transparent 65%);
          mask-image: linear-gradient(to var(--hero-side, left), #000, transparent 65%);
}
[dir="ltr"] .cta-band { --hero-side: left; }
[dir="rtl"] .cta-band { --hero-side: right; }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: center; }
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--on-dark-muted); max-width: 60ch; margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } }
.page-contact .cta-band { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 56px; padding-bottom: 56px; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 40ch; }
.footer-title { font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--sand); }
.footer-contact { list-style: none; display: grid; gap: 16px; }
.footer-contact span { display: block; font-size: .8rem; color: var(--olive); font-weight: 600; margin-bottom: 2px; }
.footer-contact a { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.lang-switch--footer { border-color: var(--line-dark); color: var(--on-dark); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 90; inset-inline-end: 22px; bottom: 22px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 10px 26px -8px rgba(18, 140, 74, .65);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 30px -8px rgba(18, 140, 74, .75); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (max-width: 480px) { .wa-float { width: 52px; height: 52px; inset-inline-end: 16px; bottom: 16px; } }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-content [data-reveal] { transition-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.text-center { text-align: center; }
.stack > * + * { margin-top: 20px; }
