/* طبقة ترقية غير إتلافية: تُحمّل بعد css.css لتوحيد الواجهة وتجربة الاستخدام. */
:root {
  --surface: #ffffff;
  --surface-soft: #f8f6f0;
  --surface-tint: #f0f4f8;
  --line: rgba(15, 36, 68, 0.12);
  --ink-soft: #394656;
  --focus-ring: 0 0 0 4px rgba(200, 155, 60, 0.27);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow-soft: 0 18px 40px -26px rgba(15, 36, 68, 0.48);
  --shadow-raised: 0 24px 56px -30px rgba(15, 36, 68, 0.5);
}

html { scroll-padding-top: 98px; }
body {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
}
body::selection { color: var(--navy); background: var(--gold-2); }

.container { width: min(100% - 40px, 1180px); padding: 0; }
.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  min-height: 70px;
  padding: 9px 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -22px rgba(15, 36, 68, 0.46);
}
.nav-wrap { gap: var(--space-4); }
.logo img { height: 54px; max-width: 148px; object-fit: contain; }
nav ul { gap: clamp(14px, 2vw, 28px); }
nav a { position: relative; padding: 8px 0; color: var(--navy); }
nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
nav a:hover::after, nav a:focus-visible::after, nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta .btn-gold { min-height: 44px; padding: 10px 20px !important; font-size: 14px !important; }

.btn, .btn-book {
  min-height: 48px;
  border: 1px solid transparent;
  letter-spacing: 0;
  line-height: 1.2;
  will-change: transform;
}
.btn:hover, .btn-book:hover { transform: translateY(-2px); }
.btn:focus-visible, .btn-book:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.16); }
.btn-book { min-height: 54px; padding: 13px 23px; }
.btn-book svg { flex: none; }

.hero {
  min-height: min(840px, 100svh);
  padding: 144px 0 94px;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 18%, rgba(200, 155, 60, 0.25), transparent 30%),
    radial-gradient(circle at 88% 74%, rgba(111, 174, 122, 0.17), transparent 25%),
    linear-gradient(145deg, #0a1a31 0%, #173d65 56%, #1f4a73 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-grid { gap: clamp(34px, 5vw, 74px); }
.hero h1 { max-width: 14ch; text-wrap: balance; letter-spacing: -0.04em; }
.hero h2.sub { max-width: 34ch; }
.hero p.desc { max-width: 58ch; font-size: clamp(15px, 1.6vw, 17px); }
.hero-visual { height: clamp(340px, 43vw, 560px); }
.room-card { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-lg); }
.room-card img { transform: scale(1.01); }
.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
}
.hero-assurances li { display: inline-flex; gap: 8px; align-items: center; }
.hero-assurances i { color: var(--gold-2); }
.scroll-cue { bottom: 20px; }

.section { padding: clamp(68px, 9vw, 112px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 58px); }
.section-head h2, .section-head h1 { text-wrap: balance; letter-spacing: -0.025em; }
.section-head p { max-width: 58ch; margin-inline: auto; }
.eyebrow { min-height: 32px; padding: 6px 14px; margin-bottom: 14px; }

.why-grid, .services-grid { gap: clamp(16px, 2vw, 26px); }
.why-item, .svc-card, .type-card, .contract-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.why-item { min-height: 154px; padding: 26px; border-radius: var(--radius-md); }
.why-item:hover { box-shadow: var(--shadow-raised); }
.why-icon { width: 50px; height: 50px; border-radius: 16px; }
.svc-card { border-radius: var(--radius-md); }
.svc-card:hover { box-shadow: var(--shadow-raised); }
.svc-top { height: 196px; }
.svc-body { padding: 22px 24px 26px; }
.svc-body p { min-height: 48px; }

