/* ==========================================================================
   شركة المأب للخدمات الإعلانية والديكور | Al-Maab Advertising & Decor
   الإصدار الفاخر (Royal Luxury Atelier Edition)
   - الكحلي الملكي الداكن (من الشعار): #061A36
   - الذهبي العتيق الملكي (من الشعار): #B48D46
   - الذهبي الشامباني المضيء: #E4C580
   - الخط: Calibri منسّق مع بدائل متطابقة القياس لكافة الأنظمة
   ========================================================================== */

:root {
  --navy-deepest: #020A17;
  --navy-dark: #041124;
  --navy: #061A36;
  --navy-mid: #0D284E;
  --navy-elevated: #123361;
  --gold-dark: #8C6A2A;
  --gold: #B48D46;
  --gold-light: #D9B872;
  --gold-champagne: #F0D9A3;
  --gold-metallic: linear-gradient(135deg, #987330 0%, #D4B06A 45%, #F0D9A3 55%, #B48D46 100%);
  --gold-metallic-hover: linear-gradient(135deg, #B48D46 0%, #E4C580 50%, #F7E5B7 65%, #C89F53 100%);
  --gold-tint: #FBF7EE;
  --gold-hairline: rgba(180, 141, 70, 0.28);
  --gold-hairline-strong: rgba(217, 184, 114, 0.48);
  --pearl: #F9F7F2;
  --alabaster: #F3EFE6;
  --white: #FFFFFF;
  --text-main: #0D1B30;
  --text-muted: #536277;
  --border-subtle: #E7E1D4;
  --whatsapp-1: #1EBA59;
  --whatsapp-2: #128C43;
  --shadow-xs: 0 4px 14px rgba(4, 17, 36, 0.05);
  --shadow-sm: 0 10px 28px rgba(4, 17, 36, 0.08);
  --shadow-md: 0 18px 46px rgba(4, 17, 36, 0.12);
  --shadow-lg: 0 28px 70px rgba(2, 10, 23, 0.22);
  --shadow-gold: 0 12px 34px rgba(180, 141, 70, 0.30);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: 'Calibri', 'Carlito', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Custom Selection & Scrollbar */
::selection {
  background: var(--gold);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deepest);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-light));
  border-radius: 99px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.78;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font-main);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
  position: relative;
}

