/* ==========================================================================
   Aman B2B Facility Services - Core CSS Design System
   ========================================================================== */

/* 1. Cascade Layers */
@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
  }

  ul, ol {
    list-style: none;
  }

  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
  }
}

@layer theme {
  :root {
    /* Design Tokens - Palette Refinement */
    --brand-blue: #0A1128; /* Deep Midnight Navy */
    --brand-green: #10B981; /* Emerald/Neon Green */
    --brand-gold: #D4AF37; /* Champagne Gold */
    --brand-green-light: #edfdf7;
    --brand-blue-light: #f0f4fa;
    --brand-navy-dark: #0A1128;
    --brand-navy-medium: #1C2541;
    
    /* Semantic Colors */
    --color-primary: var(--brand-blue);
    --color-secondary: var(--brand-green);
    --color-accent: var(--brand-gold);
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    
    /* Dynamic font sizes via clamp */
    --fs-hero-title: clamp(2.4rem, 1rem + 6vw, 4.5rem);
    --fs-section-title: clamp(2rem, 1rem + 4vw, 3rem);
    --fs-body: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(10, 17, 40, 0.05), 0 2px 4px -2px rgba(10, 17, 40, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(10, 17, 40, 0.08), 0 4px 6px -4px rgba(10, 17, 40, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(10, 17, 40, 0.1), 0 8px 10px -6px rgba(10, 17, 40, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(10, 17, 40, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions - Elegant Cubic Bezier */
    --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Support RTL Arabic Localizations cleanly with premium Cairo/Tajawal fonts */
  [dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
  }
  
  [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
  }
}

@layer base {
  .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-blue);
  }

  .section-padding {
    padding-block: clamp(4rem, 2rem + 6vw, 7rem);
  }

  .bg-light {
    background-color: var(--color-bg-alt);
  }

  /* Accessibility custom focus indicators */
  *:focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: 4px;
  }
}

@layer components {
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
  }

  .btn-primary {
    background-color: var(--brand-blue);
    color: var(--color-white);
  }
  .btn-primary:hover {
    background-color: #0b3d75;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-secondary {
    background-color: var(--brand-green);
    color: var(--color-white);
  }
  .btn-secondary:hover {
    background-color: #448b29;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
  }

  .btn-block {
    display: flex;
    width: 100%;
  }

  /* Glassmorphism Cards */
  .glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
  }

  /* Top bar */
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    background-color: var(--brand-blue);
    color: var(--color-white);
    font-size: 0.85rem;
    padding-block: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .top-info {
    display: flex;
    gap: 1.5rem;
  }

  .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Header Navigation */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100px;
    display: flex;
    align-items: center;
  }

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

  /* Transitions for branding elements inside site-header to enable smooth shrinking */
  .site-header .custom-logo-link img.custom-logo,
  .site-header .logo-wrapper,
  .site-header .logo-wrapper svg,
  .site-header .logo-text {
    transition: var(--transition-smooth);
  }

  /* Native CSS Scroll-Driven Header Shrinking Animation */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink-header {
      to {
        height: 72px;
        background-color: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: var(--shadow-md);
      }
    }
    .site-header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }

    @keyframes shrink-logo {
      to {
        transform: scale(0.8);
      }
    }
    .site-header .custom-logo-link img.custom-logo,
    .site-header .logo-wrapper {
      animation: shrink-logo auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
      transform-origin: left center;
    }
    [dir="rtl"] .site-header .custom-logo-link img.custom-logo,
    [dir="rtl"] .site-header .logo-wrapper {
      transform-origin: right center;
    }
  }

  /* Brand Logo styling */
  .site-branding {
    margin-inline-start: 2rem;
    margin-inline-end: 2.5rem;
  }
  .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
  }
  
  .logo-text.green {
    color: var(--brand-green);
  }
  
  .logo-text.blue {
    color: var(--brand-blue);
  }

  .logo-graphic {
    display: flex;
    align-items: center;
  }

  /* Nav Menu */
  .main-navigation ul {
    display: flex;
    gap: 2.2rem;
  }

  .main-navigation li a {
    font-weight: 500;
    color: var(--color-text);
    padding-block: 0.5rem;
    position: relative;
    letter-spacing: -0.01em;
  }

  .main-navigation li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-green);
    transition: var(--transition-smooth);
  }

  .main-navigation li a:hover {
    color: var(--brand-green);
  }

  .main-navigation li a:hover::after {
    width: 100%;
  }

  /* Hero Section styling */
  .hero-section {
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, #ffffff 100%);
    padding-block: clamp(4rem, 2rem + 8vw, 8rem);
    position: relative;
    overflow: hidden;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 1.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(86, 169, 54, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hero-title {
    font-size: var(--fs-hero-title);
    margin-bottom: 1.5rem;
    color: var(--brand-blue);
  }

  .hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
  }

  .hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
  }

  .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-green);
  }

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

  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .visual-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .visual-gradient-accent {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(86, 169, 54, 0.2) 0%, rgba(17, 82, 154, 0.05) 70%);
    filter: blur(40px);
    z-index: 1;
  }

  .hero-img {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    border: 4px solid var(--color-white);
    transition: var(--transition-smooth);
  }

  .hero-img-1 {
    width: 230px;
    height: 345px;
    left: 20px;
    top: 20px;
    z-index: 2;
    transform: rotate(-4deg);
  }

  .hero-img-2 {
    width: 230px;
    height: 345px;
    right: 20px;
    bottom: 20px;
    z-index: 1;
    transform: rotate(4deg);
  }

  .hero-img:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 3;
  }

  .hero-box-card {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    transform: rotate(-2deg);
    transition: var(--transition-smooth);
  }

  .mini-floating-card {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    z-index: 4;
    max-width: 280px;
    padding: 1.5rem !important;
  }

  .hero-box-card:hover {
    transform: rotate(0) translateY(-5px);
  }

  .box-badge {
    background-color: var(--brand-blue);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .hero-box-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .hero-box-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
  }

  .badge-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
  }

  .badge-list span {
    color: var(--brand-green);
    font-weight: 800;
  }

  .mini-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    max-width: 250px;
    display: flex;
    gap: 1rem;
    transform: rotate(3deg);
    z-index: 3;
  }

  .mini-icon {
    font-size: 1.8rem;
  }

  .mini-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .mini-card p {
    font-size: 0.75rem;
    margin: 0;
  }

  /* Partners bar */
  .partners-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    opacity: 0.75;
  }

  .partner-logo {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.1rem;
  }

  /* Services Section */
  .section-tag {
    color: var(--brand-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    display: inline-block;
  }

  .section-title {
    font-size: var(--fs-section-title);
    margin-bottom: 1.5rem;
  }

  .section-description {
    color: var(--color-text-muted);
    max-width: 650px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
  }

  .service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: transparent;
    transition: var(--transition-smooth);
  }

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

  .service-card:hover::before {
    background-color: var(--brand-blue);
  }

  .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
  }

  .icon-blue {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
  }

  .icon-green {
    background-color: var(--brand-green-light);
    color: var(--brand-green);
  }

  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .service-link {
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 0.9rem;
  }

  /* Why Choose Us styling */
  .why-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
  }

  .why-image {
    min-height: 450px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #082d57 100%);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .why-badge-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    max-width: 320px;
    text-align: center;
  }

  .large-check {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
  }

  .why-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  .why-points li {
    display: flex;
    gap: 1.5rem;
  }

  .point-icon {
    font-size: 1.8rem;
    line-height: 1;
  }

  .why-points h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }

  .why-points p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
  }

  /* Quote Calculator Section styling */
  .quote-section {
    background-color: #0b1a30;
    color: var(--color-white);
  }

  .quote-section h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .quote-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
  }

  .benefit-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-block: 2rem;
  }

  .pill {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .calculator-preview {
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
  }

  .preview-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
  }

  .preview-disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
  }

  .quote-form-side {
    padding: 3rem;
    border-radius: var(--radius-lg);
    color: var(--color-text);
  }

  .quote-form-side label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--brand-blue);
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .quote-form-side input[type="text"],
  .quote-form-side input[type="email"],
  .quote-form-side input[type="number"],
  .quote-form-side select,
  .quote-form-side textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    transition: var(--transition-smooth);
  }

  .quote-form-side input:focus,
  .quote-form-side select:focus,
  .quote-form-side textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(17, 82, 154, 0.1);
  }

  /* Range slider customization */
  .range-slider-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .range-slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background-color: var(--color-border);
    border-radius: 5px;
    outline: none;
  }

  .range-labels {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-green);
    min-width: 90px;
  }

  /* Spinner */
  .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Footer styling */
  .site-footer {
    background-color: #0b1420;
    color: #a0aec0;
    font-size: 0.95rem;
  }

  .footer-top {
    padding-block: 5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
  }

  .footer-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-branding img.custom-logo {
    max-width: 200px;
    height: auto;
  }

  .footer-branding .logo-text {
    font-size: 1.8rem;
  }

  .footer-desc {
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .footer-socials {
    display: flex;
    gap: 1rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-smooth);
  }
  .social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
  }

  .social-icon:hover {
    background-color: var(--brand-blue);
    transform: translateY(-2px);
  }

  .whatsapp-icon:hover {
    background-color: var(--brand-green);
  }

  .widget-title {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
  }

  .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brand-green);
  }

  .footer-links li {
    margin-bottom: 0.8rem;
  }

  .footer-links a:hover {
    color: var(--brand-green);
    padding-inline-start: 5px;
  }

  .footer-contact-details li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
  }

  .footer-contact-details strong {
    color: var(--color-white);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }

  .footer-bottom {
    padding-block: 1.5rem;
    font-size: 0.85rem;
  }

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

  /* Floating WhatsApp Button */
  .whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--brand-green);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
  }

  .whatsapp-floating:hover {
    transform: scale(1.1);
  }
  
  /* Form response message */
  .form-response-msg {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
  }
  
  .form-response-msg.success {
    background-color: var(--brand-green-light);
    color: var(--brand-green);
    border: 1px solid rgba(86, 169, 54, 0.2);
  }

  .form-response-msg.error {
    background-color: #fde8e8;
    color: #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.2);
  }
}

