/* Custom Corporate Theme Styles for Avante International */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap');

:root {
  /* Avante International Official Brand Book Palette */
  --brand-obsidian: #222222;   /* 30% Supporting - headlines, primary dark, contrast panels */
  --brand-green: #A6BF3C;      /* 10% Accent - buttons, active states, badges, indicators */
  --brand-deepgreen: #538135;  /* Accessible text links on white (WCAG AA > 4.5:1) */
  --brand-logogreen: #99CC33;  /* Logo mark green */
  --brand-cream: #F2F2F2;      /* 60% Canvas / subtle backgrounds / generous whitespace */
  --brand-graphite: #58595B;   /* Secondary text, metadata, captions */
  --brand-white: #FFFFFF;

  --text-dark: #222222;
  --text-muted: #58595B;
  --bg-light: #F2F2F2;
  --border-color: #e5e7eb;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brand-obsidian);
  background-color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background-color: #A6BF3C;
  color: #222222;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Roboto', sans-serif;
  letter-spacing: normal !important;
}

/* Ensure all titles and headings have normal letter spacing across the website */
h1.tracking-tight, h2.tracking-tight, h3.tracking-tight, h4.tracking-tight, h5.tracking-tight, h6.tracking-tight,
h1.tracking-tighter, h2.tracking-tighter, h3.tracking-tighter, h4.tracking-tighter, h5.tracking-tighter, h6.tracking-tighter,
.hero-title, .page-title, .section-title,
.tracking-tight, .tracking-tighter {
  letter-spacing: normal !important;
}

/* Ensure headings on dark/obsidian containers are always pure visible white */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.bg-[#222222] h1,
.bg-[#222222] h2,
.bg-[#222222] h3,
.bg-[#222222] h4,
.bg-[#222222] h5,
.bg-[#222222] h6,
[class*="bg-[#222222]"] h1,
[class*="bg-[#222222]"] h2,
[class*="bg-[#222222]"] h3,
[class*="bg-[#222222]"] h4,
.hero-slide h1,
.hero-slide h2,
.hero-slide h3,
.hero-slide h4 {
  color: #ffffff !important;
}


/* 100% Full-Viewport Responsive Hero Slider */
#hero-slider-section {
  height: calc(100vh - 5rem);
  height: calc(100dvh - 5rem);
  min-height: 640px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.04);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
}

/* Glassmorphism & Cards */
.glass-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.gradient-hero-overlay {
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.94) 0%, rgba(34, 34, 34, 0.78) 50%, rgba(34, 34, 34, 0.3) 100%);
}

/* Interactive Cards & Hover Lift */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(34, 34, 34, 0.08), 0 8px 10px -6px rgba(34, 34, 34, 0.05);
}

/* Dropdown Menu Transitions */
.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease-out;
}

.dropdown-parent:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Clean Nav Link Styling per Reference Design */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
  color: #374151;
}
.nav-link:hover {
  color: var(--brand-deepgreen);
}
.nav-link.active {
  color: var(--brand-deepgreen);
  font-weight: 600;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--brand-green);
  transition: width 0.2s ease-in-out;
}
.nav-link.active::after {
  width: 100%;
}

/* Brand Quick Tabs in Hero */
.hero-brand-tab {
  border-radius: 0 !important;
  transition: all 0.25s ease;
  cursor: pointer;
}
.hero-brand-tab.active {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: var(--brand-green);
}

/* Architectural Sharp 90-Degree Corners - Zero Border Radius Across All Visual Elements (NO CURVE BUTTONS & NO RADIUS OF IMAGE) */
button,
[type="button"],
[type="submit"],
[type="reset"],
.hero-brand-tab,
.hero-indicator,
.btn-brand-primary,
.btn-brand-dark,
.btn-brand-outline,
img,
picture,
video,
.card-hover,
.img-sharp,
.rounded-sm,
.rounded,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl {
  border-radius: 0 !important;
}

/* Ensure interactive map coordinates, location pointers, and legend markers remain circular dot pins */
.rounded-full,
.pin .dot,
#global-footprint span.rounded-full,
#footprint span.rounded-full,
#footprint-map span.rounded-full {
  border-radius: 50% !important;
}


