/* ===== Farha for Energy and Minerals — v2 ===== */
:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #12171D;
  --ink-2: #27303A;
  --muted: #5D6672;
  --line: #E4E0D7;
  --gold: #C9962E;
  --gold-2: #E0B858;
  --gold-deep: #8C6414;
  --gold-soft: #F5ECD6;
  --dark: #0F1419;
  --dark-2: #182029;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18,23,29,.05), 0 12px 40px rgba(18,23,29,.08);
  --shadow-lg: 0 30px 80px rgba(18,23,29,.22);
  --container: 1240px;
  --header-h: 84px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 600; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-2); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { inset-inline-start: 8px; }

/* ----- Buttons & links ----- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
html[dir="rtl"] .btn svg.arrow, html[dir="rtl"] .link svg.arrow { transform: scaleX(-1); }
.btn:hover svg.arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover svg.arrow { transform: scaleX(-1) translateX(4px); }
.btn--gold { background: var(--gold); color: #1A1305; box-shadow: 0 8px 24px rgba(201,150,46,.3); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,150,46,.42); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--outline:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: 11px 20px; font-size: 15px; }

.link { font-weight: 600; display: inline-flex; gap: .55em; align-items: center; color: var(--gold-deep); transition: gap .3s var(--ease); white-space: nowrap; }
.link svg { width: 18px; height: 18px; }
.link:hover { gap: .9em; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px; color: var(--gold-deep); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.kicker--light { color: var(--gold-2); }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }

/* ----- Header ----- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(245,243,238,.86); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line); transition: background .35s, border-color .35s, box-shadow .35s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(18,23,29,.06); }
body.has-overlay .header:not(.scrolled):not(.menu-open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
main { padding-top: var(--header-h); }
body.has-overlay main { padding-top: 0; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 34px; height: auto; }
.brand .logo-light { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; transition: color .3s; }
.brand__text small { font-size: 12.5px; color: var(--muted); transition: color .3s; }
.brand--light strong { color: #fff; }
.brand--light small { color: rgba(255,255,255,.55); }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a:not(.btn) { position: relative; padding: 10px 13px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav a.active::after, .nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  font-family: var(--font-ar); font-size: 14px; font-weight: 600; padding: 9px 16px; background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--ink); transition: border-color .25s, color .25s, background .25s;
}
.lang:hover { border-color: var(--gold); }
html[lang="ar"] .lang { font-family: var(--font); }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; padding: 14px 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* header on top of dark hero */
body.has-overlay .header:not(.scrolled):not(.menu-open) :is(.brand__text strong, .nav a:not(.btn), .lang) { color: #fff; }
body.has-overlay .header:not(.scrolled):not(.menu-open) .brand__text small { color: rgba(255,255,255,.65); }
body.has-overlay .header:not(.scrolled):not(.menu-open) .nav a:not(.btn) { color: rgba(255,255,255,.82); }
body.has-overlay .header:not(.scrolled):not(.menu-open) .nav a.active,
body.has-overlay .header:not(.scrolled):not(.menu-open) .nav a:not(.btn):hover { color: #fff; }
body.has-overlay .header:not(.scrolled):not(.menu-open) :is(.lang, .burger) { border-color: rgba(255,255,255,.35); }
body.has-overlay .header:not(.scrolled):not(.menu-open) .burger span { background: #fff; }
body.has-overlay .header:not(.scrolled):not(.menu-open) .logo-dark { display: none; }
body.has-overlay .header:not(.scrolled):not(.menu-open) .logo-light { display: block; }

/* ----- Media ----- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(160deg, #2A333D, #12161B); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.media__label {
  position: absolute; inset-inline: 0; bottom: 0; padding: 60px 22px 20px; color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.4;
  background: linear-gradient(to top, rgba(8,10,13,.85), transparent);
}

/* ----- Home hero ----- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,13,17,.55) 0%, rgba(10,13,17,0) 22%),
    linear-gradient(100deg, rgba(10,13,17,.9) 0%, rgba(10,13,17,.6) 45%, rgba(10,13,17,.1) 100%),
    linear-gradient(to top, rgba(10,13,17,.85) 0%, rgba(10,13,17,0) 45%);
}
html[dir="rtl"] .hero__bg::after {
  background:
    linear-gradient(to bottom, rgba(10,13,17,.55) 0%, rgba(10,13,17,0) 22%),
    linear-gradient(260deg, rgba(10,13,17,.9) 0%, rgba(10,13,17,.6) 45%, rgba(10,13,17,.1) 100%),
    linear-gradient(to top, rgba(10,13,17,.85) 0%, rgba(10,13,17,0) 45%);
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 80px); padding-bottom: 60px; max-width: 820px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 600; margin-bottom: 26px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 40px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { position: relative; border-top: 1px solid rgba(255,255,255,.14); background: rgba(10,13,17,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero__stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hstat { min-width: 0; padding: 28px 26px; border-inline-start: 1px solid rgba(255,255,255,.12); display: flex; gap: 16px; align-items: flex-start; }
.hstat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hstat__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(224,184,88,.14); color: var(--gold-2); display: grid; place-items: center; }
.hstat__icon svg { width: 20px; height: 20px; }
.hstat > div:last-child { min-width: 0; }
.hstat strong { display: block; overflow-wrap: anywhere; font-size: 16.5px; margin-bottom: 2px; }
.hstat span { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.45; display: block; }
.scroll-cue { position: absolute; inset-inline-end: 28px; bottom: 140px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ----- Sections ----- */
.section { padding-block: 120px; }
.section--white { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }
.section--tight { padding-block: 84px; }
.section__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section__head h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 0; text-wrap: balance; }
.section__head p { color: var(--muted); font-size: 18.5px; margin: 0; max-width: 520px; }
.section--dark .section__head p { color: rgba(255,255,255,.65); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about__media { position: relative; padding-bottom: 70px; padding-inline-end: 70px; }
.about__media .media:first-child { aspect-ratio: 4/3.3; box-shadow: var(--shadow-lg); }
.about__media .media--small { position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; border: 8px solid var(--bg); border-radius: 22px; box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; top: 26px; inset-inline-start: -22px; background: var(--gold); color: #1A1305; border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 16px 40px rgba(201,150,46,.4); line-height: 1.2;
}
.about__badge strong { display: block; font-size: 34px; font-weight: 700; }
.about__badge span { font-size: 13px; font-weight: 600; }
.about h2 { font-size: clamp(32px, 3.8vw, 50px); text-wrap: balance; }
.about p { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.ticks li::before {
  content: ""; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--gold-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--dark .ticks li::before { background-color: rgba(224,184,88,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0B858' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Division cards */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; border-radius: 22px; overflow: hidden; color: #fff;
  isolation: isolate; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s;
}
.dcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.dcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,10,13,.95) 0%, rgba(8,10,13,.55) 50%, rgba(8,10,13,.05) 100%); transition: background .5s; }
.dcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.dcard:hover > img { transform: scale(1.07); }
.dcard__body { padding: 34px 32px 32px; }
.dcard__num { position: absolute; top: 26px; inset-inline-start: 30px; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; }
.dcard h3 { font-size: 27px; margin-bottom: 12px; }
.dcard p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 20px; }
.dcard ul { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 8px; font-size: 15px; color: rgba(255,255,255,.88); }
.dcard ul li { display: flex; gap: 10px; align-items: center; }
.dcard ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); }
.dcard .link { color: var(--gold-2); }