@layer utilities {
  /* Dynamic entry alignments & spacing helper classes */
  .py-4 { padding-block: 1.5rem; }
  .py-5 { padding-block: 3rem; }
  .mb-2 { margin-bottom: 0.5rem; }
  .mb-4 { margin-bottom: 1.5rem; }
  .mb-5 { margin-bottom: 3rem; }
  .mt-3 { margin-top: 1rem; }
  .mt-5 { margin-top: 3rem; }
  .text-center { text-align: center; }
  .text-muted { color: var(--color-text-muted); }
  .mx-auto { margin-inline: auto; }
}

/* 2. Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .quote-container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none; /* Hide top bar on mobile screens */
  }

  .site-header {
    height: 80px;
  }

  /* Nav Menu toggle button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 6px;
  }

  .bar {
    width: 26px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu-toggle.toggle-active .bar1 {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-toggle.toggle-active .bar2 {
    opacity: 0;
  }
  .menu-toggle.toggle-active .bar3 {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .main-navigation ul {
    display: none; /* Toggle handled via JS */
  }
  
  .main-navigation.active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 1rem;
    right: 1rem;
    background: #0b1329;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: 0.5rem;
    z-index: 9999;
  }

  .main-navigation.active ul li {
    width: 100%;
    margin: 0;
  }

  .main-navigation.active ul li a {
    display: block;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: start;
  }

  .main-navigation.active ul li a:hover,
  .main-navigation.active ul li a:focus {
    color: var(--brand-green) !important;
    background: rgba(16, 185, 129, 0.15);
  }

  .main-navigation.active ul li a::after {
    display: none;
  }

  .header-cta {
    display: none; /* Hide header button on mobile to save space */
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Language Switcher & RTL (Arabic) Support
   ========================================================================== */

.top-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1.5rem;
}

