/* ==========================================================================
   idiibi Design System & Stylesheet — Modern Premium glassmorphic Architecture
   ========================================================================== */

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

:root {
  /* HSL Tailored Brand Colors - Premium Light Theme */
  --primary-h: 182;
  --primary-s: 96%;
  --primary-l: 27%; /* #038387 */
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 6%));
  --primary-dark: hsl(182, 96%, 19%); /* #025f62 */
  --accent: hsl(178, 81%, 43%); /* #15c6bd */
  
  --dark: hsl(191, 53%, 9%); /* #0b1f24 */
  --text: hsl(191, 53%, 9%);
  --muted: hsl(215, 15%, 47%); /* #64748b */
  --page: hsl(0, 0%, 100%);
  --soft: hsl(180, 43%, 97%); /* #f4fbfb */
  
  /* Glassmorphism Variables - Light Theme */
  --card: rgba(255, 255, 255, 0.72);
  --input: rgba(251, 255, 255, 0.85);
  --border: rgba(3, 131, 135, 0.12);
  --shadow: 0 20px 60px rgba(2, 95, 98, 0.08);
  --radius: 24px;
  --logo-filter: drop-shadow(0 8px 20px rgba(3, 131, 135, 0.16));
  
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
}

body.dark-mode {
  /* HSL Tailored Brand Colors - Premium Sleek Dark Theme */
  --text: hsl(180, 43%, 94%); /* #eafafa */
  --muted: hsl(189, 20%, 68%); /* #9fb8bd */
  --page: hsl(191, 67%, 7%); /* #05161b */
  --soft: hsl(191, 60%, 11%); /* #0b272d */
  
  /* Glassmorphism Variables - Dark Theme */
  --card: rgba(13, 37, 43, 0.65);
  --input: rgba(16, 47, 54, 0.75);
  --border: rgba(21, 198, 189, 0.18);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --logo-filter: drop-shadow(0 12px 30px rgba(21, 198, 189, 0.25));
  
  --glass-bg: rgba(7, 27, 32, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* Reset and Global Settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  font-family: 'Inter', 'Cairo', sans-serif;
  background: radial-gradient(circle at 80% 20%, var(--soft) 0%, var(--page) 100%);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RTL (Arabic Layout) Adjustments */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(3, 131, 135, 0.4);
  outline-offset: 3px;
}

/* Skip to Content accessibility link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 4000;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Top Progress Bar indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  z-index: 2200;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(21, 198, 189, 0.6);
  transition: width 0.12s linear;
  border-radius: 0 2px 2px 0;
  animation: progressShimmer 3s linear infinite;
}

@keyframes progressShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, var(--soft), var(--page));
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

body.loaded .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-core {
  display: grid;
  gap: 20px;
  place-items: center;
  text-align: center;
}

.motion-logo {
  width: 90px;
  height: 90px;
  position: relative;
  display: grid;
  place-items: center;
  filter: var(--logo-filter);
}

.motion-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.loader-line {
  width: 200px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(3, 131, 135, 0.1);
  position: relative;
}

.loader-line span {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
  animation: loaderSweep 1.5s ease-in-out infinite;
}

.logo-meaning {
  min-height: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.dark-mode .logo-meaning {
  color: var(--accent);
}

/* Watermark Decorative Background */
.watermark-logo {
  position: fixed;
  right: -80px;
  top: 15vh;
  width: min(40vw, 420px);
  opacity: 0.035;
  z-index: -1;
  pointer-events: none;
  filter: grayscale(1);
  animation: watermarkDrift 25s ease-in-out infinite;
}

html[dir="rtl"] .watermark-logo {
  right: auto;
  left: -80px;
}

body.dark-mode .watermark-logo {
  opacity: 0.055;
  filter: invert(1) brightness(0.7);
}

/* ---- Mobile Nav Backdrop Overlay ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 989;
  background: rgba(0, 10, 14, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* ---- Mobile Nav Panel Header ---- */
.nav-panel-header {
  display: none;
}

/* ---- Nav Close Button (inside panel) ---- */
.nav-close-btn {
  display: none;
}

/* ---- Language / Theme buttons ---- */
.lang-btn {
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.theme-btn {
  gap: 4px;
}

/* brand-text helper */
.brand-text {
  display: inline;
}

/* Premium Top Navigation Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 8px 32px rgba(0, 20, 24, 0.07);
}

body.dark-mode .topbar.scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 26px;
  color: var(--primary);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  filter: var(--logo-filter);
  position: relative;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 12px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(3, 131, 135, 0.06);
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
  color: var(--accent);
  background: rgba(21, 198, 189, 0.08);
}

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

/* Responsive Mobile Toggle Button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  place-items: center;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: var(--soft);
}

.menu-toggle span,
.menu-toggle:before,
.menu-toggle:after {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  position: absolute;
}

.menu-toggle:before {
  transform: translateY(-6px);
}

.menu-toggle:after {
  transform: translateY(6px);
}

body.menu-open .menu-toggle span {
  opacity: 0;
}

body.menu-open .menu-toggle:before {
  transform: rotate(45deg);
}

body.menu-open .menu-toggle:after {
  transform: rotate(-45deg);
}

/* Premium Buttons */
.btn,
.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.25s ease, 
              background-color 0.25s ease, 
              color 0.25s ease, 
              border-color 0.25s ease;
}

.toggle-btn {
  background: var(--card);
  color: var(--primary);
  border-color: var(--border);
  padding: 12px 18px;
}

body.dark-mode .toggle-btn {
  color: var(--accent);
}

.toggle-btn:hover {
  transform: translateY(-2px);
  background: var(--soft);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(3, 131, 135, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 40px rgba(3, 131, 135, 0.25);
}

.btn-outline {
  background: var(--card);
  color: var(--primary);
  border: 1px solid var(--border);
}

body.dark-mode .btn-outline {
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

.btn-white-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section with Flowing Mesh Background
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.hero-mesh::before {
  content: "";
  position: absolute;
  inset: -150px -100px auto auto;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(21, 198, 189, 0.16), transparent 70%);
  animation: meshDrift1 20s ease-in-out infinite alternate;
}

.hero-mesh::after {
  content: "";
  position: absolute;
  left: -150px;
  bottom: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(3, 131, 135, 0.12), transparent 70%);
  animation: meshDrift2 24s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(3, 131, 135, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

body.dark-mode .badge {
  background: rgba(21, 198, 189, 0.1);
  color: var(--accent);
}

h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Statistics Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(3, 131, 135, 0.08);
}

.stat strong {
  display: block;
  font-size: 30px;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 4px;
}

body.dark-mode .stat strong {
  color: var(--accent);
}

.stat span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Visual Dashboard Representation (Right Side of Hero) */
.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.dashboard-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: 0 35px 80px rgba(2, 95, 98, 0.15);
}

body.dark-mode .dashboard-card:hover {
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.dot:nth-child(2) {
  background: #ffbd2e;
}

.dot:nth-child(3) {
  background: #27c93f;
}

.dash-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.dark-mode .dash-title {
  color: var(--accent);
}

.panel {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  left: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.panel h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.panel p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mini:hover {
  border-color: rgba(3, 131, 135, 0.35);
  transform: translateY(-2px);
}

body.dark-mode .mini:hover {
  border-color: rgba(21, 198, 189, 0.45);
}

.mini b {
  display: block;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 4px;
}

body.dark-mode .mini b {
  color: var(--accent);
}

.mini span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   Section Core Headings & Common UI Elements
   ========================================================================== */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(3, 131, 135, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(3, 131, 135, 0.15);
}

body.dark-mode .section-label {
  color: var(--accent);
  background: rgba(21, 198, 189, 0.08);
  border-color: rgba(21, 198, 189, 0.18);
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-head p {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 720px;
  margin: auto;
  line-height: 1.7;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 131, 135, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(3, 131, 135, 0.25);
  box-shadow: 0 25px 50px rgba(2, 95, 98, 0.1);
}

body.dark-mode .card:hover {
  border-color: rgba(21, 198, 189, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.card:hover::after {
  opacity: 1;
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(3, 131, 135, 0.1), rgba(21, 198, 189, 0.05));
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .icon {
  transform: scale(1.1) rotate(-5deg);
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.service-card {
  padding: 0;
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(3, 131, 135, 0.08), rgba(21, 198, 189, 0.04));
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-chip {
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px rgba(8, 23, 30, 0.12);
}

.service-body {
  padding: 24px 26px 28px;
}

.service-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.service-body p {
  margin: 0;
}

/* ==========================================================================
   About Section & PMS layouts (Translucent Wrappers)
   ========================================================================== */
.about-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.about-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 28px;
  padding: 40px;
  color: #fff;
  box-shadow: 0 15px 40px rgba(2, 95, 98, 0.15);
}

.about-box h3 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
}

.about-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.75;
}

.checks {
  display: grid;
  gap: 16px;
}

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--input);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.check:hover {
  transform: translateX(6px);
  border-color: rgba(3, 131, 135, 0.25);
}

html[dir="rtl"] .check:hover {
  transform: translateX(-6px);
}

.check span:first-child {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.check span:last-child {
  line-height: 1.5;
  font-size: 14.5px;
}

/* ==========================================================================
   Works / Portfolio Section with Dynamic Filters
   ========================================================================== */
.works-filters {
  display: flex;
  gap: 10px;
  margin: 0 auto 36px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.filter-btn:hover {
  border-color: var(--primary);
  background: rgba(3, 131, 135, 0.05);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(3, 131, 135, 0.2);
}

body.dark-mode .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(21, 198, 189, 0.3);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 131, 135, 0.04), rgba(21, 198, 189, 0.04));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 55px rgba(3, 131, 135, 0.12);
}

body.dark-mode .work-card:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.4);
}

