/* =========================================================
   Premium Poultry: Advisory & Trading Services
   ========================================================= */

:root {
  --green-950: #061a12;
  --green-900: #0b2a1f;
  --green-800: #103a2a;
  --green-700: #17503a;
  --green-600: #1f6b4d;
  --green-100: #e5efe8;
  --green-50:  #f1f6f2;
  --copper-700: #9a5418;
  --copper-600: #b8661f;
  --copper-500: #d07e2c;
  --copper-300: #e9b277;
  --copper-100: #f8e9d6;
  --cream: #fbf9f4;
  --sand: #f4f0e7;
  --white: #ffffff;
  --ink: #15241d;
  --muted: #56645c;
  --line: #e6e0d3;

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "Noto Kufi Arabic", sans-serif;

  --header-h: 104px;
  --header-h-scrolled: 84px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(11, 42, 31, .05), 0 2px 8px rgba(11, 42, 31, .05);
  --shadow: 0 4px 12px rgba(11, 42, 31, .06), 0 16px 36px rgba(11, 42, 31, .08);
  --shadow-lg: 0 24px 60px rgba(6, 26, 18, .28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-800); line-height: 1.2; margin: 0; }
p { margin: 0; }
svg { flex: none; }
::selection { background: var(--copper-300); color: var(--green-950); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--copper-500); color: var(--white); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--copper-300); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: linear-gradient(135deg, var(--copper-500), var(--copper-600));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font: 700 13.5px/1 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--bg);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(184, 102, 31, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(184, 102, 31, .42), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, .04); color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-sm { padding: 12px 20px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Emblem (brand mark) ---------- */
.emblem {
  --s: 46px;
  width: var(--s); height: var(--s);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(233, 178, 119, .55), 0 4px 12px rgba(0, 0, 0, .25);
  background: #13213f url("assets/logo-mark.png") center / cover no-repeat;
}
.emblem-lg { --s: 76px; border-radius: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease);
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(8, 33, 24, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .18);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.1;
  color: var(--copper-300); letter-spacing: .05em; text-transform: uppercase;
}
.brand-text small {
  margin-top: 3px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .88);
  letter-spacing: .12em; text-transform: uppercase;
}
.brand-ar {
  margin-top: 4px; text-align: left;
  font-family: var(--font-ar); font-size: 16px; font-weight: 500; line-height: 1.3;
  color: rgba(233, 178, 119, .92);
}

/* larger, clearer logo in the header; eases down a little once scrolled */
.site-header .emblem {
  --s: 76px; border-radius: 14px;
  transition: width .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled .emblem { --s: 62px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 2px; }
.nav-ctas { display: flex; align-items: center; gap: 10px; }
.btn-outline {
  background: transparent; color: var(--copper-300);
  box-shadow: inset 0 0 0 1.5px var(--copper-300);
}
.btn-outline:hover { background: rgba(233, 178, 119, .12); box-shadow: inset 0 0 0 1.5px var(--copper-300); color: var(--white); }
.btn-outline.is-active { background: var(--copper-300); color: var(--green-950); }
.nav-link {
  position: relative; display: block;
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: rgba(255, 255, 255, .8);
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav-link.is-active { color: var(--green-950); background: var(--copper-300); font-weight: 600; }

.nav-burger {
  display: none; position: relative; z-index: 120;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .08); cursor: pointer;
}
.nav-burger span {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--white); transition: transform .3s var(--ease), opacity .2s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--copper-500), var(--copper-300));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 112px;
  color: var(--white);
  background: linear-gradient(155deg, var(--green-950) 0%, var(--green-900) 40%, var(--green-800) 75%, var(--green-700) 100%);
}
.hero-bg { position: absolute; inset: -30px; z-index: -1; pointer-events: none; transition: transform .6s ease-out; }
.hero-slides { position: absolute; inset: 0; background: var(--green-950); }
.hero-slides span {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  animation: heroSlide 35s linear infinite;
}
.hero-slides span:nth-child(1) { animation-delay: -1s; }
.hero-slides span:nth-child(2) { animation-delay: 6s; }
.hero-slides span:nth-child(3) { animation-delay: 13s; }
.hero-slides span:nth-child(4) { animation-delay: 20s; }
.hero-slides span:nth-child(5) { animation-delay: 27s; }
@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.12); }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
/* dark green wash keeps headline contrast high over any photo */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 18, .94) 0%, rgba(6, 26, 18, .82) 45%, rgba(8, 33, 24, .62) 100%),
    linear-gradient(0deg, rgba(6, 26, 18, .7), transparent 40%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb-1 { width: 560px; height: 560px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(208, 126, 44, .55), transparent 70%); animation: float 14s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(31, 107, 77, .8), transparent 70%); animation: float 18s ease-in-out infinite reverse; }
