/* Rfoof Tech · Arabic layout */
:root {
  --navy: #082641;
  --navy-dark: #061a2d;
  --orange: #ff751c;
  --orange-dark: #a8430b;
  --paper: #fff;
  --surface: #f5f7fa;
  --ink: #102b43;
  --muted: #495c6f;
  --line: #dce4eb;
  --shadow: 0 12px 36px rgba(8, 38, 65, .10);
  --radius: 22px;
  --font: 'Cairo', Tahoma, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); text-align: start; line-height: 1.8; }
h1, h2, h3 { font-weight: 800; line-height: 1.4; }
p { color: var(--muted); line-height: 1.95; }
a { color: var(--navy); }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #c9510e; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; inset: 12px 12px auto auto; padding: 8px 16px; color: var(--navy); background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.topbar { background: var(--navy-dark); color: #e1eaf4; font-size: .83rem; padding: 7px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { color: #fff; }
.topbar i { color: #ff9b5b; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.navbar-custom { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; position: relative; }
.brand, .foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border: 1px solid var(--line); border-radius: 13px; }
.brand-text b { display: block; font-size: 1.22rem; line-height: 1.35; color: var(--navy); }
.brand-text b span { color: var(--orange-dark); }
.brand-text small { color: var(--muted); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-links a:hover { background: var(--surface); }
.mobile-nav { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 800 .96rem/1.6 var(--font); padding: 12px 22px; border-radius: 12px; }
.btn-orange { color: var(--navy-dark); background: var(--orange); }
.btn-orange:hover { color: var(--navy-dark); background: #ff9450; }
.btn-outline { color: var(--navy); background: var(--paper); border: 1px solid var(--line); }
.btn-outline:hover { color: var(--navy); background: var(--surface); border-color: var(--navy); }
.btn-outline .fa-whatsapp { color: #08764b; font-size: 1.2rem; }
.btn-sm { font-size: .87rem; padding: 9px 16px; }

.hero { padding: 54px 0 40px; background: radial-gradient(ellipse at 75% 0%, #fff0e5, transparent 45%), linear-gradient(160deg, #fff, #edf3f8); }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(26px, 4vw, 60px); }
.hero-badge, .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 99px; background: #fff0e5; color: var(--orange-dark); font-size: .84rem; font-weight: 800; }
.hero h1 { margin: 16px 0 8px; font-size: clamp(2.25rem, 4.3vw, 4rem); font-weight: 900; }
.hero h1 .accent { display: block; color: var(--orange-dark); }
.hero .hero-tagline { color: var(--navy); font-weight: 800; font-size: clamp(1.12rem, 2vw, 1.4rem); margin-bottom: 8px; }
.hero .lead { max-width: 590px; font-size: 1.04rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-img-main { position: relative; overflow: hidden; margin: 0; border: 6px solid var(--paper); border-radius: 28px; box-shadow: var(--shadow); }
.hero-img-main img { display: block; width: 100%; height: clamp(330px, 36vw, 480px); object-fit: cover; }
.hero-caption { position: absolute; inset: auto 0 0; padding: 36px 22px 18px; color: #fff; background: linear-gradient(transparent, rgba(6, 26, 45, .93)); }
.hero-caption b, .hero-caption small { display: block; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 30px 0 0; padding: 17px 22px; border-radius: 18px; background: var(--navy); color: #fff; font-size: .89rem; font-weight: 700; }
.trust-strip li { display: flex; align-items: center; gap: 10px; }
.trust-strip i { color: #ff9b5b; }

.section { padding: 76px 0; }
.center { text-align: center; }
.sec-title { font-size: clamp(1.65rem, 3vw, 2.55rem); margin: 10px 0 12px; }
.sec-sub { max-width: 650px; margin: 0 auto; }
.about { border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-media { margin: 0; }
.about-media .main { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { display: flex; gap: 9px; align-items: baseline; padding: 9px 11px; border-radius: 10px; background: var(--surface); font-size: .88rem; font-weight: 700; }
.check-list i { color: var(--orange-dark); }

.stats { background: var(--surface); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.stats-card i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff0e5;
  color: var(--orange-dark);
}
.stats-card strong {
  color: var(--navy);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
}
.stats-card span { font-weight: 700; }
.stats-card small { color: var(--muted); }

.values-grid, .systems-grid, .prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.value-card, .prod-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.value-card { position: relative; padding: 24px; border-top: 3px solid var(--orange); }
.value-card .num { position: absolute; inset: 10px auto auto 18px; font-size: 2.75rem; font-weight: 900; line-height: 1; color: #e6ecf2; }
.value-card h3, .systems-grid h3, .prod-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.value-card p, .systems-grid p, .prod-card p { margin: 0; font-size: .92rem; }
.services-grid { gap: 20px; }
.service-card { padding: 14px; border-top: 1px solid var(--line); }
.service-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 16px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f8fc, #edf3f8);
  color: var(--navy);
}
.service-visual svg { display: block; width: clamp(72px, 7vw, 88px); height: auto; }
.service-accent { stroke: var(--orange-dark); }
.service-visual .num {
  inset: 12px auto auto 12px;
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
  font-size: .8rem;
}
.service-copy { padding: 16px 8px 8px; }
.service-copy h3 { font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.service-copy p { line-height: 1.8; }

.systems { background: var(--navy); color: #fff; }
.systems .eyebrow, footer .eyebrow { color: #ffaf7b; background: #213e58; }
.systems p, .foot-intro { color: #dbe6f1; }
.systems-grid article { background: #112f49; border: 1px solid #36516a; border-inline-start: 3px solid var(--orange); border-radius: 14px; padding: 18px; }
.why-us { background: var(--surface); }
.why-us-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prod-card .p-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.prod-card .p-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prod-card .p-body { padding: 17px 20px; }
.project-photo { color: var(--ink); text-decoration: none; }
.project-photo:hover { color: var(--orange-dark); }
.project-photo .p-body { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-photo .fa-expand { color: var(--orange-dark); }
.project-more { margin-top: 24px; }
.project-more > summary { display: flex; width: fit-content; margin-inline: auto; list-style: none; }
.project-more > summary::-webkit-details-marker { display: none; }
.project-more:not([open]) .project-more-hide, .project-more[open] .project-more-show { display: none; }
.project-more[open] > summary i { transform: rotate(180deg); }
.project-more .prod-grid { margin-top: 24px; }

footer { background: radial-gradient(ellipse at top right, #102f4a, var(--navy-dark) 65%); color: #dbe6f1; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 30px clamp(24px, 4vw, 54px);
  align-items: start;
  padding-top: 52px;
  padding-bottom: 30px;
}
footer .sec-title { color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.foot-intro { max-width: 52ch; margin-bottom: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
.foot-links li { flex: 1 1 auto; min-width: 0; }
.foot-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 9px 12px;
  border: 1px solid #35516a;
  border-radius: 12px;
  background: #112f49;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.foot-links a:hover { border-color: #ffaf7b; }
.foot-links small { display: block; color: #c2d3e3; }
.foot-links bdi { font-size: .92rem; font-weight: 700; }
.foot-links i, .foot-location-header > i {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  background: #213e58;
  color: #ffaf7b;
}
.foot-location { padding: 14px; border: 1px solid #35516a; border-radius: 18px; background: #112f49; }
.foot-location-header { display: flex; align-items: center; gap: 10px; padding: 0 2px 12px; }
.foot-title { margin: 0; color: #fff; font-size: 1.08rem; }
.foot-location-header p { margin: 0; color: #c2d3e3; font-size: .88rem; }
.foot-map { display: block; width: 100%; height: clamp(210px, 21vw, 270px); border: 0; border-radius: 12px; background: #213e58; }
.foot-directions { display: inline-flex; align-items: center; gap: 8px; margin: 10px 2px 0; color: #dbe6f1; font-size: .9rem; }
.foot-directions:hover, .foot-directions i { color: #ffaf7b; }
.foot-registrations { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.foot-registrations[hidden] { display: none; }
.foot-registration {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: 12px 16px;
  border: 1px solid #35516a;
  border-radius: 14px;
  background: #112f49;
}
.foot-registration img { flex: 0 0 auto; width: clamp(100px, 12vw, 142px); height: auto; }
.foot-commerce-logo { padding: 7px; border-radius: 8px; background: #fff; }
.foot-registration span { display: block; color: #c2d3e3; font-size: .82rem; }
.foot-registration bdi { color: #fff; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; padding-inline-end: 76px; border-top: 1px solid #36516a; font-size: .82rem; }
.foot-brand { color: #fff; font-weight: 800; }
.foot-brand:hover { color: #ffaf7b; }
.foot-brand img { border-radius: 9px; }
.wa-float { position: fixed; inset: auto auto 18px 18px; z-index: 40; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #08764b; color: #fff; font-size: 1.6rem; box-shadow: var(--shadow); text-decoration: none; }
.wa-float:hover { background: #065c3b; color: #fff; }

@media (min-width: 1200px) {
  .why-us-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .desktop-nav, .nav-cta { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav .nav-links { position: absolute; inset: 100% 12px auto; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
  .hero-grid, .about-grid { gap: 26px; }
  .hero-img-main img { height: 360px; }
  .trust-strip, .values-grid, .systems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
  .foot-registrations { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-img-main img { height: clamp(245px, 66vw, 380px); }
  .section { padding: 54px 0; }
  .prod-grid { grid-template-columns: 1fr; }
  .foot-bottom { padding-bottom: 28px; }
}

@media (max-width: 479px) {
  .values-grid, .systems-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 10px; padding: 12px; font-size: .8rem; }
  .trust-strip li { gap: 5px; }
}

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