.work-card:hover::before {
  opacity: 1;
}

.work-card > * {
  position: relative;
  z-index: 1;
}

.work-icon {
  font-size: 38px;
  margin-bottom: 16px;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-card:hover .work-icon {
  transform: scale(1.15) rotate(8deg);
}

.work-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  transition: color 0.25s ease;
}

body.dark-mode .work-card h3 {
  color: var(--accent);
}

.work-card:hover h3 {
  color: var(--accent);
}

body.dark-mode .work-card:hover h3 {
  color: #fff;
}

.work-domain {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  font-family: monospace;
  opacity: 0.8;
}

.work-tag {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(3, 131, 135, 0.08);
  color: var(--primary-dark);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

body.dark-mode .work-tag {
  background: rgba(21, 198, 189, 0.1);
  color: var(--accent);
}

.work-card:hover .work-tag {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

body.dark-mode .work-card:hover .work-tag {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.work-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.25s ease;
}

.work-card:hover .work-desc {
  color: var(--text);
}

/* ==========================================================================
   Pricing Section UI
   ========================================================================== */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 30px;
  position: relative;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
}

.price-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

body.dark-mode .price-card.featured {
  border-color: var(--accent);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

html[dir="rtl"] .tag {
  right: auto;
  left: 20px;
}

body.dark-mode .tag {
  background: var(--accent);
  color: var(--dark);
}

.price-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin: 20px 0;
}

body.dark-mode .price {
  color: var(--accent);
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}

.price-card li {
  font-size: 14.5px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-card li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

body.dark-mode .price-card li::before {
  color: var(--accent);
}

/* ==========================================================================
   Call To Action (CTA) Section
   ========================================================================== */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 36px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(2, 95, 98, 0.15);
}

.cta::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta .btn {
  background: #fff;
  color: var(--primary-dark);
}

.cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Contact Layout & Secure Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.contact-card h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.contact-item:last-child {
  border-bottom: 0;
}

/* Form Styling */
form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--input);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(3, 131, 135, 0.1);
  background: var(--card);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 198, 189, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

