/* ===================================================
   NEW WAVE CONSULTANCY — Main Stylesheet
   Brand Colors: Teal #00B4CC, Navy #1B2A4A, White #FFFFFF
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #00B4CC;
  --primary-dark: #0090a8;
  --secondary: #1B2A4A;
  --secondary-light: #2a3f6f;
  --accent: #e63946;
  --white: #ffffff;
  --light-bg: #f4f8fb;
  --text-dark: #1a1a2e;
  --text-muted: #6b7c99;
  --border: #dde4ef;
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.13);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.28s ease;
  --header-height: 100px;
  --topbar-height: 40px;
  --font-main: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Utility Classes ---- */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

.text-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,180,204,0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--secondary);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-main);
  font-weight: 500;
  transition: color 0.2s;
}

.top-bar-item:hover { color: var(--primary); }

.top-bar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.top-bar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.8);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.social-icon svg { width: 13px; height: 13px; }

/* ---- MAIN HEADER ---- */
.main-header {
  background: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--border);
  position: relative;
  z-index: 1000;
}

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow);
}

/* ---- STICKY HEADER WRAP ---- */
.header-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-sticky-wrap.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.14);
}

/* Top bar: smooth collapse on scroll */
.header-sticky-wrap .top-bar {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 60px;
  opacity: 1;
}

.header-sticky-wrap.scrolled .top-bar {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

/* Main header: compact on scroll */
.header-sticky-wrap .main-header {
  transition: height 0.35s ease, background 0.3s ease;
}

.header-sticky-wrap.scrolled .main-header {
  height: 70px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--border);
}

/* Logo: scale down on scroll */
.header-sticky-wrap .logo-wrap img {
  transition: height 0.35s ease;
}

.header-sticky-wrap.scrolled .logo-wrap img {
  height: 52px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

/* Logo */
.logo-wrap {
  flex-shrink: 0;
}

.logo-wrap img {
  height: 70px;
  width: auto;
}

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--secondary);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-item.active > .nav-link {
  color: var(--primary);
  background: rgba(0,180,204,0.07);
}

.nav-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  color: var(--primary);
  background: var(--light-bg);
  border-left-color: var(--primary);
  padding-left: 24px;
}

.dropdown-link .dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.dropdown-link:hover .dd-icon {
  background: rgba(0,180,204,0.12);
}

.dropdown-link .dd-icon svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dropdown-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.dropdown-more:hover { color: var(--primary-dark); }

/* Apply Now Button */
.apply-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.apply-btn:hover {
  background: #c1121f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.35);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27,42,74,0.96);
  z-index: 2000;
  overflow-y: auto;
  padding: 80px 20px 40px;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.mobile-nav-link:hover { background: rgba(0,180,204,0.15); color: var(--primary); }

.mobile-dropdown {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--primary);
  margin-left: 18px;
}

.mobile-dropdown.open { display: flex; }

.mobile-dropdown-link {
  display: block;
  padding: 9px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  transition: var(--transition);
}

.mobile-dropdown-link:hover { color: var(--primary); background: rgba(255,255,255,0.05); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 60%, #1a4a6e 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.13;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,204,0.15);
  border: 1px solid rgba(0,180,204,0.4);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title span { color: var(--primary); }

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-main);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 4px;
}

/* ---- PAGE HERO (Inner Pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- INFO CARDS / FEATURE CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,180,204,0.3);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,180,204,0.12), rgba(0,180,204,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 26px; height: 26px; color: var(--primary); }

.card-title {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- COUNTRY CARDS ---- */
.country-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  transition: var(--transition);
}

.country-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.country-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.country-card:hover img { transform: scale(1.06); }

.country-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.country-card-name {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

/* ---- PLACEHOLDER CONTENT ---- */
.placeholder-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.placeholder-section h2 {
  font-family: var(--font-main);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.placeholder-section p { color: var(--text-muted); font-size: 14px; }

/* ---- CTA STRIP ---- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-strip h2 {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-strip p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  font-size: 16px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo img { height: 58px; margin-bottom: 16px; filter: brightness(0) invert(1); }

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}

.footer-social-icon:hover { background: var(--primary); color: var(--white); }
.footer-social-icon svg { width: 14px; height: 14px; }

.footer-heading {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-link::before {
  content: '›';
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
}

.footer-link:hover { color: var(--primary); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0,180,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-icon svg { width: 14px; height: 14px; color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: var(--primary); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: wa-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 30px;
  z-index: 9998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---- LOADING STATE ---- */
#header-placeholder, #footer-placeholder {
  min-height: 10px;
}