:root {
  --ink: #15211a;
  --forest: #1c2e23;
  --forest-2: #24392c;
  --lime: #8dc63f;
  --lime-dark: #6fa52a;
  --red: #d8261f;
  --paper: #f5f7f1;
  --white: #ffffff;
  --muted: #5d6b61;
  --line: #dfe5da;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 33, 26, .10);
  --head: "Montserrat", "Noto Sans SC", system-ui, sans-serif;
  --body: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:lang(zh-Hans) body { --head: "Noto Sans SC", "Montserrat", sans-serif; --body: "Noto Sans SC", "Inter", sans-serif; }
html:lang(ar) body { --head: "Noto Kufi Arabic", "Montserrat", sans-serif; --body: "Noto Sans Arabic", "Inter", sans-serif; line-height: 1.75; }
/* Letter spacing breaks the joins between Arabic letters */
html:lang(ar) :is(h1, h2, h3, h4, .eyebrow, .offices b, .proj-tag, .proj-table th, .contact-list dt) { letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--lime); margin-bottom: .9em; display: flex; align-items: center; gap: .6em; }
.eyebrow.dark { color: var(--lime-dark); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-dark { background: var(--forest); color: #e8eee6; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-lime { background: linear-gradient(135deg, #eef6e3, #f8fbf3); }
.note { color: var(--muted); font-size: .92rem; margin-top: 1.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.6em; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #9dd14f; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.07); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: "Montserrat", sans-serif; }
.brand-text strong { font-size: .98rem; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: .7rem; font-weight: 700; letter-spacing: .42em; color: var(--red); margin-top: 4px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: .5em .8em; border-radius: 8px; color: var(--ink); }
.main-nav a:hover { background: #eef3e8; }
.main-nav .nav-cta { background: var(--forest); color: var(--white); padding-inline: 1.1em; }
.main-nav .nav-cta:hover { background: var(--forest-2); }
.lang { position: relative; flex-shrink: 0; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: .45em .8em; font: 600 .8rem "Inter", "Noto Sans SC", "Noto Sans Arabic", sans-serif; color: var(--ink); cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover, .lang[open] summary { border-color: var(--lime); }
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 180px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; z-index: 60; }
.lang-menu button { border: 0; background: none; font: 500 .9rem "Inter", "Noto Sans SC", "Noto Sans Arabic", sans-serif; padding: .55em .8em; border-radius: 8px; cursor: pointer; color: var(--ink); text-align: start; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.lang-menu button:hover { background: #eef3e8; }
.lang-menu button.active { background: var(--lime); font-weight: 600; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { position: relative; color: var(--white); padding: clamp(80px, 12vw, 150px) 0 0; overflow: hidden; background: var(--forest); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,28,20,.94) 0%, rgba(16,28,20,.78) 45%, rgba(16,28,20,.35) 100%); }
/* Figures with units ("600 t", "25 ha") keep their left-to-right order in Arabic */
[dir="rtl"] :is(.stats b, .proj-size, .proj-table td:last-child) { direction: ltr; text-align: right; }
[dir="rtl"] .board b { direction: ltr; }
[dir="rtl"] .stats b::after { margin-left: auto; }
[dir="rtl"] .hero-bg::after { background: linear-gradient(-100deg, rgba(16,28,20,.94) 0%, rgba(16,28,20,.78) 45%, rgba(16,28,20,.35) 100%); }
.hero::before { content: ""; position: absolute; inset-inline-end: -120px; top: -60px; width: 460px; height: 460px; border: 70px solid rgba(141,198,63,.18); border-radius: 50%; z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 1200px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; max-width: 14ch; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40em; color: #dfe8dc; }
.pillars-mini { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.pm { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.pm-trade .pm-dot { background: #4fb3d9; }
.pm-energy .pm-dot { background: #f2b630; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { position: relative; z-index: 2; list-style: none; padding: 0; margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.stats li { padding: 26px 24px; border-inline-end: 1px solid var(--line); }
.stats li:last-child { border-inline-end: 0; }
.stats b { display: block; font-family: "Montserrat", sans-serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--forest); }
.stats b::after { content: ""; display: block; width: 28px; height: 4px; background: var(--lime); margin: 8px 0 10px; border-radius: 2px; }
.stats span { font-size: .88rem; color: var(--muted); display: block; line-height: 1.4; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.about-photo::before { content: ""; position: absolute; inset-inline-start: -16px; bottom: 26px; width: 55%; height: 55%; background: var(--lime); border-radius: var(--radius); z-index: -1; }
.about-photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 22px; }
.motto { margin: 1.5em 0; padding: 1em 1.4em; border-inline-start: 4px solid var(--red); background: var(--white); border-start-end-radius: 10px; border-end-end-radius: 10px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--forest); }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: .9rem; }
.offices b { display: block; font-family: var(--head); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime-dark); }
.offices span { color: var(--muted); }

/* Business cards */
.biz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.biz-card { background: var(--forest-2); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(255,255,255,.06); }
.biz-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.biz-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.biz-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.biz-num { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--lime); font-size: .9rem; margin-bottom: 6px; }
.biz-body p { color: #c9d4c6; font-size: .95rem; flex: 1; }
.more { color: var(--lime); font-weight: 700; font-size: .9rem; }

/* Divisions */
.division-alt { background: var(--white); }
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.division-grid.reverse .division-text { order: 2; }
.tag { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--white); font-size: .8rem; letter-spacing: 0; }
.tag-agro { background: var(--lime-dark); }
.tag-trade { background: #2b8fb8; }
.tag-energy { background: #d99a12; }
.checks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 32px; font-size: .96rem; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2315211a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(360px, 42vw, 520px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic .m1 { grid-row: 1 / 3; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 1.4em 0; counter-reset: s; }
.flow-step { background: #eef5f9; border-radius: 10px; padding: 12px; font-size: .84rem; line-height: 1.35; position: relative; }
.flow-step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2b8fb8; color: var(--white); font-size: .8rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: .4em .9em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; }
.energy-grid { display: grid; gap: 12px; margin-top: 1.4em; }
.ecard { background: var(--white); border-radius: 12px; padding: 18px 20px; border-inline-start: 4px solid #f2b630; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.ecard-coal { border-inline-start-color: var(--ink); }
.ecard p { margin: 0; color: var(--muted); font-size: .93rem; }
.ecard h4 { margin-bottom: .3em; }

/* Projects */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.head-row h2 { margin: 0; }
.view-toggle { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; }
.view-toggle button { background: none; border: 0; color: #c9d4c6; font: 600 .86rem var(--body); padding: .5em 1.1em; border-radius: 999px; cursor: pointer; }
.view-toggle button.active { background: var(--lime); color: var(--ink); }
.proj-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proj { background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.proj img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.proj-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.proj-body h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .3em; }
.proj-body p { font-size: .9rem; color: var(--muted); }
.proj-loc { font-weight: 600; color: var(--lime-dark) !important; font-size: .82rem !important; margin-bottom: .6em; }
.proj-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: #eef6e3; color: var(--lime-dark); padding: .25em .6em; border-radius: 6px; margin-bottom: 10px; }
.proj-size { margin-top: auto; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--forest); }
.proj-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); }
.proj-table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .94rem; min-width: 600px; }
.proj-table th, .proj-table td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.proj-table th { background: #eef6e3; font-family: var(--head); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.proj-table td:last-child { font-weight: 700; white-space: nowrap; }

/* Quality */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.cert { background: var(--white); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--lime); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.cert-badge { display: inline-block; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: .8rem; background: var(--forest); color: var(--lime); padding: .35em .8em; border-radius: 6px; margin-bottom: 14px; }
.cert p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Values */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.vision { font-family: var(--head); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; color: var(--forest); line-height: 1.3; }
.mission { padding-inline-start: 1.2em; margin: 0; display: grid; gap: 8px; }
.mission li::marker { color: var(--lime-dark); }
.akhlak-title { margin-top: 64px; }
.akhlak { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.akhlak > div { background: var(--white); border-radius: var(--radius); padding: 20px 18px; }
.akhlak b { font-family: "Montserrat", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--lime); line-height: 1; display: block; margin-bottom: 10px; }
.akhlak p { font-size: .86rem; color: var(--muted); margin: 0; }
.akhlak h4 { margin-bottom: .3em; }

/* CSR + board */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); }
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.board li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board li:first-child { border-top: 1px solid var(--line); }
.board span { color: var(--muted); font-size: .9rem; text-align: end; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; margin: 28px 0 0; }
.contact-list dt { font-family: var(--head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); padding-top: 3px; }
.contact-list dd { margin: 0; color: #dfe8dc; }
.contact-list a { color: var(--white); }
.contact-form { background: var(--forest-2); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #c9d4c6; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: .95rem; font-weight: 400; padding: .75em .9em; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: var(--white); width: 100%; }
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.form-hint { font-size: .8rem; color: #9aa99c; margin: 0; text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: #aab5ac; padding: 36px 0 24px; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: auto; }
.footer-brand strong { display: block; color: var(--white); font-family: "Montserrat", sans-serif; }
.footer-copy { margin: 0; }
.credits { margin-top: 20px; font-size: .78rem; color: #7f8b82; }
.credits summary { cursor: pointer; }
.credits p { margin: .6em 0 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1100px) {
  .proj-cards, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .akhlak { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .main-nav { position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; background: var(--white); padding: 12px 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8em 1em; }
  .lang { margin-inline-start: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-inline-end: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .division-grid, .vm-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .division-grid.reverse .division-text { order: 0; }
  .biz-cards { grid-template-columns: 1fr; }
  .biz-card { flex-direction: row; }
  .biz-img { aspect-ratio: auto; width: 38%; min-height: 180px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .brand-text strong { font-size: .82rem; }
  .brand-logo { width: 46px; }
  .header-inner { gap: 10px; }
  .lang summary { padding: .45em .65em; }
  .stats li { padding: 18px 16px; }
  .proj-cards, .cert-grid { grid-template-columns: 1fr; }
  .akhlak { grid-template-columns: repeat(2, 1fr); }
  .offices { grid-template-columns: 1fr; }
  .biz-card { flex-direction: column; }
  .biz-img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .mosaic { height: 340px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { margin-bottom: 12px; }
  .board li { flex-direction: column; gap: 2px; }
  .board span { text-align: start; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
}