::placeholder {
  color: rgba(138, 160, 165, 0.8);
}

/* Message / feedback styling on form submit */
.form-message,
.form-feedback {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  display: none;
  animation: slideUp 0.3s ease;
}

.form-message.success,
.form-feedback.success {
  background: rgba(3, 131, 135, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(3, 131, 135, 0.25);
  display: block;
}

body.dark-mode .form-message.success,
body.dark-mode .form-feedback.success {
  color: #a7ffd2;
  border-color: rgba(21, 198, 189, 0.3);
  background: rgba(21, 198, 189, 0.08);
}

.form-message.error,
.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: block;
}

body.dark-mode .form-message.error,
body.dark-mode .form-feedback.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

/* Invisible honeypot styling */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ==========================================================================
   FAQ Accordion System
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: rgba(3, 131, 135, 0.35);
  box-shadow: 0 10px 30px rgba(3, 131, 135, 0.06);
}

body.dark-mode .faq-item.open {
  border-color: rgba(21, 198, 189, 0.4);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease;
}

html[dir="rtl"] .faq-btn {
  text-align: right;
}

.faq-btn:hover,
.faq-item.open .faq-btn {
  color: var(--primary);
}

body.dark-mode .faq-btn:hover,
body.dark-mode .faq-item.open .faq-btn {
  color: var(--accent);
}