.types { background: linear-gradient(145deg, #0b203d, #183a62); }
.types-grid { gap: 26px; margin-top: 38px; }
.type-card { border-radius: var(--radius-md); }
.type-card img { height: 310px; }
.type-content { padding: 24px; }
.type-content h3 { font-size: clamp(22px, 3vw, 28px); }
.type-content .btn { min-height: 48px; }

.timeline { max-width: 850px; }
.timeline::before { right: 34px; opacity: 0.65; }
.tl-step { gap: 20px; padding-bottom: 30px; }
.tl-num { width: 68px; height: 68px; box-shadow: 0 0 0 7px var(--white); }
.tl-content { border: 1px solid var(--line); }

.contract-grid { gap: 24px; }
.contract-card {
  min-height: 300px;
  border-radius: var(--radius-md);
  outline: none;
}
.contract-card:focus-visible { box-shadow: var(--focus-ring), var(--shadow-raised); }
.contract-card::after {
  content: "اضغط أو استخدم Enter لعرض التفاصيل";
  position: absolute;
  inset-inline: 24px;
  bottom: 22px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  text-align: center;
}
.contract-card.is-expanded .contract-front { transform: translateY(-100%); }
.contract-card.is-expanded .contract-back { transform: translateY(0); }
.contract-card.is-expanded::after { display: none; }
.contract-back { gap: 10px; }

.faq { border-top: 1px solid var(--line); }
details { padding: 21px 10px; }
summary { min-height: 32px; gap: var(--space-3); }
summary:hover { color: var(--gold); }

.coverage { background: linear-gradient(180deg, var(--surface-soft), #eef4f7); }
.gallery-grid { gap: 20px !important; }
.gallery-grid .g-item {
  width: min(48%, 460px) !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background: #071524;
}
.gallery-grid .g-item video { border-radius: inherit; }

.site-booking .booking { min-height: 100vh; padding-top: 148px; background: linear-gradient(180deg, #f5f7f8 0%, var(--surface) 28%); }
.site-booking .booking-wrap { max-width: 920px; }
.booking-form {
  position: relative;
  padding: clamp(22px, 4vw, 40px);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
}
.booking-form::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--gold), var(--green-2));
}
.field { gap: 9px; }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-color: rgba(15, 36, 68, 0.18);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.field textarea { min-height: 128px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(15, 36, 68, 0.34); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.booking-form .btn-green { grid-column: 1 / -1; min-height: 54px; margin-top: 4px; border-radius: 16px; }
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 680px;
  margin: 15px auto 0;
  padding: 12px 14px;
  color: #39556a;
  background: rgba(61, 122, 76, 0.08);
  border: 1px solid rgba(61, 122, 76, 0.18);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.75;
}
.privacy-note i { margin-top: 4px; color: var(--green); }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.form-status { margin-top: 4px; }

.site-footer { padding-top: 68px; background: linear-gradient(145deg, #07162b, #0b2442); }
.footer-grid { gap: clamp(28px, 5vw, 58px); }
.footer-logo img { width: 62px; }
.social a { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.12); }
.social a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.footer-contact a, .footer-contact p { line-height: 1.75; }
.wa-float { width: 62px; height: 62px; inset-inline-start: 20px; inset-inline-end: auto; bottom: 20px; }
.wa-float:focus-visible { outline: none; box-shadow: var(--focus-ring), 0 10px 30px -6px rgba(37,211,102,.6); }

@media (max-width: 920px) {
  .site-header { min-height: 72px; }
  .nav-wrap { min-height: 56px; }
  .nav-cta { margin-inline-start: auto; }
  nav ul { top: 74px; right: 16px; left: 16px; padding: 20px; box-shadow: var(--shadow-raised); }
  nav ul a { display: block; padding: 10px 0; }
  nav ul a::after { display: none; }
  .hero { min-height: auto; padding: 118px 0 70px; }
  .hero-grid { gap: 34px; }
  .hero-visual { order: initial; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1180px); }
  .site-header .nav-cta { display: none; }
  .logo img { height: 47px; }
  .hero h1 { font-size: clamp(35px, 10vw, 48px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions > * { width: 100%; }
  .hero-assurances { display: grid; gap: 10px; }
  .hero-visual { height: min(92vw, 410px); }
  .scroll-cue { display: none; }
  .section { padding: 64px 0; }
  .why-item { min-height: auto; padding: 22px; }
  .svc-top { height: 208px; }
  .svc-body p { min-height: auto; }
  .type-card img { height: 260px; }
  .timeline::before { right: 29px; }
  .tl-step { gap: 14px; }
  .tl-num { width: 58px; height: 58px; font-size: 19px; }
  .tl-content { padding: 18px; }
  .contract-card { min-height: auto; }
  .contract-card::after { display: none; }
  .gallery-grid { flex-direction: column; align-items: stretch; }
  .gallery-grid .g-item { width: 100% !important; max-width: none; }
  .site-booking .booking { padding-top: 118px; }
  .booking-form { display: flex; flex-direction: column; }
  .field.full { width: 100%; }
  .wa-float { width: 56px; height: 56px; inset-inline-start: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room-card img, .svc-card:hover .svc-top img { transform: none; }
  .wa-float { animation: none; }
}

button:disabled { cursor: wait; opacity: 0.72; }
[aria-busy="true"] { position: relative; }
.back-to-top {
  position: fixed;
  z-index: 190;
  inset-inline-end: 22px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 36, 68, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--navy); color: var(--gold-2); }
.back-to-top:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-soft); }

@media (max-width: 700px) {
  .back-to-top { inset-inline-end: 14px; bottom: 82px; width: 44px; height: 44px; border-radius: 14px; }
  .hero-eyebrow { font-size: 12px; }
  .section-head p, .hero p.desc { font-size: 15px; }
}

/* قسم الموقع وخرائط Google: رابط واضح قابل للفهرسة والوصول دون تضمين خارجي. */
.location { background: linear-gradient(180deg, #eef4f7 0%, var(--surface) 100%); }
.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.location-copy .eyebrow { width: fit-content; }
.location-copy h2 { max-width: 20ch; margin-bottom: 14px; color: var(--navy); }
.location-copy p { max-width: 58ch; color: var(--ink-soft); }
.location-copy address { margin: 18px 0 24px; color: var(--ink-soft); font-style: normal; font-weight: 700; }
.location-copy .btn { display: inline-flex; align-items: center; gap: 10px; }
.location-actions { display: grid; gap: 14px; }
.location-actions a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 3px 12px;
  align-items: center;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--navy);
  background: var(--surface-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.location-actions a:hover { transform: translateY(-2px); border-color: rgba(200, 155, 60, .55); box-shadow: var(--shadow-soft); }
.location-actions a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.location-actions i { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--gold); background: rgba(200, 155, 60, .14); }
.location-actions span { font-size: 13px; color: var(--ink-soft); }
.location-actions strong { overflow-wrap: anywhere; font-size: 15px; }

@media (max-width: 700px) {
  .location-card { grid-template-columns: 1fr; padding: 24px; }
  .location-copy h2 { max-width: none; }
  .location-copy .btn { width: 100%; justify-content: center; }
}

/* رابط العقود: إشارة داخلية واضحة للرابط الرسمي المستهدف. */
.hero-contract-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(200, 155, 60, 0.78);
  font-size: 14px;
  font-weight: 700;
}
.hero-contract-link::before {
  content: "←";
  margin-inline-end: 8px;
  color: var(--gold-2);
}
.hero-contract-link:hover { color: var(--gold-2); }
.hero-contract-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

@media (max-width: 700px) {
  .hero-contract-link { width: 100%; justify-content: center; font-size: 13px; }
}

/* Business registration details in the footer */
.business-registration {
  direction: rtl;
  margin-top: 12px;
}
.business-registration-details {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.business-registration-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.55;
}
.business-registration-details bdi {
  color: #ffffff;
  direction: ltr;
  font-weight: 700;
  letter-spacing: 0.2px;
  unicode-bidi: isolate;
}

@media (max-width: 700px) {
  .business-registration { margin-top: 10px; }
}

/* Emphasized Sunwan Clean brand within the hero eyebrow */
.hero-eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  gap: 2px;
  text-align: center;
}
.hero-company-name,
.hero-brand-name {
  display: block;
  width: 100%;
  text-align: center;
}
.hero-brand-name {
  color: #ffffff;
  font-size: 1.28em;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}


/* Google Maps customer reviews */
.reviews {
  background: linear-gradient(180deg, rgba(247, 244, 235, 0.95), #ffffff 74%);
}
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 30px;
  padding: 17px 20px;
  max-width: 920px;
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.reviews-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: var(--ink-soft);
  font-size: 14px;
}
.reviews-score strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}
.reviews-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 17px;
  line-height: 1;
}
.reviews-map-link {
  flex: 0 0 auto;
  min-height: 44px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(15, 36, 68, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}
.review-card blockquote {
  margin: 18px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}
.review-author {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 36, 68, 0.1);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.reviews-note {
  margin: 20px auto 0;
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
}

@media (max-width: 850px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}

@media (max-width: 700px) {
  .reviews-summary { align-items: stretch; flex-direction: column; padding: 18px; }
  .reviews-score { justify-content: center; text-align: center; }
  .reviews-map-link { width: 100%; justify-content: center; }
  .review-card { padding: 21px; }
  .review-card blockquote { font-size: 14px; }
}