.lang-link {
  font-weight: 600;
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

.lang-link:hover {
  opacity: 0.8;
}

/* RTL Specific Overrides */
[dir="rtl"] {
  font-family: 'Outfit', 'Inter', sans-serif;
  text-align: right;
}

[dir="rtl"] .lang-switcher {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .hero-box-card {
  transform: rotate(2deg);
}

[dir="rtl"] .hero-box-card:hover {
  transform: rotate(0) translateY(-5px);
}

[dir="rtl"] .mini-card {
  left: auto;
  right: -20px;
  transform: rotate(-3deg);
}

[dir="rtl"] .service-card::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .why-points li,
[dir="rtl"] .footer-contact-details li {
  text-align: right;
}

[dir="rtl"] .btn-header-quote {
  margin-left: 0;
}

/* Fallback class-based shrunk header logo scaling */
.site-header-shrunk {
  height: 70px !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-md) !important;
}

.site-header-shrunk .custom-logo-link img.custom-logo,
.site-header-shrunk .logo-wrapper {
  transform: scale(0.8) !important;
  transform-origin: left center;
}

[dir="rtl"] .site-header-shrunk .custom-logo-link img.custom-logo,
[dir="rtl"] .site-header-shrunk .logo-wrapper {
  transform-origin: right center;
}

/* ==========================================================================
   Clients Section (Infinite Scrolling Marquee)
   ========================================================================== */
.clients-section {
  padding: 40px 0;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.clients-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
  gap: 40px;
}

.marquee-item {
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.marquee-item:hover img {
  filter: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 20 - 40px * 20));
  }
}

