:root {
  --ink: #242019;
  --ink-soft: #4f463a;
  --muted: #756c5e;
  --paper: #f7f2e8;
  --paper-deep: #eee5d4;
  --surface: #ffffff;
  --line: #e3d8c5;
  --brand: #1d5a44;
  --brand-dark: #164731;
  --brand-soft: #e5efe8;
  --kraft: #a97a4a;
  --kraft-dark: #7c5634;
  --warning: #b45309;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(62, 45, 24, 0.10);
  --shadow-sm: 0 6px 18px rgba(62, 45, 24, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

picture {
  display: contents;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

p {
  color: var(--ink-soft);
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #f7f0df;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-switch a {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
}

.lang-switch a:hover,
.lang-switch a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #07361c;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 12px 26px rgba(18, 90, 48, 0.35);
}

.whatsapp-float:hover {
  background: #1ebe5b;
  color: #07361c;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--brand-dark);
}

.btn--light:hover {
  background: var(--paper);
  color: var(--brand-dark);
}

.btn--outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn--outline:hover {
  background: var(--brand-soft);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #241b12;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.58;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(80deg, rgba(24, 28, 20, 0.94) 0%, rgba(24, 28, 20, 0.58) 52%, rgba(24, 28, 20, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 72px 0;
}

.hero .eyebrow {
  color: #e9dcc3;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-mini {
  background: var(--brand-dark);
  color: #fff;
  padding: 78px 0 66px;
}

.hero-mini .eyebrow {
  color: #dfd2b8;
}

.hero-mini h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  max-width: 760px;
}

.hero-mini p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
  margin-top: 16px;
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--brand);
}

.section {
  padding: 84px 0;
}

.section--soft {
  background: var(--paper-deep);
}

.section--white {
  background: #fff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.16;
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  font-size: 1.07rem;
}

.grid {
  display: grid;
  gap: 26px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-art {
  aspect-ratio: 5 / 4;
  background: linear-gradient(160deg, #f3ead9, #e7d8bd);
  display: grid;
  place-items: center;
  padding: 22px;
}

.product-art img {
  height: 100%;
  max-height: 230px;
  width: auto;
}

.product-art--photo img {
  height: auto;
  width: 100%;
  max-height: none;
  border-radius: var(--radius-sm);
}

.product-card h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.product-card .card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card .tags {
  margin-top: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--paper-deep);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
}

.tag--brand {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.industry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 24px 28px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.industry-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.industry-card h3 {
  font-size: 1.2rem;
}

.industry-card p {
  font-size: 0.97rem;
  margin-top: 8px;
}

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

.stat {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  color: var(--brand);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 10px 0 16px;
  letter-spacing: -0.01em;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.split-media--tall img {
  min-height: 480px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}

.feature-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.cert-band {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.cert-band .cert-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert-item .badge {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  font-size: 0.76rem;
}

.cert-item strong {
  display: block;
  font-size: 1.04rem;
}

.cert-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.cta-band {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 56px;
  color: #fff;
  background: linear-gradient(115deg, var(--brand-dark), var(--brand));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  max-width: 620px;
  line-height: 1.2;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-top: 10px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mini-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini-gallery figure:hover img {
  transform: scale(1.04);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.spec th,
.spec td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.spec th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.spec tr:last-child td {
  border-bottom: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-field .hint {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  width: 100%;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(29, 90, 68, 0.16);
  border-color: var(--brand);
}

.form-actions {
  margin-top: 24px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Optional detail block inside RFQ */
details.form-details {
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  background: var(--paper);
}

details.form-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-dark);
}

details.form-details[open] summary {
  margin-bottom: 18px;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-contact .btn {
  flex: 1 1 200px;
}

.site-footer {
  background: #221d16;
  color: #d8cfc1;
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer li {
  color: #c4bbac;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: #d8cfc1;
}

.site-footer a:hover {
  color: #fff;
}

.subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.86rem;
  color: #9f9585;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand small {
  color: #b9ad9b;
}

.contact-block {
  display: grid;
  gap: 14px;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-line b {
  color: #eee7dc;
  display: block;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.success-card {
  max-width: 640px;
  margin: 80px auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 36px;
  box-shadow: var(--shadow);
}

.success-card .tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 2rem;
}

/* Arabic / RTL support */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 18px;
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .feature-list li,
[dir="rtl"] .contact-line {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-line > div,
[dir="rtl"] .feature-list li {
  text-align: right;
}

[dir="rtl"] .form-field,
[dir="rtl"] .section-head,
[dir="rtl"] .industry-card,
[dir="rtl"] .card,
[dir="rtl"] .step {
  text-align: right;
}

@media (max-width: 1020px) {
  .grid--4,
  .stat-grid,
  .step-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 4%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 4px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 10px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .stat-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field--full {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0;
  }

  .section {
    padding: 64px 0;
  }

  .cta-band {
    padding: 36px 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .lang-switch a {
    padding: 4px 5px;
    font-size: 0.68rem;
  }

  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 18px;
  }
}
