/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Style Tokens & Variables */
:root {
  --primary-rgb: 10, 22, 38;        /* #0A1626 - Midnight Navy */
  --secondary-rgb: 23, 42, 69;      /* #172A45 - Steel Navy */
  --accent-rgb: 56, 108, 152;       /* #386C98 - Ocean Blue (Logo middle wave) */
  --accent-light-rgb: 124, 162, 194;/* #7CA2C2 - Ice Blue (Logo top wave) */
  --text-dark-rgb: 24, 38, 56;      /* #182638 - Slate Blue */
  --text-light-rgb: 244, 248, 250;  /* #F4F8FA - Frosted Ice White */
  
  --primary: rgb(var(--primary-rgb));
  --primary-dark: #050b14;          /* Midnight black-navy for subpage heroes */
  --secondary: rgb(var(--secondary-rgb));
  --accent: rgb(var(--accent-rgb));
  --accent-light: rgb(var(--accent-light-rgb));
  --accent-hover: #4880B0;          /* Bright Ocean Blue */
  --text-dark: rgb(var(--text-dark-rgb));
  --text-light: rgb(var(--text-light-rgb));
  --text-muted: rgba(var(--text-dark-rgb), 0.7);
  --bg-light: #ffffff;
  --bg-alternate: #F1F5F8;          /* Light steel-blue grey */
  
  /* Missing variables used on subpages like blogs.html */
  --bg-primary: var(--bg-light);
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text-primary: var(--text-dark);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-premium: 0 20px 40px rgba(10, 22, 38, 0.05);
  --shadow-hover: 0 30px 60px rgba(10, 22, 38, 0.1);
  --shadow-blue: 0 10px 30px rgba(56, 108, 152, 0.2);
  
  --border-glass: rgba(255, 255, 255, 0.12);
  --bg-glass: rgba(255, 255, 255, 0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100vw;
}

/* Touch highlight optimization for iOS/Android */
a, button, select, input, textarea, .indicator, .arrow, .social-circle, .tab-btn {
  -webkit-tap-highlight-color: transparent;
}

/* Mobile Scroll Lock class */
html.nav-open, body.nav-open {
  overflow: hidden !important;
  touch-action: none;
  height: 100%;
}

/* Navigation backdrop overlay */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  background-color: rgba(10, 22, 38, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  will-change: opacity, visibility;
}

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

/* Page Load Entrance Animations (Opening data like a flow) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content-wrapper,
.page-hero .container,
.about-grid,
.services-grid,
.team-gallery .container,
.clients-carousel-section,
.welfare-grid,
.careers-grid,
.news-grid,
.events-grid,
.contact-layout {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered delays to create a fluid flow of data opening */
.hero-content-wrapper { animation-delay: 0.1s; }
.page-hero .container { animation-delay: 0.1s; }
.about-grid { animation-delay: 0.2s; }
.services-grid { animation-delay: 0.3s; }
.welfare-grid { animation-delay: 0.2s; }
.sectors-grid { animation-delay: 0.2s; }
.careers-grid { animation-delay: 0.2s; }
.news-grid { animation-delay: 0.2s; }
.events-grid { animation-delay: 0.3s; }
.team-gallery .container { animation-delay: 0.2s; }
.clients-carousel-section { animation-delay: 0.3s; }
.contact-layout { animation-delay: 0.4s; }


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

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

ul {
  list-style: none;
}

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

/* Button & Link UI Components */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(56, 108, 152, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary);
  border-color: var(--text-light);
}

/* Section Common Styles */
section {
  padding: 6.5rem 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 3.5rem;
}

/* Floating Scroll Top Trigger */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.2rem;
  height: 3.2rem;
  background-color: var(--primary);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-blue);
}

/* Header & Glassmorphism Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: calc(0.95rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.95rem;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  background-color: rgba(10, 17, 40, 0.85); box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-light);
}

.logo span {
  color: #7CA2C2;
}

.logo-img {
  width: 44px;
  height: auto;
  display: block;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.mobile-toggle span:last-child {
  margin-bottom: 0;
}

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

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

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

/* Interactive Hero Slider */
.hero {
  /* iOS-safe viewport height fix via --vh JS variable */
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 560px;
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  touch-action: pan-y;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Background Visual Overlay */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 17, 40, 0.9) 30%, rgba(10, 17, 40, 0.4) 70%),
              linear-gradient(to top, rgba(10, 17, 40, 0.95), rgba(10, 17, 40, 0));
  z-index: 2;
}

.hero-bg-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slide.active .hero-bg-visual {
  transform: scale(1);
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 9rem;
  padding-bottom: 3rem;
}

