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

:root {
  /* Brand Colors */
  --primary-color: rgb(44, 77, 152);
  --hero-overlay: rgba(44, 77, 152, 0.85);
  --stats-color: rgb(29, 51, 101);
  --accent-green: rgb(156, 192, 41);

  /* Text Colors */
  --text-dark: rgb(85, 85, 85);
  --text-white: #ffffff;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light-gray: #f7f7f7;

  /* Shadow Colors */
  --shadow-card: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

body.fonts-loaded {
  opacity: 1;
}

main {
  flex: 1;
}

section {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.container {
  max-width: 980px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--stats-color);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 6px;
  background-color: var(--accent-green);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

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

.navbar {
  background-color: var(--bg-white) !important;
  padding: 1rem 0;
}

.navbar-brand img {
  width: 160px;
}

.navbar-nav .nav-item {
  margin-left: 1rem;
  margin-right: 1rem;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.3s ease;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url('images/background.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-white);
  padding: 100px 0 40px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  margin: 4rem 0 2rem 0;
}

.cta-button {
  background-color: var(--accent-green);
  color: var(--text-white);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--bg-white);
  color: var(--stats-color);
}

.hero .partner-img {
  max-width: 320px;
  margin-top: 1rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
  background-color: var(--bg-light-gray);
  padding: 10px 0;
}

.stats-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 120px;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 20px;
  flex: 1 1 calc(50% - 1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 140px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--stats-color);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--stats-color);
  font-weight: 600;
}

.stat-divider {
  margin: 20px 0;
  border-left: 3px solid var(--stats-color);
  width: 0;
  display: none;
}

/* ============================================
   APPS SECTION
   ============================================ */

.apps-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.app-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  cursor: pointer;
}

.app-card {
  background-color: var(--bg-light-gray);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.app-card img {
  width: 80px;
  object-fit: contain;
  margin: 20px auto 10px;
}

.app-card .card-body {
  padding: 1rem;
}

.app-card .card-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: center;
}

.app-card .card-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  text-align: center;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px var(--shadow-card);
}

.more-apps {
  display: none;
}

.show-more-btn {
  text-align: center;
  margin-top: 2rem;
}

.show-more-btn button {
  background-color: var(--bg-white);
  color: var(--stats-color);
  border: 1px solid var(--stats-color);
  padding: 8px 24px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.show-more-btn button:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* ============================================
   ABOUT US SECTION
   ============================================ */

.about-section {
  padding: 80px 0;
  background-color: var(--bg-light-gray);
}

.about-content {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stats-color);
}

/* ============================================
   COMPANY INFO SECTION
   ============================================ */

.company-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.company-content {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stats-color);
}

.company-content a {
  color: var(--stats-color);
}

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

footer {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 20px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.footer-logo img {
  display: block;
  width: 120px;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-divider {
  width: 2px;
  height: 20px;
  background-color: var(--text-white);
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* Desktop devices (768px and up) */
@media (min-width: 768px) {
  .stat-card {
    flex: 1;
  }

  .stat-divider {
    display: block;
  }

  .stats-row {
    flex-wrap: nowrap;
    gap: 0;
  }
}

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
  .stat-card {
    padding: 0 10px 10px 10px;
  }

  .footer-nav {
    gap: 1rem;
  }
}