/* ==========================================================================
   BASE.CSS — Axis Business Insights
   Shared styles: reset, navbar, footer, hero, animations
   Loaded on every page before the page-specific stylesheet.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:        #334472;
  --color-primary-dark:   #00103d;
  --color-accent-light:   #e6eaf6;
  /* Aliases used by various page stylesheets */
  --color-primary-light:  #e6eaf6;
  --color-light:          #e6eaf6;
  --color-bg-light:       #e6eaf6;
  --color-card-from:      #e6eaf6;
  --color-footer-text:    #e6eaf6;
  --color-text-light:     #e6eaf6;
  --color-accent-mid:     #b3bede;
  --color-key-card-from:  #b3bede;
  --color-accent-muted:   #6c83af;
  --color-white:          #ffffff;
  --color-card-to:        #ffffff;
  --color-key-card-to:    #ffffff;
  --color-overlay:        rgba(51, 68, 114, 0.28);
  --color-hero-overlay:   rgba(51, 68, 114, 0.28);
  --color-text-body:      #334472;
  --color-text-dark:      #334472;
  --color-dark-bg:        #00103d;
  --color-primary-deeper: #00103d;

  /* Typography */
  --font-heading:  'Century Gothic', 'Questrial', 'Avenir', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Font sizes */
  --fs-nav:    1rem;
  --fs-footer: 1rem;

  /* Spacing (shared subset) */
  --space-4:   0.25rem;
  --space-8:   0.5rem;
  --space-10:  0.625rem;
  --space-16:  1rem;
  --space-24:  1.5rem;
  --space-28:  1.75rem;
  --space-30:  1.875rem;

  /* Border radius */
  --radius-sm:  0.625rem;   /* 10px */
  --radius-lg:  1.5625rem;  /* 25px */
  --radius-btn: 0.625rem;   /* 10px alias */

  /* Layout */
  --max-width:    90rem;    /* 1440px */
  --navbar-height: 69px;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.s-content-c{
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.s-content-l{
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: left;
}

.hero__text {
	gap:0px !important;
}
.hero__title{
    margin-bottom:50px;
}


/* --------------------------------------------------------------------------
   3. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-primary);
  width: 100%;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-28) var(--space-30);
  height: var(--navbar-height);
}

/* Logo */
.navbar__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}
.navbar__logo:hover,
.navbar__logo:focus-visible {
  opacity: 0.85;
}
.navbar__logo img,
.navbar__logo-img {
  width: 119px;
  height: 53px;
  object-fit: contain;
}

/* Navigation panel */
.navbar__nav {
  display: flex;
  align-items: center;
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav links */
.navbar__link {
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--color-white);
  padding: var(--space-4) 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.navbar__link:hover,
.navbar__link:focus-visible {
  opacity: 0.8;
}
.navbar__link:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Contact CTA button (light pill) */
.navbar__link--btn,
.navbar__link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-nav);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.navbar__link--btn:hover,
.navbar__link--cta:hover {
  background-color: #d4daf0;
  opacity: 1;
}
.navbar__link--btn:active,
.navbar__link--cta:active {
  transform: scale(0.97);
}
.navbar__link--btn:focus-visible,
.navbar__link--cta:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* Hamburger toggle (hidden on desktop) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.navbar__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Toggle → X animation */
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay backdrop */
.navbar__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
}
.navbar__overlay.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   DROPDOWN SUBMENUS
   -------------------------------------------------------------------------- */

/* Dropdown parent — anchor for absolute positioning */
.navbar__item--has-dropdown {
  position: relative;
}

/* Toggle button — reset <button> defaults, inherit .navbar__link appearance */
.navbar__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Animated chevron arrow */
.navbar__dropdown-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.navbar__dropdown-toggle[aria-expanded="true"] .navbar__dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0, 16, 61, 0.3);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

/* Show on hover OR when toggle is expanded */
.navbar__item--has-dropdown:hover .navbar__dropdown,
.navbar__dropdown-toggle[aria-expanded="true"] + .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-55%) translateY(0);
}

/* Dropdown link items */
.navbar__dropdown-link {
  display: block;
  margin: 1rem 1rem;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  white-space: nowrap;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}