.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 0.25s ease, 
              border-color 0.25s ease, 
              color 0.25s ease;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.dark-mode .faq-item.open .faq-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-body {
  max-height: 320px;
}

.faq-body p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ==========================================================================
   Back To Top & Floating Contacts
   ========================================================================== */
.whatsapp {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  z-index: 999;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[dir="rtl"] .whatsapp {
  left: auto;
  right: 24px;
}

.whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
  z-index: 998;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.3s ease, 
              visibility 0.3s ease, 
              border-color 0.2s ease;
}

html[dir="rtl"] .back-top {
  right: auto;
  left: 24px;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(3, 131, 135, 0.2);
}

body.dark-mode .back-top {
  color: var(--accent);
}

body.dark-mode .back-top:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(21, 198, 189, 0.22);
}

/* ==========================================================================
   Multi-Column Footer Layout — Always-Dark Premium Design
   ========================================================================== */

/* --- Footer CTA row --- */
.footer-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(3, 131, 135, 0.18), rgba(21, 198, 189, 0.08));
  border: 1px solid rgba(21, 198, 189, 0.18);
  border-radius: 20px;
  margin-bottom: 50px;
}

.footer-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-cta-text strong {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.footer-cta-text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Gradient separator line at top of footer --- */
.footer-rule {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 20%,
    var(--accent) 50%,
    var(--primary) 80%,
    transparent 100%
  );
  margin-bottom: 0;
}

footer {
  background: linear-gradient(180deg, hsl(191, 65%, 7%) 0%, hsl(191, 68%, 5%) 100%);
  border-top: none;
  padding: 60px 0 30px;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  position: relative;
}

html[dir="rtl"] footer {
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 0.9fr;
  gap: 44px;
  margin-bottom: 40px;
}

.footer-col {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 300px;
}

/* Social links row inside brand col */
.footer-social-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a svg {
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

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

.footer-links a:hover svg {
  opacity: 1;
}

html[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

/* Catalog link highlight */
.footer-catalog-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
  gap: 6px;
}

/* Address inside footer */
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
  line-height: 1.6;
  margin-top: 4px;
}