.bg-ivory {
  background: linear-gradient(180deg, var(--pearl) 0%, #FAF8F4 100%);
}

.bg-navy {
  background: radial-gradient(circle at 85% 15%, rgba(180, 141, 70, 0.14), transparent 48%),
              radial-gradient(circle at 12% 85%, rgba(217, 184, 114, 0.08), transparent 42%),
              linear-gradient(155deg, var(--navy-deepest) 0%, var(--navy) 52%, var(--navy-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle Architectural Pattern Overlay for Dark Sections */
.bg-navy::before,
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 184, 114, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 184, 114, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.bg-navy > .container,
.hero > .container {
  position: relative;
  z-index: 2;
}

/* Top Gold Reading Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--gold-metallic);
  z-index: 1200;
  box-shadow: 0 0 12px rgba(217, 184, 114, 0.7);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Editorial Section Headings
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-tint);
  color: var(--gold-dark);
  border: 1px solid var(--gold-hairline-strong);
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.section-badge::before,
.section-badge::after {
  content: '◆';
  font-size: 0.55rem;
  color: var(--gold);
}

.bg-navy .section-badge {
  background: rgba(180, 141, 70, 0.12);
  color: var(--gold-champagne);
  border-color: rgba(217, 184, 114, 0.38);
}

.section-title {
  font-size: clamp(1.95rem, 3.4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
  margin-bottom: 16px;
}

.bg-navy .section-title {
  color: var(--white);
}

.section-title span {
  background: linear-gradient(135deg, #9C7531 0%, #C89E4F 50%, #9A722C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-navy .section-title span,
.hero-title span {
  background: linear-gradient(135deg, #F5E1B0 0%, #D9B872 48%, #B48D46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.bg-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  width: 140px;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   Luxury Buttons with Metallic Sheen
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s var(--ease-luxury);
  pointer-events: none;
}

.btn:hover::before {
  left: 145%;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-gold {
  background: var(--gold-metallic);
  color: var(--navy-deepest);
  border-color: rgba(240, 217, 163, 0.55);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--gold-metallic-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(180, 141, 70, 0.45);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-color: var(--gold-hairline-strong);
  box-shadow: 0 10px 26px rgba(4, 17, 36, 0.24);
}

.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-elevated) 100%);
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(4, 17, 36, 0.32);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: rgba(217, 184, 114, 0.45);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  border-color: var(--gold-champagne);
  color: var(--gold-champagne);
  background: rgba(180, 141, 70, 0.14);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp-1) 0%, var(--whatsapp-2) 100%);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(18, 140, 67, 0.32);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(18, 140, 67, 0.45);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.94rem;
}

/* ==========================================================================
   Royal Obsidian-Navy Top Bar & Sticky Glassmorphic Header
   ========================================================================== */
.top-bar {
  background: var(--navy-deepest);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(180, 141, 70, 0.20);
  padding: 9px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold-light);
}

.top-bar-item a:hover {
  color: var(--gold-champagne);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(4, 17, 36, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 184, 114, 0.24);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(2, 10, 23, 0.98);
  border-bottom-color: rgba(217, 184, 114, 0.42);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-frame {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gold-metallic);
  box-shadow: 0 0 20px rgba(180, 141, 70, 0.32);
  flex-shrink: 0;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.brand-name {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 0.84rem;
  color: var(--gold-light);
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: var(--gold-metallic);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease-luxury);
  border-radius: 2px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-champagne);
  background: rgba(180, 141, 70, 0.12);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: rgba(180, 141, 70, 0.14);
  border: 1px solid var(--gold-hairline-strong);
  color: var(--gold-champagne);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 23, 0.78);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -330px;
  width: 305px;
  max-width: 86vw;
  height: 100vh;
  background: linear-gradient(180deg, var(--navy-deepest) 0%, var(--navy) 100%);
  color: var(--white);
  border-left: 1px solid var(--gold-hairline-strong);
  z-index: 1001;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.38s var(--ease-luxury);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(217, 184, 114, 0.25);
  margin-bottom: 22px;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 184, 114, 0.3);
  color: var(--gold-champagne);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1.06rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid transparent;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: rgba(180, 141, 70, 0.16);
  border-color: rgba(217, 184, 114, 0.35);
  color: var(--gold-champagne);
}

/* ==========================================================================
   Royal Architectural Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 22% 18%, rgba(217, 184, 114, 0.18), transparent 42%),
              radial-gradient(circle at 82% 80%, rgba(180, 141, 70, 0.12), transparent 44%),
              linear-gradient(145deg, var(--navy-deepest) 0%, var(--navy) 54%, #0B2549 100%);
  color: var(--white);
  padding: 84px 0 116px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-metallic);
  z-index: 3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(180, 141, 70, 0.12);
  border: 1px solid rgba(217, 184, 114, 0.44);
  color: var(--gold-champagne);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-champagne);
  box-shadow: 0 0 12px var(--gold-champagne);
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.45rem);
  font-weight: 700;
  line-height: 1.24;
  margin-bottom: 22px;
  letter-spacing: -0.2px;
}

.hero-desc {
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.85;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 184, 114, 0.18);
  padding: 9px 14px;
  border-radius: 10px;
}

.hero-highlight-item svg {
  width: 17px;
  height: 17px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Luxury Framed Bento Showcase */
.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  position: relative;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(217, 184, 114, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  aspect-ratio: 4 / 4.45;
  background: var(--navy-deepest);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(240, 217, 163, 0.24);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}

.showcase-card:nth-child(2) {
  transform: translateY(22px);
}

.showcase-card:nth-child(3) {
  transform: translateY(-22px);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-luxury);
}

.showcase-card:hover img {
  transform: scale(1.08);
}

.showcase-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(2, 10, 23, 0.94) 10%, transparent);
  color: var(--gold-champagne);
  font-size: 0.94rem;
  font-weight: 700;
  z-index: 3;
}

.hero-floating-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98px;
  height: 98px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gold-metallic);
  box-shadow: 0 0 0 8px rgba(4, 17, 36, 0.72), 0 18px 44px rgba(0, 0, 0, 0.58);
  z-index: 5;
}

.hero-floating-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

/* ==========================================================================
   Executive Floating Stats Ribbon
   ========================================================================== */
.stats-bar {
  background: transparent;
  margin-top: -54px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF8F1 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-hairline-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  position: relative;
}

