/*--------------------------------------------------------------
# Project styles
# Loaded after main.css (template) and rtl.css. Spacing uses logical
# properties (margin-inline-*) so one rule works in English and Arabic.
--------------------------------------------------------------*/

:root {
  --brand: #c12326;
  --brand-dark: #9c1b1e;
  --whatsapp: #25d366;
}

/* ---------- Header ---------- */
.header > .container-xl {
  gap: 18px;
}

.header .logo img {
  margin: 0;
}

.header .lang-switch {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, currentColor, transparent 65%);
  border-radius: 4px;
  transition: 0.3s;
}

.header .lang-switch:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.header .cta-btn,
.header .cta-btn:focus {
  margin: 0;
  background: var(--accent-color);
  border-color: var(--accent-color);
  cursor: pointer;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

@media (max-width: 1199px) {
  /* logo first, then the language link, then the menu button at the end */
  .header .logo { order: 1; }
  .header .lang-switch { order: 2; }
  .header .cta-btn { order: 3; }
  .header .navmenu { order: 4; }

  .header .mobile-nav-toggle,
  body[dir="rtl"] .mobile-nav-toggle {
    margin: 0;
  }
}

/* ---------- Hero ---------- */
.hero .btn-get-started {
  border: 0;
  cursor: pointer;
}

.hero .btn-watch-video {
  margin: 0;
  margin-inline-start: 25px;
}

.hero .btn-watch-video i {
  margin: 0;
  margin-inline-end: 10px;
}

/* ---------- Footer newsletter: input and button share one row ---------- */
.footer .footer-newsletter .newsletter-input-group,
.newsletter-input-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.footer .footer-newsletter .newsletter-input-group input[type="email"] {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0;
}

.footer .footer-newsletter .newsletter-input-group .newsletter-submit {
  width: auto;
  padding: 10px 18px;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer .footer-contact a {
  color: inherit;
}

.footer .footer-contact a:hover {
  color: var(--accent-color);
}

/* ---------- Section helpers ---------- */
.btn-brand {
  display: inline-block;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--contrast-color);
}

.btn-brand-outline {
  display: inline-block;
  background: transparent;
  color: var(--heading-color);
  border: 2px solid color-mix(in srgb, var(--heading-color), transparent 70%);
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-brand-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ---------- Product line tile (x-category-card) ----------
   Industrial look: square corners, steel-dark plate, a red rule that
   grows on hover, and the line number set like a part marking. */
.steel-line {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 360px;
  padding: 22px 24px 24px;
  color: #fff;
  background: #141a21;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}

.steel-line img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.steel-line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.55) 0%, rgba(14, 18, 24, 0.35) 35%, rgba(14, 18, 24, 0.94) 100%);
  transition: background 0.3s;
}

/* red rule along the bottom edge */
.steel-line::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--accent-color);
  transition: width 0.4s ease;
}

.steel-line:hover { color: #fff; }
.steel-line:hover img { transform: scale(1.06); }
.steel-line:hover::after { width: 100%; }

.steel-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.steel-line-number {
  font-family: var(--heading-font);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

.steel-line-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 18, 24, 0.45);
  backdrop-filter: blur(3px);
}

.steel-line-body { display: block; }

.steel-line-body h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.steel-line-text {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.steel-line-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.steel-line-more i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  transition: transform 0.3s;
}

.steel-line:hover .steel-line-more i { transform: translateX(4px); }
[dir="rtl"] .steel-line-more i { transform: scaleX(-1); }
[dir="rtl"] .steel-line:hover .steel-line-more i { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .steel-line-body h3,
[dir="rtl"] .steel-line-count,
[dir="rtl"] .steel-line-more { letter-spacing: 0; }

/* ---------- Product tile (x-product-card) ----------
   Reads like a datasheet row: dark photo plate, category tag, name,
   two key figures with ruled lines, then the actions. */
.steel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-color);
  border: 1px solid #dfe3e8;
  border-top: 3px solid #1b222c;
  border-radius: 2px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.steel-card:hover {
  border-top-color: var(--accent-color);
  box-shadow: 0 14px 34px rgba(20, 26, 33, 0.14);
  transform: translateY(-3px);
}

.steel-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #1b222c;
  overflow: hidden;
}

.steel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.steel-card:hover .steel-card-media img { transform: scale(1.05); }

.steel-card-tag {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 18, 24, 0.82);
}

.steel-card-flag {
  position: absolute;
  top: 12px;
  inset-inline-end: 0;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-color);
}

.steel-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 16px;
}

.steel-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.steel-card-title a { color: var(--heading-color); }
.steel-card-title a:hover { color: var(--accent-color); }

.steel-card-specs {
  margin: 0 0 16px;
  font-size: 13px;
}

.steel-card-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #cfd5dc;
}

.steel-card-specs > div:first-child { border-top: 1px dashed #cfd5dc; }

.steel-card-specs dt {
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  white-space: nowrap;
}

.steel-card-specs dd {
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  text-align: end;
}

.steel-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0 0 16px;
}

.steel-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.steel-card-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading-color);
}

.steel-card-link:hover { color: var(--accent-color); }
.steel-card-link i { display: inline-block; transition: transform 0.3s; }
.steel-card-link:hover i { transform: translateX(3px); }
[dir="rtl"] .steel-card-link i { transform: scaleX(-1); }
[dir="rtl"] .steel-card-link:hover i { transform: scaleX(-1) translateX(3px); }