.grain {
  position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.06); } }

.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-300);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper-500); box-shadow: 0 0 0 4px rgba(208, 126, 44, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(208, 126, 44, 0); } }

.hero h1 {
  margin-top: 0;
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 66px); font-weight: 600; letter-spacing: .005em; line-height: 1.08;
}
.hero h1 em {
  display: block; font-style: normal;
  background: linear-gradient(90deg, var(--copper-300), #f4cf9f 50%, var(--copper-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, .8); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-arabic {
  margin-top: 40px; padding-top: 24px; max-width: 580px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-ar); font-weight: 500; font-size: 19px;
  color: rgba(233, 178, 119, .9); text-align: left;
}

.hero-panel {
  position: relative;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.panel-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.panel-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-300); }
.panel-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--white); margin-top: 2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  padding: 18px 18px 16px; border-radius: 14px;
  background: rgba(6, 26, 18, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: background-color .25s, transform .25s var(--ease);
}
.stat:hover { background: rgba(6, 26, 18, .55); transform: translateY(-2px); }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--copper-300); }
.stat dt { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chain li {
  position: relative; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--white);
  background: rgba(255, 255, 255, .08);
}
.chain li:not(:last-child)::after { content: "›"; position: absolute; right: -6px; top: 50%; transform: translate(50%, -52%); color: var(--copper-300); font-weight: 700; }
.chain li:not(:last-child) { margin-right: 10px; }
.chain li:last-child { background: var(--copper-500); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--copper-300); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper-600); margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .6; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.section-sub { margin-top: 18px; font-size: 17px; color: var(--muted); }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark .eyebrow { color: var(--copper-300); }
.section-head.on-dark .section-sub { color: rgba(255, 255, 255, .72); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(145deg, var(--green-50), var(--green-100));
  box-shadow: inset 0 0 0 1px rgba(23, 80, 58, .08);
}
.icon-badge svg { width: 26px; height: 26px; fill: none; stroke: var(--green-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge-sm { width: 46px; height: 46px; border-radius: 12px; }
.icon-badge-sm svg { width: 22px; height: 22px; }

/* ---------- About / Why ---------- */
.about { background: var(--cream); }
.pillar {
  position: relative; overflow: hidden;
  padding: 40px 34px 38px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--copper-500), var(--copper-300));
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(11, 42, 31, .14); }
.pillar:hover .icon-badge { background: var(--green-800); }
.pillar:hover .icon-badge svg { stroke: var(--copper-300); }
.pillar .icon-badge { transition: background-color .3s; margin-bottom: 26px; }
.pillar .icon-badge svg { transition: stroke .3s; }
.pillar h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.pillar p { color: var(--muted); }

/* ---------- Advisory ---------- */
.advisory { background: var(--sand); }
.advisory::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, .7), transparent 70%);
}
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 30px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.service-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border-radius: 12px; background: var(--copper-100);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--copper-700);
  transition: background-color .35s, color .35s;
}
.service h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; transition: color .35s; }
.service p { font-size: 14.5px; line-height: 1.7; color: var(--muted); transition: color .35s; }
.service:hover { transform: translateY(-6px); background: var(--green-800); box-shadow: 0 26px 50px rgba(11, 42, 31, .25); }
.service:hover h3 { color: var(--white); }
.service:hover p { color: rgba(255, 255, 255, .78); }
.service:hover .service-num { background: var(--copper-500); color: var(--white); }