.hero-slide-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  transition-delay: 0.2s;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-light);
  max-width: 750px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  transition-delay: 0.4s;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  transition-delay: 0.6s;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  transition-delay: 0.8s;
  display: flex;
  gap: 1.5rem;
}

/* Apply active slide animations */
.hero-slide.active .hero-slide-num,
.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Navigation UI */
.slider-nav {
  position: absolute;
  bottom: 3.5rem;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.slider-indicators {
  display: flex;
  gap: 0.8rem;
}

.indicator {
  width: 2.2rem;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
}

.indicator.active {
  width: 4rem;
  background-color: rgba(255, 255, 255, 0.25);
}

.indicator.active::after {
  animation: indicator-progress 6s linear forwards;
}

@keyframes indicator-progress {
  from { width: 0; }
  to { width: 100%; }
}

.slider-arrows {
  display: flex;
  gap: 1rem;
}

.arrow {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.arrow:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
}

/* Stats Dashboard Component */
.stats {
  background-color: var(--primary);
  padding: 4.5rem 0;
  z-index: 10;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 1rem 0;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -1rem;
  width: 1px;
  height: 70%;
  background-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* About Us Section */
.about {
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.about-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.about-visual:hover img {
  transform: scale(1.02);
}

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

.about-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--primary);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-hover);
  z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}

.about-badge-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-box {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  background-color: rgba(56, 108, 152, 0.1);
  color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Services Grid Component */
.services {
  background-color: var(--bg-alternate);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-image-box {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 17, 40, 0.8), transparent);
}

.service-card-icon {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 6px;
  background-color: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  z-index: 2;
}

.service-card-body {
  padding: 2.2rem 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  transition: var(--transition-fast);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.service-card-link svg {
  transition: var(--transition-smooth);
}

/* Service Card Hover States */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 108, 152, 0.3);
}

.service-card:hover .service-image-box img {
  transform: scale(1.08);
}

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

.service-card:hover .service-card-link {
  color: var(--accent);
}

.service-card:hover .service-card-link svg {
  transform: translateX(6px);
}

/* Safety, Camp & Welfare Hub (Standard visual mock) */
.welfare {
  background-color: var(--primary);
  color: var(--text-light);
  overflow: hidden;
}

.welfare-title {
  color: var(--text-light);
}

.welfare-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.welfare-content h2 {
  color: var(--text-light);
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
}

.welfare-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.welfare-item {
  display: flex;
  gap: 1.2rem;
}

.welfare-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  background: rgba(56, 108, 152, 0.1);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welfare-item h4 {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.welfare-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.welfare-visual {
  position: relative;
}

.welfare-img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.welfare-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.welfare-card-overlay {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background-color: var(--accent);
  color: var(--primary);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: var(--shadow-hover);
  max-width: 250px;
  z-index: 5;
}

.welfare-card-overlay h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.welfare-card-overlay p {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.9;
}

/* Quote Card Variant - Medical Camp Photo Section */
.welfare-quote-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a52 100%);
  color: var(--text-light);
  border: 1px solid rgba(124, 162, 194, 0.3);
  position: relative;
  top: auto;
  bottom: auto;
  right: auto;
  max-width: 100%;
  padding: 2rem 2.2rem;
  margin-top: 2rem;
  border-radius: 8px;
}

.welfare-quote-icon {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
  opacity: 0.7;
}

.welfare-quote-card h4 {
  color: var(--text-light);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.welfare-quote-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}

/* Image stack with caption badge */
.welfare-img-stack {
  position: relative;
}

.welfare-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,22,38,0.85) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  padding: 2.5rem 1.5rem 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  pointer-events: none;
}

/* Careers Portal Section & Tab System */
.careers {
  background-color: var(--bg-light);
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-premium);
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.job-card {
  background-color: var(--bg-alternate);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  border-left: 4px solid transparent;
}

.job-card:hover {
  background-color: var(--bg-light);
  box-shadow: var(--shadow-premium);
  border-left-color: var(--accent);
  transform: translateX(8px);
}

.job-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Infinite Brand Ticker Carousel */
.clients {
  background-color: var(--bg-alternate);
  padding: 4.5rem 0;
  overflow: hidden;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: calc(250px * 16);
  animation: ticker-scroll 32s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 8)); }
}

