/* ***********************************************************************
   Filename: index.css
   Description: Homepage styling for SACFinance website
   Last worked on by: Sarina Lalria

    Related Files: 
        - index.cfm
************************************************************************ */

/* Reset */
/* Reset layout issues and enforce full width */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}


/* Overall container */
.homepage-container {
  width: 100%;
  min-height: 50vh;
  text-align: center;
  font-family: 'Calibri', sans-serif;
  color: #000;
  margin: 0 auto;
  padding: 2rem 1rem;
  /* Abstract background using the uploaded image */
  background: url('../Images/homepage_background_desktop.png') no-repeat center center;
  background-color: #f0f4f8; /* Fallback color */
  background-size: cover;
  background-attachment: absolute;
  position: relative;
  z-index: 0;
}

/* Intro box styling - Glass look (updated opacity) */
.intro-box {
  position: relative;
  border-radius: 16px;
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 1.5rem 2rem;
  z-index: 1;
  background: rgba(255, 255, 255, 0.45); /* was 0.308 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Advertisement box - improved readability */
.advertisement-box {
  background: rgba(255, 255, 255, 0.92); /* softer than solid white */
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1.5rem;
  display: none; /* Hidden by default, enable when needed */
}

.intro-box h1 {
  font-size: 50px;
  color: #000000;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.intro-box p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 600;
  width: 625px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Related finance section (bottom of intro box) */
.related-finance {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2rem;
  font-size: 12px;
}

.related-finance span {
  display: inline-block;
  flex-wrap: wrap;
  max-width: 170px;
}

.related-finance .superior-logo {
  height: 30px;
  width: auto;
  vertical-align: middle;
}

/* Button grid layout */
.button-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  width: 100%;
}

/* Buttons */
.button-container a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* space between icon and text */
  background-color: #FFFFFF;
  color: #005f90;
  border: none;
  border-radius: 6px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button-container a.btn:hover {
  background-color: #2A95D1;
  color: #FFFFFF;
}

/* Optional: icon size */
.button-container a.btn i {
  font-size: 1.2rem;
}



/* Mobile view — stack buttons */
@media (max-width: 600px) {
  .homepage-container{
    background: url('../Images/homepage_background_mobile.png') no-repeat center center;
    background-size: cover;
    background-attachment: absolute;
    position: relative;
    z-index: 0;
    
  }
  .intro-box {
    padding: 1.5rem 1rem;
  }

  .intro-box h1 {
    font-size: 1.6rem;
  }

  .intro-box p {
    font-size: 0.95rem;
    width: 100%;
  }

  .related-finance {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
  }

  .related-finance .superior-logo {
    height: 25px;
    margin-top: 5px;
  }

  .button-container {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .button-container a input[type="button"] {
    font-size: 1rem;
    padding: 0.9rem;
  }

}

/* Tablet view — same layout as desktop, just scaled down */
@media (min-width: 601px) and (max-width: 1024px) {
  .intro-box,
  .button-container {
    max-width: 700px;
  }
  .intro-box h1 {
    font-size: 50px;
  }

  .intro-box p {
    width: 100%;
    flex-wrap: wrap;
    font-size: 20px;;
  }

  .related-finance{
    font-size: 14px;
  }
}