/* ---------- Supply ---------- */
.supply {
  color: var(--white);
  background:
    radial-gradient(700px 360px at 0% 100%, rgba(208, 126, 44, .16), transparent 60%),
    radial-gradient(600px 300px at 100% 0%, rgba(31, 107, 77, .5), transparent 60%),
    var(--green-900);
}
.supply-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.supply-item {
  padding: 32px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.supply-item:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(233, 178, 119, .55); transform: translateY(-6px); }
.supply-item svg {
  width: 44px; height: 44px; margin-bottom: 22px; padding: 10px; border-radius: 12px;
  background: rgba(233, 178, 119, .12);
  fill: none; stroke: var(--copper-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--copper-300);
}
.supply-item h3 { color: var(--white); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.supply-item p { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ---------- Equipment ---------- */
.equipment { background: var(--cream); }
.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.equip-card {
  padding: 30px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--copper-500);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.equip-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.equip-top h3 { font-size: 18px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--green-700);
  background: var(--green-50); box-shadow: inset 0 0 0 1px rgba(23, 80, 58, .12);
}
.equip-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 32px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--green-800); color: var(--white);
}
.equip-cta p { font-weight: 600; font-size: 16px; }

/* ---------- Breeds marquee ---------- */
.breeds { background: var(--sand); overflow: hidden; }
.breeds .section-head { margin-bottom: 48px; }
.marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 22px; padding-right: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-tile {
  display: grid; place-items: center;
  width: 230px; height: 130px; padding: 20px 26px;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-tile img {
  max-height: 88px; max-width: 100%; object-fit: contain;
  mix-blend-mode: multiply; /* blends off-white JPEG backgrounds into the tile */
}

/* ---------- Projects ---------- */
.projects { background: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.project {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-logo { display: grid; place-items: center; height: 170px; padding: 22px; }
.project-logo img { max-height: 120px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.project:hover .project-logo img { transform: scale(1.05); }
.project figcaption {
  padding: 14px 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; color: var(--green-800);
  transition: background-color .3s, color .3s;
}
.project:hover figcaption { background: var(--green-800); color: var(--copper-300); }

/* ---------- Contact ---------- */
.contact {
  color: var(--white);
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(208, 126, 44, .14), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-800));
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact .eyebrow { color: var(--copper-300); }
.contact .eyebrow::before { display: none; }
.contact h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.contact-lead { margin-top: 18px; color: rgba(255, 255, 255, .78); font-size: 17px; }

.contact-list { margin-top: 40px; display: grid; gap: 14px; }
.contact-list li {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .25s, box-shadow .25s;
}
.contact-list li:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(233, 178, 119, .35); }
.contact-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(233, 178, 119, .14); }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--copper-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-300); }
.contact-list div { font-size: 15.5px; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--copper-300); }

.contact-form {
  display: grid; gap: 16px;
  padding: 40px; border-radius: 22px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 24px; font-weight: 700; }
.form-note { margin: -8px 0 6px; font-size: 14px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 10px;
  font: 15px/1.5 var(--font-body); color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field label {
  position: absolute; left: 17px; top: 17px;
  font-size: 15px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--copper-500);
  box-shadow: 0 0 0 4px rgba(208, 126, 44, .14);
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78); color: var(--copper-700); font-weight: 600;
}
.field-error { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #b3261e; }
.field.has-error input, .field.has-error textarea { border-color: #d0453c; background: #fff7f6; }
.field.has-error .field-error { display: block; }
.contact-form .btn { margin-top: 6px; padding-block: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .7); }
.footer-cta { background: linear-gradient(135deg, var(--copper-600), var(--copper-500)); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 40px; }
.footer-cta h2 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
.footer-cta p { margin-top: 6px; color: rgba(255, 255, 255, .9); }
.footer-cta .btn { background: var(--green-900); box-shadow: 0 10px 24px rgba(6, 26, 18, .35); }
.footer-cta .btn:hover { background: var(--green-950); }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 48px;
  padding-block: 72px 56px;
}
.footer-logo {
  display: inline-block; width: 190px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(233, 178, 119, .35), 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.footer-logo:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(233, 178, 119, .7), 0 20px 40px rgba(0, 0, 0, .45); }