.stats-grid::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold-metallic);
}

.stat-item {
  padding: 32px 22px;
  text-align: center;
  border-left: 1px solid var(--border-subtle);
  position: relative;
}

.stat-item:last-child {
  border-left: none;
}

.stat-number {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--gold);
}

.stat-label {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Luxury Sectors & Services Cards
   ========================================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sector-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold-metallic);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.42s var(--ease-luxury);
  z-index: 4;
}

.sector-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-hairline-strong);
}

.sector-card:hover::before {
  transform: scaleX(1);
}

.sector-thumb {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.sector-thumb::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 75px;
  background: linear-gradient(to top, rgba(4, 17, 36, 0.65), transparent);
  pointer-events: none;
}

.sector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-luxury);
}

.sector-card:hover .sector-thumb img {
  transform: scale(1.07);
}

.sector-num {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(4, 17, 36, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold-champagne);
  border: 1px solid rgba(217, 184, 114, 0.55);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  z-index: 2;
}

.sector-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sector-title {
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.sector-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sector-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  flex: 1;
}

.sector-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.96rem;
  color: var(--text-main);
}

.sector-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 7px;
  flex-shrink: 0;
}

.sector-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sector-link {
  color: var(--navy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sector-link:hover {
  color: var(--gold-dark);
  transform: translateX(-3px);
}

.sector-card-luxury {
  background: radial-gradient(circle at top center, rgba(217, 184, 114, 0.2), transparent 55%),
              linear-gradient(155deg, var(--navy-deepest) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  border: 1px solid var(--gold-hairline-strong);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Why Factory Section (Executive Atelier Split)
   ========================================================================== */
.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 184, 114, 0.24);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.feature-box:hover {
  background: rgba(180, 141, 70, 0.12);
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(180, 141, 70, 0.16);
  border: 1px solid rgba(217, 184, 114, 0.42);
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-box h3 {
  font-size: 1.14rem;
  color: var(--white);
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.factory-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}

.factory-visual img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 184, 114, 0.42);
  box-shadow: var(--shadow-lg);
}

.factory-visual img.tall {
  grid-column: span 2;
  height: 250px;
}

/* ==========================================================================
   Gallery / Portfolio Grid & Luxury Lightbox
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-tint);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--navy-deepest) 0%, var(--navy) 100%);
  color: var(--gold-champagne);
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(4, 17, 36, 0.24);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deepest);
  aspect-ratio: 1 / 1.1;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240, 217, 163, 0);
  border-radius: 10px;
  pointer-events: none;
  transition: border-color 0.4s ease;
  z-index: 3;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.portfolio-item:hover::after {
  border-color: rgba(240, 217, 163, 0.55);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-luxury);
}

.portfolio-item:hover img {
  transform: scale(1.09);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 10, 23, 0.94) 0%, rgba(4, 17, 36, 0.25) 54%, transparent 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.portfolio-cat {
  display: inline-block;
  align-self: flex-start;
  background: rgba(180, 141, 70, 0.92);
  color: var(--navy-deepest);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 7px;
}

.portfolio-title {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 23, 0.94);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  background: linear-gradient(155deg, var(--navy-deepest), var(--navy));
  border: 1px solid var(--gold-hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  position: relative;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75);
}

.lightbox-img-wrap {
  background: #01060F;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
  overflow: hidden;
}

.lightbox-img-wrap img {
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
}

.lightbox-info {
  padding: 34px 26px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border-right: 1px solid rgba(217, 184, 114, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline-strong);
  background: rgba(2, 10, 23, 0.88);
  color: var(--gold-champagne);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--navy-deepest);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline-strong);
  background: rgba(2, 10, 23, 0.88);
  color: var(--gold-champagne);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-deepest);
}

.lightbox-prev { right: 22px; }
.lightbox-next { left: 22px; }

/* ==========================================================================
   Connected Luxury Process Timeline
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.process-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deepest), var(--navy));
  color: var(--gold-champagne);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px var(--gold-tint);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process-step h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Inner Page Hero
   ========================================================================== */
.page-hero {
  background: radial-gradient(circle at 50% 0%, rgba(217, 184, 114, 0.18), transparent 55%),
              linear-gradient(145deg, var(--navy-deepest) 0%, var(--navy) 62%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 78px 0;
  position: relative;
  border-bottom: 3px solid var(--gold);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 740px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--gold-champagne);
  margin-bottom: 12px;
  background: rgba(180, 141, 70, 0.12);
  border: 1px solid rgba(217, 184, 114, 0.3);
  padding: 5px 16px;
  border-radius: 999px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: var(--gold-champagne);
}

/* ==========================================================================
   Detailed Service Cards (services.html)
   ========================================================================== */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-item-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  overflow: hidden;
}

.service-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold-metallic);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-item-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.service-item-card:hover::before {
  opacity: 1;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.service-tag {
  display: inline-block;
  background: var(--gold-tint);
  color: var(--gold-dark);
  border: 1px solid var(--gold-hairline-strong);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 999px;
}

.service-index {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(180, 141, 70, 0.55);
}

.service-item-card h3 {
  font-size: 1.26rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-item-card p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex: 1;
}

/* ==========================================================================
   Map & Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--pearl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--gold);
  transform: translateX(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-deepest), var(--navy));
  border: 1px solid var(--gold-hairline-strong);
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(180, 141, 70, 0.16);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-hairline-strong);
  box-shadow: var(--shadow-lg);
  background: var(--navy-deepest);
}

.map-frame {
  width: 100%;
  height: 430px;
  border: 0;
  display: block;
}

.map-footer-bar {
  background: linear-gradient(90deg, var(--navy-deepest), var(--navy));
  color: var(--white);
  padding: 18px 26px;
  border-top: 1px solid rgba(217, 184, 114, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Luxury CTA Banner
   ========================================================================== */
.cta-box {
  background: radial-gradient(circle at top center, rgba(217, 184, 114, 0.2), transparent 58%),
              linear-gradient(145deg, var(--navy-deepest) 0%, var(--navy) 65%, var(--navy-mid) 100%);
  border: 1px solid var(--gold-hairline-strong);
  border-radius: var(--radius-lg);
  padding: 58px 42px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(217, 184, 114, 0.22);
  border-radius: 16px;
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  margin-bottom: 14px;
  position: relative;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
}

/* ==========================================================================
   Unified Royal Luxury Footer + Centered wijhadev</> Credit
   ========================================================================== */
.site-footer {
  background: radial-gradient(circle at 50% 0%, rgba(180, 141, 70, 0.14), transparent 46%),
              linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deepest) 100%);
  color: rgba(255, 255, 255, 0.84);
  border-top: 3px solid var(--gold);
  padding-top: 74px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.05fr 1.15fr;
  gap: 38px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(217, 184, 114, 0.2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand .brand-logo-frame {
  width: 64px;
  height: 64px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.34rem;
}

.footer-brand span {
  color: var(--gold-light);
  font-size: 0.9rem;
}

.footer-desc {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
  line-height: 1.85;
}

.footer-heading {
  color: var(--white);
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 46px;
  height: 2px;
  background: var(--gold-metallic);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.97rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-champagne);
  transform: translateX(-4px);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 184, 114, 0.34);
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn svg {
  width: 19px;
  height: 19px;
}

