/*
Theme Name: Ramelite Restored
Theme URI: https://ramelite.sa/
Author: Codex restoration
Description: Restored WordPress theme for Ram Elite based on archived public content.
Version: 1.0.0
Text Domain: ramelite-restored
*/

:root {
  --navy: #5b5c5e;
  --ink: #343638;
  --gold: #d7192a;
  --gold-dark: #a80f1d;
  --red: #d7192a;
  --silver: #c9cbcd;
  --muted: #6b6d70;
  --line: #e1e2e3;
  --soft: #f6f6f6;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.85;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #3d3e40;
  color: #eef3fb;
  font-size: 14px;
}
.topbar .container,
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar a { color: #eef3fb; margin-inline-start: 14px; }
.main-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-weight: 800;
  color: var(--navy);
}
.brand img {
  width: 220px;
  height: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 20px 10px;
  color: #4d4e50;
  font-size: 15px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle span {
  width: 23px;
  height: 3px;
  display: block;
  background: var(--red);
  border-radius: 3px;
  transition: transform .18s ease, opacity .18s ease;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.mobile-consultation {
  display: none;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #a80f1d);
  border-radius: 3px;
  font-weight: 800;
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(55,56,58,.94), rgba(92,92,94,.68), rgba(215,25,42,.18)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero h1 {
  width: min(760px, 100%);
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.2;
}
.hero p { width: min(680px, 100%); font-size: 20px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.7);
  color: var(--white);
  border-radius: 3px;
  font-weight: 800;
}

.stats {
  background: #3d3e40;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat {
  padding: 34px 18px;
  text-align: center;
  background: rgba(255,255,255,.04);
}
.stat strong { display: block; color: var(--gold); font-size: 34px; line-height: 1.1; }

.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.eyebrow {
  color: var(--gold-dark);
  font-weight: 800;
  margin: 0 0 6px;
}
.section-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.3;
}
.lead { color: var(--muted); font-size: 18px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.photo {
  min-height: 380px;
  background: var(--line) center/cover;
  border-radius: 4px;
}
.photo.office { background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80"); }
.photo.jeddah { background-image: url("https://images.unsplash.com/photo-1586724237569-f3d0c1dee8c6?auto=format&fit=crop&w=1200&q=80"); }
.photo.service { background-image: var(--service-image); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(18,35,63,.08), rgba(18,35,63,.9)),
    var(--card-image) center/cover;
  border-radius: 4px;
  overflow: hidden;
}
.service-card h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.35; }
.service-card p { margin: 0 0 16px; }
.more { color: var(--gold); font-weight: 900; }

.breadcrumb {
  padding: 70px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18,35,63,.9), rgba(18,35,63,.55)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.breadcrumb h1 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 56px); }
.page-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}
.sidebox {
  padding: 28px;
  background: linear-gradient(160deg, #4d4e50, #2f3032);
  color: var(--white);
  border-radius: 4px;
}
.sidebox h3 { color: var(--gold); margin-top: 0; }
.content-panel h2 { color: var(--navy); font-size: 34px; line-height: 1.35; }
.content-panel p { color: #384153; font-size: 17px; }
.countries {
  margin-top: 30px;
  padding: 26px;
  background: var(--soft);
  border-right: 4px solid var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.footer {
  color: #dce4ef;
  background: #2f3032;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer h4 { color: var(--white); margin: 0 0 16px; }
.footer-logo {
  width: 190px;
  height: auto;
  margin-bottom: 18px;
  background: #fff;
  padding: 10px;
  border-radius: 3px;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 8px; }
.copyright {
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 14px;
}
.whatsapp {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 20;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #25d366;
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

@media (max-width: 900px) {
  .topbar .container, .two-col, .page-layout, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .main-header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    position: relative;
  }
  .brand img {
    width: min(190px, 54vw);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-header .cta {
    display: none;
  }
  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    width: 100%;
    padding: 0 0 14px;
  }
  body.menu-open .primary-nav {
    display: block;
  }
  .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 18px 32px rgba(0,0,0,.12);
    overflow: hidden;
  }
  .nav li + li {
    border-top: 1px solid var(--line);
  }
  .nav a {
    padding: 13px 16px;
    font-size: 16px;
  }
  .mobile-consultation {
    display: block;
  }
  .mobile-consultation a {
    color: #fff;
    background: linear-gradient(135deg, var(--red), #a80f1d);
  }
  .stats-grid, .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar .container {
    gap: 4px;
    padding: 6px 0;
    font-size: 12px;
  }
  .hero { min-height: 560px; }
  .stats-grid, .services-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