.steel-card-quote {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 12px;
  color: var(--accent-color);
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 2px;
  white-space: nowrap;
  transition: 0.25s;
}

.steel-card-quote:hover {
  color: #fff;
  background: var(--accent-color);
}

[dir="rtl"] .steel-card-tag,
[dir="rtl"] .steel-card-flag,
[dir="rtl"] .steel-card-link,
[dir="rtl"] .steel-card-quote { letter-spacing: 0; }

[dir="rtl"] .product-link i,
[dir="rtl"] .category-link i,
[dir="rtl"] .category-product-link i {
  transform: scaleX(-1);
  display: inline-block;
}

/* ---------- Home: how we work ---------- */
.process .step {
  position: relative;
  height: 100%;
  background: var(--surface-color);
  border-radius: 10px;
  padding: 34px 26px 28px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--accent-color);
}

.process .step-number {
  position: absolute;
  top: 14px;
  inset-inline-end: 20px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-color), transparent 85%);
}

.process .step i {
  font-size: 34px;
  color: var(--accent-color);
}

.process .step h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.process .step p {
  font-size: 14px;
  margin: 0;
}

/* ---------- Home: call-to-action band ---------- */
.cta-band {
  background: linear-gradient(120deg, #151b23 0%, #232d3a 100%);
  color: #fff;
  padding: 56px 0;
}

.cta-band h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.cta-band .btn-whatsapp,
.quote-modal .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  border: 2px solid var(--whatsapp);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
}

.cta-band .btn-whatsapp:hover,
.quote-modal .btn-whatsapp:hover {
  background: #1eb858;
  border-color: #1eb858;
  color: #fff;
}

/* ---------- Quote request popup ---------- */
.quote-modal .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.quote-modal .quote-aside {
  background: linear-gradient(160deg, #151b23 0%, #2a1416 100%);
  color: #fff;
  padding: 36px 30px;
  height: 100%;
}

.quote-modal .quote-aside h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.quote-modal .quote-aside p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.quote-modal .quote-contact {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.quote-modal .quote-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
}

.quote-modal .quote-contact i {
  color: var(--accent-color);
  font-size: 18px;
  line-height: 1.3;
}

.quote-modal .quote-contact a {
  color: #fff;
}

.quote-modal .quote-form {
  padding: 36px 30px;
}

.quote-modal .quote-form h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.quote-modal .form-control {
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
}

.quote-modal .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.quote-modal .btn-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 5;
}

.quote-modal .or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  margin: 18px 0;
}

.quote-modal .or-divider::before,
.quote-modal .or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.js-ajax-form .loading,
.js-ajax-form .error-message,
.js-ajax-form .sent-message {
  display: none;
  margin-bottom: 12px;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  z-index: 996;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

/* The template pins "scroll to top" to the left in Arabic; keep the two
   floating buttons on opposite sides in both languages. */
body[dir="rtl"] .scroll-top {
  left: 15px;
  right: auto;
}

/* ---------- Product details ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  text-align: start;
  vertical-align: top;
}

.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--heading-color);
  background: color-mix(in srgb, var(--default-color), transparent 96%);
}

.rich-text ul,
.rich-text ol {
  padding-inline-start: 1.25rem;
}

.rich-text h3,
.rich-text h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 1rem;
}

.header .logo .sitename {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
}

.team .member .pic img,
.testimonials .testimonial-item .testimonial-img {
  object-fit: cover;
}

.hero .container {
  text-align: center;
}

/* ---------- Blog ---------- */
.steel-post-time {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  white-space: nowrap;
}

.steel-post .steel-card-media { aspect-ratio: 16 / 10; }

.article-body { font-size: 17px; line-height: 1.85; }

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 28px;
}

.article-lead {
  font-size: 19px;
  font-weight: 500;
  color: var(--heading-color);
  padding-inline-start: 18px;
  border-inline-start: 4px solid var(--accent-color);
  margin-bottom: 26px;
}

.article-body .rich-text h3 { font-size: 23px; margin: 34px 0 12px; }
.article-body .rich-text h4 { font-size: 19px; margin: 26px 0 10px; }
.article-body .rich-text p { margin-bottom: 18px; }
.article-body .rich-text li { margin-bottom: 8px; }

.article-body .rich-text blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  border-inline-start: 4px solid #1b222c;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading-color);
}

.article-back:hover { color: var(--accent-color); }
[dir="rtl"] .article-back { letter-spacing: 0; }
[dir="rtl"] .article-back i { transform: scaleX(-1); }

.article-aside,
.article-recent {
  border: 1px solid #dfe3e8;
  border-top: 3px solid #1b222c;
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 24px;
  background: var(--surface-color);
}

.article-aside { border-top-color: var(--accent-color); }

.article-aside h2,
.article-recent h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-aside p { font-size: 14px; margin-bottom: 18px; }

.article-recent ul { list-style: none; padding: 0; margin: 0; }

.article-recent li {
  padding: 12px 0;
  border-bottom: 1px dashed #cfd5dc;
}

.article-recent li:last-child { border-bottom: 0; padding-bottom: 0; }

.article-recent a {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.4;
}

.article-recent a:hover { color: var(--accent-color); }

.article-recent time {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

@media (min-width: 992px) {
  .article-aside { position: sticky; top: 100px; }
}
