/* ========================================
   AAM Website - Custom Styles
   Clean and optimized CSS
   ======================================== */

/* ========================================
   GLOBAL STYLES
   ======================================== */

:root {
  --primary-color: #1358a5;
  --secondary-color: #28a745;
  --danger-color: #dc3545;
  --dark-color: #232323;
  --light-color: #ffffff;
  --gray-color: #6c757d;
  --font-family: 'Jost', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-style: normal;
  line-height: 1.5;
  font-weight: 400;
  color: var(--dark-color);
  position: relative;
  margin: 0;
  padding: 0;
}

section {
  background-color: var(--light-color);
  position: relative;
  word-wrap: break-word;
}

.container,
.container-fluid {
  position: relative;
  word-wrap: break-word;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-style: normal;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

.display-1 { font-size: 6rem; font-weight: 300; line-height: 1.2; }
.display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.2; }
.display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.display-5 { font-size: 3rem; font-weight: 300; line-height: 1.2; }
.display-6 { font-size: 2.5rem; font-weight: 300; line-height: 1.2; }
.display-7 { font-size: 1.25rem; font-weight: 400; line-height: 1.5; }

a {
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
  color: var(--primary-color);
  opacity: 0.8;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: var(--light-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0f4c94;
  border-color: #0f4c94;
}

.btn-success {
  color: var(--light-color);
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-white-outline {
  color: var(--light-color);
  background-color: transparent;
  border-color: var(--light-color);
}

.btn-white-outline:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
}

.btn-black-outline {
  color: var(--dark-color);
  background-color: transparent;
  border-color: var(--dark-color);
}

.btn-black-outline:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: var(--light-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-brand img {
  height: 3.5rem;
  width: auto;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  background-color: var(--light-color);
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.375rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: var(--dark-color);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover {
  color: var(--primary-color);
  background-color: #f8f9fa;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.hamburger {
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--dark-color);
  border-radius: 1px;
  display: block;
  margin: 5px 0;
  transition: 0.3s;
}

/* ========================================
   CAROUSEL/SLIDER
   ======================================== */

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px;
}

.slider-wrapper {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 20%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--light-color);
  background-clip: border-box;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 0.25rem;
  margin-bottom: 2rem;
}

.card-wrapper {
  padding: 2rem;
}

.card-box {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card-text {
  margin-bottom: 1rem;
}

/* ========================================
   SECTIONS
   ======================================== */

.mbr-section-title {
  margin-bottom: 2rem;
}

.mbr-section-subtitle {
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.mbr-text {
  margin-bottom: 1rem;
}

/* ========================================
   SOCIAL MEDIA
   ======================================== */

.social-row {
  display: flex;
  gap: 1rem;
}

.soc-item a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: var(--light-color);
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.soc-item a:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.align-center { text-align: center; }
.align-left { text-align: left; }
.align-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* ========================================
   WHATSAPP CHAT BUTTON
   ======================================== */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.whatsapp-icon {
  margin-top: 16px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 767px) {
  .display-1 { font-size: 4rem; }
  .display-2 { font-size: 3.5rem; }
  .display-3 { font-size: 3rem; }
  .display-4 { font-size: 2.5rem; }
  .display-5 { font-size: 2rem; }
  .display-6 { font-size: 1.75rem; }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
  
  .card-wrapper {
    padding: 1rem;
  }
}

@media (max-width: 575px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ========================================
   CUSTOM ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: #2c3e50;
  color: var(--light-color);
  padding: 3rem 0 2rem;
}

.footer h5 {
  color: var(--light-color);
  margin-bottom: 1rem;
}

.footer .list {
  list-style: none;
  padding: 0;
}

.footer .list li {
  margin-bottom: 0.5rem;
}

.footer .list a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer .list a:hover {
  color: var(--primary-color);
}

/* ========================================
   PARALLAX BACKGROUND
   ======================================== */

.mbr-parallax-background {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.mbr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}