
:root {
  --paper: #f5f2e9;
  --paper-light: #faf8f2;
  --ink: #10263d;
  --secondary: #485563;
  --green: #142b43;
  --gold: #e6c89c;
  --line: #d5d5c7;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img { display: block; }
a:focus-visible { outline: 3px solid #bc894f; outline-offset: 5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h2 { font-size: clamp(2.35rem, 4.5vw, 3.65rem); line-height: 1.05; }
p { line-height: 1.6; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 3; padding: 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand > span { font-size: 1.12rem; line-height: 1.15; font-weight: 700; }
.brand small { display: block; margin-block-start: 3px; font-size: .69rem; font-weight: 600; letter-spacing: .055em; color: var(--secondary); }
.navigation { display: flex; align-items: center; gap: clamp(16px, 3.8vw, 52px); font-size: .9rem; font-weight: 600; }
.navigation a { text-decoration: none; }
.navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
.navigation .language { min-height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); padding: 0 13px; border-radius: 2px; }

.hero { position: relative; min-height: clamp(510px, 69vh, 715px); isolation: isolate; display: flex; align-items: center; background: #152f42; color: var(--paper-light); }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,25,44,.91), rgba(13,32,54,.56) 48%, rgba(13,32,54,.07) 92%), linear-gradient(0deg, rgba(8,28,48,.24), transparent 60%); }
.hero-inner { padding-block: 74px 88px; }
.hero-location { display: flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.hero-location::before { content: ""; display: block; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4rem, 8.3vw, 7.55rem); line-height: .91; letter-spacing: -.02em; margin-block: 20px 24px; }
.hero-description { color: #edece4; font-size: clamp(1rem, 2vw, 1.18rem); }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 20px; border: 1px solid transparent; border-radius: 2px; font-size: .89rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #efdab9; }
.button span { font-size: 1.1rem; }
.button-light { background: var(--gold); color: #15283b; }
.hero .button { margin-block-start: 31px; }

.products { background: var(--paper-light); padding-block: clamp(48px, 6vw, 78px); }
.products h2 { margin-block-end: 25px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; align-items: start; padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--line); background: var(--paper); }
.product-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.product-card p { margin-block: 10px 23px; color: var(--secondary); }
.product-card .button { margin-block-start: auto; min-height: 48px; }

.company { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(36px, 8vw, 120px); align-items: center; padding-block: clamp(55px, 7vw, 97px); scroll-margin-top: 24px; }
.company p { max-width: 570px; margin-block-start: 17px; color: var(--secondary); font-size: 1.03rem; }
.registry { padding-inline-start: clamp(21px, 4vw, 50px); border-inline-start: 1px solid #a9aa98; }
.registry div + div { margin-block-start: 19px; }
.registry dt { color: var(--secondary); font-size: .8rem; font-weight: 600; }
.registry dd { margin-block-start: 3px; font-size: 1.11rem; font-weight: 700; }

.areas { background: #e9eced; padding-block: clamp(52px, 7vw, 88px); }
.areas h2 { margin-block-end: clamp(26px, 4vw, 45px); }
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-block-start: 1px solid #b8bec1; }
.areas-grid article { padding: 27px 28px 8px; }
.areas-grid article:first-child { padding-inline-start: 0; }
.areas-grid article + article { border-inline-start: 1px solid #b8bec1; }
.area-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-block-end: 16px; border: 1px solid #8b9aa6; color: #19374f; font-size: 1.19rem; line-height: 1; }
.areas-grid h3 { margin-block-end: 9px; font-size: 1.08rem; }
.areas-grid p { color: var(--secondary); font-size: .94rem; }

.contact { background: var(--green); color: var(--paper-light); }
.contact-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding-block: clamp(50px, 6.5vw, 85px); }
.contact p { margin-block-start: 15px; color: #e4eaf0; }
.contact-link { flex-shrink: 0; }
.footer-inner { min-height: 77px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--secondary); font-size: .79rem; }

:lang(ar) { font-family: Tahoma, Arial, sans-serif; }
:lang(ar) h1, :lang(ar) h2 { font-family: Tahoma, Arial, sans-serif; font-weight: 500; }
:lang(ar) h1 { font-size: clamp(2.8rem, 6.4vw, 5.65rem); line-height: 1.15; letter-spacing: 0; }
:lang(ar) h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
:lang(ar) .hero-location { letter-spacing: 0; font-size: .89rem; }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(8,25,44,.91), rgba(13,32,54,.68) 48%, rgba(13,32,54,.08) 95%); }
[dir="rtl"] .button span { transform: scaleX(-1); }
:lang(ar) bdi, :lang(en) .language { letter-spacing: 0; }
bdi { unicode-bidi: isolate; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { min-height: 76px; }
  .hero { min-height: 510px; }
  .hero-image { object-position: 61% center; }
  .company { grid-template-columns: 1fr .75fr; gap: 27px; }
  .areas-grid article { padding-inline: 17px; }
  .contact-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 35px; height: 35px; }
  .brand > span { font-size: .95rem; }
  .brand small { font-size: .62rem; }
  .navigation { gap: 12px; font-size: .76rem; }
  .navigation a:not(.language) { display: none; }
  .navigation .language { min-height: 36px; }
  .hero { min-height: 485px; }
  .hero-inner { padding-block: 62px 72px; }
  .hero h1 { font-size: clamp(3.2rem, 12.3vw, 4.2rem); }
  :lang(ar) .hero h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .hero::before { background: linear-gradient(90deg, rgba(8,25,44,.92), rgba(13,32,54,.66) 68%, rgba(13,32,54,.28)); }
  .product-grid { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .registry { padding-inline-start: 16px; }
  .areas-grid { grid-template-columns: 1fr; }
  .areas-grid article, .areas-grid article:first-child { padding: 20px 0; }
  .areas-grid article + article { border-inline-start: 0; border-block-start: 1px solid #b8bec1; }
  .area-icon { width: 34px; height: 34px; margin-block-end: 11px; }
  .footer-inner { flex-wrap: wrap; align-content: center; gap: 5px 13px; padding-block: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.arrow { position: relative; width: 12px; height: 12px; display: inline-block; }
.arrow::before { content: ""; position: absolute; inset: 1px 1px auto auto; width: 7px; height: 7px; border-block-start: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; }
.arrow::after { content: ""; position: absolute; inset: 6px 0 auto 0; border-block-start: 1.5px solid currentColor; transform: rotate(-45deg); }
[dir="rtl"] .arrow::before { border-inline-end: 0; border-inline-start: 1.5px solid currentColor; }
.diamond, .ring { width: 11px; height: 11px; border: 1.5px solid currentColor; }
.diamond { transform: rotate(45deg); }
.ring { border-radius: 50%; box-shadow: 0 0 0 2px #e9eced, 0 0 0 3px currentColor; }

.product-card { padding: 0; overflow: hidden; align-items: stretch; }
.product-photo { width: 100%; height: clamp(180px, 23vw, 300px); object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; align-items: start; padding: clamp(20px, 3vw, 35px); }
.card-body p { margin-block-end: 16px; }
.product-action { margin-block-start: auto; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 700; font-size: .9rem; text-underline-offset: .25em; }
.product-action:hover { color: #79501e; }
.products .other-heading { margin-block: clamp(35px, 6vw, 70px) 20px; }
.fertilizer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.secondary-card { border-block-start: 3px solid #b48a49; }
.secondary-card h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }
.catalog-note { margin-block-start: 22px; color: var(--secondary); font-size: .88rem; }
@media (max-width: 800px) { .fertilizer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fertilizer-grid { grid-template-columns: 1fr; } }

.detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(34px, 7vw, 88px); }
.detail h1 { font-size: clamp(3rem, 7vw, 6.25rem); line-height: 1; margin-block: 18px; }
:lang(ar) .detail h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.detail-tagline { font-weight: 700; margin-block-end: 10px; }
.detail-copy > p:last-child { color: var(--secondary); }
.back-link { color: var(--secondary); text-underline-offset: .22em; }
.detail-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-spec { background: var(--paper-light); padding-block: clamp(35px, 6vw, 70px); }
.detail-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 72px); align-items: start; }
.detail-spec h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.detail-spec ul { margin-block: 19px 0; padding-inline-start: 20px; line-height: 1.65; }
.detail-spec li + li { margin-block-start: 10px; }
.quote-panel { background: var(--green); color: var(--paper-light); padding: clamp(24px, 4vw, 44px); }
.quote-panel p { margin-block: 15px 22px; }
@media (max-width: 700px) {
  .detail, .detail-spec-grid { grid-template-columns: 1fr; }
  .detail-image { aspect-ratio: 16 / 9; }
}

.fertilizer-mark {
  display: grid;
  place-items: center;
  min-height: clamp(170px, 28vw, 330px);
  padding: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at top, #244560, var(--green) 68%);
  color: var(--gold);
}
.fertilizer-mark span {
  direction: ltr;
  font: 400 clamp(3.5rem, 11vw, 8rem)/1 "Instrument Serif", Georgia, serif;
  letter-spacing: .025em;
}

.rfq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 72px); padding-block: clamp(38px, 7vw, 82px); }
.rfq-form { padding: clamp(18px, 3vw, 30px); background: var(--paper-light); color: var(--ink); }
.rfq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block-end: 20px; }
.rfq-form label { display: grid; gap: 6px; align-content: start; font-size: .9rem; font-weight: 700; }
.rfq-form :is(input, select, textarea) { width: 100%; min-height: 44px; padding: 8px 10px; background: #fff; color: var(--ink); border: 1px solid #9aa5ac; font: inherit; font-size: 1rem; font-weight: 400; }
.rfq-form button { cursor: pointer; }
.rfq-form button:disabled { opacity: .65; cursor: default; }
.rfq-result { margin-block-start: 20px; }
.rfq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 12px; }
.rfq-form p { color: var(--ink); }
.rfq-form [role="status"]:empty { display: none; }
@media (max-width: 780px) { .rfq-wrap { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .rfq-fields { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(3.6rem, 7.3vw, 6.6rem); line-height: 1; }
.hero-products { font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 600; margin-block: 0 15px; }
:lang(ar) .hero h1 span { display: inline-block; font-family: "DM Sans", Arial, sans-serif; font-size: .65em; }
.rfq-form .rfq-hint { margin-block: 0 16px; color: var(--secondary); font-size: .9rem; line-height: 1.6; }
.rfq-form :is(input, select, textarea, button):focus-visible { outline: 3px solid #bc894f; outline-offset: 3px; }
.rfq-form select { appearance: none; padding-inline-end: 34px; background-image: linear-gradient(45deg, transparent 50%, #485563 50%), linear-gradient(135deg, #485563 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .rfq-form select { background-position: 12px 18px, 17px 18px; }
@media (max-width: 520px) { .hero h1 { font-size: clamp(3rem, 12vw, 4.1rem); } .hero-products { font-size: 1.2rem; } .brand small { font-size: .75rem; letter-spacing: 0; } }

.procurement-docs { padding-block: clamp(36px, 6vw, 72px); }
.procurement-docs h2 { font-size: clamp(2rem, 4vw, 3rem); margin-block-end: 20px; }
.procurement-docs > p { max-width: 78ch; color: var(--secondary); }
.procurement-docs table { width: 100%; border-collapse: collapse; margin-block: 24px; font-size: 1rem; line-height: 1.6; table-layout: fixed; }
.procurement-docs th, .procurement-docs td { text-align: start; padding: 16px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.procurement-docs th { width: 32%; }
.procurement-docs thead { background: var(--green); color: var(--paper-light); }
.procurement-docs tbody th { background: var(--paper-light); }
.procurement-docs .documents-note { border-inline-start: 3px solid #b48a49; padding-inline-start: 16px; }
@media (max-width: 520px) { .procurement-docs th, .procurement-docs td { padding: 10px; } .procurement-docs th { width: 38%; } }

/* Company identity and correspondence page */
.company-page { padding-block: 62px 80px; }
.company-page h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.08; max-width: 980px; overflow-wrap: anywhere; }
.eyebrow { font-size: .95rem; color: var(--secondary); margin-bottom: 18px; }
.company-intro { max-width: 850px; margin-block: 24px 44px; font-size: 1.12rem; }
.company-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.company-page h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 22px; }
.company-facts div { border-bottom: 1px solid var(--line); padding-block: 15px; }
.company-facts dt { color: var(--secondary); margin-bottom: 6px; }
.company-facts dd { font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.company-page .button { margin-block: 22px; }
.company-products { margin-top: 48px; }
.company-products li { line-height: 1.7; margin-block: 12px; }
@media (max-width: 1000px) { .header-inner { flex-wrap: wrap; padding-block: 18px; } .navigation { flex-wrap: wrap; gap: 18px; } }
@media (max-width: 700px) { .company-page { padding-block: 36px 48px; } .company-page-grid { grid-template-columns: 1fr; gap: 36px; } .company-intro { margin-block: 22px 30px; } }

/* Full navigation remains accessible on small screens without JavaScript. */
.mobile-menu { display: none; }
.rfq-form textarea { resize: vertical; min-width: 0; }
.payment-field { margin-block-end: 20px; }
@media (max-width: 520px) {
  .header-inner > .navigation { display: none; }
  .mobile-menu { display: block; margin-inline-start: auto; }
  .mobile-menu summary { min-height: 44px; padding: 12px; border: 1px solid var(--line); font-size: 1rem; font-weight: 600; cursor: pointer; }
  .mobile-menu[open] { flex-basis: 100%; }
  .mobile-menu nav { display: grid; padding-block-start: 12px; }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 1rem; text-underline-offset: .2em; }
  .mobile-menu summary:focus-visible { outline: 3px solid #bc894f; outline-offset: 3px; }
  .rfq-actions > * { width: 100%; text-align: center; }
}
