/* ================================================================
   Americium Tech – Premium Custom Styles
   Palette:
     Steel Blue  #3a8fd6   (logo icon / primary actions)
     Navy        #1d2d50   (logo text / dark backgrounds)
     Light Steel #5aaee8   (hover / accent)
     Off-White   #f4f8fd   (section backgrounds)
   ================================================================ */

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

/* ================================================================
   1. GLOBAL TOKENS & RESETS
   ================================================================ */
:root {
  --amr-navy:        #1d2d50;
  --amr-steel:       #3a8fd6;
  --amr-steel-light: #5aaee8;
  --amr-steel-dark:  #2270b5;
  --amr-accent:      #e8f4fd;
  --amr-offwhite:    #f4f8fd;
  --amr-gray-bg:     #f0f3f9;
}

body {
  font-family: 'Inter', sans-serif;
  color: #3d4564;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--amr-navy);
  letter-spacing: -0.02em;
}

/* ================================================================
   2. NAVBAR – Scrolled glass effect + clean transparent state
   ================================================================ */
nav.navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

/* Sticky / scrolled state added via JS (class "sticky") */
nav.navbar.fixed {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(29, 45, 80, 0.1);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Nav links */
.navbar-light .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link:focus {
  color: var(--amr-steel) !important;
}

/* Active nav link indicator */
.navbar-light .nav-link.active {
  color: var(--amr-steel) !important;
}

/* Dropdown menu */
.dropdown-menu {
  border: 1px solid rgba(58, 143, 214, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(29, 45, 80, 0.14);
  padding: 0.75rem 0;
  margin-top: 0.5rem !important;
  animation: dropFadeIn 0.2s ease;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
  color: var(--amr-navy);
}

.dropdown-item:hover {
  background: var(--amr-accent);
  color: var(--amr-steel-dark);
  padding-left: 1.6rem;
}

/* ================================================================
   3. HERO SECTION  
   ================================================================ */
section.wrapper.image-wrapper {
  position: relative;
}

/* Light-to-transparent left overlay for readability (if needed) */
section.wrapper.image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

section.wrapper.image-wrapper .container {
  position: relative;
  z-index: 2;
}

/* Hero heading - defaults to navy from global h2 styles */
section.wrapper.image-wrapper h2.display-1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

section.wrapper.image-wrapper p.lead {
  /* color: var(--amr-navy) inherited */
}

/* ================================================================
   4. BUTTONS
   ================================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--amr-steel) 0%, var(--amr-steel-dark) 100%);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 18px rgba(58, 143, 214, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--amr-steel-light) 0%, var(--amr-steel) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58, 143, 214, 0.45);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(58, 143, 214, 0.3);
}

/* Secondary / outline variant */
.btn-outline-primary {
  border-color: var(--amr-steel);
  color: var(--amr-steel);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: var(--amr-steel);
  border-color: var(--amr-steel);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 143, 214, 0.35);
}

/* ================================================================
   5. SECTION BACKGROUNDS
   ================================================================ */
.wrapper.bg-light {
  background-color: #ffffff !important;
}

.wrapper.bg-gray {
  background-color: var(--amr-offwhite) !important;
}

/* ================================================================
   6. FEATURE ICON CARDS (d-flex flex-row blocks)
   ================================================================ */
.d-flex.flex-row {
  transition: transform 0.25s ease;
}

.d-flex.flex-row:hover {
  transform: translateY(-4px);
}

.d-flex.flex-row h4 {
  color: var(--amr-navy);
}

/* Icon colour override to brand blue */
.icon-svg.text-blue,
.icon-svg.text-yellow,
.icon-svg.text-orange,
.icon-svg.text-pink,
.icon-svg.text-green,
.icon-svg.text-purple {
  color: var(--amr-steel) !important;
  fill: var(--amr-steel) !important;
}

/* ================================================================
   7. SECTION LABELS (fs-15 text-uppercase text-muted)
   ================================================================ */
.fs-15.text-uppercase.text-muted,
h2.fs-15.text-uppercase,
h2.fs-16.text-uppercase {
  color: var(--amr-steel) !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 1 !important;
}

/* ================================================================
   8. STATS / COUNTERS
   ================================================================ */
.counter.counter-lg {
  color: var(--amr-navy);
  font-weight: 800;
}

/* ================================================================
   9. BULLET / CHECK LISTS
   ================================================================ */
.icon-list.bullet-primary li::before,
.icon-list.bullet-primary .uil-check {
  color: var(--amr-steel) !important;
}

/* ================================================================
   10. TESTIMONIAL CARD
   ================================================================ */
.card.bg-gray {
  background-color: var(--amr-offwhite) !important;
  border: 1px solid rgba(58, 143, 214, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(29, 45, 80, 0.08);
  transition: box-shadow 0.3s ease;
}

.card.bg-gray:hover {
  box-shadow: 0 16px 48px rgba(29, 45, 80, 0.14);
}

/* ================================================================
   11. FOOTER
   ================================================================ */
footer.bg-gray {
  background-color: var(--amr-navy) !important;
  color: rgba(255,255,255,0.75);
}

footer.bg-gray h4.widget-title {
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer.bg-gray p,
footer.bg-gray address {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}

footer.bg-gray a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

footer.bg-gray a:hover {
  color: var(--amr-steel-light);
  text-decoration: none;
}

footer.bg-gray .nav.social a {
  color: #ffffff !important;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

footer.bg-gray .nav.social a:hover {
  color: var(--amr-steel-light);
  transform: translateY(-3px);
}

/* Footer divider line */
footer.bg-gray::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--amr-steel-dark) 0%, var(--amr-steel-light) 100%);
}

/* ================================================================
   12. OFFCANVAS / SIDE PANEL
   ================================================================ */
.offcanvas.text-inverse {
  background-color: var(--amr-navy) !important;
}

/* ================================================================
   13. SCROLL-TO-TOP BUTTON
   ================================================================ */
.progress-wrap path {
  stroke: var(--amr-steel);
}

/* ================================================================
   14. SMOOTH HOVER ON IMAGES
   ================================================================ */
figure.rounded img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
}