.footer-logo img { width: 100%; height: auto; }
.footer-brand p { margin-top: 20px; font-size: 14.5px; max-width: 360px; }
.footer-brand .footer-arabic { font-family: var(--font-ar); font-size: 17px; color: var(--copper-300); text-align: left; }
.footer-col h4 {
  margin-bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white);
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col li { font-size: 14.5px; }
.footer-col a { text-decoration: none; color: rgba(255, 255, 255, .7); transition: color .2s, padding-left .25s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--copper-300); padding-left: 4px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--copper-300); }
.footer-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.footer-top:hover svg { transform: translateY(-3px); }

/* ---------- Floating back-to-top & toast ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--copper-500); color: var(--white);
  box-shadow: 0 10px 24px rgba(184, 102, 31, .4);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--copper-600); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150;
  max-width: calc(100% - 40px); padding: 14px 22px; border-radius: 12px;
  background: var(--green-900); color: var(--white); font-size: 14.5px; font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(233, 178, 119, .4);
  opacity: 0; visibility: hidden; transform: translate(-50%, 20px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* keep hover lift responsive once revealed */
.js .reveal.is-visible.service,
.js .reveal.is-visible.pillar,
.js .reveal.is-visible.supply-item,
.js .reveal.is-visible.equip-card,
.js .reveal.is-visible.project { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, opacity .8s var(--ease); transition-delay: 0s; }

/* ---------- Founder ---------- */
.founder {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center;
  margin-bottom: 120px;
}
.founder-visual { position: relative; max-width: 400px; justify-self: center; width: 100%; }
.founder-photo {
  position: relative; z-index: 1; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  box-shadow: 0 30px 70px rgba(11, 42, 31, .28);
}
.founder-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 26, 18, .45));
}
.founder-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transform: scale(1.08); transition: transform 1.6s var(--ease);
}
.founder-visual.is-visible .founder-photo img { transform: scale(1); }
.founder-visual:hover .founder-photo img { transform: scale(1.04); }
.founder-fallback { display: none; position: absolute; inset: 22% 18% 0; width: 64%; fill: rgba(233, 178, 119, .35); }
.founder-photo.no-photo .founder-fallback { display: block; }

.founder-ring {
  position: absolute; inset: -22px; z-index: 0;
  border-radius: 222px 222px 40px 40px;
  border: 2px dashed rgba(208, 126, 44, .45);
  animation: ringPulse 6s ease-in-out infinite;
}
.founder-visual::before {
  content: ""; position: absolute; z-index: 0; width: 70%; height: 70%; right: -40px; bottom: -40px;
  border-radius: 24px;
  background-image: radial-gradient(circle at 1px 1px, var(--copper-500) 1.4px, transparent 0);
  background-size: 18px 18px; opacity: .35;
}
@keyframes ringPulse { 50% { inset: -30px; border-color: rgba(208, 126, 44, .2); } }

