/* ==========================================================================
   LEVIZO ENGINEERING - CORPORATE DESIGN SYSTEM
   Official Brand Identity:
   Construction Orange (#F58220 / #D95B00), Industrial Carbon Slate (#111827), Dark Surface (#1F2937)
   NO BLUE TINTS - High-Vis Construction Palette
   ========================================================================== */

:root {
  --color-primary: #F58220;
  --color-primary-dark: #D96200;
  --color-primary-light: #FF9B42;
  --color-accent: #F58220;
  --color-accent-hover: #D96200;
  --color-accent-soft: rgba(245, 130, 32, 0.12);
  --color-heading-orange: #D95B00;
  --color-dark: #111827;
  --color-dark-surface: #1F2937;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-900: #0F172A;
  --color-white: #FFFFFF;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.14), 0 8px 12px -6px rgba(0, 0, 0, 0.06);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1280px;
  --transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --section-space: clamp(4rem, 8vw, 7rem);
}

/* CSS 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;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading-orange);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.65rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 130, 32, 0.45);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: var(--color-white);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
  text-shadow: none;
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.badge-orange {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.badge-blue {
  background-color: var(--color-accent-soft);
  color: var(--color-heading-orange);
  border: 1px solid rgba(245, 130, 32, 0.25);
}

.badge-white {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background-color: var(--color-dark);
  color: var(--color-gray-300);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item a:hover {
  color: var(--color-accent);
}

.topbar-offices {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   HEADER NAVIGATION & LOGO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s var(--ease-premium), background-color 0.35s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  height: auto;
  padding: 0.55rem 0;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Logo ? premium, readable scale */
.brand-logo {
  height: clamp(44px, 4.2vw, 54px);
  width: auto;
  max-width: min(280px, 48vw);
  object-fit: contain;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-dark);
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.65rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border: 1px solid var(--color-gray-100);
  z-index: 1050;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.nav-dropdown-item a:hover {
  background-color: var(--color-gray-50);
  color: var(--color-accent);
  padding-left: 1.45rem;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.nav-toggle-btn:focus-visible {
  outline: 2px solid var(--color-accent);
}

.mobile-nav-footer {
  display: none;
}

/* Mobile Drawer & Backdrop Default State (Hidden on Desktop) */
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

/* ==========================================================================
   HERO SLIDER SECTION (HUANDACOCOA STYLE - FULL WIDTH - STRICTLY NO BLUE OVERLAY)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: #0b111e;
  color: var(--color-white);
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

/* Full-bleed hero video ? natural colour, no blue wash */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88) contrast(1.04);
}

/* Background Slideshow Wrapper */
.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), transform 6.5s ease-out;
  transform: scale(1.04);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Natural realistic colors - STRICTLY NO BLUE/NAVY TINT OR FILTER */
  filter: brightness(0.92) contrast(1.03);
}

/* Strictly Center-Aligned Content Container */
.hero-center-container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Text directly on background image - NO BLACK BOX, NO BORDERS */
.hero-center-card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  padding: 0.42rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.65rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.hero-center-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
  /* Deep, crisp multi-layered shadows to keep text ultra-crisp over any photo */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 6px 20px rgba(0, 0, 0, 0.9),
    0 12px 40px rgba(0, 0, 0, 0.8);
}

.hero-center-heading span {
  color: var(--color-accent);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 18px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(249, 115, 22, 0.55);
}

.hero-center-subheading {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: #FFFFFF;
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
  font-weight: 500;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 16px rgba(0, 0, 0, 0.9);
}

.hero-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  justify-content: center;
  align-items: center;
}

.hero-center-actions .btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Slider Bottom Navigation Dots & Arrows */
.hero-slider-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-nav-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.hero-nav-arrow:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  width: 28px;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

/* Subtle Corner Slide Counter Badge */
.hero-slide-counter {
  position: absolute;
  bottom: 2.15rem;
  right: 2.5rem;
  z-index: 4;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.65);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

