@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #111f42;
  --orange: #ff8500;
  --white: #fff;
  --paper: #f8f7f3;
  --ink: #111f42;
  --muted: #505a6e;
  --line: #e1e5eb;
  --warm-ink: #914200;
  --on-dark: #dce3f2;
  --wrap: min(100% - 88px, 1240px);
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

[lang="ar"] { --font: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: linear-gradient(#ffffff45, #ffffff45), var(--white) url("assets/roya-baby-blue-background.svg") repeat center top / 480px auto;
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
}
img { display: block; max-width: 100%; }
svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #2a75cb; outline-offset: 4px; }
section[id] { scroll-margin-top: 10px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.13; font-weight: 750; letter-spacing: -.038em; }
[dir="rtl"] :is(h1, h2, h3) { line-height: 1.24; letter-spacing: normal; }
h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); text-wrap: balance; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: clamp(60px, 7.3vw, 106px); }
.icon { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 20; padding: 12px 18px; background: var(--white); clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.topbar { background: var(--navy); color: var(--on-dark); font-size: .77rem; font-weight: 600; }
.topbar-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; }
.topbar-inner :is(span, a) { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 15px; height: 15px; color: var(--orange); }
.header { position: sticky; inset-block-start: 0; z-index: 8; background: var(--white); box-shadow: 0 1px 10px #111f4215; }
.nav-row { min-height: 84px; display: flex; gap: clamp(14px, 2.2vw, 36px); align-items: center; justify-content: space-between; }
.brand { display: block; flex: none; width: 122px; }
.brand img { width: 100%; height: auto; }
.nav-row nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.75vw, 27px); }
.nav-row nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.nav-row nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 3px; height: 2px; background: var(--orange); }
.nav-row nav a:hover, .language:hover { color: var(--warm-ink); }
.nav-actions { display: flex; align-items: center; gap: 13px; }
.language, .menu-toggle { border: 0; padding: 8px; background: var(--white); color: var(--navy); min-height: 44px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; }
.language .icon { width: 17px; height: 17px; }
.menu-toggle { display: none; width: 44px; border: 1px solid var(--line); border-radius: 8px; }