.founder-badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: var(--white); box-shadow: 0 18px 40px rgba(11, 42, 31, .18);
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--green-800);
  animation: bob 5s ease-in-out infinite;
}
.founder-badge strong { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--copper-600); }
.founder-badge svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--green-800); fill: none; stroke: var(--copper-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.founder-badge-years { left: -36px; bottom: 56px; }
.founder-badge-cert { right: -28px; top: 64px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.founder-copy > p:not(.eyebrow):not(.founder-role) { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.founder-copy h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; }
.founder-titles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.founder-ar { font-family: var(--font-ar); font-size: 17px; font-weight: 500; color: var(--green-700); }
.founder-role {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--copper-100); color: var(--copper-700);
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow-left::after { display: none; }
.founder-points { display: grid; gap: 12px; margin: 26px 0 34px; }
.founder-points li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.founder-points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b277' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Extra motion ---------- */
/* hero headline: lines rise out of a mask on load */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > * { display: block; animation: lineUp 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > * { animation-delay: .15s; }
@keyframes lineUp { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

/* shimmering copper text */
.hero-title .line > em {
  background-size: 200% auto;
  animation: lineUp 1.1s var(--ease) .15s both, shimmer 6s linear 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

/* drifting eggs in the hero */
.float-egg { position: absolute; fill: none; stroke: rgba(233, 178, 119, .28); stroke-width: 1.5; animation: drift 16s ease-in-out infinite; }
.fe-1 { width: 54px; left: 6%; top: 24%; }
.fe-2 { width: 32px; left: 44%; top: 14%; animation-duration: 20s; animation-delay: -6s; stroke: rgba(255, 255, 255, .16); }
.fe-3 { width: 72px; right: 4%; bottom: 14%; animation-duration: 22s; animation-delay: -3s; }
.fe-4 { width: 26px; left: 38%; bottom: 12%; animation-duration: 14s; animation-delay: -9s; stroke: rgba(255, 255, 255, .2); }
.fe-5 { width: 40px; right: 40%; top: 62%; animation-duration: 18s; animation-delay: -12s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  33% { transform: translate(18px, -30px) rotate(10deg); }
  66% { transform: translate(-14px, -12px) rotate(-2deg); }
}

/* light sweep across primary buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* section eyebrow lines draw in */
.js .section-head.reveal .eyebrow::before,
.js .section-head.reveal .eyebrow::after { transform: scaleX(0); transition: transform .8s var(--ease) .3s; }
.js .section-head.reveal .eyebrow::before { transform-origin: right; }
.js .section-head.reveal .eyebrow::after { transform-origin: left; }
.js .section-head.reveal.is-visible .eyebrow::before,
.js .section-head.reveal.is-visible .eyebrow::after { transform: scaleX(1); }

/* reveal variants */
.js .reveal-left { transform: translateX(-40px); }
.js .reveal-left.is-visible { transform: none; }

/* tilt panel (pointer driven, see script.js) */
.js .reveal.is-visible[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .reveal.is-visible[data-tilt].is-tilting { transition: transform .25s ease-out, opacity .8s var(--ease); transition-delay: 0s; }
.hero-panel { animation: panelFloat 7s ease-in-out infinite; }
@keyframes panelFloat { 50% { translate: 0 -10px; } }

/* stat count shine */
.stat dd { position: relative; }

/* services: icon number pops on hover */
.service:hover .service-num { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18) rotate(-6deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .supply-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1320px) {
  .nav-burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 110;
    width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: var(--green-900);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav-link { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
  .nav-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-cta { padding-block: 16px; }
  .nav { overflow-y: auto; }
  .nav-open .nav { transform: none; visibility: visible; }
  /* backdrop-filter would trap the fixed drawer inside the header */
  .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 33, 24, .98); }
  .nav-open .site-header { background: var(--green-900); }
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 95;
    background: rgba(3, 14, 10, .55); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  body.nav-open::after { opacity: 1; visibility: visible; }
}

@media (max-width: 960px) {
  :root { --header-h: 92px; --header-h-scrolled: 78px; }
  .site-header .emblem { --s: 66px; }
  .site-header.is-scrolled .emblem { --s: 56px; }
  .brand-text strong { font-size: 22px; }
  .brand-text small { font-size: 12.5px; }
  .brand-ar { font-size: 15px; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 48px) 0 96px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .founder { grid-template-columns: 1fr; gap: 64px; margin-bottom: 88px; }
  .founder-visual { max-width: 380px; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .grid-4, .supply-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .project-logo { height: 130px; padding: 16px; }
  .project-logo img { max-height: 90px; }
  .project figcaption { font-size: 11px; padding: 12px 8px; }
  .logo-tile { width: 170px; height: 100px; padding: 14px 18px; }
  .logo-tile img { max-height: 66px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; border-radius: 18px; }
  .hero-panel { padding: 22px; }
  .stat dd { font-size: 30px; }
  .hero-cta .btn { flex: 1 1 100%; }
  :root { --header-h: 84px; --header-h-scrolled: 72px; }
  .nav-wrap { gap: 12px; }
  .brand { gap: 12px; }
  .site-header .emblem { --s: 56px; border-radius: 12px; }
  .site-header.is-scrolled .emblem { --s: 48px; }
  .brand-text strong { font-size: 18px; letter-spacing: .04em; }
  .brand-text small { font-size: 10.5px; letter-spacing: .08em; }
  .brand-ar { font-size: 13px; margin-top: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .equip-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .founder-visual { max-width: 300px; }
  .founder-badge-years { left: -14px; bottom: 28px; padding: 10px 14px; }
  .founder-badge-years strong { font-size: 26px; }
  .founder-badge-cert { right: -12px; top: 28px; padding: 10px 14px; }
}


/* =========================================================
   Running strip (ticker)
   ========================================================= */
.ticker {
  position: relative; overflow: hidden; z-index: 2;
  background: linear-gradient(90deg, var(--copper-600), var(--copper-500), var(--copper-600));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(6, 26, 18, .18);
}
.ticker-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; }
.ticker-group li {
  display: flex; align-items: center; gap: 22px; padding: 16px 0 16px 22px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.ticker-group li::after {
  content: ""; width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--green-900); opacity: .55;
}

/* =========================================================
   Certificates (About)
   ========================================================= */
.certs { margin: 4px 0 32px; }
.certs-title {
  margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper-700);
}
.certs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cert {
  display: flex; align-items: center; gap: 14px; padding: 10px;
  border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--green-800);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert img {
  flex: none; width: 58px; height: 80px; object-fit: cover; object-position: top;
  border-radius: 6px; box-shadow: 0 0 0 1px var(--line);
}
.cert span { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.cert small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }

/* =========================================================
   Expertise cards (home + detail pages)
   ========================================================= */
.expertise {
  color: var(--white);
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(208, 126, 44, .14), transparent 60%),
    var(--green-900);
}
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expertise-grid-2 { grid-template-columns: repeat(2, 1fr); }
.exp-card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  min-height: 460px; border-radius: 18px; text-decoration: none; color: var(--white);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .25);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.exp-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.exp-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 26, 18, .05) 20%, rgba(6, 26, 18, .55) 55%, rgba(6, 26, 18, .95) 100%);
  transition: background .4s;
}
.exp-card:hover { transform: translateY(-8px); box-shadow: 0 34px 70px rgba(0, 0, 0, .35); }
.exp-card:hover img { transform: scale(1.08); }
.exp-body { padding: 30px 28px; }
.exp-kicker {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(233, 178, 119, .2); backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-300);
}
.exp-card h3 { color: var(--white); font-size: 28px; font-weight: 700; }
.exp-card p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.exp-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-300);
}
.exp-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.exp-card:hover .exp-link svg { transform: translateX(6px); }
.exp-card-sm { min-height: 320px; }
.other-expertise { background: var(--sand); }