.footer-address svg {
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Legal links inside footer col */
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.footer-legal-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-qr-wrap img {
  border-radius: 10px;
  border: 2px solid rgba(3, 131, 135, 0.35);
  background: #fff;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.footer-qr-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  line-height: 1.5;
  max-width: 130px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(3, 131, 135, 0.25);
  border-color: transparent;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover svg {
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* Individual Social Platform Colors */
.social-link.linkedin:hover::before {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-link.facebook:hover::before {
  background: linear-gradient(135deg, #1877f2, #42b0ff);
}

.social-link.youtube:hover::before {
  background: linear-gradient(135deg, #ff0000, #ff4444);
}

.social-link.instagram:hover::before {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.twitter:hover::before {
  background: linear-gradient(135deg, #1da1f2, #4ec1ff);
}

body.dark-mode .social-link {
  background: var(--card);
}

body.dark-mode .social-link:hover {
  box-shadow: 0 8px 20px rgba(21, 198, 189, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-bottom-divider {
  opacity: 0.3;
}

.footer-made {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Override social-link styles for dark footer */
footer .social-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

footer .social-link:hover {
  box-shadow: 0 8px 20px rgba(21, 198, 189, 0.25);
  border-color: transparent;
}

footer .social-link:hover svg {
  color: #fff;
}

/* ---- PWA Install Button ---- */
.pwa-install-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  z-index: 997;
  box-shadow: 0 10px 30px rgba(3, 131, 135, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  animation: pwaSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

html[dir="rtl"] .pwa-install-btn {
  right: auto;
  left: 24px;
}

.pwa-install-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(3, 131, 135, 0.45);
}

@keyframes pwaSlideIn {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ==========================================================================
   Services Catalog Section
   ========================================================================== */
.catalog-section {
  padding: 100px 0;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.catalog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(3,131,135,.06) 0%, transparent 70%);
  pointer-events: none;
}

.catalog-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Info column */
.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(3,131,135,.1);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(3,131,135,.2);
}

.catalog-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 14px;
}

.catalog-desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 480px;
}

.catalog-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.catalog-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--body);
}

.catalog-features li svg {
  flex-shrink: 0;
  color: var(--primary);
}

.catalog-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Visual column */
.catalog-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.catalog-mockup {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
}

/* Page mockup cards */
.mock-page {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,20,24,.14);
  flex-shrink: 0;
}

.mock-cover {
  width: 130px;
  background: #0b1f24;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mock-header-bar {
  background: #038387;
  height: 36px;
  flex-shrink: 0;
}

.mock-brand {
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  padding: 8px 0 2px;
}

.mock-tagline {
  height: 5px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  margin: 4px 14px;
}

.mock-rule {
  height: 2px;
  background: #15c6bd;
  width: 30px;
  margin: 5px auto;
  border-radius: 1px;
}

.mock-title-block {
  height: 8px;
  background: rgba(255,255,255,.3);
  border-radius: 3px;
  margin: 3px 10px 8px;
}

.mock-list {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mock-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-list-item span:first-child {
  width: 16px;
  height: 5px;
  background: #038387;
  border-radius: 3px;
  flex-shrink: 0;
}

.mock-list-item span:last-child {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,.25);
  border-radius: 3px;
}

.mock-footer-bar {
  background: #038387;
  height: 14px;
  margin-top: 10px;
}

/* Service page mockup */
.mock-service {
  width: 160px;
  background: white;
  display: flex;
  flex-direction: column;
}

body.dark-mode .mock-service { background: #1a2e34; }

.mock-svc-header {
  background: #038387;
  height: 16px;
  flex-shrink: 0;
}

.mock-svc-body {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-svc-top {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.mock-svc-text { flex: 1; position: relative; }

.mock-num {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6f7f7;
  border: 1.5px solid #038387;
  position: absolute;
  left: 0;
  top: 0;
}

.mock-svc-title {
  height: 7px;
  background: #0b1f24;
  border-radius: 3px;
  margin-bottom: 4px;
  margin-left: 18px;
  opacity: .7;
}

body.dark-mode .mock-svc-title { background: rgba(255,255,255,.6); }

.mock-svc-sub {
  height: 4px;
  background: #64748b;
  border-radius: 2px;
  width: 70%;
  margin-bottom: 5px;
  margin-left: 18px;
  opacity: .4;
}

.mock-svc-desc {
  height: 3px;
  background: #64748b;
  border-radius: 1.5px;
  margin-bottom: 3px;
  opacity: .3;
}

.mock-svc-desc.short { width: 70%; }

.mock-svc-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6f7f7;
  border: 1.5px solid #038387;
  flex-shrink: 0;
}

.mock-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.mock-feat {
  height: 14px;
  background: #e6f7f7;
  border-radius: 3px;
}

.mock-illus {
  flex: 1;
  min-height: 30px;
  background: #e6f7f7;
  border-radius: 4px;
}

.mock-svc-footer {
  height: 22px;
  background: #f4fbfb;
  border-top: 2px solid #038387;
  flex-shrink: 0;
}

/* QR card */
.catalog-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.catalog-qr-card img {
  border-radius: 6px;
  display: block;
}

.catalog-qr-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* Nav: catalog link */
.nav-catalog-link {
  background: rgba(3,131,135,.08);
  color: var(--primary) !important;
  border: 1px solid rgba(3,131,135,.2);
  font-weight: 800 !important;
}

.nav-catalog-link:hover,
.nav-catalog-link.active {
  background: rgba(3,131,135,.15) !important;
}

/* Nav: mobile footer (social + QR) — shown only in mobile menu */
.nav-mobile-footer {
  display: none;
}

/* Nav: compact — one row, no wrapping */
.nav-links {
  font-size: 13px;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 6px 9px;
  white-space: nowrap;
}

/* ==========================================================================
   Google Reviews Section
   ========================================================================== */
.reviews-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--soft) 0%, var(--page) 50%, var(--soft) 100%);
}

.reviews-bg-decoration {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  z-index: 0;
  background: radial-gradient(circle, rgba(3, 131, 135, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: reviewsFloat 15s ease-in-out infinite;
}

body.dark-mode .reviews-bg-decoration {
  background: radial-gradient(circle, rgba(21, 198, 189, 0.15) 0%, transparent 70%);
}

@keyframes reviewsFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

.reviews-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.reviews-content {
  max-width: 560px;
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.reviews-badge svg {
  color: #FFA000;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.reviews-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.reviews-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.reviews-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 12px 30px rgba(3, 131, 135, 0.25);
}

.reviews-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(3, 131, 135, 0.35);
}

.reviews-btn svg {
  transition: transform 0.3s ease;
}

.reviews-btn:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .reviews-btn:hover svg {
  transform: translateX(-3px);
}

.reviews-platform-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.reviews-platform-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  transition: all 0.2s ease;
}

.reviews-platform-link a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.reviews-platform-link svg {
  width: 18px;
  height: 18px;
}

/* QR Code Card */
.reviews-qr-card {
  position: relative;
  perspective: 1000px;
}

.qr-card-inner {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow), 0 0 60px rgba(3, 131, 135, 0.12);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: qrCardFloat 6s ease-in-out infinite;
}

@keyframes qrCardFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-12px) rotateX(2deg) rotateY(-2deg); }
}

.qr-card-inner:hover {
  transform: translateY(-8px) rotateX(-3deg) rotateY(3deg);
  box-shadow: var(--shadow), 0 0 80px rgba(3, 131, 135, 0.25);
}

html[dir="rtl"] .qr-card-inner:hover {
  transform: translateY(-8px) rotateX(-3deg) rotateY(-3deg);
}

.qr-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(21, 198, 189, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: qrGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes qrGlowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.qr-header {
  text-align: center;
  margin-bottom: 24px;
}

.google-icon {
  display: inline-flex;
  margin-bottom: 16px;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.qr-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.qr-code-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qr-code-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

.qr-scanner-line {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: qrScannerSlide 3s ease-in-out infinite;
  z-index: 3;
  opacity: 0.7;
}

@keyframes qrScannerSlide {
  0%, 100% { top: 20px; }
  50% { top: calc(100% - 20px); }
}

.qr-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.qr-footer svg {
  color: var(--primary);
  flex-shrink: 0;
}

.qr-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

/* Floating Stars Animation */
.floating-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: starFloat 4s ease-in-out infinite;
}

.star-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.star-2 {
  top: 20%;
  right: 10%;
  animation-delay: 0.8s;
}

.star-3 {
  top: 60%;
  left: 8%;
  animation-delay: 1.6s;
}

.star-4 {
  top: 70%;
  right: 5%;
  animation-delay: 2.4s;
}

.star-5 {
  top: 40%;
  right: 15%;
  animation-delay: 3.2s;
}

@keyframes starFloat {
  0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.5); }
  10%, 90% { opacity: 1; }
  50% { transform: translateY(-30px) rotate(180deg) scale(1); }
}