.hero-slide-counter .current-slide {
  color: var(--color-accent);
  font-size: 0.95rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  margin-top: 0.25rem;
}

/* ==========================================================================
   MILESTONES & CAPABILITIES
   ========================================================================== */
.section-padding {
  padding: var(--section-space) 0;
}

.section-bg-light {
  background-color: #f6f8fb;
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(245, 130, 32, 0.04), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(245, 130, 32, 0.05), transparent 50%);
}

.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-title-wrap {
  max-width: 600px;
}

.section-title {
  margin-top: 0.4rem;
  margin-bottom: 0.65rem;
}

.section-subtitle {
  color: var(--color-gray-600);
  font-size: 1.02rem;
}

.milestones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.milestones-media-wrap {
  position: relative;
}

.milestones-img-main,
.milestones-video {
  width: 100%;
  height: clamp(320px, 48vw, 520px);
  object-fit: cover;
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-xl);
}

.milestones-video-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-xl);
  background: var(--color-dark);
}

.milestones-video {
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.milestones-badge-float {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-100);
  text-align: center;
}

.badge-float-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.badge-float-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.milestones-list {
  list-style: none;
  margin-top: 2rem;
  position: relative;
}

.milestones-list::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 11px;
  width: 2px;
  background: var(--color-gray-200);
}

.milestone-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.65rem;
}

.milestone-item:last-child {
  margin-bottom: 0;
}

.milestone-dot {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-accent);
  z-index: 2;
}

.milestone-stage {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.milestone-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.2rem 0 0.3rem 0;
}

.milestone-desc {
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border-radius: calc(var(--radius-lg) + 2px);
  overflow: hidden;
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 40px -16px rgba(245, 130, 32, 0.2);
  border-color: rgba(245, 130, 32, 0.35);
}

.service-card-media {
  position: relative;
  height: clamp(200px, 22vw, 260px);
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-premium);
}

.service-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
}

.service-card:hover .service-card-link {
  color: var(--color-accent);
}

