/* =========================================================================
   GoWest — Final production style.css
   Clean, maintainable, responsive — use as /assets/css/style.css
   ========================================================================= */

/* ---------------------------
   Fonts & Root Variables
   --------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue: #0A2A6C;
  --accent: #0a84ff;
  --muted: #6b7a90;
  --bg: #ffffff;
  --footer-bg: #0c1a34;
  --card-bg: #ffffff;
  --radius: 16px;
  --max-width: 1350px;
}

/* ---------------------------
   Global reset + base
   --------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0e1a33;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Utility container */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* Accessibility focus */
:focus { outline: 3px solid rgba(10,132,255,0.14); outline-offset: 3px; }

/* ---------------------------
   Header
   --------------------------- */
.gw-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,20,40,0.04);
  transition: padding 0.22s ease, backdrop-filter 0.18s ease;
}

.gw-header-container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.gw-logo img { height: 54px; display: block; }

/* Navigation */
.gw-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  position: relative;
  padding: 6px 0;
  transition: color .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .22s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

/* header shrink on scroll */
.gw-header.scrolled .gw-header-container { padding-top: 6px; padding-bottom: 6px; }

/* Mobile toggle */
.gw-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--blue);
  cursor: pointer;
}

/* ---------------------------
   Mega Menu (Countries)
   --------------------------- */
.dropdown { position: relative; }

.dropdown-link {
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-weight: 600;
}

.dropdown-arrow { font-size: 14px; transition: transform .22s ease; }

/* Mega menu container */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 720px;
  max-width: calc(100% - 40px);
  min-width: 360px;
  background: var(--card-bg);
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(10,20,40,0.06);
  box-shadow: 0 18px 40px rgba(13,22,40,0.10);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: transform .16s ease, opacity .18s ease, visibility .18s ease;
  z-index: 120000;
  overflow: visible;
}

/* show state (hover or .open via JS) */
.dropdown.open > .mega-menu,
.dropdown:hover > .mega-menu,
.mega-menu:hover {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown.open .dropdown-arrow,
.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* columns */
.mega-col { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-width: 140px; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }

/* links in mega */
.mega-menu a {
  display: block;
  padding: 6px 8px;
  font-size: 16px;
  color: var(--blue);
  white-space: nowrap; /* keep single-line on desktop */
  overflow: visible;
  text-overflow: clip;
  border-radius: 6px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.mega-menu a:hover {
  background: rgba(10,132,255,0.08);
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------------------------
   Mobile Slide-in Menu
   --------------------------- */
.gw-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 84%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 30px rgba(6,20,40,0.12);
  padding: 28px;
  transition: right .32s ease;
  z-index: 130000;
  overflow: auto;
}
.gw-mobile-menu.open { right: 0; }
.mobile-close { font-size: 36px; line-height: 1; cursor: pointer; float: right; background: none; border: none; }
.gw-mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid #f1f2f4; font-size: 18px; color: var(--blue); }
.mobile-dropdown-link { display: block; padding: 12px 0; font-weight: 700; cursor: pointer; background: none; border: none; text-align: left; }
.mobile-dropdown-menu { display: none; padding-left: 12px; }
.mobile-dropdown-menu.open { display: block; }

/* ---------------------------
   Main sections (simple)
   --------------------------- */
section { max-width: 1200px; margin: 0 auto; padding: 72px 20px; }
.home-hero { margin-top: 88px; display: flex; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 44px; color: var(--blue); line-height: 1.05; }
.btn-primary { background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 28px; font-weight: 700; display: inline-block; }

/* grids */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.country-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------------------------
   Footer
   --------------------------- */
.gw-footer {
  background: var(--footer-bg);
  color: #dbe9ff;
  padding: 90px 0 40px;
}
.gw-footer-container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 36px;
}
.gw-footer-logo { height: 72px; margin-bottom: 14px; }
.gw-footer p { color: #dbe9ff; opacity: .95; }
.gw-footer-col h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.gw-footer-col a { color: #dbe9ff; padding: 6px 0; display: block; transition: transform .16s ease; }
.gw-footer-col a:hover { color: #fff; transform: translateX(6px); }
.gw-footer-europe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
.gw-footer-social { display: flex; gap: 12px; margin-top: 12px; }
.gw-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06); color: #fff; }
.gw-footer-bottom { text-align: center; margin-top: 36px; opacity: .85; font-size: 14px; }

/* ---------------------------
   Floating contact buttons
   --------------------------- */
.floating-contact-box {
  position: fixed;
  right: 22px;
  bottom: 110px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 140000;
}
.floating-contact-box a {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; width: 60px; height: 60px;
  box-shadow: 0 10px 28px rgba(8,20,50,0.18);
}
.floating-contact-box .float-call { background: var(--accent); color: #fff; }
.floating-contact-box .float-wa { background: #25d366; color: #fff; }

/* ---------------------------
   Responsive breakpoints
   --------------------------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-menu { width: calc(100% - 40px); left: 50%; transform: translateX(-50%) translateY(6px); padding: 16px; gap: 12px; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); gap: 6px 10px; }
}

@media (max-width: 900px) {
  /* show hamburger, hide desktop nav */
  .gw-nav { display: none; }
  .gw-menu-toggle { display: block; }
  .gw-footer-container { grid-template-columns: 1fr 1fr; }
  .mega-menu {
    width: calc(100% - 32px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .mega-menu .mega-col { width: 100%; min-width: 0; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu a { white-space: normal; }
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-footer-container { grid-template-columns: 1fr; }
  .gw-logo img { height: 48px; }
  .floating-contact-box { right: 14px; bottom: 140px; }
}

/* ---------------------------
   Misc polish
   --------------------------- */
/* make images responsive */
img, .about-img, .country-card img { max-width: 100%; height: auto; display: block; }

/* reduce motion for those who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}