﻿:root {
  --brand-red: #e30613;
  --brand-red-dark: #7f1810;
  --brand-orange: #e63323;
  --brand-accent: #fbbb21;
  --brand-dark: #101820;
  --brand-green: #3aaa35;
  --brand-green-dark: #133a22;
  --brand-gray: #8a8f99;
  --brand-light: #f7f7f5;
  --brand-white: #ffffff;
  --shadow-md: 0 16px 40px rgba(16, 24, 32, 0.15);
  --shadow-sm: 0 8px 20px rgba(16, 24, 32, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", "Poppins", system-ui, sans-serif;
  background: radial-gradient(circle at top right, rgba(227, 6, 19, 0.06), transparent 55%),
    radial-gradient(circle at top left, rgba(16, 24, 32, 0.05), transparent 55%),
    radial-gradient(circle at bottom left, rgba(58, 170, 53, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
  color: var(--brand-dark);
  direction: rtl;
}

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  right: -999px;
  top: -999px;
  background: var(--brand-dark);
  color: var(--brand-white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  right: 16px;
  top: 16px;
  z-index: 1000;
}

.topbar {
  background: var(--brand-dark);
  color: var(--brand-white);
  font-size: 14px;
}

.topbar__content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.topbar__item span {
  color: var(--brand-accent);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  height: 42px;
  width: auto;
  flex: 0 0 auto;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(
    from 140deg,
    var(--brand-red),
    var(--brand-accent),
    var(--brand-green),
    var(--brand-dark)
  );
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7);
}

/* Added for better logo coordination */
.brand__logo {
  background: var(--brand-dark);
  padding: 4px;
  border-radius: 4px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.1;
}

.brand__text small {
  color: var(--brand-gray);
  font-weight: 500;
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 6px 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:focus {
  outline: 3px solid rgba(227, 6, 19, 0.25);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--brand-red);
  color: var(--brand-white);
  box-shadow: 0 10px 25px rgba(227, 6, 19, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(16, 24, 32, 0.18);
  color: var(--brand-dark);
}

.btn--ghost:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn--dark {
  background: var(--brand-dark);
  color: var(--brand-white);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(16, 24, 32, 0.2);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.hero {
  position: relative;
  padding: 90px 0 70px;
  background: linear-gradient(
      120deg,
      rgba(16, 24, 32, 0.92),
      rgba(16, 24, 32, 0.68) 45%,
      rgba(227, 6, 19, 0.86)
    ),
    url("../img/hero-yemen.svg") center/cover no-repeat;
  color: var(--brand-white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(16, 24, 32, 0.2), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(58, 170, 53, 0.18), transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.2;
  margin: 0 0 20px;
}

.hero p {
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.hero__card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.hero__stat {
  background: rgba(16, 24, 32, 0.4);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--brand-white);
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section__header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.section__header p {
  margin: 8px 0 0;
  color: var(--brand-gray);
  max-width: 520px;
}

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

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 24, 32, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 24, 32, 0.18), rgba(58, 170, 53, 0.18));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.08), rgba(16, 24, 32, 0.04));
  border: 1px solid rgba(16, 24, 32, 0.06);
}

.category-card h3 {
  margin: 0;
  font-size: 18px;
}

.category-card p {
  margin: 0;
  color: var(--brand-gray);
  font-size: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--brand-white);
  padding: 14px;
  border: 1px solid rgba(16, 24, 32, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
}

.product-card p {
  margin: 0;
  color: var(--brand-gray);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
}

.branches-grid .card {
  padding: 0;
  overflow: hidden;
}

.branches-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.branches-grid .card__body {
  padding: 20px;
}

.trust {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-green-dark));
  color: var(--brand-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust strong {
  color: var(--brand-accent);
}

.footer {
  background: var(--brand-dark);
  color: var(--brand-white);
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 32px;
}

.footer a {
  color: var(--brand-white);
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: var(--brand-green);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(
    120deg,
    rgba(16, 24, 32, 0.95),
    rgba(16, 24, 32, 0.7) 45%,
    rgba(227, 6, 19, 0.86)
  );
  color: var(--brand-white);
}

.breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 280px) 1fr;
}

.filter {
  background: var(--brand-white);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter h4 {
  margin: 0 0 12px;
}

.filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-gray);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-detail {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.spec-list li {
  background: rgba(16, 24, 32, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 24, 32, 0.2);
  font-family: inherit;
}

.form textarea {
  min-height: 120px;
}

[data-panel] {
  display: none;
}

[data-panel].is-active {
  display: block;
}

[data-tab].is-active {
  background: var(--brand-red);
  color: var(--brand-white);
  border-color: var(--brand-red);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header__actions {
    display: none;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    background: var(--brand-white);
    flex-direction: column;
    padding: 90px 20px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 70px 0 50px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .whatsapp-float {
    left: 12px;
    bottom: 12px;
  }
}
