@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: light;
}

@font-face {
  font-family: 'Prata';
  src: url('../fonts/Prata/Prata-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  overflow-x: hidden;
  /* prevents right-side spill */
  font-family: 'Poppins';
  background: #FFFFFF;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

main {
  flex: 1;
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  overflow: hidden;
  min-height: 75vh;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 3s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background images layer */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  transition: all 0.5s ease;
}

/* Left image */
.hero-background::before {
  top: 0;
  left: 0;
  width: 50%;
  max-width: 1200px;
  height: 100%;
  background-image: url('../images/MainPage1.jpg');
}

/* Right image */
.hero-background::after {
  top: 0;
  right: 0;
  width: 50%;
  max-width: 1200px;
  height: 100%;
  background-image: url('../images/MainPage2.jpg');
}

/* Hero content */
.hero-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  gap: 2rem;
  z-index: 1;
}

/* Hero text */
.hero-text {
  flex: 1 1 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  gap: 1.5rem;
  line-height: 1.7;
}

.hero-text h2 {
  font-family: 'Prata';
}

.hero-text p {
  font-family: 'Poppins';
  font-weight: 600;
}

/* Hero image */
.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  padding: 0.7rem 1.5rem;
  background: #B8A89F;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  margin: 1.5rem auto 0;
  text-align: center;
  transition: background 0.3s ease;
  max-width: 250px;
}

.btn:hover {
  background: #9f928b;
}

/* Responsive Tweaks for Hero Backgrounds */
@media (max-width: 2048px) {

  .hero-background::before,
  .hero-background::after {
    width: 45%;
    max-width: 600px;
    opacity: 0.35;
  }
}

@media (max-width: 1440px) {
  .hero-background::before,
  .hero-background::after {
    width: 40%;
    max-width: 500px;
    opacity: 0.35;
  }
}

/* Responsive – Tablets / small laptops */
@media (max-width: 1024px) {
  .hero-text h2 {
    font-size: 2.2rem;
  }

  .hero-background::before,
  .hero-background::after {
    width: 45%;
    max-width: 400px;
  }
}


/* Responsive – Medium screens / tablets */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-background::before {
    top: 0;
    left: 0;
    width: 50%;
    max-width: 450px;
    height: 350px;
    background-position: top left;
  }

  .hero-background::after {
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
    width: 50%;
    max-width: 450px;
    height: 350px;
    background-position: bottom right;
  }

  .hero-image {
    width: 80%;
    margin: 0 auto;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .btn {
    margin: 1rem auto 0;
  }
}

/* Responsive – Small phones */
@media (max-width: 435px) {
  .hero-background::before {
    width: 50%;
    height: 350px;
    background-position: top left;
    background-color: #B8A89F;
    background-image: none;
    opacity: 1;
  }

  .hero-background::after {
    background-position: bottom right;
    width: 50%;
    height: 350px;
    background-position: top left;
    background-color: #B8A89F;
    background-image: none;
    opacity: 1;
  }

  .hero-text {
    padding: 15px;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-image {
    width: 100%;
    padding: 0;
  }

  .btn {
    width: 90%;
    max-width: none;
    margin: 1rem auto;
  }
}