/* service cards that link to a detail page */
a.service { text-decoration: none; color: inherit; }
.service-more {
  margin-top: auto; padding-top: 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-600);
  transition: color .35s;
}
.service:hover .service-more { color: var(--copper-300); }

/* full-width talent feature card */
.service-feature {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 28px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--white);
}
.service-feature .service-num { margin: 0; background: var(--copper-500); color: var(--white); flex: none; }
.service-feature .feature-copy { flex: 1; }
.service-feature h3 { color: var(--white); font-size: 22px; }
.service-feature p { color: rgba(255, 255, 255, .82); font-size: 15.5px; max-width: 720px; }
.service-feature .feature-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.service-feature:hover { background: linear-gradient(135deg, var(--green-700), var(--green-900)); }

/* =========================================================
   Supply cards with photos
   ========================================================= */
.supply-item.has-photo, .supply-item.has-icon { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.supply-photo { height: 150px; overflow: hidden; }
.supply-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.supply-item:hover .supply-photo img { transform: scale(1.08); }
.supply-icon {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, .03) 12px 24px),
    linear-gradient(145deg, rgba(208, 126, 44, .35), rgba(6, 26, 18, .2));
}
.supply-item .supply-icon svg { width: 64px; height: 64px; margin: 0; padding: 0; background: none; stroke-width: 1.3; }
.supply-body { padding: 24px 22px 28px; }
.supply-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-preview { background: var(--sand); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* 1 large + 1 wide + 6 small = three full rows of four */
.gallery-grid-preview .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid-preview .gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-grid-preview { grid-auto-rows: 200px; grid-auto-flow: dense; }
.gallery-item {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  background: var(--green-100); box-shadow: var(--shadow-sm);
  min-height: 200px; text-decoration: none;
}
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 26, 18, .85));
  opacity: 0; transition: opacity .35s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.35;
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease);
}
.gallery-cap small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-300); }
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
.gallery-more { margin-top: 40px; text-align: center; }