.ticker-slide {
  width: 230px;
  height: 120px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.ticker-slide:hover {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(56, 108, 152, 0.35);
  box-shadow: 0 10px 25px rgba(56, 108, 152, 0.1);
  transform: translateY(-5px);
}

.ticker-slide svg,
.ticker-slide img.ticker-logo {
  max-width: 190px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-slide:hover img.ticker-logo {
  transform: scale(1.05);
}

/* Contact us Form / Let's Talk */
.contact {
  background-color: var(--bg-light);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 6px;
  background-color: rgba(10, 17, 40, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

/* Enquiry Glassmorphic Form */
.enquiry-form-card {
  background-color: var(--primary);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.enquiry-form-card h3 {
  color: var(--text-light);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.enquiry-form-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* Elegant input floating label styling */
.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.form-group:last-of-type {
  margin-bottom: 2.2rem;
}

.form-control {
  width: 100%;
  padding: 0.95rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem; /* 16px minimum prevents iOS auto-zoom on focus */
  border-radius: 4px;
  transition: var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(56, 108, 152, 0.15);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select.form-control option {
  background-color: var(--primary);
  color: var(--text-light);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
  pointer-events: none;
  font-size: 0.95rem;
}

/* Floating label trigger conditions */
.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
  top: -0.65rem;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--accent);
  background-color: var(--primary);
  padding: 0 0.4rem;
  font-weight: 600;
}

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

textarea.form-control {
  height: 120px;
  resize: none;
}

.form-submit-btn {
  width: 100%;
  padding: 1.1rem;
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(56, 108, 152, 0.15);
  position: relative;
  overflow: hidden;
}

.form-submit-btn:hover {
  background-color: var(--text-light);
  box-shadow: var(--shadow-blue);
}

.form-submit-btn.loading {
  color: transparent;
  pointer-events: none;
}

.form-submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--primary);
  border-radius: 50%;
  border-top-color: transparent;
  top: 30%;
  left: 45%;
  animation: spinner 0.8s linear infinite;
}

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

/* Dynamic visual form success validation shield overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 10;
}

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

.success-icon-box {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background-color: rgba(56, 108, 152, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-blue);
  border: 1px solid rgba(56, 108, 152, 0.3);
}

.form-success-overlay h3 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.form-success-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 320px;
}

/* Modal Popup Window Component (Careers Apply Panel) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 17, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
}

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

.modal-window {
  width: 90%;
  max-width: 600px;
  background-color: var(--bg-light);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-header {
  background-color: var(--primary);
  padding: 1.8rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  color: var(--text-light);
  font-size: 1.4rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent);
}

.modal-body {
  padding: 2.5rem;
}

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

.modal-body .form-control {
  background-color: var(--bg-alternate);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.modal-body .form-control:focus {
  background-color: var(--bg-light);
  border-color: var(--accent);
}

.modal-body .form-group label {
  color: rgba(0, 0, 0, 0.5);
}

.modal-body .form-control:focus ~ label,
.modal-body .form-control:not(:placeholder-shown) ~ label {
  background-color: var(--bg-light);
  color: var(--accent);
}

.file-upload-wrapper {
  position: relative;
  margin-bottom: 1.8rem;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  background-color: var(--bg-alternate);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  font-weight: 500;
}

.file-upload-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
  background-color: rgba(56, 108, 152, 0.05);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-selected-name {
  font-size: 0.85rem;
  color: var(--accent-hover);
  margin-top: 0.4rem;
  display: block;
}

/* Footer Section */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 6.5rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 5rem;
  margin-bottom: 4.5rem;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 2.2rem;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

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

.footer-contact-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-contact-text h5 {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.footer-contact-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

.social-circle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-circle:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

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

/* Toast Message Notification Module */
.toast-container {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10000;
}

.toast {
  background-color: var(--primary);
  border-left: 4px solid var(--accent);
  color: var(--text-light);
  padding: 1.2rem 1.8rem;
  border-radius: 4px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-120%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — Full Device Coverage
   1200px  Laptop / Large Tablet Landscape
   1024px  Tablet Landscape
   768px   Tablet Portrait
   480px   Large Phone
   360px   Small Phone
   ============================================================ */

/* ---------- 1200px and below ---------- */
@media (max-width: 1200px) {
  .container {
    width: 92%;
  }

  .hero h1 {
    font-size: 2.6rem;
    max-width: 640px;
  }

  .about-grid {
    gap: 3rem;
  }

  .welfare-grid {
    gap: 3.5rem;
  }

  .welfare-card-overlay {
    right: -1rem;
    top: -1rem;
  }
}

/* ---------- 1024px and below (Tablet Landscape) ---------- */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .container {
    width: 92%;
  }

  /* Grids: collapse to single column */
  .about-grid,
  .welfare-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Flip welfare so image comes first */
  .welfare-visual {
    order: -1;
  }

  .welfare-card-overlay {
    right: 1rem;
    top: 1rem;
    max-width: 220px;
  }

  .about-visual img {
    height: 380px;
  }

  .welfare-img-wrapper img {
    height: 380px;
  }

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

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

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

  .footer-col:first-of-type {
    grid-column: span 2;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

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

  .contact-grid {
    gap: 2.5rem;
  }

  .enquiry-form-card {
    padding: 2.5rem 2rem;
  }

  /* Ticker: slightly smaller cards on tablet */
  .ticker-slide {
    width: 190px;
    height: 100px;
    margin: 0 8px;
  }

  .ticker-track {
    width: calc(208px * 16);
    animation: ticker-scroll-tablet 28s linear infinite;
  }

  @keyframes ticker-scroll-tablet {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-208px * 8)); }
  }

  .ticker-slide img.ticker-logo {
    max-width: 150px;
    max-height: 70px;
  }
}

/* ---------- 992px and below (Tablet & Mobile Devices) ---------- */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  /* Section spacing */
  section {
    padding: 5rem 0;
  }

  .container {
    width: 92%;
  }

  /* ---------- Navigation ---------- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    height: 100vh;
    height: -webkit-fill-available;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    padding-left: calc(2rem + env(safe-area-inset-left, 0px));
    padding-right: calc(2rem + env(safe-area-inset-right, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

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

  .nav-link {
    font-size: 1.05rem;
  }

  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 600px;
  }

  .hero-content-wrapper {
    padding-top: 6rem;
  }

  .hero h1 {
    font-size: 2rem;
    max-width: 100%;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2.2rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-buttons .btn-premium {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    justify-content: center;
  }

  .slider-nav {
    bottom: 2rem;
    left: 4%;
    right: 4%;
  }

  .slider-arrows {
    gap: 0.6rem;
  }

  .arrow {
    width: 2.6rem;
    height: 2.6rem;
  }

  /* ---------- Section headings ---------- */
  .section-title {
    font-size: 1.7rem;
  }

  .section-desc {
    font-size: 1rem;
  }

  /* ---------- Stats ---------- */
  .stats {
    padding: 3.5rem 0;
  }

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(4)::after {
    display: none;
  }

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

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

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

  .about-badge {
    padding: 1rem 1.5rem;
    bottom: 1rem;
    left: 1rem;
  }

  .about-badge-num {
    font-size: 1.8rem;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* ---------- Services ---------- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-image-box {
    height: 200px;
  }

  /* ---------- Welfare ---------- */
  .welfare-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .welfare-visual {
    order: -1;
  }

  .welfare-img-wrapper img {
    height: 280px;
  }

  .welfare-card-overlay {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 6px;
  }

  .welfare-content h2 {
    font-size: 1.7rem;
  }

  /* ---------- Careers ---------- */
  .tab-nav {
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
  }

  .tab-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .job-card .btn-premium {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .job-info h3 {
    font-size: 1.1rem;
  }

  .job-meta {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  /* ---------- Brand Ticker ---------- */
  .clients {
    padding: 3rem 0;
  }

  .ticker-slide {
    width: 160px;
    height: 90px;
    margin: 0 6px;
  }

  .ticker-track {
    width: calc(172px * 16);
    animation: ticker-scroll-mobile 22s linear infinite;
  }

  @keyframes ticker-scroll-mobile {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-172px * 8)); }
  }

  .ticker-slide img.ticker-logo {
    max-width: 120px;
    max-height: 60px;
  }

  /* ---------- Contact ---------- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .enquiry-form-card {
    padding: 2rem 1.5rem;
  }

  .enquiry-form-card h3 {
    font-size: 1.5rem;
  }

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

  .contact-info-list {
    gap: 1.5rem;
    margin-top: 2rem;
  }

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

  .footer-col:first-of-type {
    grid-column: span 1;
  }

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

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* ---------- Modal ---------- */
  .modal-window {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* ---------- 480px and below (Large Phone) ---------- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  section {
    padding: 4rem 0;
  }

  .container {
    width: 94%;
  }

  /* ---------- Header ---------- */
  .logo {
    font-size: 1.15rem;
  }

  .logo-img {
    width: 36px;
  }

  /* ---------- Hero ---------- */
  .hero {
    min-height: 560px;
  }

  .hero-content-wrapper {
    padding-top: 5.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .hero-slide-num {
    font-size: 0.95rem;
  }

  .slider-arrows {
    display: none;
  }

  /* ---------- Headings ---------- */
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-tag {
    font-size: 0.75rem;
  }

  /* ---------- Stats ---------- */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

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

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .stat-item::after {
    display: none !important;
  }

  /* ---------- About ---------- */
  .about-visual img {
    height: 240px;
  }

  .about-badge {
    padding: 0.8rem 1rem;
  }

  .about-badge-num {
    font-size: 1.5rem;
  }

  /* ---------- Welfare ---------- */
  .welfare-img-wrapper img {
    height: 220px;
  }

  .welfare-list {
    gap: 1.2rem;
    margin-top: 1.5rem;
  }

  /* ---------- Services ---------- */
  .service-image-box {
    height: 180px;
  }

  .service-card-body {
    padding: 1.5rem 1.2rem;
  }

  /* ---------- Careers ---------- */
  .tab-nav {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .job-card {
    padding: 1.2rem;
  }

  /* ---------- Brand Ticker ---------- */
  .ticker-slide {
    width: 130px;
    height: 80px;
    margin: 0 5px;
    border-radius: 6px;
  }

  .ticker-track {
    width: calc(140px * 16);
    animation: ticker-scroll-xs 18s linear infinite;
  }

  @keyframes ticker-scroll-xs {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-140px * 8)); }
  }

  .ticker-slide img.ticker-logo {
    max-width: 100px;
    max-height: 50px;
  }

  /* ---------- Contact ---------- */
  .enquiry-form-card {
    padding: 1.8rem 1.2rem;
    border-radius: 6px;
  }

  .contact-item {
    gap: 0.8rem;
  }

  .contact-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* ---------- Footer ---------- */
  .footer-grid {
    gap: 2rem;
  }

  .footer-contact-item {
    gap: 0.8rem;
  }

  /* ---------- Scroll-to-top button ---------- */
  .scroll-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 2.8rem;
    height: 2.8rem;
  }

  /* ---------- Modal ---------- */
  .modal-window {
    width: 98%;
  }

  .modal-body {
    padding: 1.2rem;
  }
}