.button-row { display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 50px; border: 1px solid transparent; border-radius: 8px; padding: 11px 17px; display: inline-flex; gap: 11px; align-items: center; justify-content: center; font-size: .86rem; font-weight: 750; line-height: 1.25; text-align: center; transition: background-color .18s, border-color .18s, color .18s; }
.button .icon { width: 18px; height: 18px; }
.nav-book { min-height: 44px; padding-inline: 13px; white-space: nowrap; }
.primary { background: var(--orange); color: #121b33; }
.primary:hover { background: #ffa234; }
.outline { border-color: #a8b3c5; color: var(--navy); }
.outline:hover { background: #eef2f8; border-color: var(--navy); }
.outline-light { color: var(--white); border-color: #687795; }
.outline-light:hover { background: #293b60; border-color: #e1e7f4; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; font-size: .88rem; font-weight: 750; }
.text-link .icon { width: 17px; height: 17px; color: var(--warm-ink); transition: translate .18s; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { translate: 3px; }
[dir="rtl"] .text-link:hover .icon { translate: -3px; }
.eyebrow { color: var(--warm-ink); display: inline-flex; align-items: center; gap: 10px; font-size: .73rem; line-height: 1.4; font-weight: 800; letter-spacing: .13em; }
.eyebrow::before { content: ""; flex: none; width: 23px; height: 2px; background: var(--orange); }
[dir="rtl"] .eyebrow { font-size: .88rem; letter-spacing: normal; }

.hero { color: var(--white); background: radial-gradient(ellipse at 95% 0, #24375d, transparent 58%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(28px, 4.7vw, 72px); padding-block: clamp(40px, 4vw, 62px); }
.hero .eyebrow, .corporate .eyebrow { color: #ffab54; }
.hero h1 { margin-top: 17px; font-size: clamp(2.8rem, 4.7vw, 4.3rem); line-height: 1.04; font-weight: 800; letter-spacing: -.055em; }
[dir="rtl"] .hero h1 { line-height: 1.16; letter-spacing: normal; }
.hero h1 em { color: #ff9b32; font-style: normal; white-space: nowrap; }
.hero-copy > p { color: var(--on-dark); max-width: 49ch; margin-top: 21px; font-size: clamp(.98rem, 1.25vw, 1.12rem); }
.hero .button-row { margin-top: 26px; }
.hero-chat { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 8px; color: var(--on-dark); font-size: .86rem; font-weight: 700; }
.hero-chat:hover { color: var(--white); text-decoration: underline; }
.hero-chat .icon { width: 19px; height: 19px; color: #9be7c1; }
.hero-figure { position: relative; isolation: isolate; }
.hero-figure::after { position: absolute; content: ""; z-index: -1; inset: 18px -10px -10px 18px; border: 1px solid #ff9b3282; border-radius: 18px; }
[dir="rtl"] .hero-figure::after { inset: 18px 18px -10px -10px; }
.hero-slides { display: grid; aspect-ratio: 1.35; overflow: hidden; border-radius: 15px 15px 0 0; background: #0b1630; }
.hero-slides img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; opacity: 0; transition: opacity .35s ease; }
.hero-slides img.active { opacity: 1; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 10px 5px 14px; background: #0b1630; border-radius: 0 0 15px 15px; }
.gallery-service { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .85rem; font-weight: 750; }
.gallery-service:hover { text-decoration: underline; }
.gallery-service .icon { width: 16px; color: #ffab54; }
.gallery-controls { display: flex; flex: none; gap: 2px; }
.gallery-controls button { display: grid; place-items: center; width: 36px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--white); }
.gallery-controls button:hover { background: #293b60; }
.gallery-controls .icon { width: 17px; }
.gallery-controls [data-slide="-1"] .icon { scale: -1 1; }
.service-band { background: #f4f6fa; border-block-end: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-grid a { padding: 17px 10px; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: .86rem; line-height: 1.35; text-align: start; }
.band-grid a + a { border-inline-start: 1px solid var(--line); }
.band-grid a:hover { background: #e9eef7; }
.band-grid .icon { color: var(--warm-ink); width: 21px; height: 21px; }

.section-head { margin-bottom: 33px; }
.section-head h2, .about h2, .contact h2, .corporate h2 { margin-top: 11px; }
.section-head p { margin-top: 12px; max-width: 45ch; }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.split-head h2 { text-wrap: initial; }
.split-head p { max-width: 39ch; }
.center-head { text-align: center; }
.center-head p { margin-inline: auto; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.service-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 23px 21px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); transition: border-color .18s, box-shadow .18s; scroll-margin-top: 25px; }
.service-card:hover { border-color: #d3b497; box-shadow: 0 10px 22px #111f4210; }
.icon-tile { display: inline-grid; place-items: center; width: 47px; height: 47px; flex: none; background: #fff1e3; color: var(--warm-ink); border-radius: 10px; }
.icon-tile .icon { width: 25px; height: 25px; }
.service-card h3 { font-size: 1.12rem; margin-top: 16px; }
.card-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.service-card p { margin-block: 8px 10px; font-size: .9rem; }
.service-card .text-link { margin-top: auto; }
.service-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 12px; }
.service-actions .text-link { margin-top: 0; }

.solutions { background: var(--paper); }
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.solution { overflow: hidden; position: relative; isolation: isolate; border-radius: 14px; padding: clamp(23px, 3.4vw, 48px); min-height: 245px; }
.solution::before, .solution::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -39px; inset-block-end: -112px; width: 290px; height: 290px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; }
.solution::after { translate: -18px 19px; width: 250px; height: 250px; }
.solution h3 { font-size: clamp(1.35rem, 2.6vw, 2.2rem); margin-top: 17px; }
.solution p { max-width: 43ch; margin-block: 10px 8px; }
.residential { background: #fff; border: 1px solid #e8e3db; }
.commercial { color: var(--white); background: var(--navy); border: 1px solid var(--navy); }
.commercial p { color: var(--on-dark); }
.commercial .icon-tile { background: #293958; color: #ffab54; }
.commercial .text-link .icon { color: #ffab54; }

.coverage { display: flex; align-items: center; justify-content: center; gap: 12px; background: #f1f4f9; padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.coverage .icon, .coverage strong { color: var(--navy); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.plan { border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; padding: clamp(17px, 2.15vw, 30px); background: var(--white); }
.plan.featured { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 12px 30px #111f4220; }
.plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 6px; margin-bottom: 12px; }
.term { color: var(--muted); font-size: .75rem; letter-spacing: .1em; font-weight: 800; }
[dir="rtl"] .term { letter-spacing: normal; }
.popular { display: inline-block; background: var(--orange); color: var(--navy); padding: 5px 9px; border-radius: 5px; font-size: .7rem; font-weight: 800; line-height: 1.2; }
.plan h3 { font-size: clamp(1.24rem, 2vw, 1.65rem); }
.price-label { margin-top: 13px; font-size: .8rem; font-weight: 650; }
.price { color: inherit; line-height: 1.2; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: clamp(2.5rem, 4.25vw, 3.65rem); font-weight: 800; letter-spacing: -.07em; }
.price span { font-size: .93rem; font-weight: 750; }
.price-note { font-size: .85rem; min-height: 40px; padding-top: 6px; }
.plan ul { list-style: none; margin: 6px 0 24px; padding: 17px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan li { display: flex; gap: 8px; align-items: start; font-size: .87rem; line-height: 1.45; }
.plan li .icon { color: var(--warm-ink); width: 16px; height: 16px; margin-top: 2px; }
.plan.featured :is(.price-label, .price-note, .term) { color: var(--on-dark); }
.plan.featured ul { border-color: #455473; }
.plan.featured li .icon { color: #ffab54; }
.plan .button { width: 100%; margin-top: auto; }
.plan-terms { text-align: center; font-size: .82rem; margin-top: 18px; }

.about { background: #f1f4f9; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 100px); }
.about-intro h2, .contact h2, .corporate h2 { text-wrap: initial; }
.about-intro p { margin-top: 14px; max-width: 42ch; }
.about blockquote { margin-top: 24px; padding-inline-start: 14px; border-inline-start: 3px solid var(--orange); font-size: 1.1rem; font-weight: 750; }
.reason { display: flex; align-items: start; gap: 15px; padding-block: 17px; border-bottom: 1px solid #d9e0ec; }
.reason:first-child { padding-block-start: 0; }
.reason:last-child { border-bottom: 0; padding-block-end: 0; }
.reason h3 { font-size: 1.13rem; margin-bottom: 5px; }
.reason p { font-size: .92rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 1px solid var(--line); padding-top: 15px; }
.step-no { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff1e3; color: var(--warm-ink); font-size: .85rem; font-weight: 800; }
.steps h3 { margin-top: 13px; font-size: 1.1rem; }
.steps p { margin-top: 7px; font-size: .91rem; }
.corporate { position: relative; isolation: isolate; background: var(--navy); color: var(--white); }
.corporate > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60%; }
.corporate::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #111f42 1%, #111f42f7 32%, #111f42b8 55%, #111f4240 100%); }
[dir="rtl"] .corporate::after { transform: scaleX(-1); }
.corporate-content { padding-block: clamp(56px, 7.3vw, 105px); }
.corporate h2 { max-width: 13ch; }
.corporate p { max-width: 44ch; color: var(--on-dark); margin-block: 15px 21px; }
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(27px, 7vw, 110px); }
.contact h2 + p { margin-block: 12px 20px; }
.contact-card { display: flex; flex-direction: column; align-items: start; padding: 25px; border-radius: 14px; background: var(--white); border: 1px solid #e8e3db; }
.contact-card h3 { margin-top: 13px; }
.contact-card p { font-size: .9rem; margin-top: 4px; }
.contact-number { font-size: 1.38rem; font-weight: 800; line-height: 44px; margin-top: 4px; }
.contact-number:hover { text-decoration: underline; }
.contact-area { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.contact-area .icon { width: 16px; height: 16px; color: var(--warm-ink); }

.footer { background: var(--navy); color: var(--on-dark); padding-top: 47px; padding-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .85fr 1.05fr 1fr; gap: 24px; }
.footer .brand { background: var(--white); border-radius: 7px; width: 132px; padding: 7px 9px; }
.footer p { margin-top: 14px; max-width: 25ch; color: var(--on-dark); font-size: .87rem; }
.footer h2 { margin-bottom: 9px; color: var(--white); font-size: 1rem; letter-spacing: 0; }
.footer-links { display: grid; gap: 4px; }
.footer-links a, .footer-contact :is(span, a) { font-size: .84rem; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 5px; align-items: start; }
.footer-contact :is(span, a) { display: inline-flex; align-items: center; gap: 7px; }
.footer-contact .icon { width: 15px; height: 15px; color: #ffab54; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #455473; padding-top: 15px; margin-top: 30px; font-size: .76rem; }
.floating-chat { position: fixed; z-index: 5; inset-inline-end: max(19px, env(safe-area-inset-right)); inset-block-end: max(18px, env(safe-area-inset-bottom)); background: #126648; color: var(--white); border: 1px solid #ffffff80; border-radius: 50px; min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; font-size: .78rem; font-weight: 750; box-shadow: 0 4px 15px #111f4240; }
.floating-chat:hover { background: #0b5037; }
.floating-chat .icon { width: 24px; height: 24px; }

@media (max-width: 1500px) {
  .floating-chat { width: 49px; padding: 9px; }
  .floating-chat span { display: none; }
}

@media (max-width: 1130px) {
  :root { --wrap: min(100% - 64px, 1240px); }
  .nav-row { gap: 14px; }
  .nav-actions { gap: 6px; }
  .nav-row nav { gap: 13px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav-row { min-height: 71px; }
  .nav-row nav { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 76px); overflow-y: auto; background: var(--white); padding: 12px calc((100% - var(--wrap)) / 2) 18px; box-shadow: 0 9px 17px #111f4219; display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-row nav a { flex-shrink: 0; }
  .nav-row nav a { border-bottom: 1px solid var(--line); font-size: .93rem; }
  .nav-row nav a[aria-current="page"]::after { display: none; }
  .menu-open nav { display: flex; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 36px); }
  .section { padding-block: 57px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 34px 34px; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.46rem, 7vw, 3.6rem); }
  [dir="rtl"] .hero h1 { max-width: 17ch; }
  .hero h1 em { white-space: normal; }
  .hero-copy > p { margin-top: 15px; }
  .hero .button-row { margin-top: 19px; }
  .hero-slides { aspect-ratio: 1.55; }
  .gallery-controls { order: -1; }
  .gallery-service { margin-inline-end: 42px; }
  .hero-figure::after { inset: 12px -6px -6px 12px; border-radius: 15px; }
  [dir="rtl"] .hero-figure::after { inset: 12px 12px -6px -6px; }
  .band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band-grid a { min-height: 76px; flex-direction: column; text-align: center; font-size: .74rem; gap: 5px; padding: 9px 4px; }
  .section-head { margin-bottom: 24px; }
  .split-head { display: block; }
  .split-head p { max-width: 52ch; }
  .plan-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .plan { padding: 22px; }
  .plan .price-note { min-height: 0; padding-bottom: 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corporate::after { background: linear-gradient(90deg, #111f42f7, #111f42da 65%, #111f4299); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .footer { padding-bottom: 76px; }
}

@media (max-width: 490px) {
  .brand { width: 87px; }
  .nav-row { gap: 8px; min-height: 64px; }
  .nav-actions { gap: 5px; }
  .language { gap: 3px; padding-inline: 3px; font-size: .76rem; }
  .language .icon { width: 14px; height: 14px; }
  .nav-book { min-height: 44px; padding-inline: 8px; font-size: .73rem; }
  .nav-book .icon { display: none; }
  .menu-toggle { width: 39px; }
  .button { padding-inline: 11px; gap: 6px; }
  .hero .button { font-size: .8rem; }
  .hero .button .icon { width: 15px; height: 15px; }
  .service-grid { gap: 9px; }
  .service-card { padding: 13px 11px 6px; border-radius: 10px; }
  .service-card h3 { font-size: 1rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .service-card p { font-size: .82rem; }
  .service-card .text-link { font-size: .76rem; gap: 4px; }
  .service-card .text-link .icon { width: 14px; height: 14px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution { min-height: 0; }
  .coverage { padding-inline: 12px; align-items: start; }
  .coverage .icon { margin-top: 2px; }
}

@media (max-width: 360px) {
  .brand { width: 75px; }
  .language .icon { display: none; }
  .nav-row .nav-book { padding-inline: 7px; }
  .menu-toggle { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
