
:root{
  --wae-primary:#F69827;
  --wae-secondary:#65BFE6;
  --wae-dark:#2E2E35;
  --wae-muted:#6c757d;
  --wae-light:#F3F4F6;
}

body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--wae-dark);
  background: #fff;
}

h1,h2,h3,h4,h5,.display-1,.display-2,.display-3,.display-4{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
}

.navbar{
  backdrop-filter: blur(10px);
}

.btn-primary{
  background: var(--wae-primary);
  border-color: var(--wae-primary);
}
.btn-primary:hover,.btn-primary:focus{
  background: #e9891e;
  border-color: #e9891e;
}
.btn-outline-primary{
  color: var(--wae-primary);
  border-color: var(--wae-primary);
}
.btn-outline-primary:hover{
  background: var(--wae-primary);
  border-color: var(--wae-primary);
}

.badge-wae{
  background: rgba(246,152,39,.12);
  color: var(--wae-primary);
  border: 1px solid rgba(246,152,39,.25);
}

.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(46,46,53,.85), rgba(46,46,53,.25));
}

.section-title{
  display:flex; align-items:center; gap:.75rem;
}
.section-title::before{
  content:"";
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--wae-primary);
  box-shadow: 0 8px 24px rgba(246,152,39,.35);
}

.card{
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
.card .card-img-top{
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.soft-panel{
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--wae-light));
  border: 1px solid rgba(17,24,39,.06);
}

.footer{
  background: var(--wae-dark);
  color: rgba(255,255,255,.85);
}
.footer a{ color: rgba(255,255,255,.85); }
.footer a:hover{ color: #fff; }

.gallery-thumb{
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* Logo sizing */
.brand-logo{ object-fit: contain; }

/* Navbar brand logo (consistent across all pages) */
.navbar-brand .brand-logo{
  width: 74px;
  height: 74px;
}

@media (max-width: 576px){
  .navbar-brand .brand-logo{ width: 62px; height: 62px; }
}

/* Multi-level dropdown (hover on desktop, click on mobile) */
@media (min-width: 992px){
  .navbar .dropdown:hover > .dropdown-menu{ display: block; }
  .navbar .dropdown-menu{ margin-top: 0; }

  .navbar .dropdown-submenu{ position: relative; }
  .navbar .dropdown-submenu > .dropdown-menu{
    top: 0;
    left: 100%;
    margin-left: .1rem;
  }
  .navbar .dropdown-submenu:hover > .dropdown-menu{ display: block; }
}

/* Make nested menus stay readable */
.dropdown-menu{ min-width: 15rem; }
.dropdown-menu .dropdown-menu{ min-width: 16rem; }

/* Hero/footer logo stays a bit smaller */
.wae-hero-card .brand-logo,
.footer .brand-logo{
  width: 56px;
  height: 56px;
}

/* Gallery thumbnails: consistent height even if aspect-ratio isn't supported */
.gallery-thumb{
  height: auto;
}

@supports not (aspect-ratio: 4 / 3){
  .gallery-thumb{ height: 180px; }
}

/* Service cards: keep images uniform */
.svc-card .card-img-top{
  height: 190px;
  object-fit: cover;
}

.section-card a{ display:block; }

.small-muted{ color: rgba(46,46,53,.7); }

.kpi{
  border-radius: 18px;
  background: rgba(101,191,230,.08);
  border: 1px solid rgba(101,191,230,.20);
}

.pattern-bg{
  position: relative;
}
.pattern-bg::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(246,152,39,.12), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(101,191,230,.12), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(46,46,53,.08), transparent 50%);
  pointer-events:none;
}

.hero-section {
    position: relative;
}

.carousel-item img {
    height: 85vh;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    padding: 30px;
    border-radius: 10px;
    bottom: 20%;
}

.carousel-caption h1 {
    font-weight: 800;
    color: #f7931e; /* Orange from logo */
}

.carousel-caption p {
    font-size: 1.1rem;
    color: #ffffff;
}

.carousel-logo {
    max-height: 70px;
    margin-bottom: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-item img {
        height: 60vh;
    }
}
.logo-main {
    height: 55px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-main {
        height: 45px;
    }
}
.carousel-logo {
    max-height: 70px;
    margin-bottom: 15px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
}
.footer-logo {
    height: 50px;
}