/* ==========================================================================
   BENTO / APPLICATIONS GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 230px;
  gap: 1.25rem;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background-color: var(--color-primary-dark);
}

.bento-item picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bento-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Large feature tile: full photo on desktop, cover fill on mobile */
@media (min-width: 1024px) {
  .bento-item-feature img {
    object-fit: contain;
    object-position: center;
  }
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-item-feature:hover img {
  transform: scale(1.02);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(5, 38, 82, 0.92) 0%,
    rgba(5, 38, 82, 0.45) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
  transition: var(--transition);
}

.bento-item:hover .bento-overlay {
  background: linear-gradient(
    to top,
    rgba(245, 130, 32, 0.95) 0%,
    rgba(5, 38, 82, 0.65) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.bento-title {
  font-size: 1.15rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.bento-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.bento-action-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.bento-item:hover .bento-action-btn {
  background: var(--color-dark);
  color: var(--color-white);
  transform: rotate(45deg);
}

.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.row-span-2 { grid-row: span 2; }

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.metrics-section {
  position: relative;
  background: linear-gradient(135deg, #111827 0%, #18181b 100%);
  color: var(--color-white);
  padding: 6rem 0;
  overflow: hidden;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: var(--transition);
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.metric-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.45rem;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--color-gray-300);
  line-height: 1.5;
}

/* ==========================================================================
   WHY CHOOSE US ? MOBILE OPTIMIZED 8 PILLARS (PAGE 7 PROFILE)
   ========================================================================== */
.why-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.why-pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.why-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.why-pillar-card:nth-child(even)::before {
  background-color: var(--color-accent);
}

.why-pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(245, 130, 32, 0.4);
}

.why-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(245, 130, 32, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.why-pillar-card:nth-child(even) .why-pillar-icon {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.why-pillar-card:hover .why-pillar-icon {
  transform: scale(1.1);
}

.why-pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.why-pillar-desc {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   TEAM & CAPABILITIES SPLIT
   ========================================================================== */
.team-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.team-media-wrap {
  position: relative;
  width: 100%;
}

.team-media-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.team-content-wrap {
  width: 100%;
}

.features-checklist {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.feature-check-desc {
  font-size: 0.88rem;
  color: var(--color-gray-600);
}

/* ==========================================================================
   PORTFOLIO FILTERABLE GALLERY
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-100);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.portfolio-card-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.06);
}

.portfolio-status-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-in-progress {
  background-color: #FEF3C7;
  color: #92400E;
}

.status-completed {
  background-color: #D1FAE5;
  color: #065F46;
}

.portfolio-card-body {
  padding: 1.5rem;
}

.portfolio-card-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.portfolio-card-title {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.portfolio-card-desc {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.portfolio-card-specs {
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: var(--color-gray-700);
  font-weight: 500;
  border-left: 3px solid var(--color-primary);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section-wrapper {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   BOTTOM CTA BANNER
   ========================================================================== */
.bottom-cta-banner {
  position: relative;
  background-color: #0b1523;
  color: var(--color-white);
  padding: 5.5rem 0;
  text-align: center;
  overflow: hidden;
}

.bottom-cta-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.bottom-cta-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bottom-cta-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.28) contrast(1.1);
}

.bottom-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 35, 0.65);
  z-index: 2;
  pointer-events: none;
}

.bottom-cta-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
}

.bottom-cta-title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.bottom-cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #111827;
  color: var(--color-gray-300);
  font-size: 0.9rem;
  padding-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-brand img {
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 4px 10px;
  border-radius: 6px;
}

.footer-brand p {
  color: var(--color-gray-300);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 1rem 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: var(--color-gray-300);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 0.3rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.footer-contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: var(--color-gray-300);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-credit-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.footer-credit-link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  background-color: #20BA5A;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 3px 8px rgba(0, 0, 0, 0.25);
  color: #FFFFFF !important;
}

.whatsapp-float:active {
  transform: scale(0.96);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.whatsapp-float-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover .whatsapp-float-icon {
  transform: scale(1.05);
}

/* Subtle continuous pulse wave */
.whatsapp-float-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: wa-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Accessible Tooltip */
.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #111827;
  color: #FFFFFF;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.whatsapp-float-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #111827;
}

.whatsapp-float:hover .whatsapp-float-tooltip,
.whatsapp-float:focus .whatsapp-float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   SUBPAGE HERO COMPONENT (CENTER ALIGNED ACROSS ALL DEVICES)
   ========================================================================== */
.subpage-hero {
  background: linear-gradient(110deg, #111827 0%, #1f2937 100%); border-bottom: 3px solid var(--color-accent);
  color: var(--color-white);
  padding: 4.75rem 0 3.75rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

.subpage-hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.subpage-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Stronger hero photo (Why Us, etc.) */
.subpage-hero--with-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(17, 24, 39, 0.88) 0%,
    rgba(17, 24, 39, 0.72) 45%,
    rgba(17, 24, 39, 0.55) 100%
  );
}

.subpage-hero--with-media .subpage-hero-bg {
  opacity: 1;
}

.subpage-hero--with-media .subpage-hero-bg img {
  filter: brightness(0.55) contrast(1.08);
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subpage-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  word-wrap: break-word;
  text-align: center;
}

.subpage-hero p {
  max-width: 750px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  text-align: center;
}

/* ==========================================================================
   SERVICES LISTING ARCHITECTURE
   ========================================================================== */
.services-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.services-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.services-list-item.is-even .service-item-media {
  order: 2;
}

.services-list-item.is-even .service-item-content {
  order: 1;
}

.service-item-media {
  position: relative;
  width: 100%;
}

.service-item-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: block;
}

.service-item-content {
  width: 100%;
}

.service-item-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--color-primary);
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.service-item-desc {
  color: var(--color-gray-600);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.service-item-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   SERVICE DETAIL ARCHITECTURE
   ========================================================================== */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

.service-detail-main {
  min-width: 0; /* Prevents flex/grid child overflow */
}

.service-detail-media {
  margin-bottom: 2.25rem;
}

.service-detail-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: block;
}