figure.rounded:hover img {
  transform: scale(1.025);
  box-shadow: 0 12px 40px rgba(29, 45, 80, 0.18);
}

/* ================================================================
   15. SECTION DIVIDERS (split-section layout)
   ================================================================ */
.divider svg path,
.divider svg polygon {
  fill: var(--amr-offwhite);
}

/* ================================================================
   16. RESPONSIVE POLISH
   ================================================================ */
@media (max-width: 991px) {
  .navbar-light .nav-link {
    font-size: 1rem;
    padding: 0.6rem 0;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  /* Fix for desktop menu showing on mobile */
  .navbar-collapse.offcanvas-nav:not(.show) {
    display: none !important;
    visibility: hidden !important;
  }

  /* Aggressive hide for main navigation links in header flow on mobile */
  .navbar-collapse.offcanvas-nav:not(.show),
  .navbar-collapse:not(.show),
  .navbar-clone {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    height: 0 !important;
  }
  
  .navbar-nav:not(.flex-row) {
    display: none !important;
  }
  
  /* Show them ONLY when offcanvas is active */
  .navbar-collapse.offcanvas-nav.show,
  .navbar-collapse.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    height: 100% !important;
    position: fixed !important;
  }

  .navbar-collapse.show .navbar-nav {
    display: flex !important;
  }

  /* Fix for logo visibility on mobile */
  .navbar-brand img {
    max-height: 40px !important;
    width: auto !important;
  }
  
  .navbar-brand {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Align offcanvas items */
  .offcanvas-body .widget {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }
  
  .offcanvas-body ul.list-unstyled {
    padding-left: 0 !important;
    text-align: left !important;
  }

  .offcanvas-body .nav.social {
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }
}

/* ================================================================
   17. OFFCANVAS SOCIAL & LINKS
   ================================================================ */
.offcanvas.text-inverse .nav.social a {
  color: #ffffff !important;
  font-size: 1.1rem;
  margin-right: 0.8rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.offcanvas.text-inverse .nav.social a:hover {
  color: var(--amr-steel-light) !important;
  transform: translateY(-3px);
}

.offcanvas.text-inverse .widget-title {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offcanvas.text-inverse a:not(.btn) {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.offcanvas.text-inverse a:not(.btn):hover {
  color: #ffffff;
}

/* Ensure hamburger is hidden on desktop */
@media (min-width: 992px) {
  .hamburger, 
  .offcanvas-nav-btn, 
  .navbar-other .nav-item.d-lg-none {
    display: none !important;
  }
}

/* ================================================================
   18. UTILITY – thin accent border on section tops
   ================================================================ */
.wrapper.bg-white {
  border-top: 1px solid rgba(58, 143, 214, 0.08);
}

/* ================================================================
   18. LINK COLOUR
   ================================================================ */
a {
  color: var(--amr-steel);
}

a:hover {
  color: var(--amr-steel-dark);
}