/* Safety band */
.safety-band { position: relative; overflow: hidden; }
.safety-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.safety-band h2 { font-size: clamp(32px, 3.8vw, 50px); text-wrap: balance; }
.safety-band p { color: rgba(255,255,255,.7); font-size: 18px; }
.safety-band__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.safety-band__photos .media { aspect-ratio: 3/4; }
.safety-band__photos .media:nth-child(2) { transform: translateY(48px); }
.safety-band::before { content: ""; position: absolute; width: 640px; height: 640px; inset-inline-start: -260px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(201,150,46,.22), transparent 65%); pointer-events: none; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; inset-inline: 32px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .5; }
.step { position: relative; }
.step__n { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-weight: 700; font-size: 20px; margin-bottom: 26px; transition: background .35s, color .35s; }
.step:hover .step__n { background: var(--gold); color: #1A1305; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; gap: 16px; }
.gallery .media { cursor: zoom-in; }
.gallery .media:hover img { transform: scale(1.06); }
.g1 { grid-column: span 7; grid-row: span 3; }
.g2 { grid-column: span 5; grid-row: span 3; }
.g3 { grid-column: span 4; grid-row: span 3; }
.g4 { grid-column: span 8; grid-row: span 3; }
.g5, .g6, .g7 { grid-column: span 4; grid-row: span 3; }
.gallery--sm { grid-auto-rows: 160px; }
.gallery--sm .media { grid-column: span 4; grid-row: span 3; }
.gallery--sm.two .media { grid-column: span 6; }

/* CTA */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--dark); }
.cta__bg { position: absolute; inset: 0; opacity: .28; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 20%, rgba(15,20,25,.6)); }
html[dir="rtl"] .cta::after { background: linear-gradient(270deg, var(--dark) 20%, rgba(15,20,25,.6)); }
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 110px; }
.cta h2 { font-size: clamp(34px, 4.4vw, 58px); }
.cta p { color: rgba(255,255,255,.72); font-size: 19px; margin: 0; max-width: 560px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ----- Service pages ----- */
.phero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 22s ease-out forwards; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,13,17,.92) 0%, rgba(10,13,17,.65) 55%, rgba(10,13,17,.3) 100%); }
html[dir="rtl"] .phero__bg::after { background: linear-gradient(260deg, rgba(10,13,17,.92) 0%, rgba(10,13,17,.65) 55%, rgba(10,13,17,.3) 100%); }
.phero__content { position: relative; padding-top: calc(var(--header-h) + 90px); padding-bottom: 110px; max-width: 760px; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 24px; display: flex; gap: 10px; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--gold-2); }
.phero h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 24px; text-wrap: balance; }
.phero p { color: rgba(255,255,255,.8); font-size: 19.5px; margin-bottom: 38px; max-width: 620px; }