/* full gallery page: masonry columns keep each photo's natural shape */
.gallery-page { background: var(--cream); padding-top: 56px; }
.gallery-grid-masonry { display: block; columns: 4 260px; column-gap: 16px; }
.gallery-grid-masonry .gallery-item { min-height: 0; margin-bottom: 16px; break-inside: avoid; }
.gallery-grid-masonry .gallery-item img { height: auto; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--font-body); color: var(--green-800);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.filter-btn span {
  min-width: 24px; padding: 1px 7px; border-radius: 999px;
  font-size: 11.5px; background: var(--green-50); color: var(--green-700);
}
.filter-btn:hover { box-shadow: inset 0 0 0 1px var(--copper-500); }
.filter-btn.is-active { background: var(--green-800); color: var(--white); box-shadow: none; }
.filter-btn.is-active span { background: var(--copper-500); color: var(--white); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 60px 80px;
  background: rgba(3, 14, 10, .94); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 160px); border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-figure figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; max-width: 720px; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--white);
  transition: background-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--copper-500); }
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox.is-single .lb-nav { display: none; }

/* =========================================================
   Careers
   ========================================================= */
.careers { background: var(--cream); }
.careers-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.careers h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; }
.careers-lead { margin-top: 18px; font-size: 17.5px; color: var(--ink); }
.levels { display: grid; gap: 10px; margin: 30px 0; }
.levels li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm);
  font-weight: 600; color: var(--green-800);
}
.levels span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--copper-100); color: var(--copper-700);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.careers-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); }
.careers-split h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.careers-split p { font-size: 14.5px; color: var(--muted); }
.text-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--copper-700); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.apply-form { box-shadow: var(--shadow); border: 1px solid var(--line); }