.wae-hero-img{height: clamp(420px, 70vh, 720px); object-fit: cover;}
    .wae-hero-card{
      max-width: 780px; margin: 0 auto; padding: 1.25rem;
      border-radius: 1rem;
      background: rgba(0,0,0,.45);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      border: 1px solid rgba(255,255,255,.18);
      box-shadow: 0 18px 50px rgba(0,0,0,.35);
    }
    .carousel-caption{bottom: 12%;}
    @media (max-width: 576px){
      .carousel-caption{left: 6%; right: 6%; bottom: 8%;}
      .wae-hero-card{padding: 1rem;}
    }

    /* Added homepage styles */
    .wae-badge{
      display:inline-flex; align-items:center; gap:.5rem;
      padding:.4rem .75rem; border-radius:999px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.18);
      color:#fff;
      font-size:.95rem;
    }
    .wae-stat{
      border-radius: 1rem;
      border: 1px solid rgba(0,0,0,.08);
      background: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,.06);
      padding: 1.25rem;
      height: 100%;
    }
    .wae-icon{
      width: 44px; height: 44px; border-radius: 12px;
      display:flex; align-items:center; justify-content:center;
      background: rgba(13,110,253,.08);
      border: 1px solid rgba(13,110,253,.15);
      font-size: 1.25rem;
    }
    .wae-card{
      border-radius: 1rem;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 12px 35px rgba(0,0,0,.06);
      overflow: hidden;
      height: 100%;
    }
    .wae-card img{height: 180px; object-fit: cover;}
    .wae-pill{
      display:inline-block;
      padding:.3rem .65rem;
      border-radius: 999px;
      background: rgba(25,135,84,.10);
      border: 1px solid rgba(25,135,84,.18);
      color: #146c43;
      font-weight: 600;
      font-size: .85rem;
    }
    .wae-soft{
      background: linear-gradient(180deg, rgba(13,110,253,.05), rgba(0,0,0,0));
    }
    .wae-legal{
      border-radius: 1rem;
      background: #0b1220;
      border: 1px solid rgba(255,255,255,.08);
      padding: 1.25rem;
    }
    .wae-legal code{
      color:#fff;
      background: rgba(255,255,255,.08);
      padding: .15rem .35rem;
      border-radius: .4rem;
    }

    .contact-hero{
      position: relative;
      border-radius: 1.25rem;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 18px 45px rgba(0,0,0,.08);
    }
    .contact-hero img{width:100%; height: clamp(260px, 38vh, 420px); object-fit: cover;}
    .hero-overlay{
      position:absolute; inset:0;
      background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.12));
      display:flex; align-items:flex-end;
    }
    .hero-card{
      margin: 1.25rem;
      max-width: 720px;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 1rem;
      padding: 1.25rem;
      color:#fff;
    }
    .wae-pill{
      display:inline-flex; align-items:center; gap:.5rem;
      padding:.35rem .75rem; border-radius:999px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.18);
      font-weight: 600;
      font-size: .9rem;
    }
    .map-wrap{
      border-radius: 1rem;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 12px 35px rgba(0,0,0,.06);
      background: #fff;
    }
    .map-frame{
      width: 100%;
      height: 360px;
      border: 0;
      display:block;
    }
    .hero-about{
      position: relative;
      border-radius: 1.25rem;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 18px 45px rgba(0,0,0,.08);
    }
    .hero-about img{width:100%; height: clamp(340px, 55vh, 560px); object-fit: cover;}
    .hero-overlay{
      position:absolute; inset:0;
      background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
      display:flex; align-items:flex-end;
    }
    .hero-card{
      margin: 1.25rem;
      max-width: 560px;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 1rem;
      padding: 1.25rem;
      color:#fff;
    }
    .wae-pill{
      display:inline-flex; align-items:center; gap:.5rem;
      padding:.35rem .75rem; border-radius:999px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.18);
      font-weight: 600;
      font-size: .9rem;
    }
    .wae-stat{
      border-radius: 1rem;
      border: 1px solid rgba(0,0,0,.08);
      background: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,.06);
      padding: 1.25rem;
      height: 100%;
    }
    .wae-icon{
      width: 44px; height: 44px; border-radius: 12px;
      display:flex; align-items:center; justify-content:center;
      background: rgba(13,110,253,.08);
      border: 1px solid rgba(13,110,253,.15);
      font-size: 1.25rem;
    }
    .wae-soft{
      background: linear-gradient(180deg, rgba(13,110,253,.05), rgba(0,0,0,0));
    }
    .wae-legal{
      border-radius: 1rem;
      background: #0b1220;
      border: 1px solid rgba(255,255,255,.08);
      padding: 1.25rem;
    }
    .wae-legal code{
      color:#fff;
      background: rgba(255,255,255,.08);
      padding: .15rem .35rem;
      border-radius: .4rem;
    }

    .wae-soft { background: linear-gradient(180deg, rgba(13,110,253,.05), rgba(0,0,0,0)); }
    .gallery-hero{
      border-radius: 1.25rem;
      overflow:hidden;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 18px 45px rgba(0,0,0,.08);
      position: relative;
      background: #fff;
    }
    .gallery-hero .hero-bg{
      height: clamp(220px, 35vh, 360px);
      background-image:
        radial-gradient(1200px 400px at 10% 0%, rgba(13,110,253,.18), transparent 60%),
        radial-gradient(1000px 400px at 90% 20%, rgba(255,193,7,.18), transparent 55%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0)),
        url('../img/carousel/p01_img01_xref856.jpg');
      background-size: auto, auto, auto, cover;
      background-position: center, center, center, center;
      background-repeat: no-repeat;
    }
    .gallery-hero .hero-content{
      position:absolute; inset:0;
      display:flex; align-items:flex-end;
      padding: 1.25rem;
    }
    .hero-card{
      max-width: 720px;
      background: rgba(255,255,255,.85);
      border: 1px solid rgba(0,0,0,.08);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 1rem;
      padding: 1.1rem 1.2rem;
      box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }
    .filter-pill{
      border-radius: 999px !important;
      padding: .45rem .85rem;
      border: 1px solid rgba(0,0,0,.12);
      background: #fff;
      font-weight: 600;
      font-size: .95rem;
    }
    .filter-pill.active{
      border-color: rgba(13,110,253,.35);
      box-shadow: 0 10px 25px rgba(13,110,253,.10);
    }
    .gallery-thumb{
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      border-radius: 1rem;
      border: 1px solid rgba(0,0,0,.10);
      box-shadow: 0 10px 24px rgba(0,0,0,.06);
      transition: transform .18s ease, box-shadow .18s ease;
      background: #fff;
    }
    .gallery-thumb:hover{
      transform: translateY(-2px);
      box-shadow: 0 14px 34px rgba(0,0,0,.12);
    }
    .section-card{
      border: 1px solid rgba(0,0,0,.08);
      border-radius: 1.25rem;
      overflow: hidden;
      box-shadow: 0 12px 30px rgba(0,0,0,.06);
    }
    .section-card .card-body{ padding: 1.25rem; }
    .toggle-btn{
      width: 44px;
      height: 44px;
      border-radius: 999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border: 1px solid rgba(13,110,253,.25);
      background: rgba(13,110,253,.06);
      color: var(--bs-primary);
    }
    .toggle-btn:hover{
      background: rgba(13,110,253,.10);
      border-color: rgba(13,110,253,.35);
    }
    .muted{ color: rgba(0,0,0,.6); }
    /* keep same UX but modernize hero (no breaking changes) */
    .hero-markets{
      position: relative;
      border-radius: 1.25rem;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 18px 45px rgba(0,0,0,.08);
    }
    .hero-markets img{width:100%; height: clamp(320px, 48vh, 520px); object-fit: cover;}
    .hero-overlay{
      position:absolute; inset:0;
      background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.12));
      display:flex; align-items:flex-end;
    }
    .hero-card{
      margin: 1.25rem;
      max-width: 640px;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 1rem;
      padding: 1.25rem;
      color:#fff;
    }
    .wae-pill{
      display:inline-flex; align-items:center; gap:.5rem;
      padding:.35rem .75rem; border-radius:999px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.18);
      font-weight: 600;
      font-size: .9rem;
    }
    .market-card{
      border-radius: 1rem;
      border: 1px solid rgba(0,0,0,.08);
      background:#fff;
      box-shadow: 0 12px 35px rgba(0,0,0,.06);
      padding: 1.1rem;
      height: 100%;
    }
    .market-ic{
      width: 44px; height: 44px; border-radius: 12px;
      display:flex; align-items:center; justify-content:center;
      background: rgba(13,110,253,.08);
      border: 1px solid rgba(13,110,253,.15);
      font-size: 1.25rem;
      flex: 0 0 auto;
    }
    /* Match About/Homepage feel without changing your UI too much */
    .hero-services{
      position: relative;
      border-radius: 1.25rem;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 18px 45px rgba(0,0,0,.08);
    }
    .hero-services img{width:100%; height: clamp(320px, 48vh, 520px); object-fit: cover;}
    .hero-overlay{
      position:absolute; inset:0;
      background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.12));
      display:flex; align-items:flex-end;
    }
    .hero-card{
      margin: 1.25rem;
      max-width: 640px;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.18);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 1rem;
      padding: 1.25rem;
      color:#fff;
    }
    .wae-pill{
      display:inline-flex; align-items:center; gap:.5rem;
      padding:.35rem .75rem; border-radius:999px;
      background: rgba(255,255,255,.14);
      border: 1px solid rgba(255,255,255,.18);
      font-weight: 600;
      font-size: .9rem;
    }
    .svc-card{
      border-radius: 1rem;
      border: 1px solid rgba(0,0,0,.08);
      box-shadow: 0 12px 35px rgba(0,0,0,.06);
      overflow: hidden;
      height: 100%;
    }
    .svc-card img{max-height:190px; object-fit:cover;}
    .svc-icon{
      width: 42px; height: 42px; border-radius: 12px;
      display:flex; align-items:center; justify-content:center;
      background: rgba(13,110,253,.08);
      border: 1px solid rgba(13,110,253,.15);
      font-size: 1.2rem;
      flex: 0 0 auto;
    }