/* Google Maps Location Section in Reviews */
.location-map-section {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  max-width: 100%;
}

.map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--primary);
}

.map-header svg {
  flex-shrink: 0;
}

.map-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.map-address {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(3, 131, 135, 0.15);
  border: 2px solid var(--border);
  background: var(--card);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.map-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 60px rgba(3, 131, 135, 0.25);
  border-color: var(--primary);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  border-radius: 22px;
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
  filter: grayscale(0) contrast(1.1);
}

.map-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-outline-primary,
.btn-outline-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.btn-outline-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3, 131, 135, 0.25);
}

.btn-outline-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 198, 189, 0.25);
}

.btn-outline-primary svg,
.btn-outline-secondary svg {
  transition: transform 0.3s ease;
}

.btn-outline-primary:hover svg,
.btn-outline-secondary:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .btn-outline-primary:hover svg,
html[dir="rtl"] .btn-outline-secondary:hover svg {
  transform: translateX(-3px);
}

/* Google Maps in Contact Page */
.contact-location-map {
  margin: 40px 0 50px 0;
}

.map-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(3, 131, 135, 0.18);
  border-color: var(--primary);
}

.map-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--soft) 0%, var(--page) 100%);
  border-bottom: 1px solid var(--border);
}

.map-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(3, 131, 135, 0.3);
}

.map-icon svg {
  animation: mapPinBounce 2s ease-in-out infinite;
}

@keyframes mapPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.map-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px 0;
}

.map-text p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.map-embed {
  position: relative;
  width: 100%;
  background: #f0f0f0;
}

.map-embed iframe {
  display: block;
  width: 100%;
  filter: grayscale(0.15) contrast(1.05);
  transition: filter 0.3s ease;
}