/* select fields share the floating-label look */
.field select {
  width: 100%; padding: 24px 40px 10px 16px; appearance: none; -webkit-appearance: none;
  font: 15px/1.5 var(--font-body); color: var(--ink);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317503a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus { outline: none; border-color: var(--copper-500); box-shadow: 0 0 0 4px rgba(208, 126, 44, .14); }
.field select + label { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.field select:focus + label, .field select:valid + label { transform: translateY(-10px) scale(.78); color: var(--copper-700); font-weight: 600; }
.field.has-error select { border-color: #d0453c; background-color: #fff7f6; }

.file-drop {
  position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-radius: 14px; cursor: pointer;
  border: 2px dashed rgba(23, 80, 58, .25); background: var(--green-50);
  transition: border-color .2s, background-color .2s;
}
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop svg {
  flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 12px;
  background: var(--green-800); fill: none; stroke: var(--copper-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.file-drop-text { font-size: 14.5px; color: var(--ink); }
.file-drop-text strong { color: var(--green-800); }
.file-drop-text small { display: block; font-size: 12.5px; color: var(--muted); }
.file-name { flex-basis: 100%; font-size: 13.5px; font-weight: 600; color: var(--green-700); }
.file-name:empty { display: none; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--copper-500); background: var(--copper-100); }
.file-drop:focus-within { border-color: var(--copper-500); box-shadow: 0 0 0 4px rgba(208, 126, 44, .14); }
.file-drop.has-file { border-style: solid; border-color: var(--green-600); }
.file-drop.has-error { border-color: #d0453c; background: #fff7f6; }
.file-error { margin-top: -8px; }
.file-error.is-shown { display: block; }

.phone-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(233, 178, 119, .16); color: var(--copper-300); vertical-align: middle;
}
.contact-list .phone-tag { font-size: 10px; }

/* =========================================================
   Detail pages (breeders / broilers / layers / gallery)
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 78vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 80px) 0 90px;
  color: var(--white); background: var(--green-950);
}
.page-hero-short { min-height: 52vh; padding-bottom: 70px; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.15); } to { transform: scale(1); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 26, 18, .92) 0%, rgba(6, 26, 18, .7) 55%, rgba(6, 26, 18, .35) 100%),
    linear-gradient(0deg, rgba(6, 26, 18, .8), transparent 50%);
}
.page-hero-inner { max-width: 1200px; }
.page-hero h1 { margin-top: 18px; color: var(--white); font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1.05; }
.page-lead { margin-top: 18px; max-width: 640px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.breadcrumb a { color: var(--copper-300); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.overview { background: var(--cream); }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.overview-media { position: relative; }
.overview-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: 0; border-radius: 22px;
  border: 2px solid rgba(208, 126, 44, .45);
}
.overview-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.overview-copy h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; }
.overview-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--green-800); }
.check-list svg {
  flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--green-800); fill: none; stroke: var(--copper-300); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.detail-card {
  padding: 32px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--copper-500);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.detail-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.detail-card p { color: var(--muted); font-size: 15px; }
.detail-card:target { box-shadow: 0 0 0 3px var(--copper-500), var(--shadow); }
.photos { background: var(--sand); }
.photos .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: 240px; }

/* keep revealed hover lifts snappy on new cards */
.js .reveal.is-visible.exp-card,
.js .reveal.is-visible.detail-card,
.js .reveal.is-visible.gallery-item,
.js .reveal.is-visible.cert { transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease); transition-delay: 0s; }

/* ---------- Responsive (new components) ---------- */
@media (max-width: 1140px) {
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid .exp-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 360px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .service-feature { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .careers-grid, .overview-grid { grid-template-columns: 1fr; gap: 48px; }
  .overview-media { max-width: 560px; }
  .page-hero { min-height: 64vh; }
  .lightbox { padding: 70px 16px; }
  .lb-nav { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
@media (max-width: 640px) {
  .expertise-grid, .expertise-grid-2 { grid-template-columns: 1fr; }
  .exp-card { min-height: 360px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-grid-preview { grid-auto-rows: 150px; }
  .gallery-item { min-height: 150px; }
  .gallery-cap { opacity: 1; transform: none; font-size: 12px; left: 10px; right: 10px; bottom: 8px; }
  .gallery-cap small { display: none; }
  .gallery-item::after { opacity: 1; }
  .gallery-grid-masonry { columns: 2 140px; column-gap: 10px; }
  .gallery-grid-masonry .gallery-item { margin-bottom: 10px; }
  .certs-list, .careers-split, .supply-grid-2 { grid-template-columns: 1fr; }
  .service-feature { padding: 28px 22px; flex-direction: column; align-items: flex-start; }
  .service-feature .feature-actions { width: 100%; }
  .service-feature .feature-actions .btn { flex: 1; }
  .ticker-group li { font-size: 12px; padding-block: 13px; }
  .page-hero h1 { font-size: 38px; }
  .page-lead { font-size: 16px; }
  .photos .gallery-grid { grid-auto-rows: 160px; }
  .overview-media::before { inset: 14px -10px -14px 10px; }
  .btn { white-space: normal; text-align: center; }
  .founder-copy, .careers-info, .overview-copy { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-left { opacity: 1; transform: none; }
  .hero-title .line > * { opacity: 1; transform: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding-inline: 16px; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .ticker-track { width: auto; }
  .ticker-group { flex-wrap: wrap; justify-content: center; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .hero-slides span:first-child { opacity: 1; }
}

/* Aviagen tile with its Ross brand shown small inside */
.logo-tile-group { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-block: 14px; }
.logo-tile-group > img { max-height: 52px; }
.logo-sub {
  display: flex; align-items: center; gap: 6px; padding-top: 6px;
  border-top: 1px solid var(--line);
}
.logo-sub img { max-height: 44px; mix-blend-mode: multiply; }
@media (max-width: 640px) {
  .logo-tile-group > img { max-height: 40px; }
  .logo-sub img { max-height: 24px; }
}

/* six photos on a detail page: two even rows of three */
.photos .gallery-grid:has(> .gallery-item:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; }
@media (max-width: 640px) {
  .photos .gallery-grid:has(> .gallery-item:nth-child(6):last-child) { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}