[dir="rtl"] .marquee-track {
  animation: scroll-rtl 40s linear infinite;
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(150px * 20 + 40px * 20));
  }
}



/* ==========================================================================
   New Company Profile Sections Styling (About, Journey, Comparison, Sectors, Deliver, QHSE, Tech)
   ========================================================================== */

/* Hero visual update */
.hero-img-main {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--color-white);
  z-index: 2;
  position: relative;
  transition: var(--transition-smooth);
}

.hero-img-main:hover {
  transform: scale(1.02) rotate(-1deg);
  box-shadow: 0 30px 60px rgba(17, 82, 154, 0.18);
}

/* About/Overview Section */
.about-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
  transition: var(--transition-smooth);
}

.about-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(17, 82, 154, 0.15);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.overview-box {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.overview-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.vision-box {
  border-top: 4px solid var(--brand-blue);
}

.mission-box {
  border-top: 4px solid var(--brand-green);
}

.box-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 1.5px;
}

.overview-box p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.value-badge {
  background-color: var(--color-white);
  color: var(--brand-blue);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.value-badge:hover {
  background-color: var(--brand-blue-light);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

/* Journey Timeline */
.timeline-container {
  position: relative;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.timeline-line {
  position: absolute;
  top: 50px;
  left: 5%;
  width: 90%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  z-index: 1;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.timeline-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
  transition: var(--transition-smooth);
  margin-top: 30px;
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 163, 109, 0.3);
}

.timeline-card.active {
  border: 2px solid var(--brand-green);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--color-white) 0%, rgba(15, 163, 109, 0.03) 100%);
}

.timeline-node {
  width: 44px;
  height: 44px;
  background-color: var(--brand-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: -52px auto 1.5rem;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.timeline-card:hover .timeline-node {
  background-color: var(--brand-green);
  transform: scale(1.1);
}

.timeline-card.active .timeline-node {
  background-color: var(--brand-green);
}

.timeline-year {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.timeline-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--brand-blue);
}

.timeline-card-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
}

.comparison-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-smooth);
}

.comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.comparison-card.highlighted {
  border: 2px solid var(--brand-green);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--brand-green-light) 100%);
  box-shadow: var(--shadow-lg);
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-icon-wrapper.blue {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
}

