/*
Theme Name: Al Qassem Engineering
Theme URI: https://alqassem-eng.com
Author: Al Qassem Engineering Consultations
Author URI: https://alqassem-eng.com
Description: القاسم للإستشارات الهندسية — Custom WordPress theme for Al Qassem Engineering Consultations. Premium design with gold/navy color palette, RTL support, scroll animations, and responsive layout.
Version: 1.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alqassem
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, theme-options
*/

/* ============================================
   AL QASSEM ENGINEERING — Design System
   Color Palette Extracted from Logo:
     Gold/Amber: #b8860b → refined to #C4963C
     Silver/Steel: #8A8D8F → refined to #7B8794
     Dark Navy: #1A2332 (complementary text)
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors — from logo */
  --gold-primary: #C4963C;
  --gold-light: #D4AD5E;
  --gold-dark: #9A7530;
  --gold-gradient: linear-gradient(135deg, #D4AD5E 0%, #C4963C 40%, #9A7530 100%);

  --silver-primary: #7B8794;
  --silver-light: #A0AAB4;
  --silver-dark: #5C6670;

  /* Neutrals */
  --navy: #1A2332;
  --navy-light: #243044;
  --slate: #3A4A5C;
  --text-dark: #1E2A3A;
  --text-body: #4A5568;
  --text-muted: #7B8794;

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-off-white: #F8F9FA;
  --bg-cream: #FDF8F0;
  --bg-section-alt: #F4F1EB;

  /* Accents */
  --border-light: #E8E0D4;
  --border-gold: rgba(196, 150, 60, 0.25);
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 35, 50, 0.12);
  --shadow-gold: 0 4px 24px rgba(196, 150, 60, 0.2);

  /* Typography */
  --font-primary: 'Cairo', 'Tajawal', sans-serif;
  --font-heading: 'Cairo', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--text-body);
  background: var(--bg-white);
  direction: ltr;
  text-align: left;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Support for Arabic locale */
html[dir="rtl"] body,
body.rtl {
  direction: rtl;
  text-align: right;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utility: Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Titles ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-badge::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-header .section-badge::before {
  display: none;
}

.section-header .section-badge::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-fast);
}

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

.btn-primary {
  background: var(--gold-gradient);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(196, 150, 60, 0.35);
}

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

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

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border-light);
}

.btn-outline-dark:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-normal);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-logo img {
  height: 52px;
  width: auto;
  transition: var(--transition-normal);
}

.header.scrolled .header-logo img {
  height: 44px;
}

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

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a,
.nav-menu-list li a {
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.nav-menu a::after,
.nav-menu-list li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu-list li a:hover,
.nav-menu-list li.current-menu-item > a,
.nav-menu-list li.current-menu-ancestor > a {
  color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.nav-menu-list li a:hover::after,
.nav-menu-list li.current-menu-item > a::after,
.nav-menu-list li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.header.scrolled .nav-menu a,
.header.scrolled .nav-menu-list li a {
  color: var(--text-body);
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active,
.header.scrolled .nav-menu-list li a:hover,
.header.scrolled .nav-menu-list li.current-menu-item > a,
.header.scrolled .nav-menu-list li.current-menu-ancestor > a {
  color: var(--gold-primary);
}

/* ---------- Sub-Menu Desktop ---------- */
.nav-menu-list li.menu-item-has-children {
  position: relative;
  padding-left: 15px; /* arrow space (RTL) */
}

.submenu-toggle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform var(--transition-normal);
  cursor: pointer;
  z-index: 10;
}

.submenu-toggle:hover {
  color: var(--gold-primary);
}

.nav-menu-list ul.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  min-width: 220px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  z-index: 100;
  list-style: none;
  border: 1px solid rgba(0,0,0,0.05);
}

.nav-menu-list li.menu-item-has-children:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu-list ul.sub-menu li {
  display: block;
  width: 100%;
}

.nav-menu-list ul.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-menu-list ul.sub-menu li a::after {
  display: none !important;
}

.nav-menu-list ul.sub-menu li a:hover {
  background: var(--bg-off-white);
  color: var(--gold-primary) !important;
  padding-right: 25px; /* RTL nudge */
}

.header-cta .btn-primary {
  padding: 10px 24px;
  font-size: 0.88rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-normal);
}

