/* ==========================================================================
   رويال رابيك برو للتكييف والتبريد — Main Stylesheet
   ========================================================================== */

:root {
  --navy: #0a2440;
  --navy-2: #0f3358;
  --blue: #1769a6;
  --teal: #10a5a0;
  --orange: #ff7a18;
  --orange-dark: #e8660a;
  --ink: #16232f;
  --body: #4a5b6b;
  --line: #e3ebf3;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(10, 36, 64, .09);
  --shadow-lg: 0 24px 60px rgba(10, 36, 64, .16);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.85;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 .6em;
  letter-spacing: -.2px;
}

h1 { font-size: clamp(1.75rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-dark); }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head p { margin: 0; font-size: 1.03rem; }

.eyebrow {
  display: inline-block;
  background: rgba(23, 105, 166, .1);
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }

.btn--call { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255, 122, 24, .32); }
.btn--call:hover { background: var(--orange-dark); color: #fff; }

.btn--wa { background: #25d366; color: #06331a; box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: #1fbe5b; color: #06331a; }

.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f0;
  font-size: .86rem;
  padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; }
.topbar .topbar-note { display: inline-flex; align-items: center; gap: 8px; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: #38e07b;
  box-shadow: 0 0 0 4px rgba(56, 224, 123, .2);
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--blue), var(--teal));
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(23, 105, 166, .28);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: var(--navy); font-size: 1.02rem; font-weight: 800; }
.brand-text span { color: var(--body); font-size: .76rem; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  padding: 9px 13px;
  border-radius: 10px;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--bg-soft); color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; font-size: .92rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  margin: 4px auto; border-radius: 2px; transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #eaf3fb;
  background:
    linear-gradient(100deg, rgba(6, 26, 47, .96) 0%, rgba(8, 38, 66, .9) 46%, rgba(8, 38, 66, .62) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 90px;
  background: linear-gradient(to top, rgba(255,255,255,.06), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .hl { color: #ffb066; }
.hero .lead { font-size: 1.1rem; color: #d5e5f3; max-width: 38em; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-badges li { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: #cfe3f3; font-weight: 600; }
.hero-badges svg { width: 20px; height: 20px; color: #38e07b; flex: 0 0 auto; }

.quote-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
.quote-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.quote-card p.small { font-size: .87rem; margin-bottom: 18px; }
.quote-card .field { margin-bottom: 12px; }
.quote-card label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.quote-card input, .quote-card select {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
}
.quote-card input:focus, .quote-card select:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 166, .12);
}
.quote-card .btn { width: 100%; margin-top: 6px; }
.quote-note { font-size: .76rem; color: #7b8b9a; text-align: center; margin: 10px 0 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-2); padding: 20px 0; }
.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.trust strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.trust span { color: #a9c4dc; font-size: .85rem; }

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 36, 64, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0f0; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-icon {
  position: absolute; inset-inline-start: 16px; bottom: -22px;
  width: 48px; height: 48px; border-radius: 14px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(10, 36, 64, .14);
}
.card-icon svg { width: 26px; height: 26px; color: var(--blue); }
.card-body { padding: 34px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: .94rem; margin-bottom: 14px; }
.card-list { margin-bottom: 18px; }
.card-list li {
  position: relative; padding-inline-start: 22px; font-size: .9rem; margin-bottom: 6px;
}
.card-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.card .card-link {
  margin-top: auto; font-weight: 800; font-size: .93rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.card .card-link svg { width: 16px; height: 16px; transform: scaleX(-1); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.why-media { position: relative; }
.why-media img { border-radius: 22px; box-shadow: var(--shadow-lg); }
.why-badge {
  position: absolute; inset-inline-end: -14px; bottom: -20px;
  background: var(--orange); color: #fff; border-radius: 16px;
  padding: 16px 22px; box-shadow: 0 16px 34px rgba(255, 122, 24, .35);
  text-align: center;
}
.why-badge strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.why-badge span { font-size: .78rem; opacity: .95; }

.feature-list { display: grid; gap: 18px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.feature-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: rgba(16, 165, 160, .12); display: grid; place-items: center;
}
.feature-ico svg { width: 22px; height: 22px; color: var(--teal); }
.feature h4 { margin: 0 0 2px; font-size: 1rem; }
.feature p { margin: 0; font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px 22px; position: relative; text-align: center;
}
.step::before {
  counter-increment: step; content: counter(step, arabic-indic);
  position: absolute; inset-inline-start: 16px; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center;
}
.step svg { width: 34px; height: 34px; color: var(--blue); margin: 10px auto 12px; }
.step h4 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; font-size: .88rem; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-weight: 700; color: var(--ink); font-size: .95rem;
}
.area svg { width: 18px; height: 18px; color: var(--orange); flex: 0 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 20px; margin-bottom: 12px;
}
.faq details[open] { border-color: #cfe0f0; box-shadow: 0 8px 22px rgba(10, 36, 64, .06); }
.faq summary {
  cursor: pointer; font-weight: 800; color: var(--ink); font-size: 1rem;
  padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-bottom: 16px; font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: #eaf3fb; padding: 62px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #cfe3f3; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #071a2e; color: #9db4c8; padding: 58px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer a { color: #9db4c8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #8fa8bd; }
.site-footer p { font-size: .9rem; line-height: 1.9; }
.footer-links li { margin-bottom: 8px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--teal); flex: 0 0 auto; margin-top: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem;
}

/* ---------- Floating buttons ---------- */
.float-stack {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-btn:hover { transform: translateY(-3px) scale(1.02); color: #fff; }
.float-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.float-btn--wa { background: #25d366; color: #053a1c; }
.float-btn--wa:hover { color: #053a1c; }
.float-btn--call { background: var(--orange); }
.float-btn--call:hover { color: #fff; }
.float-btn--top {
  width: 46px; height: 46px; padding: 0; justify-content: center;
  background: var(--navy); opacity: 0; pointer-events: none;
  animation: none; box-shadow: 0 8px 20px rgba(10,36,64,.3);
}
.float-btn--top.is-visible { opacity: 1; pointer-events: auto; }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,0,0,.22); }
  50% { box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 0 0 10px rgba(37, 211, 102, .12); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-btn { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .quote-card { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: grid; }
  .header-cta .btn--wa { display: none; }
  .site-header .container { position: relative; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 70px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .float-btn span { display: none; }
  .float-btn { padding: 14px; border-radius: 50%; }
  .float-stack { left: 12px; right: auto; bottom: 14px; }
  .hero-badges { gap: 14px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