/* ---------- 360px and below (Small Phone) ---------- */
@media (max-width: 360px) {
  html {
    font-size: 13px;
  }

  .container {
    width: 96%;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

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

  .stat-item::after {
    display: none !important;
  }

  .ticker-slide {
    width: 115px;
    height: 72px;
    margin: 0 4px;
  }

  .ticker-track {
    width: calc(123px * 16);
    animation: ticker-scroll-xxs 16s linear infinite;
  }

  @keyframes ticker-scroll-xxs {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-123px * 8)); }
  }

  .ticker-slide img.ticker-logo {
    max-width: 88px;
    max-height: 44px;
  }

  .tab-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .btn-premium {
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   TEAM GALLERY SECTION
   ============================================================ */
.team-gallery {
  background-color: var(--bg-alternate);
  position: relative;
}

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

.gallery-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.gallery-img-box {
  height: 440px;
  overflow: hidden;
  position: relative;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-info {
  padding: 2.2rem 2rem;
}

.gallery-info h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

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

/* Hover Zoom & Elevation */
.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 108, 152, 0.25);
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.04);
}

/* Responsive configurations for gallery grid */
@media (max-width: 1024px) {
  .gallery-grid {
    gap: 2rem;
  }
  .gallery-img-box {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-img-box {
    height: 320px;
  }
  .gallery-info {
    padding: 1.8rem 1.5rem;
  }
}

/* ============================================================
   SCROLL REVEAL MICRO-ANIMATIONS & FLOW ANIMATIONS
   ============================================================ */
.reveal, .reveal-left, .reveal-right, .reveal-zoom {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(35px);
  filter: blur(4px);
}

.reveal-left {
  transform: translateX(-40px);
  filter: blur(4px);
}

.reveal-right {
  transform: translateX(40px);
  filter: blur(4px);
}

.reveal-zoom {
  transform: scale(0.92);
  filter: blur(4px);
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-zoom.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* Stagger Animation Delays */
.stagger-container > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-container > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-container > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-container > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-container > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-container > *:nth-child(6) { transition-delay: 0.55s; }

/* FAQ Accordion Styling */
.faq-section {
  background: var(--bg-alternate);
  padding: 6rem 0;
}

.faq-grid {
  max-width: 860px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover, .faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-premium);
}

.faq-question {
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56,108,152,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.6rem 1.8rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Emirates SEO Coverage Strip */
.emirates-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #061122 100%);
  color: #fff;
  padding: 5rem 0;
}

.emirates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.emirate-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.emirate-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

.emirate-card h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.emirate-card p {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Centered Single Gallery Card layout */
.gallery-single {
  max-width: 1024px;
  margin: 0 auto;
}

.gallery-single .gallery-img-box {
  height: auto;
  aspect-ratio: 1024 / 476;
  max-height: 476px;
  overflow: hidden;
  background-color: var(--primary);
}

.gallery-single .gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.03) saturate(1.03) brightness(1.01);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-single .gallery-card:hover .gallery-img-box img {
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.05) brightness(1.03);
}