.header.scrolled .mobile-menu-toggle span {
  background: var(--navy);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Overlay Backdrop */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav CTA */
.mobile-nav-cta {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Navigation Breakpoints */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span {
    background: var(--gold-primary) !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 85px 20px 40px;
    gap: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .nav-menu a,
  .nav-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 16px;
    font-size: 1.02rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
  }

  .nav-menu a::after,
  .nav-menu-list li a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu a.active,
  .nav-menu-list li a:hover,
  .nav-menu-list li.current-menu-item > a {
    background: rgba(196, 150, 60, 0.18);
    color: var(--gold-light) !important;
    padding-right: 22px;
  }

  .header.scrolled .nav-menu a,
  .header.scrolled .nav-menu-list li a {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .mobile-nav-cta {
    display: block;
  }

  /* ---------- Sub-Menu Mobile ---------- */
  .nav-menu-list li.menu-item-has-children {
    padding-left: 0;
    position: relative;
  }
  
  .nav-menu-list li.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 45px; /* space for the arrow */
  }
  
  .submenu-toggle {
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 52px; /* Approx height of mobile link */
    font-size: 0.85rem;
  }
  
  .nav-menu-list li.menu-item-has-children.open .submenu-toggle {
    transform: rotate(180deg);
  }
  
  .nav-menu-list ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .nav-menu-list li.menu-item-has-children.open > ul.sub-menu {
    max-height: 600px;
  }
  
  .nav-menu-list ul.sub-menu li a {
    color: rgba(255,255,255,0.7) !important;
    padding: 12px 25px 12px 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    background: transparent;
  }
  
  .nav-menu-list ul.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    padding-right: 25px;
  }
}

@media (max-width: 576px) {
  .header-cta {
    display: none;
  }

  .header-logo img {
    height: 42px;
  }

  .header.scrolled .header-logo img {
    height: 38px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(26, 35, 50, 0.75) 0%,
      rgba(26, 35, 50, 0.6) 40%,
      rgba(26, 35, 50, 0.82) 100%);
  z-index: 1;
}

/* Decorative gold line */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gold-gradient);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(196, 150, 60, 0.15);
  border: 1px solid rgba(196, 150, 60, 0.3);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-light);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gold-light);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats bar at bottom of hero */
.hero-stats {
  position: absolute;
  bottom: 40px;
  right: 0;
  left: 0;
  z-index: 2;
}

.hero-stats .container {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
  background: var(--bg-white);
}

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

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
  transform: scale(1.03);
}

/* Gold decorative frame */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border-top: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) 0 0;
  z-index: 1;
}