.social-btn:hover {
  background: var(--gold-metallic);
  color: var(--navy-deepest);
  border-color: var(--gold-champagne);
  transform: translateY(-3px);
}

/* 3-Column Bottom Footer Bar — Centered wijhadev</> Credit */
.footer-bottom {
  padding: 24px 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-copy {
  text-align: right;
}

.footer-credit {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(180, 141, 70, 0.10);
  border: 1px solid rgba(217, 184, 114, 0.34);
  padding: 7px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  transition: var(--transition);
}

.footer-credit:hover {
  background: rgba(180, 141, 70, 0.20);
  border-color: var(--gold-champagne);
  box-shadow: 0 6px 22px rgba(180, 141, 70, 0.24);
  transform: translateY(-2px);
}

.wijha-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: var(--gold-champagne);
  letter-spacing: 0.4px;
}

.wijha-link span {
  color: var(--gold-light);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92rem;
}

.footer-credit:hover .wijha-link {
  color: var(--white);
}

.footer-note {
  text-align: left;
}

/* ==========================================================================
   Scroll-Activated Floating WhatsApp Button (Hidden until scroll, hides after 3s)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--whatsapp-1) 0%, var(--whatsapp-2) 100%);
  color: var(--white);
  border: 1.5px solid rgba(240, 217, 163, 0.55);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(2, 10, 23, 0.42), 0 0 18px rgba(30, 186, 89, 0.35);
  font-weight: 700;
  font-size: 0.98rem;
  /* Hidden by default; revealed via JS .is-visible ONLY on scroll up/down */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(26px) scale(0.92);
  transition: opacity 0.38s var(--ease-luxury),
              transform 0.38s var(--ease-luxury),
              visibility 0.38s ease,
              box-shadow 0.3s ease;
}