.card-icon-wrapper.green {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

.comp-badge-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-green);
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.card-highlight {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 2.5rem;
  line-height: 1.3;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comparison-list li {
  font-size: 1.05rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.5;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-circle {
  width: 60px;
  height: 60px;
  background-color: var(--brand-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.arrow-circle:hover {
  background-color: var(--brand-green);
  transform: scale(1.1);
}

[dir="rtl"] .arrow-circle {
  transform: rotate(180deg);
}

[dir="rtl"] .arrow-circle:hover {
  transform: rotate(180deg) scale(1.1);
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.sector-card {
  position: relative;
  background-color: var(--color-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.sector-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.sector-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.8) 100%);
  transition: background 0.4s ease;
  z-index: 2;
}

.sector-card-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(16, 185, 129, 0.5);
}

.sector-card:hover .sector-card-bg {
  transform: scale(1.08);
}

.sector-card:hover .sector-card-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.sector-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sector-card.has-bg .sector-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.sector-card:hover .sector-icon {
  background: rgba(16, 185, 129, 0.25);
  color: var(--brand-green);
  border-color: rgba(16, 185, 129, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.sector-card.has-bg:hover .sector-icon {
  color: #ffffff;
}

.sector-icon img,
.sector-icon svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.sector-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sector-card.has-bg h3 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* How We Deliver */
.deliver-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}

.deliver-step-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.deliver-step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.step-badge {
  width: 50px;
  height: 50px;
  background-color: var(--brand-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.deliver-step-card:hover .step-badge {
  background-color: var(--brand-green);
  transform: scale(1.1);
}

.deliver-step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

.deliver-step-card p {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.enablers-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.enabler-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.enabler-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-green);
}

.enabler-icon {
  width: 24px;
  height: 24px;
}

.enabler-item span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-blue);
}

/* QHSE Section */
.qhse-pdca {
  border-radius: 25px;
  padding: 30px;
}

.qhse-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.qhse-systems {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qhse-side-card {
  height: 100%;
  width: 100%;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-card-bg);
  min-height: 420px;
}

.qhse-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  display: block;
}

.pdca-cycle-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.pdca-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.pdca-badge {
  width: 145px;
  min-width: 145px;
  flex-shrink: 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 800;
  color: var(--color-white);
  font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdca-badge.plan { background-color: #0d386c; }
.pdca-badge.do { background-color: #1a569a; }
.pdca-badge.check { background-color: var(--brand-green); }
.pdca-badge.act { background-color: #6ebb52; }

.pdca-item p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.iso-list, .focus-list {
  list-style: none;
}

.iso-list li, .focus-list li {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.list-bullet-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Technology Grid */
.technology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.tech-card {
  padding: 3rem 2.2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-white);
}

.tech-icon {
  width: 80px;
  height: 80px;
  background-color: var(--brand-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.tech-card:hover .tech-icon {
  background-color: var(--brand-blue-light);
  transform: scale(1.08);
}

.tech-icon img {
  width: 38px;
  height: 38px;
}

.tech-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Why Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.why-item-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.why-item-card.has-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.90); /* Subtle white overlay to guarantee readability of dark text */
  border-radius: inherit;
  z-index: -1;
  transition: background-color 0.3s ease;
}

.why-item-card.has-bg-img:hover::before {
  background-color: rgba(255, 255, 255, 0.82); /* slightly more visible image on hover */
}

.why-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.why-item-icon {
  width: 44px;
  height: 44px;
}

.why-item-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-green-light);
}

.why-item-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

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

/* Responsiveness Updates for new components */
@media (max-width: 991px) {
  .about-container, .comparison-grid, .deliver-steps-grid, .qhse-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-line {
    display: none;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    margin-block: 1.5rem;
  }

  .technology-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 576px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  
  .technology-grid, .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Force phone numbers to display left-to-right even in RTL layouts */
a[href^="tel: "],
#quote-phone {
  direction: ltr !important;
  unicode-bidi: embed;
  display: inline-block;
}

/* Service Card Image styling */
.service-card-with-image {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  background-color: var(--color-card-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.service-card-with-image .service-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid var(--brand-green);
}
.service-card-with-image .service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card-with-image:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(16, 185, 129, 0.4);
}
.service-card-with-image:hover .service-card-image {
  transform: scale(1.08);
}
.service-card-with-image .service-icon {
  margin-top: 1.75rem;
  margin-left: 2rem;
  margin-right: 2rem;
  margin-bottom: 1rem;
}
[dir="rtl"] .service-card-with-image .service-icon {
  margin-left: auto;
  margin-right: 2rem;
}
.service-card-with-image h3 {
  padding: 0 2rem;
  margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--color-text);
}
.service-card-with-image p {
  padding: 0 2rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.service-card-with-image .service-link {
  padding: 0 2rem 2.5rem 2rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition-smooth);
}
.service-card-with-image .service-link:hover {
  color: var(--brand-green);
}

/* ==========================================================================
   Aman premium Redesign & Interactions
   ========================================================================== */

/* 1. Transparent to Frosted Sticky Header */
.site-header {
  position: fixed;
  top: 40px; /* offset for top-bar */
  left: 0;
  right: 0;
  height: 150px; /* Adjusted starting height */
  background-color: rgba(10, 17, 40, 0.15) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: none !important;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.site-header .header-container {
  margin-top: 50px;
  margin-bottom: 15px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header .custom-logo, 
.site-header .logo-text,
.site-header .main-navigation li a {
  color: var(--color-white) !important;
}
.site-header .main-navigation li a::after {
  background-color: var(--brand-green);
}
.site-header .btn-header-quote {
  background-color: var(--brand-green) !important;
  color: var(--color-white) !important;
}
.site-header .btn-header-quote:hover {
  background-color: #059669 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Scroll Shrunk Header state */
.site-header-shrunk {
  top: 40px;
  height: 75px;
  background-color: rgba(10, 17, 40, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
.site-header-shrunk .header-container {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Native CSS Scroll-driven animations override */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      top: 40px;
      height: 75px;
      background-color: rgba(10, 17, 40, 0.85) !important;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
  }
  @keyframes shrink-container {
    to {
      margin-top: 10px;
      margin-bottom: 10px;
    }
  }
  .site-header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 80px;
  }
  .site-header .header-container {
    animation: shrink-container auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 80px;
  }
}

/* 2. Hero Full-Width Sliding Carousel */
.hero-section {
  position: relative;
  background: var(--brand-navy-dark) !important;
  padding: 0 !important;
  padding-block: 0 !important;
  margin: 0 !important;
  overflow: visible;
  width: 100%;
  z-index: 5;
}

/* Slider wrapper: clips overflow so slides outside the viewport are hidden */
.hero-slider-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr !important;
}

/* The sliding track: displays slides side-by-side and translates on slide change */
.hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
  direction: ltr !important;
}

/* Each slide takes exactly 100% of the wrapper width */
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Background image set via inline style on each slide */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  direction: ltr !important;
}

/* Ken-Burns subtle zoom on the active slide */
.hero-slide.is-active {
  animation: kenBurnsSlide 9s ease-out forwards;
}
@keyframes kenBurnsSlide {
  from { background-size: 110%; }
  to   { background-size: 105%; }
}

/* Dark gradient overlay per slide */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 17, 40, 0.45) 0%,
    rgba(10, 17, 40, 0.20) 40%,
    rgba(10, 17, 40, 0.55) 100%
  );
  z-index: 2;
}