@media (max-width: 768px) {
  .gallery-single .gallery-img-box {
    height: 320px;
    aspect-ratio: auto;
  }
}

/* ============================================================
   OFFICE EVENTS SECTION (News & Media Page)
   ============================================================ */
.office-events-section {
  background-color: var(--bg-alternate);
  position: relative;
}

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

.event-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.event-img-box {
  height: 380px;
  overflow: hidden;
  position: relative;
}

.event-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-info {
  padding: 2.2rem 2rem;
}

.event-info h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

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

/* Event Card Hover zoom & elevation */
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 108, 152, 0.25);
}

.event-card:hover .event-img-box img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .event-img-box {
    height: 280px;
  }
  .event-info {
    padding: 1.8rem 1.5rem;
  }
}

/* ============================================================
   LEADERSHIP TEAM SECTION
   ============================================================ */
.leadership {
  background: linear-gradient(180deg, rgba(241, 245, 248, 0.4) 0%, rgba(225, 235, 245, 0.4) 100%);
  position: relative;
}

.leadership-tag {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background-color: rgba(56, 108, 152, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.leadership-card {
  background-color: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.leadership-img-box {
  height: 380px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light);
}

.leadership-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-bottom-right-radius: 120px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.leadership-info {
  padding: 2.2rem 2.2rem 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.leadership-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.leadership-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.leadership-line {
  width: 35px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.leadership-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 108, 152, 0.2);
}

.leadership-card:hover .leadership-img-box img {
  transform: scale(1.05);
}

/* Leadership Responsive Design */
@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 420px;
  }
  
  .leadership-img-box {
    height: 340px;
  }
  
  .leadership-info {
    padding: 1.8rem 1.8rem 2rem 1.8rem;
  }
}