/* Experience badge */
.about-exp-badge {
  position: absolute;
  bottom: -20px;
  left: 24px;
  background: var(--navy);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-exp-badge .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.about-exp-badge .label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.about-content {
  padding-right: 0;
}

.about-text {
  font-size: 1.02rem;
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-feature-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(196, 150, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-item .icon svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-primary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: var(--section-padding);
  background: var(--bg-cream);
  position: relative;
}

/* Subtle pattern overlay */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(196, 150, 60, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

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

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: var(--radius-md);
  background: rgba(196, 150, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gold-gradient);
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: var(--gold-primary);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon svg {
  fill: #fff;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PORTFOLIO / PROJECTS SECTION
   ============================================ */
.portfolio {
  padding: var(--section-padding);
  background: var(--bg-white);
}

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

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 30%,
      rgba(26, 35, 50, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

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

.portfolio-overlay h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  transform: translateY(12px);
  transition: transform var(--transition-normal);
}

.portfolio-overlay span {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
  transform: translateY(12px);
  transition: transform var(--transition-normal) 0.05s;
}

.portfolio-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay span {
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 2.6fr;
  gap: 35px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-services-col {
  grid-column: span 1;
}

.footer-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
}

html[dir="rtl"] .footer-title::after,
body.rtl .footer-title::after {
  left: auto;
  right: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition-fast);
}

html[dir="rtl"] .footer-links a::before,
body.rtl .footer-links a::before {
  content: '←';
  transform: translateX(8px);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

html[dir="rtl"] .footer-links a:hover,
body.rtl .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(196, 150, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item .icon svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-light);
}

.footer-contact-item .text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item .text strong {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.counter-animated {
  display: inline-block;
}

/* ============================================
   RESPONSIVE: Tablet (< 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-stats .container {
    gap: 40px;
  }
}

/* ============================================
   RESPONSIVE: Mobile (< 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  /* Header mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 40px;
    gap: 0;
    transition: right var(--transition-normal);
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-menu a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    padding-bottom: 120px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  .hero-stats .container {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    height: 300px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .portfolio-overlay {
    opacity: 1;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* ============================================
   RESPONSIVE: Small Mobile (< 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats .container {
    gap: 16px;
  }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ============================================
   NEW INDIVIDUAL STATS SECTION
   ============================================ */
.stats-section {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 150, 60, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 150, 60, 0.2);
  border-radius: var(--radius-lg);
  padding: 35px 24px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(196, 150, 60, 0.12);
  border: 1px solid rgba(196, 150, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.stat-card:hover .stat-icon {
  background: var(--gold-gradient);
  border-color: transparent;
  transform: scale(1.1);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold-light);
  transition: var(--transition-fast);
}

.stat-card:hover .stat-icon svg {
  fill: #fff;
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-card .stat-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-us {
  padding: var(--section-padding);
  background: var(--bg-off-white);
  position: relative;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.why-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(196, 150, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition-normal);
}

.why-card:hover .why-card-icon {
  background: var(--gold-gradient);
  transform: rotate(-5deg);
}

.why-card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--gold-primary);
  transition: var(--transition-fast);
}

.why-card:hover .why-card-icon svg {
  fill: #fff;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ============================================
   HOW WE WORK SECTION
   ============================================ */
.how-we-work {
  padding: var(--section-padding);
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-we-work .section-title {
  color: #fff;
}

.how-we-work .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.work-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Work step card for light backgrounds (sub-services pages) */
.work-step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.step-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}

.work-step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.work-step-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* Specific override for work-step-card inside dark background sections (.how-we-work) */
.how-we-work .work-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.how-we-work .work-step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-primary);
}

.how-we-work .work-step-card h3 {
  color: #fff;
}

.how-we-work .work-step-card p {
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   HOME SERVICES SECTION (12 Cards Grid)
   ============================================ */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.home-service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.home-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.home-service-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.home-service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-service-card:hover .home-service-img-wrapper img {
  transform: scale(1.08);
}

.home-service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.home-service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.home-service-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.home-service-btn {
  width: 100%;
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ============================================
   CONTACT & CTA SECTION
   ============================================ */
.contact-section {
  padding: var(--section-padding);
  background: var(--bg-cream);
  position: relative;
}

.contact-cta-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.contact-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.contact-cta-box h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.contact-cta-box p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.contact-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}

.btn-whatsapp:hover {
  background: #1ebc57;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(196, 150, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-primary);
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.contact-info-card a:hover {
  color: var(--gold-primary);
}

/* ============================================
   RESPONSIVE MODIFICATIONS FOR NEW SECTIONS
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .work-steps-grid {
    grid-template-columns: 1fr;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta-box {
    padding: 35px 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SUB-SERVICES & ARCHIVE DETAIL PAGE STYLES (GOLD & NAVY)
   ============================================ */

/* SVG Default Safety */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* Page Hero (Services Archive) */
.page-hero {
  position: relative;
  padding: 150px 0 60px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  border-bottom: 3px solid var(--gold-primary);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 150, 60, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 150, 60, 0.15);
  border: 1px solid rgba(196, 150, 60, 0.4);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.page-hero .hero-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Service Card Feature Lists & Quotes */
.service-quote-box {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(196, 150, 60, 0.08);
  border-right: 3px solid var(--gold-primary);
  padding: 8px 14px;
  border-radius: 4px;
  margin: 12px 0;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.service-feature-item svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 2.2;
}

/* Sub-service Detail Hero */
.sub-service-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 0 80px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-bottom: 4px solid var(--gold-primary);
}

.sub-service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sub-service-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sub-service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(26, 35, 50, 0.92) 0%,
      rgba(26, 35, 50, 0.82) 50%,
      rgba(26, 35, 50, 0.96) 100%);
  z-index: 1;
}

.sub-service-hero .hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.sub-service-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 18px;
}

.sub-service-quote-box {
  display: inline-block;
  background: rgba(196, 150, 60, 0.15);
  border: 1px solid rgba(196, 150, 60, 0.4);
  color: var(--gold-light);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.service-overview-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 45px 40px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

.service-overview-text {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-body);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.faq-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-right: 4px solid var(--gold-primary);
}

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

.faq-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-card h3::before {
  content: '؟';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196, 150, 60, 0.12);
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.sub-service-cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  text-align: center;
  margin: 50px 0 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.sub-service-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.sub-service-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.sub-service-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .service-overview-card {
    padding: 30px 20px;
  }

  .sub-service-cta {
    padding: 35px 20px;
  }
}

/* ============================================
   SUB-SERVICE HERO SECTION WITH DARK OVERLAY
   ============================================ */
.sub-service-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 150px 0 90px;
  overflow: hidden;
  background: var(--navy);
  color: #ffffff;
  width: 100%;
}

.sub-service-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sub-service-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sub-service-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 35, 50, 0.92) 100%);
  z-index: 2;
}

.sub-service-hero .hero-content-wrapper {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub-service-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 150, 60, 0.2);
  border: 1px solid rgba(196, 150, 60, 0.45);
  color: #D4AD5E;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.sub-service-hero .hero-badge svg {
  width: 18px;
  height: 18px;
  fill: #D4AD5E;
}

.sub-service-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.sub-service-quote-box {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: #D4AD5E;
  font-style: italic;
  margin: 0 auto 32px;
  background: rgba(255, 255, 255, 0.07);
  border-right: 4px solid #C4963C;
  padding: 12px 24px;
  border-radius: 0 10px 10px 0;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.sub-service-hero .hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.sub-service-hero .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sub-service-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px);
}

/* General Page Hero */
.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #ffffff;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .sub-service-hero {
    padding: 130px 0 60px;
    min-height: auto;
  }
}