.navbar__dropdown-link:hover,
.navbar__dropdown-link:focus-visible {
  /*background-color: rgba(255, 255, 255, 0.12);
  padding-left: 1.5rem;*/
  opacity: 0.8;
}
.navbar__dropdown-link:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: -2px;
  border-radius: 2px;
}
/* Bold the current page's submenu link */
.navbar__dropdown-link[aria-current="page"] {
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   4. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-primary);
  width: 100%;
  padding: 1rem 1.875rem;
  height: 56px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9375rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__copy,
.footer__copyright {
  font-family: var(--font-body);
  font-size: var(--fs-footer);
  font-weight: 400;
  color: var(--color-accent-light);
  line-height: normal;
}

.footer__links {
  display: flex;
  gap: 0.9375rem;
}

.footer__link {
  font-family: var(--font-body);
  font-size: var(--fs-footer);
  font-weight: 400;
  color: var(--color-accent-light);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
.footer__link:hover,
.footer__link:focus-visible {
  opacity: 0.8;
}
.footer__link:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
  border-radius: 2px;
}


/* --------------------------------------------------------------------------
   5. HERO BASE
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background image container */
.hero__bg,
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img,
.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-primary-dark) 0%, transparent 100%);
}

/* Content wrapper */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.6875rem var(--space-30);
}

/* Back button */
.hero__back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  /*margin-bottom: auto;*/
  transition: opacity 0.2s ease;
}
.hero__back-btn:hover,
.hero__back-btn:focus-visible {
  opacity: 0.8;
}
.hero__back-arrow {
  flex-shrink: 0;
}

/* Text block */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 2.8125rem;
  max-width: 906px;
  padding-left: 6.125rem;
  margin-top: auto;
  margin-bottom: auto;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.625rem, 5vw + 1rem, 5.25rem);
  color: var(--color-white);
  line-height: 1.1;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2vw + 0.25rem, 2rem);
  color: var(--color-white);
  line-height: 1.4;
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  align-self: center;
  margin-top: auto;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.1vw + 0.125rem, 1.25rem);
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero__scroll-text {
  font-family: var(--font-heading);
  color: var(--color-white);
}
.hero__scroll:hover { opacity: 0.8; }


@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}


/* --------------------------------------------------------------------------
   6. SCROLL-REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------------------------------------
   7. ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.pc-btns{
	display:flex !important;
}

.mobile-btns{
	display:none !important;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE — Mobile Navigation (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	
	.pc-btns{
		display:none !important;
	}

	.mobile-btns{
		display:flex !important;
	}

  .navbar__inner {
    padding: 1rem 1.25rem;
  }

  .navbar__toggle {
    display: flex;
  }

  /* Slide-in panel from right */
  .navbar__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 105;
    overflow-y: auto;
  }
  .navbar__nav.is-open {
    right: 0;
  }

  .navbar__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .navbar__link {
    font-size: 1.125rem;
  }

  /* Dropdown — accordion inside mobile nav panel */
  .navbar__item--has-dropdown {
    width: 100%;
  }
  .navbar__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .navbar__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .navbar__dropdown-toggle[aria-expanded="true"] + .navbar__dropdown {
    max-height: 220px;
  }
  .navbar__dropdown-link {
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 1rem;
    opacity: 0.85;
  }
  .navbar__dropdown-link:hover,
  .navbar__dropdown-link:focus-visible {
    padding-left: 1.25rem;
    background-color: transparent;
    opacity: 1;
  }

  .navbar__item--has-dropdown:hover .navbar__dropdown,
	.navbar__dropdown-toggle[aria-expanded="true"] + .navbar__dropdown {
	  opacity: 1;
	  visibility: visible;
	  pointer-events: auto;
	  transform: translateX(0%) translateY(0);
  }
   

  /* Hero mobile */
  .hero {
    min-height: 100vh;
  }

  .hero__text {
    padding-left: 0;
    gap: 1.75rem;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .hero__subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
  }

  /* Footer mobile */
  .footer {
    height: auto;
    padding: 1.5rem 1.25rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}