.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.whatsapp-float.is-visible:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 42px rgba(2, 10, 23, 0.5), 0 0 24px rgba(30, 186, 89, 0.55);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s var(--ease-luxury), transform 0.72s var(--ease-luxury);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid,
  .factory-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .sectors-grid,
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .lightbox-info {
    border-right: none;
    border-top: 1px solid rgba(217, 184, 114, 0.2);
  }
}

@media (max-width: 880px) {
  .main-nav,
  .header-actions .btn-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-bottom: 1px solid var(--border-subtle);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-copy,
  .footer-note {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .section-padding {
    padding: 64px 0;
  }
  .top-bar {
    display: none;
  }
  .hero-highlights,
  .sectors-grid,
  .service-detail-grid,
  .feature-list,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .showcase-card:nth-child(2),
  .showcase-card:nth-child(3) {
    transform: none;
  }
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 15px;
    border-radius: 50%;
    bottom: 20px;
    left: 20px;
  }
  .cta-box {
    padding: 38px 22px;
  }
  .contact-card {
    padding: 26px 20px;
  }
}


/* ==========================================================================
   PWA Mobile App Install Banner (3-Second Auto-Hide on Every Open)
   & Luxury iOS / Android Installation Guide Modal (Mobile-First Responsive Fix)
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translate(-50%, 150%);
  width: min(470px, calc(100% - 28px));
  max-width: calc(100% - 24px);
  background: rgba(4, 17, 36, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--gold-hairline-strong);
  border-radius: 18px;
  padding: 14px 16px 17px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58), 0 0 24px rgba(180, 141, 70, 0.22);
  color: var(--white);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  direction: rtl;
  box-sizing: border-box;
  transition: transform 0.45s var(--ease-luxury), opacity 0.38s ease, visibility 0.38s ease;
}

.pwa-install-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pwa-banner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.pwa-banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(180, 141, 70, 0.3);
  flex-shrink: 0;
  object-fit: cover;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.32;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-sub {
  font-size: 0.84rem;
  color: var(--gold-champagne);
  line-height: 1.35;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(240, 217, 163, 0.6);
  background: var(--gold-metallic);
  color: var(--navy-deepest);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pwa-install-btn:hover {
  background: var(--gold-metallic-hover);
  transform: translateY(-1px);
}

.pwa-install-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.pwa-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.pwa-close-btn:hover {
  background: rgba(180, 141, 70, 0.25);
  color: var(--gold-champagne);
}

.pwa-timer-track {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.pwa-timer-bar {
  height: 100%;
  width: 100%;
  background: var(--gold-metallic);
  transform-origin: right center;
}

.pwa-install-banner.is-visible .pwa-timer-bar {
  animation: pwaCountdown 3s linear forwards;
}

.pwa-install-banner.is-paused .pwa-timer-bar {
  animation-play-state: paused;
}

@keyframes pwaCountdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Luxury iOS / Android Install Guide Modal */
.pwa-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pwa-modal.open {
  display: flex;
}

.pwa-modal-card {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(155deg, var(--navy-deepest) 0%, var(--navy) 100%);
  border: 1.5px solid var(--gold-hairline-strong);
  border-radius: 22px;
  padding: 28px 22px 22px;
  color: var(--white);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.pwa-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(217, 184, 114, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-champagne);
  font-size: 1.35rem;
  cursor: pointer;
}

.pwa-modal-icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  margin: 0 auto 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 26px rgba(180, 141, 70, 0.35);
}

.pwa-modal-card h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 6px;
}

.pwa-modal-sub {
  font-size: 0.94rem;
  color: var(--gold-champagne);
  margin-bottom: 20px;
}

.pwa-steps {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.pwa-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 184, 114, 0.22);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.pwa-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-metallic);
  color: var(--navy-deepest);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-step svg {
  width: 20px;
  height: 20px;
  color: var(--gold-light);
  vertical-align: middle;
  margin: 0 4px;
}