.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scope__item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.scope__item::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
html[dir="rtl"] .scope__item::after { transform-origin: right; }
.scope__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.scope__item:hover::after { transform: scaleX(1); }
.scope__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; margin-bottom: 24px; transition: background .35s, color .35s; }
.scope__item:hover .scope__icon { background: var(--gold); color: #1A1305; }
.scope__icon svg { width: 26px; height: 26px; }
.scope__item h3 { font-size: 20.5px; }
.scope__item p { color: var(--muted); font-size: 16px; margin: 0; }

.others { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ocard { position: relative; display: flex; align-items: flex-end; min-height: 260px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; padding: 30px; }
.ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.ocard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,10,13,.9), rgba(8,10,13,.2)); }
.ocard:hover img { transform: scale(1.06); }
.ocard h3 { font-size: 24px; margin: 0 0 8px; }
.ocard .link { color: var(--gold-2); }

/* ----- Contact ----- */
.contact-hero { padding-top: calc(var(--header-h) + 0px); }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { color: #B4471F; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFAF7; color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,150,46,.16); }
.field .err { color: #B4471F; font-size: 13px; display: none; }
.field.invalid :is(input, textarea) { border-color: #B4471F; }
.field.invalid .err { display: block; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.form__note { font-size: 14px; color: var(--muted); margin: 0; }

.info { background: var(--dark); color: #fff; border-radius: 22px; padding: 40px 36px; position: relative; overflow: hidden; }
.info::before { content: ""; position: absolute; width: 300px; height: 300px; inset-inline-end: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(201,150,46,.35), transparent 65%); }
.info h3 { font-size: 23px; margin-bottom: 28px; position: relative; }
.info dl { margin: 0; display: grid; gap: 22px; position: relative; }
.info dl > div { display: flex; gap: 16px; }
.info__ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(224,184,88,.14); color: var(--gold-2); display: grid; place-items: center; }
.info__ic svg { width: 19px; height: 19px; }
.info dt { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.info dd { margin: 0; font-size: 16.5px; }
.info a { border-bottom: 1px solid var(--gold); }
.map { margin-top: 30px; border-radius: 14px; overflow: hidden; border: 0; width: 100%; height: 230px; position: relative; filter: grayscale(.25) contrast(1.05); }

/* ----- Footer ----- */
.footer { background: #0B0F13; color: rgba(255,255,255,.7); padding-top: 84px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer__brand p { margin-top: 22px; max-width: 380px; font-size: 15.5px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; }
.footer a:hover { color: var(--gold-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; font-size: 14px; color: rgba(255,255,255,.45); }

.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* ----- Lightbox ----- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6,8,10,.94); display: flex; align-items: center; justify-content: center; padding: 60px 80px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 1200px; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: rgba(255,255,255,.85); font-size: 16px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 20px; inset-inline-end: 20px; }
.lightbox__prev { inset-inline-start: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { inset-inline-end: 20px; top: 50%; margin-top: -26px; }
html[dir="rtl"] .lightbox__nav { transform: scaleX(-1); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ----- Motion ----- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal, .phero .reveal { transition-duration: 1.1s; }
.page-enter { animation: fade .45s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .burger { display: flex; }
  .header__actions { margin-inline-start: auto; }
  .header.menu-open { background: var(--bg); }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 28px 28px; box-shadow: 0 30px 50px rgba(18,23,29,.12);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 2px; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.active { color: var(--gold-deep) !important; }
  .nav__cta { display: inline-flex; margin-top: 20px; }
  .divisions { grid-template-columns: 1fr; }
  .dcard { min-height: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .hero__stats .container { grid-template-columns: repeat(2, 1fr); }
  .hstat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hstat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .scroll-cue { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .section { padding-block: 84px; }
  .section__head, .about, .safety-band__grid, .contact, .footer__grid, .others { grid-template-columns: 1fr; }
  .section__head { gap: 16px; margin-bottom: 44px; }
  .about, .safety-band__grid { gap: 56px; }
  .scope { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery .media, .gallery--sm .media, .gallery--sm.two .media { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery .g1, .gallery .g4 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .cta__inner { flex-direction: column; align-items: flex-start; padding-block: 84px; }
  .phero__content { padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .header__inner { gap: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .brand img { width: 28px; }
  .brand__text small { display: none; }
  .brand__text strong { font-size: 14.5px; line-height: 1.25; }
  .lang { padding: 8px 12px; font-size: 13px; }
  .burger { width: 42px; height: 42px; padding: 13px 11px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .hero__content { padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__stats .container { grid-template-columns: 1fr 1fr; }
  .hstat { padding: 18px 12px 18px 0; flex-direction: column; gap: 10px; }
  html[dir="rtl"] .hstat { padding: 18px 0 18px 12px; }
  .hstat:nth-child(even) { padding-inline-start: 14px; }
  .hstat span { font-size: 13px; }
  .about__media { padding-bottom: 50px; padding-inline-end: 40px; }
  .about__badge { inset-inline-start: -8px; padding: 14px 16px; }
  .about__badge strong { font-size: 26px; }
  .steps, .scope, .form__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery .g1, .gallery .g4 { grid-column: span 1 !important; grid-row: span 1 !important; }
  .form { padding: 26px 20px; }
  .info { padding: 32px 24px; }
  .safety-band__photos .media:nth-child(2) { transform: translateY(28px); }
  .lightbox { padding: 70px 12px; }
  .lightbox__nav { top: auto !important; bottom: 16px; margin: 0 !important; }
}