/* ============================================================
   PAGE ENTRANCE OVERLAY (load/reload only)
   ============================================================ */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--secondary) 0%, var(--primary) 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  pointer-events: all;
}

.no-loader .page-transition-overlay {
  display: none !important;
}

.page-transition-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.transition-logo {
  width: 64px;
  height: auto;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: scale(0.8);
  animation: transition-logo-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.transition-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: transition-brand-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.transition-brand span {
  color: var(--accent-light);
}

.transition-loader-bar {
  width: 160px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.transition-loader-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent-light), var(--accent));
  border-radius: 4px;
  animation: transition-bar-fill 0.85s cubic-bezier(0.1, 0.6, 0.3, 1) forwards;
}

@keyframes transition-logo-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes transition-brand-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes transition-bar-fill {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Page Hero responsive overrides for subpages */
@media (max-width: 900px) {
  .page-hero {
    padding: 8rem 0 4rem !important;
  }
  .contact-page-hero {
    padding: 9rem 0 4.5rem !important;
  }
}
@media (max-width: 600px) {
  .page-hero {
    padding: 7rem 0 3.5rem !important;
  }
  .contact-page-hero {
    padding: 8rem 0 4rem !important;
  }
}

/* ============================================================
   iOS & ANDROID COMPREHENSIVE FIXES
   ============================================================ */

/* Disable heavy animations on mobile to fix iOS rendering */
@media (max-width: 768px) {
  /* Hero: disable scale animation on mobile — prevents iOS blank/blank hero */
  .hero-bg-visual {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .hero-slide.active .hero-bg-visual {
    transform: none !important;
  }

  /* Hero content: reduce top padding on mobile to prevent cropping */
  .hero-content-wrapper {
    padding-top: calc(var(--header-h, 5rem) + 2rem);
    padding-bottom: 6rem;
    width: 92%;
  }

  /* Tighten hero text on phones */
  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
    max-width: 100%;
  }

  .hero p {
    font-size: clamp(0.9rem, 4vw, 1rem);
    max-width: 100%;
    margin-bottom: 2rem;
  }

  /* Slider nav: prevent overflow at bottom */
  .slider-nav {
    bottom: 1.5rem;
    left: 5%;
    right: 5%;
  }

  /* Fix hero min-height for small screens */
  .hero {
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: -webkit-fill-available;
  }

  /* Leadership grid: single column on mobile */
  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .leadership-img-box {
    height: 300px;
  }

  /* Ensure no element causes horizontal scroll */
  section, .container, header, footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Fix fixed position overlays for iOS notch */
  .page-transition-overlay,
  .modal-overlay {
    height: 100%;
    height: -webkit-fill-available;
  }

  /* Ensure mobile toggle is always visible & large enough to tap */
  .mobile-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-content-wrapper {
    padding-top: calc(var(--header-h, 4rem) + 1.5rem);
    padding-bottom: 5rem;
  }

  /* Prevent hero content from getting clipped by slider nav */
  .hero p {
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn-premium {
    width: 100%;
    text-align: center;
  }

  /* Leadership on very small screens */
  .leadership-grid {
    max-width: 100%;
    gap: 2rem;
  }

  .leadership-img-box {
    height: 280px;
  }

  .leadership-info {
    padding: 1.5rem;
  }
}

/* iOS Safari specific — prevent rubber-band scroll artifacts */
@supports (-webkit-overflow-scrolling: touch) {
  .hero {
    /* Force composite layer on iOS for proper rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .hero-bg-visual {
    /* Disable scale animation entirely on iOS Safari to prevent blank hero bug */
    transform: none !important;
    transition: none !important;
  }

  .nav-menu {
    /* Ensure nav drawer scrolls on iOS */
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
  }
}

/* Modern browsers: use dynamic viewport height */
@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
    min-height: 100dvh;
  }
}