.service-detail-body {
  color: var(--color-gray-700);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  overflow-wrap: break-word;
}

.service-detail-body p {
  margin-bottom: 1.25rem;
}

.service-specs-box {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.service-inquiry-box {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.service-inquiry-box h3 {
  color: var(--color-white);
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.service-inquiry-box p {
  color: var(--color-gray-300);
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  font-size: 0.95rem;
}

.service-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 90px;
}

.service-sidebar-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.service-sidebar-card.contact-card {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.service-sidebar-title {
  color: var(--color-primary);
  margin-bottom: 1.15rem;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.service-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-sidebar-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.service-sidebar-link:hover,
.service-sidebar-link.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   CONTACT PAGE ARCHITECTURE
   ========================================================================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.contact-direct-box {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-gray-200);
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-direct-item + .contact-direct-item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-gray-200);
}

.contact-office-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}

.contact-office-card.lahore {
  border-left: 4px solid var(--color-primary);
}

.contact-office-card.islamabad {
  border-left: 4px solid var(--color-accent);
}

.contact-office-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (DESKTOP, TABLET & MOBILE FIXES)
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 1.25rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .why-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .topbar {
    display: none;
  }
  
  .nav-container {
    height: 70px;
    min-height: 70px;
  }
  
  .brand-logo {
    height: clamp(44px, 6vw, 54px);
    width: auto;
    max-width: min(250px, 68vw);
  }
  
  .nav-toggle-btn {
    display: block;
  }
  
  .nav-cta {
    display: none;
  }

  /* Hide desktop menu on mobile/tablets */
  .nav-menu {
    display: none;
  }

  /* Partial-Width Mobile Side Drawer (75-85% width, max 380px) */
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 380px);
    background-color: #FFFFFF;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.28);
    z-index: 99999;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
  }

  .mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--color-gray-100);
    background: #FFFFFF;
  }

  .drawer-logo-wrap {
    display: flex;
    align-items: center;
  }

  .drawer-logo {
    height: 38px;
    max-width: 195px;
    width: auto;
    object-fit: contain;
  }

  .drawer-close-btn {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .drawer-close-btn:hover {
    background: var(--color-gray-200);
    color: var(--color-primary);
  }

  .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.35rem 2.25rem 1.35rem;
    display: flex;
    flex-direction: column;
  }

  .drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .drawer-nav-item {
    border-bottom: 1px solid var(--color-gray-100);
  }

  .drawer-nav-link {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: var(--transition);
  }

  .drawer-nav-link:hover,
  .drawer-nav-link.active {
    color: var(--color-primary);
    padding-left: 0.35rem;
  }

  /* Services Accordion inside Drawer */
  .drawer-nav-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .accordion-trigger {
    background: var(--color-gray-100);
    border: none;
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-gray-700);
    transition: transform 0.25s ease, background-color 0.2s ease;
  }

  .has-accordion.open .accordion-trigger {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: #FFFFFF;
  }

  .drawer-submenu {
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    display: none;
  }

  .has-accordion.open .drawer-submenu {
    display: block;
  }

  .drawer-submenu li a {
    display: block;
    padding: 0.5rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-gray-700);
  }

  .drawer-submenu li a:hover {
    color: var(--color-accent);
    padding-left: 0.75rem;
  }

  .drawer-view-all {
    margin-top: 0.25rem;
    padding-top: 0.5rem !important;
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-accent) !important;
    font-weight: 700 !important;
  }

  .drawer-footer-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .drawer-footer-actions .btn-block {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  /* Hero Slider on Tablet */
  .hero-slider-section {
    min-height: 75vh;
    padding: 3.5rem 0;
  }

  .hero-center-card {
    padding: 0;
    max-width: 680px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* Services Listing on Tablet */
  .services-list-wrap {
    gap: 3.5rem;
  }

  .services-list-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-list-item.is-even .service-item-media {
    order: 1;
  }

  .services-list-item.is-even .service-item-content {
    order: 2;
  }

  /* Service Detail on Tablet */
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .service-detail-sidebar {
    position: static;
  }

  /* Contact Page on Tablet */
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .services-cards-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .milestones-grid,
  .team-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .col-span-8, .col-span-4, .col-span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 3.25rem 0;
  }

  .brand-logo {
    height: clamp(42px, 6.5vw, 50px);
    width: auto;
    max-width: min(240px, 70vw);
  }

  /* Subpage Hero on Mobile */
  .subpage-hero {
    padding: 3rem 0 2.25rem 0;
  }

  /* Hero Slider Section Mobile Optimization (NO BLUE OVERLAY) */
  .hero-slider-section {
    min-height: 70vh;
    padding: 2.75rem 0 4.25rem 0;
  }

  .hero-center-card {
    padding: 0;
    max-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .hero-pill-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
  }

  .hero-center-heading {
    font-size: clamp(1.85rem, 7vw, 2.45rem);
    line-height: 1.2;
    margin-bottom: 0.95rem;
  }

  .hero-center-subheading {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1.65rem;
  }

  .hero-center-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-center-actions .btn {
    width: 100%;
    max-width: 270px;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    font-size: 0.95rem;
  }

  .hero-slider-nav {
    bottom: 1rem;
    gap: 0.85rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-slide-counter {
    display: none;
  }

  /* Services & Service Detail Mobile */
  .service-item-media img {
    max-height: 280px;
  }

  .service-detail-media img {
    max-height: 320px;
  }

  .service-specs-box {
    padding: 1.5rem 1.15rem;
  }

  .service-inquiry-box {
    padding: 1.85rem 1.25rem;
  }

  .service-sidebar-card {
    padding: 1.35rem 1.15rem;
  }

  /* Contact Page Mobile */
  .contact-section-wrapper {
    padding: 1.85rem 1.25rem;
  }

  .contact-direct-box {
    padding: 1.35rem 1.15rem;
  }

  .contact-office-card {
    padding: 1.25rem 1.15rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Floating WhatsApp on Mobile */
  .whatsapp-float {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float-icon {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float-tooltip {
    display: none !important;
  }

  /* Milestones & Metrics Mobile */
  .milestones-img-main {
    height: 300px;
  }

  .milestones-badge-float {
    top: -15px;
    left: 0;
    padding: 0.85rem 1.15rem;
  }

  .badge-float-num {
    font-size: 1.85rem;
  }

  .services-cards-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .why-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .why-pillar-card {
    padding: 1.35rem 1.2rem;
  }

  .team-media-wrap img {
    height: 300px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .metric-card {
    padding: 1.5rem 1.25rem;
  }

  .metric-number {
    font-size: 2.35rem;
  }

  .bottom-cta-banner {
    padding: 3.75rem 0;
    min-height: 22rem;
  }

  .bottom-cta-media,
  .bottom-cta-media picture,
  .bottom-cta-media img {
    min-height: 100%;
  }

  .bento-grid {
    grid-auto-rows: minmax(220px, auto);
  }

  .bento-item-feature img {
    object-fit: cover;
    object-position: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Extra Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }

  .service-item-actions {
    flex-direction: column;
    width: 100%;
  }

  .service-item-actions .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
  }

  .hero-floating-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .features-checklist {
    grid-template-columns: 1fr;
  }
}

/* Ultra Compact Mobile (<= 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero-content {
    padding: 2.25rem 0 1.75rem 0;
  }

  .contact-section-wrapper {
    padding: 1.25rem 0.85rem;
  }

  .contact-direct-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .service-specs-box,
  .service-inquiry-box,
  .service-sidebar-card {
    padding: 1.15rem 0.85rem;
  }
}

/* ==========================================================================
   PREMIUM DESIGN LAYER ? Huanda-inspired polish (design only)
   ========================================================================== */
.reveal-hero {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-stagger-in 0.7s var(--ease-premium) forwards;
}

.reveal-hero[data-hero-stagger="1"] { animation-delay: 0.08s; }
.reveal-hero[data-hero-stagger="2"] { animation-delay: 0.2s; }
.reveal-hero[data-hero-stagger="3"] { animation-delay: 0.34s; }
.reveal-hero[data-hero-stagger="4"] { animation-delay: 0.48s; }

@keyframes hero-stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.65s var(--ease-premium), transform 0.65s var(--ease-premium);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.img-reveal {
  overflow: hidden;
  border-radius: inherit;
}

.img-reveal img,
.img-reveal video {
  transform: scale(1.08);
  clip-path: inset(0 18% 0 18%);
  transition: transform 1s var(--ease-premium), clip-path 1s var(--ease-premium);
}

.img-reveal.is-visible img,
.img-reveal.is-visible video {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.btn svg {
  transition: transform 0.3s var(--ease-premium);
}

.btn:hover svg {
  transform: translateX(4px);
}

.nav-link::after {
  height: 2.5px;
  border-radius: 2px;
}

.portfolio-card {
  border-radius: calc(var(--radius-lg) + 2px);
  transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium);
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

.portfolio-card-media img {
  transition: transform 0.85s var(--ease-premium);
}

.why-pillar-card {
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium), border-color 0.35s ease;
}

.why-pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 130, 32, 0.35);
  box-shadow: var(--shadow-lg);
}

.subpage-hero {
  min-height: clamp(240px, 38vw, 380px);
  display: flex;
  align-items: center;
}

.footer-logo {
  height: clamp(44px, 5vw, 58px);
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
}

.metric-card {
  transition: transform 0.4s var(--ease-premium), border-color 0.35s ease, background 0.35s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
}

@media (max-width: 768px) {
  .hero-slider-section {
    min-height: 78vh;
    padding: 3.25rem 0 4.5rem;
  }

  .hero-video {
    object-position: center 35%;
  }

  .milestones-img-main,
  .milestones-video {
    height: 280px;
  }

  .milestones-badge-float {
    top: -12px;
    left: 12px;
    padding: 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal-hero,
  .reveal-on-scroll,
  .reveal-left,
  .reveal-scale,
  .img-reveal img,
  .img-reveal video,
  .hero-slide,
  .hero-video {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .btn:hover,
  .service-card:hover,
  .portfolio-card:hover,
  .metric-card:hover,
  .why-pillar-card:hover {
    transform: none;
  }
}

/* Form + contact polish */
.contact-section-wrapper {
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.form-control {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  border-color: rgba(245, 130, 32, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.btn-primary {
  letter-spacing: 0.01em;
}

.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

/* ==========================================================================
   HUANDA HOMEPAGE MATCH — visible premium sections (Levizo brand colors)
   ========================================================================== */

/* Shared Huanda buttons */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-premium), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  line-height: 1.2;
}

.hd-btn:hover {
  transform: translateY(-2px);
}

.hd-btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 1.05rem;
}

.hd-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.hd-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hd-btn-solid {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hd-btn-solid:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.hd-btn-dark {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

.hd-btn-dark:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ----- 1. HERO (full-bleed + video) ----- */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(245, 130, 32, 0.15);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.page-home .site-header.scrolled {
  position: fixed;
  background: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
}

.page-home .nav-link {
  color: var(--color-dark);
}

.page-home .nav-link:hover,
.page-home .nav-link.active {
  color: var(--color-primary);
}

.page-home .nav-link::after {
  background-color: var(--color-accent);
}

.page-home .header-cta,
.page-home .btn-nav-cta {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.page-home .mobile-menu-toggle span,
.page-home .hamburger span {
  background: var(--color-dark);
}

.hd-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111827;
  color: #fff;
}

.hd-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hd-hero-media .hero-slides-wrapper,
.hd-hero-media .hero-slide,
.hd-hero-media picture,
.hd-hero-media img,
.hd-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hd-hero-video,
video.hd-about-photo {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hd-hero-media .hero-slides-wrapper {
  z-index: 0;
}

.hd-hero-media .hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hd-hero-media .hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hd-hero-media::after {
  display: none;
  content: none;
}

.hd-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 9rem) 1.5rem 5.5rem;
  text-align: left;
  animation: hdHeroIn 0.9s var(--ease-premium) both;
}

.hd-hero-inner {
  max-width: 820px;
}

@keyframes hdHeroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hd-hero-title {
  font-family: var(--font-heading);
  margin: 0 0 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  letter-spacing: normal;
}

.hd-hero-accent-bar {
  display: block;
  width: 56px;
  height: 5px;
  background-color: var(--color-accent);
  border-radius: 3px;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 10px rgba(245, 130, 32, 0.6);
}

.hd-hero-tagline {
  display: block;
  color: #FFFFFF !important;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hd-hero-main {
  display: block;
  color: var(--color-accent) !important;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.hd-hero-sub {
  display: block;
  color: #FFFFFF !important;
  font-size: clamp(1.25rem, 2.6vw, 2.15rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hd-hero-title-line {
  color: var(--color-accent) !important;
  display: block;
}

.hd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.hd-hero .hd-btn-outline {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  min-width: 148px;
  padding: 0.9rem 1.9rem;
}

.hd-hero .hd-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hd-hero .hd-btn-solid {
  background: #fff;
  color: #111;
  border-color: #fff;
  min-width: 148px;
  padding: 0.9rem 1.9rem;
  box-shadow: none;
}

.hd-hero .hd-btn-solid:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.hd-hero-media .hd-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hd-hero-arrow,
.hd-hero-dots {
  display: none !important;
}

/* ----- 2. ABOUT overlapping pull panel ----- */
.hd-about-pull {
  position: relative;
  z-index: 5;
  margin-top: -4.5rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hd-about-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.08);
}

.hd-about-visual {
  position: relative;
}

.hd-about-years {
  position: absolute;
  top: -1.25rem;
  left: -0.5rem;
  z-index: 2;
  background: linear-gradient(145deg, #f8e8d8, #f5d0b0);
  color: var(--color-accent);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 12px 28px rgba(245, 130, 32, 0.25);
  text-align: center;
  min-width: 110px;
}

.hd-about-years-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}

.hd-about-years-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-top: 0.35rem;
  line-height: 1.3;
  max-width: 90px;
  margin-left: auto;
  margin-right: auto;
}

.hd-about-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.hd-about-heading {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  margin-bottom: 0.85rem;
}

.hd-about-text {
  color: var(--color-gray-600);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.hd-timeline {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-left: 2px solid var(--color-gray-200);
}

.hd-timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0 0 1.35rem 1.25rem;
  position: relative;
}

.hd-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
}

.hd-timeline-year {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.hd-timeline li strong {
  display: block;
  color: var(--color-dark);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.hd-timeline li p {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.55;
}

/* ----- 3. PRODUCTS 3-up ----- */
.hd-products {
  background: #fff;
}

.hd-products-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.hd-products-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0;
}

.hd-products-aside p {
  color: var(--color-gray-600);
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}

.hd-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.hd-product-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.85rem;
  text-align: center;
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s ease;
}

.hd-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px -16px rgba(245, 130, 32, 0.22);
}

.hd-product-media {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hd-product-media img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s var(--ease-premium);
}

.hd-product-card:hover .hd-product-media img {
  transform: scale(1.05);
}

.hd-product-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hd-product-desc {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hd-product-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.hd-product-link:hover {
  color: var(--color-primary);
}

/* ----- 4. Bento head ----- */
.hd-bento-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.hd-bento-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.hd-bento-lead {
  color: var(--color-gray-600);
  font-size: 1.05rem;
}

.hd-bento .bento-item {
  border-radius: 16px;
  overflow: hidden;
}

.hd-bento .bento-overlay {
  padding: 1.25rem 1.35rem;
}

.hd-bento .bento-title {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.35rem;
}

/* ----- 5. Metrics glass + photo bg ----- */
.hd-metrics {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.hd-metrics-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hd-metrics-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-metrics-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(24, 24, 27, 0.9) 55%, rgba(15, 23, 42, 0.94) 100%);
}

.hd-metrics-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hd-metrics-intro h2 {
  color: #fff !important;
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
  margin-bottom: 0.85rem;
}

.hd-metrics-intro p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hd-metrics-grid {
  margin-top: 2.75rem;
}

.hd-metrics .metric-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  text-align: center;
  padding: 2rem 1.25rem;
}

.hd-metrics .metric-number {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.hd-metrics .metric-title {
  color: rgba(255, 255, 255, 0.95);
}

.hd-metrics .metric-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ----- 6. Elite team ----- */
.hd-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hd-team-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 360px;
}

.hd-team-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hd-team-copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}

.hd-team-copy > p {
  color: var(--color-gray-600);
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
}

.hd-team-points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.hd-team-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  color: var(--color-gray-700);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-gray-100);
}

