/* ===== Font ===== */
/* Drop Aptos.woff2 / Aptos-Bold.woff2 into /assets/fonts/ to activate the real brand font.
   Until then, Segoe UI is used as the closest system fallback. */
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos.woff2') format('woff2'),
       url('/assets/fonts/Aptos.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('/assets/fonts/Aptos-Bold.woff2') format('woff2'),
       url('/assets/fonts/Aptos-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #091c34;
  --navy-900: #0e2742;
  --navy-800: #133054;
  --navy-700: #1a3a66;
  --navy-600: #204069;
  --green-600: #2f8f68;
  --green-700: #247353;
  --green-100: #e5f1ec;
  --gray-100: #f4f6f8;
  --gray-200: #e9edf2;
  --gray-400: #b9c2cc;
  --gray-500: #6b7785;
  --white: #ffffff;
  --radius: 10px;
  --font: 'Aptos', 'Segoe UI', Calibri, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1280px;
  --logo-scale: 100;
  --hero-scale: 100;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--navy-900);
  background: var(--white);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-700); }
.btn-primary .arrow-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-400);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-900); }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--navy-950);
  color: var(--gray-400);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left, .topbar-right {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar a:hover { color: var(--white); }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: calc(30px * var(--logo-scale, 100) / 100);
  letter-spacing: 0.017em;
  line-height: 1;
}
.logo-content {
  display: inline-flex;
  align-items: baseline;
  gap: 0.067em;
}
.logo-content img { max-height: calc(40px * var(--logo-scale, 100) / 100); width: auto; display: block; }
.logo-cross {
  color: var(--green-600);
  font-size: 0.867em;
  margin-right: 0.067em;
  font-weight: 700;
}
.logo-med { color: var(--navy-900); }
.logo-haus { color: var(--green-600); }
.logo-wrap { display: inline-flex; flex-direction: column; }
.logo-tagline {
  font-size: 0.333em;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 0.067em;
}
.logo-tagline .dot { color: var(--green-600); }
.logo.on-dark .logo-med { color: var(--white); }
.logo.on-dark .logo-tagline { color: var(--gray-400); }

.main-nav ul {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-900);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--green-600);
}

.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-900);
}
.lang-switcher-btn:hover { border-color: var(--gray-400); }
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(10, 22, 38, 0.08);
}
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-switcher-btn .lang-chevron { font-size: 11px; color: var(--gray-500); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(10, 22, 38, 0.16);
  padding: 6px;
  min-width: 220px;
  z-index: 50;
  list-style: none;
  margin: 0;
}
.lang-dropdown li { margin: 0; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-900);
  text-align: left;
  cursor: pointer;
}
.lang-option .lang-flag { width: 24px; height: 17px; }
.lang-option:hover { background: var(--gray-100); }
.lang-option.active { background: var(--gray-100); font-weight: 700; }

[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .lang-option { text-align: right; }

/* ===== Baseline RTL support (Arabic) =====
   Flexbox/grid main-axis order mirrors automatically under dir="rtl" per the CSS spec.
   This covers base text alignment; it is not a full mirrored redesign. */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .hero-badges,
[dir="rtl"] .topbar-left,
[dir="rtl"] .topbar-right,
[dir="rtl"] .main-nav ul,
[dir="rtl"] .footer-bottom {
  text-align: right;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--navy-900);
}

/* ===== Hero ===== */
.hero {
  background: var(--navy-800);
  color: var(--white);
  padding: 72px 0 110px;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--green-600); }
.hero p.lede {
  color: var(--gray-400);
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  gap: 30px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
}
.hero-badge svg { color: var(--green-600); }
.hero-image { width: 100%; }
.hero-image img {
  width: calc(var(--hero-scale, 100) * 1%);
  max-width: none;
  margin: 0 auto;
  display: block;
}

/* ===== Stats strip ===== */
.stats-strip {
  background: var(--white);
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(10, 22, 38, 0.15);
  transform: translateY(-64px);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.stat-item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.stat-item > div { min-width: 0; }
.stat-item svg { flex-shrink: 0; color: var(--green-600); margin-top: 2px; }
.stat-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.stat-item p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ===== Section heading ===== */
.section {
  padding: 20px 0 70px;
}
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 30px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.section-heading p {
  color: var(--gray-500);
  font-size: 15px;
  margin: 0;
}

/* ===== Category cards ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.category-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover {
  border-color: var(--green-600);
  box-shadow: 0 10px 24px rgba(10, 22, 38, 0.08);
}
.category-card .cat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  flex-shrink: 0;
}
.category-card .cat-icon svg { width: 100%; height: 100%; }
.category-card .cat-label {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.category-card .cat-arrow { color: var(--gray-500); }
.center { text-align: center; }

/* ===== About section ===== */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 50px;
  align-items: center;
}
.about-section > div { min-width: 0; }
.about-eyebrow {
  color: var(--green-600);
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 22px;
  margin: 0 0 4px;
}
.about-eyebrow span { color: var(--navy-900); }
.about-underline {
  width: 46px;
  height: 3px;
  background: var(--green-600);
  margin-bottom: 18px;
}
.about-section p {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 15px;
}
.about-section .strong-line {
  color: var(--navy-900);
  font-weight: 700;
  margin: 18px 0 26px;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.about-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--navy-700);
}
.about-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.about-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(10,22,38,0.95), rgba(10,22,38,0.1));
  color: var(--white);
  padding: 14px 12px 12px;
}
.about-tile-caption h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.about-tile-caption p {
  margin: 0;
  font-size: 11.5px;
  color: var(--gray-400);
  line-height: 1.35;
}

