/* ==========================================================================
   Gamble Global Consultancy - Main Stylesheet
   Modern, responsive, performant CSS with Arimo Typography
   ========================================================================== */

:root {
  --color-navy: #0b1d3a;
  --color-dark: #071529;
  --color-deep-blue: #001c4b;
  --color-blue: #0047ba;
  --color-blue-hover: #003896;
  --color-blue-light: #1d70e2;
  --color-blue-bg: #eef4ff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --font-family: 'Arimo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--color-slate-800);
  background-color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-bar {
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #142e54;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-slate-300);
}

.top-bar-link:hover {
  color: #ffffff;
}

.top-bar-tagline {
  color: var(--color-slate-400);
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .top-bar-tagline {
    display: none;
  }
}

.main-nav {
  padding: 0.85rem 0;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  max-width: 200px;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-contain: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-slate-700);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-blue);
}

.btn-header {
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-header:hover {
  background-color: var(--color-blue);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-slate-800);
  padding: 0.5rem;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    border-top: 1px solid var(--color-slate-100);
  }
  .nav-menu.open {
    display: flex;
  }
  .btn-header {
    display: none;
  }
  .nav-menu .btn-header-mobile {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   Hero Section (Home)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-deep-blue);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 640px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 700px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/home/hero.webp');
  background-size: cover;
  background-position: 82% top;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .hero-bg {
    background-position: top;
  }
}

.hero-mobile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-deep-blue) 0%, rgba(0, 28, 75, 0.8) 70%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-mobile-overlay {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 660px;
  width: 100%;
  color: #ffffff;
  padding: 4.5rem 0;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.accent-line {
  width: 64px;
  height: 4px;
  background-color: var(--color-blue);
  border-radius: 9999px;
  margin: 1.25rem 0;
}

.hero-subheading {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero-description {
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--color-navy);
}

/* ==========================================================================
   Page Banner Component
   ========================================================================== */
.page-banner {
  position: relative;
  background-color: var(--color-navy);
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .page-banner {
    min-height: 320px;
    padding-bottom: 7rem;
  }
}

.page-banner-bg {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  mix-blend-mode: luminosity;
  will-change: transform;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-navy) 0%, rgba(11, 29, 58, 0.9) 50%, rgba(0, 71, 186, 0.4) 100%);
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .page-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-banner-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .page-banner-title {
    font-size: 3.5rem;
  }
}

.page-banner-subtitle {
  color: var(--color-slate-200);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 440px;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  padding-left: 1.25rem;
}

.shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 20;
  pointer-events: none;
}

.shape-divider-bottom svg {
  position: relative;
  display: block;
  width: 100%;
  height: 48px;
  color: #ffffff;
  fill: currentColor;
  transform: scaleX(-1);
}

@media (min-width: 640px) {
  .shape-divider-bottom svg {
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .shape-divider-bottom svg {
    height: 80px;
  }
}

/* ==========================================================================
   About Us Middle Parallax Slice with Shape Dividers
   ========================================================================== */
.parallax-slice {
  position: relative;
  background-color: var(--color-navy);
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .parallax-slice {
    min-height: 420px;
  }
}

.parallax-slice-bg {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  mix-blend-mode: luminosity;
  will-change: transform;
}

.parallax-slice-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-navy) 0%, rgba(11, 29, 58, 0.85) 60%, rgba(0, 71, 186, 0.4) 100%);
  pointer-events: none;
}

.slice-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.slice-divider-top svg {
  display: block;
  width: 100%;
  height: 56px;
  color: #ffffff;
  fill: currentColor;
}

.slice-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.slice-divider-bottom svg {
  display: block;
  width: 100%;
  height: 56px;
  color: #ffffff;
  fill: currentColor;
}

@media (min-width: 768px) {
  .slice-divider-top svg, .slice-divider-bottom svg {
    height: 80px;
  }
}

/* ==========================================================================
   Stats & Counter Section
   ========================================================================== */
.counter-box {
  border-left: 2px solid rgba(0, 71, 186, 0.25);
  padding-left: 1.5rem;
}

.counter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-500);
  display: block;
  margin-bottom: 0.5rem;
}

.counter-value {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .counter-value {
    font-size: 3.25rem;
  }
}

/* ==========================================================================
   Services 16 Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px;
  background-color: var(--color-slate-200);
  border: 1px solid var(--color-slate-200);
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #ffffff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background-color 0.2s ease;
}

.service-card:hover {
  background-color: var(--color-blue-bg);
}

.service-card-icon {
  color: var(--color-blue);
  width: 24px;
  height: 24px;
  margin-bottom: 0.25rem;
}

.service-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.service-card-desc {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  position: relative;
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/about-us/young-professionals-working-in-a-busy-open-plan-of-bg-image-1.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.75rem;
  }
}

.cta-text {
  font-size: 0.9375rem;
  color: var(--color-slate-300);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: #ffffff;
  padding-top: 4rem;
  border-top: 1px solid #162f55;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 71, 186, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--color-slate-300);
}

.footer-links a:hover {
  color: var(--color-blue-light);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-slate-300);
}

.footer-contact-icon {
  color: var(--color-blue-light);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.footer-bottom {
  background-color: var(--color-dark);
  padding: 1rem 0;
  border-top: 1px solid #122949;
  font-size: 0.75rem;
  color: var(--color-slate-400);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
  }
}

.scroll-top-btn {
  width: 32px;
  height: 32px;
  background-color: var(--color-navy);
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.scroll-top-btn:hover {
  background-color: var(--color-blue);
}

/* ==========================================================================
   Consultation Modal Popup
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 21, 41, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 2rem;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-slate-200);
  color: var(--color-navy);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-slate-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.15);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9990;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
  background: #20BA5A;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }
}