/* Mobile Responsive Card Layout (Zero Overflow, Zero Overlap, Clean 2-Row Sheet) */
@media (max-width: 600px) {
  .pwa-install-banner {
    left: 12px;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    transform: translateY(150%);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 14px 17px;
    border-radius: 16px;
  }

  .pwa-install-banner.is-visible {
    transform: translateY(0);
  }

  .pwa-banner-brand {
    width: 100%;
    padding-left: 38px;
    gap: 11px;
  }

  .pwa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .pwa-banner-title {
    font-size: 0.98rem;
    white-space: normal;
  }

  .pwa-banner-sub {
    font-size: 0.82rem;
  }

  .pwa-banner-actions {
    width: 100%;
  }

  .pwa-install-btn {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.96rem;
    border-radius: 11px;
  }

  .pwa-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.15rem;
  }
}
/* ==========================================================================
   ثيم الخلفية البيضاء مع النصوص الداكنة واللمسات الذهبية
   ========================================================================== */
:root {
  --text-main: #111827;
  --text-muted: #4B5563;
  --gold-dark: #8C6A2A;
  --gold: #B48D46;
  --gold-light: #C9A256;
  --gold-tint: #FBF7EE;
}

body,
.bg-ivory,
.bg-navy {
  background: #FFFFFF !important;
  color: #111827 !important;
}

::-webkit-scrollbar-track {
  background: #F5F2EA;
}

.bg-ivory,
.bg-navy {
  border-top: 1px solid rgba(180, 141, 70, 0.2);
}

.bg-navy::before,
.hero::before {
  background-image:
    linear-gradient(rgba(180, 141, 70, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 141, 70, 0.06) 1px, transparent 1px);
}

/* الشريط العلوي والهيدر */
.top-bar {
  background: #FFFFFF;
  color: #374151;
  border-bottom: 1px solid rgba(180, 141, 70, 0.25);
}

.top-bar-item svg,
.top-bar-item a:hover {
  color: #8C6A2A;
}

.site-header,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(180, 141, 70, 0.32);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.brand-name,
.main-nav a {
  color: #111827;
}

.brand-tagline {
  color: #8C6A2A;
}

.main-nav a:hover,
.main-nav a.active {
  color: #8C6A2A;
  background: #FBF7EE;
}

.mobile-menu-btn {
  background: #FBF7EE;
  color: #111827;
  border-color: rgba(180, 141, 70, 0.45);
}

/* قائمة الجوال */
.mobile-drawer {
  background: #FFFFFF;
  color: #111827;
  border-left: 1px solid rgba(180, 141, 70, 0.35);
}

.drawer-close {
  background: #FBF7EE;
  color: #111827;
}

.drawer-nav a {
  color: #111827;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background: #FBF7EE;
  color: #8C6A2A;
  border-color: rgba(180, 141, 70, 0.4);
}

/* الواجهة الرئيسية وصفحات العناوين */
.hero,
.page-hero {
  background: radial-gradient(circle at 22% 18%, rgba(180, 141, 70, 0.08), transparent 45%), #FFFFFF;
  color: #111827;
}

.hero-pill,
.bg-navy .section-badge,
.breadcrumb {
  background: #FBF7EE;
  color: #8C6A2A;
  border-color: rgba(180, 141, 70, 0.45);
}

.hero-pill-dot {
  background: #B48D46;
  box-shadow: 0 0 8px rgba(180, 141, 70, 0.5);
}

.hero-title,
.page-hero h1,
.bg-navy .section-title,
.section-title {
  color: #111827;
}

.hero-title span,
.bg-navy .section-title span,
.section-title span {
  background: linear-gradient(135deg, #8C6A2A 0%, #C89E4F 50%, #8C6A2A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc,
.page-hero p,
.bg-navy .section-subtitle,
.section-subtitle {
  color: #4B5563;
}

.breadcrumb a {
  color: #111827;
}

.breadcrumb a:hover {
  color: #8C6A2A;
}

.hero-highlight-item {
  background: #FBF7EE;
  color: #111827;
  border-color: rgba(180, 141, 70, 0.35);
}

.hero-highlight-item svg {
  color: #B48D46;
}

.hero-floating-badge {
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.94), 0 14px 36px rgba(17, 24, 39, 0.16);
}

.btn-outline-light {
  background: #FFFFFF;
  color: #111827;
  border-color