/* Slide content: centered text over the image */
.hero-slide-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 220px 2rem 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}
[dir="rtl"] .hero-slide-content {
  direction: rtl;
}
.hero-slide.is-active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Reuse existing badge/title/desc styles inside slides */
.hero-slide-content .hero-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.85rem;
}
.hero-slide-content .hero-title {
  color: var(--color-white) !important;
  line-height: 1.15;
  margin: 0;
}
.hero-slide-content .hero-description {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0;
}

/* Arrow navigation buttons */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(10, 17, 40, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.hero-slider-arrow:hover {
  background: var(--brand-green);
  border-color: var(--brand-green);
  transform: translateY(-50%) scale(1.1);
}
.hero-slider-prev { left: 1.5rem; }
.hero-slider-next { right: 1.5rem; }

/* Dot indicators */
.hero-slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: var(--brand-green);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.hero-container {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-title {
  color: var(--color-white) !important;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-description {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.2rem;
}
.hero-actions .btn-primary {
  background-color: var(--brand-green) !important;
  color: var(--color-white) !important;
}
.hero-actions .btn-primary:hover {
  background-color: #059669 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}
.hero-actions .btn-secondary {
  background-color: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: var(--color-white) !important;
}
.hero-actions .btn-secondary:hover {
  border-color: var(--brand-gold) !important;
  color: var(--brand-gold) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Headline dynamic transition */
.hero-title-animated {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Floating Stats Cards overlapping Hero */
.hero-floating-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(50%);
}
.stats-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat-glass-card {
  background: rgba(10, 17, 40, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}
.stat-glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-gold);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}
.stat-glass-card .stat-number {
  font-size: 2.8rem;
  color: var(--brand-gold) !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.stat-glass-card .stat-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
  font-weight: 600;
}

/* Push down about section so it doesn't overlap floating stats */
.about-section {
  padding-top: 120px !important;
}

/* 4. Asymmetrical Services Grid & Hover-Reveal Cards */
.services-grid-asymmetric {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.service-card-reveal {
  grid-column: span 3;
  position: relative;
  background-color: var(--brand-navy-dark) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 3rem;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

/* Asymmetrical Layout spans - Staggered 4+2 pattern to fill all width gaps */
.service-card-reveal:nth-child(4n+1) {
  grid-column: span 4;
}
.service-card-reveal:nth-child(4n+2) {
  grid-column: span 2;
}
.service-card-reveal:nth-child(4n+3) {
  grid-column: span 2;
}
.service-card-reveal:nth-child(4n) {
  grid-column: span 4;
}

/* Background image hover trigger */
.service-reveal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.service-card-reveal:hover .service-reveal-bg {
  opacity: 0.6;
  transform: scale(1.06);
}

.service-card-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.2) 0%, rgba(10, 17, 40, 0.95) 85%);
  z-index: 2;
  transition: var(--transition-smooth);
}
.service-card-reveal:hover::after {
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.1) 0%, rgba(10, 17, 40, 0.92) 80%);
}

.service-reveal-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
}
.service-card-reveal h3 {
  color: var(--color-white) !important;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}