/* ===== Trusted-by strip ===== */
.trusted-strip {
  background: var(--gray-100);
  padding: 34px 0;
  border-top: 1px solid var(--gray-200);
}
.trusted-strip .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trusted-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gray-500);
  white-space: nowrap;
}
.trusted-logos {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  align-items: center;
}
.trusted-logos span {
  font-weight: 800;
  font-size: 17px;
  color: var(--navy-700);
  opacity: 0.6;
  white-space: nowrap;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-400);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-700);
}
.footer-col { min-width: 0; }
.footer-grid p { font-size: 14px; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Generic page hero (inner pages) ===== */
.page-hero {
  background: var(--navy-800);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: 34px; margin: 0 0 10px; font-weight: 800; }
.page-hero p { color: var(--gray-400); margin: 0; }

/* ===== Equipment grid / cards ===== */
.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--white);
  cursor: pointer;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.equip-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
  background: var(--white);
}
.equip-card:hover { box-shadow: 0 14px 30px rgba(10,22,38,0.1); }
.equip-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.equip-card-body { padding: 18px; }
.equip-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.equip-card h3 { font-size: 16.5px; margin: 0 0 6px; }
.equip-meta { font-size: 13px; color: var(--gray-500); margin: 0 0 12px; }
.equip-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.equip-price { font-weight: 800; font-size: 18px; color: var(--navy-900); }
.equip-price-block { display: flex; flex-direction: column; gap: 2px; }
.equip-price-incl { font-size: 12px; font-weight: 600; color: var(--gray-500); }
.price-vat-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.equip-card a.details-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-700);
}
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--gray-500);
}

/* ===== Condition grades explanation (collapsible) ===== */
.condition-grades-info {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 28px;
}
.condition-grades-info summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 14.5px;
}
.condition-grades-list {
  margin: 16px 0 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 0;
}
.condition-grades-list dt {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 13.5px;
  margin-top: 10px;
}
.condition-grades-list dd {
  margin: 2px 0 0;
  color: var(--gray-500);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ===== Payment policy explanation (always visible) ===== */
.payment-policy-info {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-top: 30px;
}
.payment-policy-info h3 {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 14.5px;
  margin: 0;
}
.payment-policy-content { margin-top: 14px; }
.payment-policy-content h4 {
  font-size: 13.5px;
  color: var(--navy-900);
  margin: 16px 0 6px;
}
.payment-policy-content h4:first-child { margin-top: 0; }
.payment-policy-content p {
  color: var(--gray-500);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 8px;
}

/* ===== Equipment detail ===== */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: flex-start;
}
.detail-grid > div { min-width: 0; }
.detail-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.detail-price-block { margin: 10px 0 20px; display: flex; flex-direction: column; gap: 4px; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--navy-900); }
.detail-price-incl { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.detail-meta-list { margin: 20px 0; }
.detail-meta-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14.5px;
}
.detail-meta-list li span:first-child { color: var(--gray-500); }
.detail-meta-list li span:last-child { font-weight: 700; }

/* ===== Equipment detail: gallery, highlights, specs ===== */
.detail-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.detail-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.detail-gallery-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.detail-gallery-thumb:hover { opacity: 1; }
.detail-gallery-thumb.active { opacity: 1; border-color: var(--green-600); }

.detail-highlights {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-highlights li {
  font-size: 14px;
  color: var(--navy-900);
  font-weight: 600;
  padding-left: 24px;
  position: relative;
}
.detail-highlights li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 800;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.detail-specs-table th, .detail-specs-table td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.detail-specs-table th {
  color: var(--gray-500);
  font-weight: 600;
  width: 40%;
}
.detail-specs-table td { font-weight: 700; color: var(--navy-900); }

/* ===== Forms ===== */
.form-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--gray-400);
  font-family: var(--font);
  font-size: 14.5px;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-600);
}
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-msg.success { color: var(--green-700); }
.form-msg.error { color: #c0392b; }

/* ===== Services / About page content blocks ===== */
.content-block { max-width: 780px; margin: 0 auto 50px; }
.content-block h2 { font-size: 24px; margin-bottom: 10px; }
.content-block p { color: var(--gray-500); line-height: 1.7; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.service-card .cat-icon { margin-bottom: 14px; }
.service-card h3 { font-size: 17px; margin: 0 0 10px; }
.service-card p { color: var(--gray-500); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); transform: translateY(-30px); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section { grid-template-columns: minmax(0, 1fr); }
  .about-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .main-nav, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .category-grid { grid-template-columns: minmax(0, 1fr); }
  .about-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar-right { display: none; }
}