.map-card:hover .map-embed iframe {
  filter: grayscale(0) contrast(1.1);
}

.map-link {
  padding: 20px 32px;
  background: var(--soft);
  border-top: 1px solid var(--border);
  text-align: center;
}

.map-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.map-link a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.map-link svg {
  transition: transform 0.3s ease;
}

.map-link a:hover svg {
  transform: translate(2px, -2px);
}

html[dir="rtl"] .map-link a:hover svg {
  transform: translate(-2px, -2px);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes loaderOrbit {
  to { transform: rotate(360deg); }
}

@keyframes loaderSweep {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(60%); }
  100% { transform: translateX(210%); }
}

@keyframes watermarkDrift {
  0%, 100% { transform: translate3d(0,0,0) rotate(-6deg) scale(1); }
  50% { transform: translate3d(30px, 20px, 0) rotate(-3deg) scale(1.05); }
}

@keyframes meshDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes meshDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.08); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal class configurations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.sd-1 { transition-delay: 0.1s; }
.sd-2 { transition-delay: 0.2s; }
.sd-3 { transition-delay: 0.3s; }
.sd-4 { transition-delay: 0.4s; }
.sd-5 { transition-delay: 0.5s; }
.sd-6 { transition-delay: 0.6s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media(max-width: 1020px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-cta-row {
    padding: 22px 24px;
  }
}

@media(max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  footer {
    padding: 48px 0 24px;
  }

  .footer-cta-row {
    margin-bottom: 36px;
  }
}

@media(max-width: 980px) {
  .catalog-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .catalog-visual {
    order: -1;
  }

  /* ---- Mobile Nav Overlay ---- */
  .nav-overlay {
    display: block;
  }

  body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* ---- Topbar layout ---- */
  .nav {
    padding: 14px 0;
    position: relative;
  }

  .menu-toggle {
    display: grid;
  }

  /* ---- Side Panel: nav-links ---- */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--page);
    border: none;
    border-left: 1px solid var(--border);
    box-shadow: -14px 0 50px rgba(0, 16, 20, 0.22);
    padding: 0 14px 32px;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.38s;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 990;
    visibility: hidden;
    /* Reset desktop styles */
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border-top: none;
  }

  html[dir="rtl"] .nav-links {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border);
    box-shadow: 14px 0 50px rgba(0, 16, 20, 0.22);
    transform: translateX(-110%);
  }

  body.dark-mode .nav-links {
    background: hsl(191, 67%, 6%);
    border-color: rgba(21, 198, 189, 0.12);
  }

  body.menu-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  /* ---- Panel header (brand + close btn) ---- */
  .nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .nav-close-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
  }

  .nav-close-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
    transform: rotate(90deg);
  }

  /* ---- Nav link items (panel) ---- */
  .nav-links a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(3, 131, 135, 0.07);
    color: var(--primary);
  }

  body.dark-mode .nav-links a:hover,
  body.dark-mode .nav-links a.active {
    background: rgba(21, 198, 189, 0.09);
    color: var(--accent);
  }

  /* ---- Mobile footer inside panel (social + QR) ---- */
  .nav-mobile-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 16px 4px 4px;
    flex-shrink: 0;
  }

  .nav-mobile-qr {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .nav-mobile-qr img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    display: block;
  }

  .nav-mobile-qr span {
    font-size: 9px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
  }

  .nav-mobile-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-mobile-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0;
  }

  .nav-mobile-social {
    display: grid;
    grid-template-columns: repeat(2, 40px);
    grid-template-rows: repeat(2, 40px);
    gap: 8px;
  }

  .nav-mobile-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: color .2s, background .2s;
  }

  .nav-mobile-social a:hover {
    color: var(--primary);
    background: rgba(3, 131, 135, .1);
  }

  /* ---- Nav Actions ---- */
  .nav-actions {
    gap: 8px;
  }

  .nav-cta-btn {
    display: none;
  }

  .theme-text {
    display: none;
  }
  
  .hero-grid,
  .about-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .reviews-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .reviews-section {
    padding: 60px 0;
  }
  
  .reviews-content {
    max-width: 100%;
  }
  
  .qr-card-inner {
    padding: 30px;
  }
  
  .services,
  .packages {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .price-card.featured {
    transform: none !important;
  }
  
  .hero {
    padding-top: 60px;
  }
  
  .cta {
    padding: 44px 24px;
  }
  
  .mini-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Center every footer column on mobile */
  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-col h4 {
    text-align: center;
    width: 100%;
  }

  .footer-brand-row {
    justify-content: center;
    margin-bottom: 4px;
  }

  .footer-desc {
    max-width: 320px;
    text-align: center;
    margin: 0 auto;
  }

  .footer-social-mini {
    justify-content: center;
    gap: 12px;
  }

  /* Nav links centered on mobile */
  .footer-links {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-links a:hover,
  html[dir="rtl"] .footer-links a:hover {
    transform: translateY(-2px);
  }

  /* Address centered */
  .footer-address {
    justify-content: center;
    text-align: center;
    max-width: 280px;
    margin: 0 auto;
  }

  /* QR code centered */
  .footer-qr-wrap {
    align-items: center;
    margin: 0 auto;
  }

  .footer-qr-label {
    text-align: center;
  }

  .footer-legal-links {
    align-items: center;
  }

  /* CTA row centered */
  .footer-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }

  .footer-cta-text {
    align-items: center;
  }

  .footer-cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom-divider {
    display: none;
  }
  
  .back-top {
    right: 16px;
    bottom: 84px;
  }
  
  html[dir="rtl"] .back-top {
    left: 16px;
    bottom: 84px;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .cta-actions .btn,
  .cta-actions .btn-white-outline {
    width: 100%;
    justify-content: center;
  }
  
  .qr-code-wrapper {
    padding: 16px;
  }
  
  .qr-code-image {
    max-width: 240px;
  }
  
  .reviews-actions {
    flex-direction: column;
  }
  
  .reviews-btn {
    width: 100%;
    justify-content: center;
  }
  
  .map-actions {
    flex-direction: column;
  }
  
  .btn-outline-primary,
  .btn-outline-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .map-wrapper iframe,
  .map-embed iframe {
    height: 350px;
  }
}

@media(max-width: 560px) {
  .container {
    width: min(100% - 24px, 1200px);
  }
  
  .brand {
    font-size: 22px;
  }
  
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  
  .hero {
    padding: 40px 0 50px;
  }
  
  h1 {
    font-size: clamp(30px, 9vw, 40px);
  }
  
  .hero p,
  .section-head p {
    font-size: 15.5px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .dashboard-card,
  .about-wrap,
  .contact-card,
  .card {
    border-radius: 20px;
    padding: 24px 20px;
  }
  
  .whatsapp {
    width: 54px;
    height: 54px;
    bottom: 16px;
    left: 16px;
  }
  
  html[dir="rtl"] .whatsapp {
    right: 16px;
    left: auto;
  }
  
  .reviews-section {
    padding: 40px 0;
  }
  
  .qr-card-inner {
    padding: 24px 20px;
    border-radius: 24px;
  }
  
  .qr-code-image {
    max-width: 200px;
  }
  
  .reviews-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  
  .reviews-subtitle {
    font-size: 16px;
  }
  
  .reviews-desc {
    font-size: 14.5px;
  }
  
  .location-map-section {
    margin-top: 40px;
  }
  
  .map-header h3 {
    font-size: 19px;
  }
  
  .map-wrapper iframe,
  .map-embed iframe {
    height: 300px;
  }
  
  .map-info {
    padding: 20px 24px;
    flex-direction: column;
    text-align: center;
  }
  
  .map-link {
    padding: 16px 24px;
  }
  
  .contact-location-map {
    margin: 30px 0 40px 0;
  }
}

/* ==========================================================================
   560px — Extra small (smallest phones)
   ========================================================================== */
@media(max-width: 560px) {
  .pwa-install-btn {
    right: 16px;
    bottom: 90px;
    padding: 10px 16px;
    font-size: 12.5px;
  }

  html[dir="rtl"] .pwa-install-btn {
    left: 16px;
    right: auto;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */
@media(prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page-loader {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-mesh::before,
  .hero-mesh::after {
    animation: none !important;
  }

  .scroll-progress {
    animation: none !important;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .topbar,
  .whatsapp,
  .back-top,
  .pwa-install-btn,
  .scroll-progress,
  .page-loader,
  .watermark-logo,
  footer .footer-cta-row {
    display: none !important;
  }

  footer {
    background: #fff !important;
    color: #333 !important;
  }

  .footer-brand-row,
  .footer-links a,
  .footer-col h4 {
    color: #333 !important;
  }
}