.service-card-reveal:hover h3 {
  color: var(--brand-gold) !important;
}
.service-card-reveal p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.service-reveal-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card-reveal:hover .service-reveal-details {
  max-height: 150px;
  opacity: 1;
  margin-bottom: 1.5rem;
}
.service-reveal-details ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding-left: 0;
  margin: 0;
}
.service-reveal-details li {
  color: var(--color-white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-reveal-details li::before {
  content: '✓';
  color: var(--brand-green);
  font-weight: bold;
}
.service-reveal-btn {
  display: inline-flex;
  align-items: center;
  color: var(--brand-gold) !important;
  font-weight: 700;
  gap: 0.5rem;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}
.service-card-reveal:hover .service-reveal-btn {
  border-color: var(--brand-gold);
}

/* 5. Before/After Interactive Slider */
.before-after-section {
  background-color: var(--color-white);
}
.slider-container-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  user-select: none;
  overflow: hidden;
}
.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.slider-image-before {
  filter: grayscale(1) brightness(0.7) contrast(1.1);
  z-index: 10;
}
.slider-image-after {
  z-index: 5;
}
.slider-bar-resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 8;
}
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--brand-gold);
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--brand-gold);
  color: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  border: 3px solid var(--color-white);
  transition: transform 0.2s ease;
}
.slider-handle:hover .slider-handle-button {
  transform: translate(-50%, -50%) scale(1.1);
}
.slider-label {
  position: absolute;
  top: 20px;
  padding: 0.5rem 1rem;
  background-color: rgba(10, 17, 40, 0.75);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  z-index: 30;
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.slider-label-before {
  left: 20px;
}
.slider-label-after {
  right: 20px;
}

/* 6. Conversational B2B Quote Calculator */
.quote-section {
  background-color: var(--brand-navy-dark) !important;
}
.quote-form-side {
  background: rgba(28, 37, 65, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--color-white) !important;
}
.calc-step {
  display: none;
}
.calc-step.active {
  display: block;
  animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress bar styles */
.calc-progress-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.calc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-gold) 100%);
  width: 20%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Option visual select cards */