.btn-brand-primary {
  border-radius: 0 !important;
  background-color: var(--brand-green);
  color: var(--brand-obsidian);
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-brand-primary:hover {
  background-color: var(--brand-obsidian);
  color: #ffffff;
}

.btn-brand-dark {
  border-radius: 0 !important;
  background-color: var(--brand-obsidian);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-brand-dark:hover {
  background-color: var(--brand-green);
  color: var(--brand-obsidian);
}

.btn-brand-outline {
  border-radius: 0 !important;
  border: 1px solid var(--brand-obsidian);
  color: var(--brand-obsidian);
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-brand-outline:hover {
  border-color: var(--brand-green);
  background-color: var(--brand-green);
  color: var(--brand-obsidian);
}

/* ---------- Avante Global Network Map ---------- */
.avante-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 394.4;
  background: #fff;
  overflow: visible;
  user-select: none;
}
.avante-map svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto;
  filter: contrast(1.05);
}

/* ---------- Location pin ---------- */
.pin {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.pin .dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #84b010;
  border: 1px solid #fff;
}
@media (min-width: 640px) { .pin .dot { width: 8px;  height: 8px;  } }
@media (min-width: 768px) { .pin .dot { width: 10px; height: 10px; } }
@media (min-width: 1280px) { .pin .dot { width: 11px; height: 11px; } }
@media (min-width: 1536px) { .pin .dot { width: 12px; height: 12px; } }

/* ---------- Label badge ---------- */
.pin .badge {
  position: absolute;
  z-index: 30;
  display: flex;
  align-items: center;
  opacity: 0.95;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.pin:hover .badge { opacity: 1; }

.pin .label {
  background: #000;
  color: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  white-space: nowrap;
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
@media (min-width: 640px) { .pin .label { font-size: 9.5px;  padding: 2px 8px; } }
@media (min-width: 768px) { .pin .label { font-size: 10.5px; } }
@media (min-width: 1280px) { .pin .label { font-size: 11.5px; padding: 2.5px 8px; } }
@media (min-width: 1536px) { .pin .label { font-size: 12px;   padding: 3px 9px; } }

/* Arrow (small triangle) */
.pin .arrow { width: 0; height: 0; flex-shrink: 0; }

/* Placement: TOP (badge above dot, arrow points down) */
.pin.top .badge {
  left: 50%; bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  flex-direction: column;
}
.pin.top .arrow {
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-top: 2px solid #000;
}

/* Placement: BOTTOM (badge below dot, arrow points up) */
.pin.bottom .badge {
  left: 50%; top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  flex-direction: column;
}
.pin.bottom .arrow {
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-bottom: 2px solid #000;
}

/* Placement: RIGHT (badge to the right, arrow points left) */
.pin.right .badge {
  left: 100%; top: 50%;
  transform: translateY(-50%);
  margin-left: 2px;
  flex-direction: row;
}
.pin.right .arrow {
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-right: 2px solid #000;
}

/* Placement: LEFT (badge to the left, arrow points right) */
.pin.left .badge {
  right: 100%; top: 50%;
  transform: translateY(-50%);
  margin-right: 2px;
  flex-direction: row;
}
.pin.left .arrow {
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 2px solid #000;
}

@media (min-width: 640px) {
  .pin.top .badge    { margin-bottom: 6px; }
  .pin.bottom .badge { margin-top: 6px; }
  .pin.right .badge  { margin-left: 6px; }
  .pin.left .badge   { margin-right: 6px; }
  .pin.top .arrow    { border-left-width: 3.5px; border-right-width: 3.5px; border-top-width: 3.5px; }
  .pin.bottom .arrow { border-left-width: 3.5px; border-right-width: 3.5px; border-bottom-width: 3.5px; }
  .pin.right .arrow  { border-top-width: 3.5px; border-bottom-width: 3.5px; border-right-width: 3.5px; }
  .pin.left .arrow   { border-top-width: 3.5px; border-bottom-width: 3.5px; border-left-width: 3.5px; }
}

.pin:hover .badge.top-hover { transform: translateX(-50%) scale(1.05); }

/* ==========================================================================
   Google Translate Silent Integration & Internationalization (i18n)
   ========================================================================== */

/* Completely hide Google Translate default banners, tooltips, and gadget chrome */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

#google_translate_element,
.skiptranslate.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

font[style] {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* RTL Layout for Arabic */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] #main-header nav {
  direction: rtl;
}

html[dir="rtl"] .space-x-2 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-3 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-4 > :not([hidden]) ~ :not([hidden]),
html[dir="rtl"] .space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

html[dir="rtl"] [data-lucide="arrow-right"] {
  transform: scaleX(-1);
}

/* Homepage Hero Video - Proportionately Expand Full-Width, Top-Center Placement (No Top Cropping) */
.hero-bg-video {
  object-fit: cover !important;
  object-position: top center !important;
}

/* Header Brand Logos in Homepage Version 2 */
.header-brand-logo img {
  max-height: 28px;
  width: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header-brand-logo:hover img {
  transform: translateY(-1px);
}

/* 3-Image Architectural Mosaic Title Badges - Avante Black with Avante Logo Green Hover & White Text */
.mosaic-title-badge {
  background-color: #222222 !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mosaic-title-badge:hover,
.group:hover .mosaic-title-badge {
  background-color: #99CC33 !important; /* Avante Logo Green */
  color: #ffffff !important;
}

.mosaic-title-badge h3 {
  color: #ffffff !important;
}

/* ==========================================================================
   Global Brand Scrollbar (Avante Logo Green)
   ========================================================================== */

/* Modern Standard (Firefox) */
html {
  scrollbar-width: thin;
  scrollbar-color: #A6C03D rgba(34, 34, 34, 0.06);
}

/* WebKit & Chromium (Chrome, Edge, Safari, Brave, Opera) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(34, 34, 34, 0.04);
}

::-webkit-scrollbar-thumb {
  background-color: #A6C03D; /* Avante Brand Logo Green */
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #538135; /* Deep Green on hover */
}

::-webkit-scrollbar-thumb:active {
  background-color: #3e6227;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Custom subtle scrollbar for Project Showcase Sidebar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #A6C03D;
  border-radius: 0px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #538135;
}
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #A6C03D rgba(0, 0, 0, 0.05);
}

/* Hide Floating Chatbot Widget & Panels while Hamburger Drawer or Search Modal is Active */
body.drawer-active #chatbot-toggle-btn,
body.drawer-active #chatbot-window,
body.drawer-active #chatbot-panel,
body:has(#menu-drawer:not(.hidden)) #chatbot-toggle-btn,
body:has(#menu-drawer:not(.hidden)) #chatbot-window,
body:has(#menu-drawer:not(.hidden)) #chatbot-panel,
body:has(#mobile-menu:not(.hidden)) #chatbot-toggle-btn,
body:has(#mobile-menu:not(.hidden)) #chatbot-window,
body:has(#mobile-menu:not(.hidden)) #chatbot-panel,
body:has(#search-modal:not(.hidden)) #chatbot-toggle-btn,
body:has(#search-modal:not(.hidden)) #chatbot-window,
body:has(#search-modal:not(.hidden)) #chatbot-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Ensure all project images align from top center to prevent cropping building tops / roofs / spires */
.project-card img,
.project-card picture img,
.project-card [class*="aspect-"] img,
.project-card .aspect-\[4\/3\] img,
.project-card .aspect-\[16\/10\] img {
  object-position: top center !important;
}

/* Centered Timeline Marker on About Us */
.timeline-dot {
  position: absolute;
  top: 4px;
  width: 20px;
  height: 20px;
  left: -35px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: -51px;
  }
}

/* Responsive Facade Lifecycle Grid */
.lifecycle-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .lifecycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lifecycle-grid > * {
    border-bottom: 1px solid #e2e8f0;
  }
  .lifecycle-grid > *:nth-child(even) {
    border-left: 1px solid #e2e8f0;
  }
  .lifecycle-grid > *:last-child {
    grid-column: span 2;
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .lifecycle-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .lifecycle-grid > * {
    border-bottom: none !important;
  }
  .lifecycle-grid > * + * {
    border-left: 1px solid #e2e8f0 !important;
  }
}