/* Fix: page-transition-overlay height on iOS */
.page-transition-overlay {
  height: 100%;
  height: -webkit-fill-available;
  min-height: 100vh;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 86px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Footer Phone CTA — Prominent standalone contact card */
.footer-phone-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(56, 108, 152, 0.25) 0%, rgba(56, 108, 152, 0.08) 100%);
  border: 1px solid rgba(56, 108, 152, 0.4);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin-bottom: 1.6rem;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.footer-phone-cta:hover {
  background: linear-gradient(135deg, rgba(56, 108, 152, 0.38) 0%, rgba(56, 108, 152, 0.18) 100%);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-phone-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-phone-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-phone-cta-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-phone-cta-number {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* ==============================
   MOBILE SIDE MENU
   RIGHT → LEFT
   ============================== */

header#header .nav-menu {

    display: flex !important;

    position: fixed !important;

    /* Start below header */
    top: 80px !important;

    /* Right side */
    right: 0 !important;
    left: auto !important;

    /* HALF SCREEN */
    width: 50% !important;
    max-width: 50% !important;

    height: calc(100vh - 80px) !important;
    height: calc(100dvh - 80px) !important;

    max-height: none !important;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;

    /* WHITE MENU */
    background: #ffffff !important;

    padding: 20px 15px !important;

    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;

    /* ABOVE BLUR */
    z-index: 10002 !important;

    /* ==========================
       CLOSED STATE
       ========================== */

    opacity: 0 !important;
    visibility: hidden !important;

    /* Start outside right side */
    transform: translateX(100%) !important;

    pointer-events: none !important;

    /* SLOW RIGHT → LEFT */
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0s linear 0.65s !important;

    /* Menu shadow */
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.20) !important;
}


/* ==============================
   OPEN MENU
   ============================== */

header#header .nav-menu.active {

    opacity: 1 !important;

    visibility: visible !important;

    /* Slide RIGHT → LEFT */
    transform: translateX(0) !important;

    pointer-events: auto !important;

    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        visibility 0s linear 0s !important;
}


/* ==============================
   FULL SCREEN BACKDROP
   ============================== */

.nav-backdrop {

    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;

    height: 100vh !important;
    height: 100dvh !important;

    /* DARK BLUR */
    background: rgba(10, 22, 38, 0.75) !important;

    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;

    /* BELOW MENU */
    z-index: 9998 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none !important;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease !important;
}


/* BACKDROP ACTIVE */




/* ==============================
   MOBILE MENU LINKS
   ============================== */

header#header .nav-menu .nav-link {

    display: block !important;

    width: 100% !important;

    padding: 14px 5px !important;

    color: #000000 !important;

    font-size: 13px !important;

    font-weight: 500 !important;

    text-decoration: none !important;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;

    /* Start slightly to the right */
    opacity: 0 !important;

    transform: translateX(15px) !important;

    transition:
        opacity 0.3s ease,
        transform 0.35s ease,
        color 0.2s ease !important;
}


/* ==============================
   LINKS APPEAR AFTER MENU
   ============================== */

header#header .nav-menu.active .nav-link {

    opacity: 1 !important;

    transform: translateX(0) !important;
}


/* ==============================
   LINK STAGGER
   ============================== */

header#header .nav-menu.active .nav-link:nth-child(1) {
    transition-delay: 0.15s !important;
}

header#header .nav-menu.active .nav-link:nth-child(2) {
    transition-delay: 0.20s !important;
}

header#header .nav-menu.active .nav-link:nth-child(3) {
    transition-delay: 0.25s !important;
}

header#header .nav-menu.active .nav-link:nth-child(4) {
    transition-delay: 0.30s !important;
}

header#header .nav-menu.active .nav-link:nth-child(5) {
    transition-delay: 0.35s !important;
}

header#header .nav-menu.active .nav-link:nth-child(6) {
    transition-delay: 0.40s !important;
}


/* ==============================
   ACTIVE / HOVER
   ============================== */