.calc-grid-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.calc-card-option {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.calc-card-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
}
.calc-card-option.selected {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--brand-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.calc-option-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.calc-card-option span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  display: block;
}

.calc-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.calc-btn-back {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--color-white) !important;
}
.calc-btn-back:hover {
  border-color: var(--color-white) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Custom visual styles for textareas/inputs in quote calculator */
.quote-form-side input, 
.quote-form-side select, 
.quote-form-side textarea {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.8rem 1.2rem !important;
  transition: var(--transition-smooth) !important;
}
.quote-form-side input:focus, 
.quote-form-side select:focus, 
.quote-form-side textarea:focus {
  border-color: var(--brand-gold) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  outline: none;
}

/* 7. Scroll reveal animations classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .services-grid-asymmetric {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid-asymmetric .service-card-reveal {
    grid-column: span 2 !important;
  }
  .stats-glass-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-floating-stats {
    position: relative;
    transform: none;
    margin-top: 3rem;
  }
  .about-section {
    padding-top: 60px !important;
  }
}
@media (max-width: 768px) {
  .services-grid-asymmetric {
    grid-template-columns: 1fr;
  }
  .service-card-reveal, 
  .service-card-reveal:nth-child(3n+1), 
  .service-card-reveal:nth-child(3n+2), 
  .service-card-reveal:nth-child(3n) {
    grid-column: span 1;
    padding: 2rem;
  }
  .site-header {
    top: 0;
  }
}

.site-header {
  position: fixed;
  top: 40px; /* offset for top-bar */
  left: 0;
  right: 0;
  height: 90px;
  background-color: rgba(10, 17, 40, 0.15) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: none !important;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

/* 8. Hero Transparent Animated Staff Visuals */
.hero-staff-visual {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 5;
}
.staff-img {
  position: absolute;
  bottom: 0;
  max-height: 450px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.staff-male {
  left: 10%;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite;
}
.staff-female {
  right: 10%;
  z-index: 3;
  animation: heroFloat 6s ease-in-out infinite;
  animation-delay: -3s; /* offset phase */
}
.staff-img:hover {
  transform: scale(1.04) translateY(-5px);
  filter: drop-shadow(0 20px 45px rgba(16, 185, 129, 0.25));
  z-index: 10;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .hero-staff-visual {
    display: none;
  }
  .hero-container {
    grid-template-columns: 1fr !important;
  }
}

/* 9. Background Image Ken Burns Slider */
.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.8s ease-in-out;
  transform: scale(1);
}
.hero-bg-slider .slide.active {
  opacity: 0.55; /* semi-transparent but clearly visible */
  z-index: 2;
  animation: kenBurnsBg 10s ease-out forwards;
}
@keyframes kenBurnsBg {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Centered layout overrides for Hero */
.hero-container-centered {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.hero-content-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-actions-centered {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

/* Header Branding logo-group CSS */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.logo-divider {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
  transition: background 0.3s ease;
}
.powered-by-logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
}
.powered-by-text {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.15rem;
  font-weight: 600;
  font-family: var(--font-primary, sans-serif);
  transition: color 0.3s ease;
}
.greenclean-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Shrunk/Scrolled header adaptive branding states */
.site-header-shrunk .logo-divider {
  background: rgba(10, 17, 40, 0.15) !important;
}
.site-header-shrunk .powered-by-text {
  color: rgba(10, 17, 40, 0.6) !important;
}

/* RTL logo-group adjustments */
[dir="rtl"] .logo-group {
  flex-direction: row;
}
[dir="rtl"] .powered-by-logo-link {
  align-items: flex-start;
}