/* ===== Nested dropdown (Services categories -> service pages) ===== */
.dropdown-submenu{ position: relative; }
.dropdown-submenu > .dropdown-menu{
  top: 0;
  left: 100%;
  margin-top: -0.125rem;
}

/* Desktop hover behaviour */
@media (min-width: 992px){
  .navbar .dropdown:hover > .dropdown-menu{ display:block; }
  .navbar .dropdown-submenu:hover > .dropdown-menu{ display:block; }
  .navbar .dropdown-menu{ margin-top: 0; }
}

/* Make submenu arrows visible */
.dropdown-submenu > .dropdown-toggle::after{
  float: right;
  margin-top: .45rem;
}

/* Keep submenus inside viewport when near the right edge */
@media (min-width: 992px){
  .dropdown-menu{ max-height: 70vh; overflow:auto; }
}
/* UX dropdown */
.dropdown-menu-ux {
  min-width: 320px;
  padding: .5rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

.dropdown-menu-ux .dropdown-item {
  border-radius: 10px;
  padding: .65rem .75rem;
  white-space: normal;
}

.dropdown-menu-ux .dropdown-item:hover,
.dropdown-menu-ux .dropdown-item:focus {
  background: rgba(13,110,253,.10);
}

/* Keep submenu aligned nicely */
.dropdown-submenu > .dropdown-menu {
  margin-left: .25rem;
  top: -6px;
}

/* Add arrow spacing */
.dropdown-submenu > .dropdown-toggle::after {
  float: right;
  margin-top: .35rem;
}

/* Desktop hover behavior */
@media (min-width: 992px) {
  .dropdown-hover:hover > .dropdown-menu {
    display: block;
  }
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
/* Smaller first-level menu (categories only) */
.dropdown-menu-ux{
  min-width: 260px;           /* not huge */
  padding: .4rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* Keep items on one line = no tall “bloc” look */
.dropdown-menu-ux .dropdown-item{
  border-radius: 10px;
  padding: .55rem .7rem;
  white-space: nowrap;
}

.dropdown-menu-ux .dropdown-item:hover,
.dropdown-menu-ux .dropdown-item:focus{
  background: rgba(13,110,253,.10);
}

/* Flyout submenu to the RIGHT */
.dropdown-submenu{ position: relative; }

.dropdown-submenu > .dropdown-menu{
  top: 0;                     /* align to hovered item */
  left: 100%;                 /* move to the right */
  margin-left: .25rem;
  display: none;              /* hidden until hover */
}

/* Arrow spacing */
.dropdown-submenu > .dropdown-toggle::after{
  float: right;
  margin-top: .35rem;
}

/* Hover behavior (desktop) */
@media (min-width: 992px){
  .dropdown-hover:hover > .dropdown-menu{ display:block; }
  .dropdown-submenu:hover > .dropdown-menu{ display:block; }
}

/* IMPORTANT: allow dropdown to overflow navbar area */
.navbar{ overflow: visible; }
.dropdown-menu{ overflow: visible; }