.hd-team-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ----- 7. News / projects head ----- */
.hd-news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.hd-news-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin: 0;
}

.hd-news-more {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.hd-news-more:hover {
  color: var(--color-accent);
}

.hd-news-lead {
  color: var(--color-gray-600);
  margin-bottom: 1.75rem;
  max-width: 640px;
}

/* ----- 8. Online message form ----- */
.hd-message {
  background: #f3f4f6;
}

.hd-message-inner {
  max-width: 880px;
  margin: 0 auto;
}

.hd-message-intro {
  text-align: center;
  margin-bottom: 2.25rem;
}

.hd-message-intro h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  margin-bottom: 0.65rem;
}

.hd-message-intro p {
  color: var(--color-gray-600);
  font-size: 1.02rem;
}

.hd-message .form-control {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.hd-message-submit {
  text-align: center;
  margin-top: 1.75rem;
}

.hd-message-submit p {
  font-size: 0.82rem;
  color: var(--color-gray-600);
  margin-top: 0.85rem;
}

/* ----- 9. CTA banner ----- */
.hd-cta {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hd-cta .bottom-cta-media::after,
.hd-cta::before {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.55) 0%, rgba(17, 24, 39, 0.82) 100%);
}

.hd-cta-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 1.5rem;
  max-width: 820px;
}

.hd-cta-title {
  color: #fff !important;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hd-cta-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  margin: 0 auto 2rem;
  max-width: 560px;
}

/* Responsive */
@media (max-width: 992px) {
  .hd-about-panel,
  .hd-products-head,
  .hd-team-grid {
    grid-template-columns: 1fr;
  }

  .hd-about-pull {
    margin-top: -2.5rem;
  }

  .hd-about-photo {
    min-height: 300px;
  }

  .hd-products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .hd-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hd-hero-arrow {
    width: 42px;
    height: 42px;
  }

  .hd-hero-content {
    text-align: left;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hd-hero {
    min-height: 88vh;
  }

  .hd-hero-content {
    padding: 6rem 1.15rem 4rem;
  }

  .hd-about-years {
    left: 0.5rem;
    top: -0.75rem;
  }

  .hd-timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hd-metrics-grid {
    grid-template-columns: 1fr;
  }

  .hd-news-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-hero-content {
    animation: none;
  }

  .hd-btn:hover,
  .hd-product-card:hover {
    transform: none;
  }
}