header#header .nav-menu .nav-link:hover,
header#header .nav-menu .nav-link.active {

    color: #386C98 !important;
}


/* ==============================
   REQUEST MANPOWER
   ============================== */

header#header .nav-menu .btn-premium,
header#header .nav-menu .open-request-modal {

    display: block !important;

    width: 100% !important;

    margin-top: 15px !important;

    opacity: 0 !important;

    transform: translateX(15px) !important;

    transition:
        opacity 0.3s ease,
        transform 0.35s ease !important;
}


/* REQUEST BUTTON APPEARS */

header#header .nav-menu.active .btn-premium,
header#header .nav-menu.active .open-request-modal {

    opacity: 1 !important;

    transform: translateX(0) !important;

    transition-delay: 0.45s !important;
}

/* =========================================================
   FINAL DESKTOP NAVBAR FIX
   ========================================================= */

@media screen and (min-width: 769px) {

    /* =====================================================
       HEADER
       ===================================================== */

    header#header {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: 100% !important;

        z-index: 10000 !important;
    }


    /* =====================================================
       HEADER CONTAINER
       ===================================================== */

    header#header .container {
        position: relative !important;

        display: flex !important;

        align-items: center !important;

        justify-content: space-between !important;

        width: 100% !important;

        max-width: 1200px !important;

        margin: 0 auto !important;
    }


    /* =====================================================
       DESKTOP NAVIGATION
       ===================================================== */

    header#header .nav-menu {

        display: flex !important;

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: auto !important;

        max-width: none !important;

        height: auto !important;

        max-height: none !important;

        overflow: visible !important;

        margin-left: auto !important;

        padding: 0 !important;

        background: transparent !important;

        flex-direction: row !important;

        align-items: center !important;

        justify-content: flex-end !important;

        gap: 0.2rem !important;

        opacity: 1 !important;

        visibility: visible !important;

        transform: none !important;

        pointer-events: auto !important;

        box-shadow: none !important;

        z-index: 10001 !important;
    }


    /* =====================================================
       NAVIGATION LINKS
       ===================================================== */

    header#header .nav-menu .nav-link {

        display: inline-flex !important;

        position: relative !important;

        width: auto !important;

        min-width: auto !important;

        height: auto !important;

        padding: 0.65rem 0.75rem !important;

        margin: 0 !important;

        color: #ffffff !important;

        background: transparent !important;

        border: none !important;

        border-bottom: none !important;

        opacity: 1 !important;

        visibility: visible !important;

        transform: none !important;

        font-size: 0.85rem !important;

        font-weight: 500 !important;

        line-height: 1.3 !important;

        text-decoration: none !important;

        white-space: nowrap !important;

        pointer-events: auto !important;

        z-index: 10002 !important;
    }


    /* =====================================================
       NAVIGATION HOVER
       ===================================================== */

    header#header .nav-menu .nav-link:hover {

        color: #5da6d8 !important;

        transform: none !important;
    }


    /* =====================================================
       ACTIVE NAVIGATION
       ===================================================== */

    header#header .nav-menu .nav-link.active {

        color: #5da6d8 !important;
    }


    /* =====================================================
       REQUEST MANPOWER BUTTON
       ===================================================== */

    header#header .nav-menu .btn-premium,

    header#header .nav-menu .open-request-modal {

        display: inline-flex !important;

        position: relative !important;

        width: auto !important;

        min-width: auto !important;

        height: auto !important;

        margin: 0 0 0 0.5rem !important;

        padding: 0.7rem 1.1rem !important;

        opacity: 1 !important;

        visibility: visible !important;

        transform: none !important;

        pointer-events: auto !important;

        white-space: nowrap !important;

        z-index: 10002 !important;
    }


    /* =====================================================
       HIDE HAMBURGER ON DESKTOP
       ===================================================== */

    header#header .mobile-toggle {

        display: none !important;

        visibility: hidden !important;

        opacity: 0 !important;
    }


    /* =====================================================
       DISABLE MOBILE BACKDROP ON DESKTOP
       ===================================================== */

    .nav-backdrop {

        display: none !important;

        visibility: hidden !important;

        opacity: 0 !important;

        pointer-events: none !important;

        backdrop-filter: none !important;

        -webkit-backdrop-filter: none !important;
    }


    /* =====================================================
       DESKTOP ACTIVE MENU STATE
       ===================================================== */

    header#header .nav-menu.active {

        display: flex !important;

        position: relative !important;

        top: auto !important;

        right: auto !important;

        left: auto !important;

        width: auto !important;

        height: auto !important;

        max-height: none !important;

        background: transparent !important;

        opacity: 1 !important;

        visibility: visible !important;

        transform: none !important;

        pointer-events: auto !important;
    }

}