/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend', sans-serif;
  background-color: white;
  color: #2c2c2c;
  font-weight: 300;
  line-height: 1.5;
}

.font-bold {
  font-weight: 700;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.show-md {
  display: none;
}

.icon-md {
  display: none;
}

/* Header styles */
header {
  background-color: white;
}

nav {
  height: 6.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-menu {
  display: none;
}

.hamburger-menu {
  display: none;
}

.logo {
  width: auto;
  height: 3rem;
  object-fit: contain;
}

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

.btn-ghost {
  background: none;
  border: none;
  color: #303030;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.btn-primary {
  background-color: #2c2c2c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.hero {
  display: flex;
  align-items: center;
  margin-top: 6rem;
}

.hero-content {
  max-width: 41.125rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-top: 1.5rem;
}

.hero-image {
  width: 30.1875rem;
  height: 26.75rem;
  margin-left: auto;
}

/* What we do section */
.what-we-do {
  margin-top: 12.5rem;
}

.what-we-do-content {
  max-width: 80%;
}

.what-we-do h2 {
  font-weight: 400;
  font-size: 3rem;
  letter-spacing: 0.03625rem;
  line-height: 1.5;
}

.what-we-do p {
  font-size: 2rem;
  line-height: 1.5;
}

.what-we-do strong {
  font-weight: 700;
}

/* Services section */
.services {
  margin-top: 5.25rem;
}

.services-container {
  display: flex;
  gap: 1.5rem;
}

.service-card {
  flex: 1;
  min-height: 31.25rem;
  background-color: #f7f5fa;
  border-radius: 0.5rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.service-card h3 {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.9375rem;
}

.service-card p {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.card-image {
  width: 13.8125rem;
  height: 13.8125rem;
  margin-left: auto;
  margin-right: auto;
}

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

.vector {
  position: absolute;
  width: 13.8125rem;
  height: 13.8125rem;
  top: 0;
  left: 0;
}

/* Products section */
.section-title {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 3.75rem;
}

.products {
  margin-top: 6.25rem;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product h2 {
  font-weight: 600;
  font-size: 2.625rem;
  line-height: 1.5;
}

.icon {
  width: 3.3125rem;
  height: 3.3125rem;
}

.product p {
  font-size: 2.25rem;
  line-height: 1.5;
}

.product-realstate {
  display: flex;
  gap: 2.8125rem;
  padding: 5.625rem 0;
}

.product-realstate .product-image {
  width: 60%;
  height: 34.5625rem;
  object-fit: cover;
}

/* Native.ad specific styles */
.native-ad {
  margin-top: 4rem;
  padding: 5rem 0 5.9375rem 0;
}

.native-ad .product-content, .product-exp-content {
  position: relative;
  display: flex;
  align-items: center;
}

.product-left {
  width: 60%;
  position: relative;
}

.product-left-md {
  display: none;
}

.product-exp-left {
  width: 60%;
  position: relative;
}

.circle-bg {
  position: absolute;
  width: 40.6875rem;
  height: 40.6875rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #e9efdc4c;
  border-radius: 50%;
  z-index: -1;
}

.main-image {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.product-right {
  margin-left: 3.1875rem;
  flex: 1;
}

.product-description {
  font-size: 2.25rem;
}

.phone-mockups {
  display: flex;
  margin-top: 1.25rem;
  gap: 1.875rem;
}

.phone-mockups img {
  width: auto;
  height: 21.75rem;
}

/* ExpertAnswer.com specific styles */
.expert-answer {
  margin-top: 4rem;
  display: flex;
  padding: 6.8125rem 0;
}

.expert-image {
  width: 50%;
  max-height: 32.125rem;
  object-fit: cover;
  margin-right: 3.1875rem;
}

.expert-answer h2 {
  font-size: 2.625rem;
  font-weight: 600;
}

.expert-answer .product-description {
  max-width: 90%;
}

.separator {
  height: 0.0625rem;
  width: 100%;
  margin-top: 5rem;
  background-color: #2C2C2C;
}

/* Footer styles */
footer {
  position: relative;
  padding: 6.25rem 18.75rem;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/assets/images/footer-bg.webp) no-repeat;
  background-position: 100% 100%;
  background-size: cover;
  padding-top: 20%;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left h2 {
  font-weight: 400;
  font-size: 3.125rem;
  line-height: 3.75rem;
  margin-bottom: 6.125rem;
}

.svg-icon {
  width: 1.6875rem;
  height: 1.6875rem;
  background-image: url(/svg.svg);
  background-size: 100% 100%;
}

.footer-right h3 {
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 2.625rem;
}

.footer-right .email {
  font-size: 1.125rem;
  line-height: 1.6875rem;
  margin-top: 0.6875rem;
}

.footer-right .address {
  font-size: 1.125rem;
  line-height: 1.6875rem;
  margin-top: 3rem;
}


/* Extra Large Screens and down (less than 1400px) */
@media (min-width: 87.5rem) {
  .container {
    max-width: 75rem;
  }
}

/* Extra Large Screens and down (less than 1400px) */
@media (max-width: 1399px) {
  .container {
    max-width: 71.25rem;
  }

  .services-container {
    gap: 1rem;
  }

  .service-card {
    max-width: calc((100% - 3rem) / 4);
  }

  .card-image {
    width: 100%;
    height: auto;
  }
}

/* Large Screens and down (less than 1200px) */
@media (max-width: 1199px) {
  .container {
    max-width: 60rem;
  }

  .show-md {
    display: block;
  }

  .icon {
    display: none;
  }

  .product-content {
    display: flex;
    flex-direction: column;
  }

  .icon-md {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    margin-top: 1rem;
  }

  .icon-md img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .services-container {
    gap: .5rem;
  }

  .service-card {
    max-width: calc(25% - 1.5rem);
    min-height: 25rem;
  }

  .card-content {
    padding: 1rem;
  }

  .product h2 {
    font-size: 3rem;
  }

  .product-realstate {
    flex-direction: column;
  }

  .product-realstate .product-image {
    width: 100%;
  }

  .product-left, .circle-bg, .phone-mockups {
    display: none;
  }

  .product-left-md {
    display: block;
    width: 100%;
  }

  .product-left-md img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .product-exp-left {
    display: flex;
    flex-direction: column;
  }

  .native-ad .product-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .native-ad .product-left {
    width: 50%;
  }

  .native-ad .product-right {
    margin-left: 0;
    display: flex;
    flex-direction: column;
  }

  .native-ad .product-right .phone-mockups {
    justify-content: center;
  }

  .expert-answer {
    padding: 3.125rem 0;
  }

  .expert-answer h2 {
    font-size: 3rem;
  }

  .product-exp-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .expert-image {
    margin-right: 0;
  }

  .product-exp-left {
    width: 100%;
  }

  footer {
    padding: 3.125rem 1rem;
  }

  .footer-left h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .footer-right h3 {
    font-size: 2rem;
  }
}

/* Medium Screens and down (less than 992px) */
@media (max-width: 991px) {
  .container {
    max-width: 45rem;
  }

  .icon {
    width: 2rem;
    height: 2rem;
  }

  .logo {
    height: 2rem;
  }

  nav {
    height: 3.5rem;
  }

  .nav-links {
    position: fixed;
    top: 3.5rem;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    z-index: 9999;
    background-color: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.5rem;
    padding-right: 2rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    padding-top: 5rem;
  }

  .nav-links.active {
    transform: translateX(0%);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
  }

  .close-menu {
    display: block;
    position: absolute;
    top: 2rem;
    right: 3rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
  }

  .hamburger-menu img {
    height: 2rem;
    width: 2rem;
  }

  .hero-image {
    max-width: 40%;
    object-fit: contain;
  }

  .hero {
    margin-top: 3rem;
  }

  .what-we-do {
    margin-top: 3.125rem;
  }

  .what-we-do p {
    font-size: 1.5rem;
  }

  .what-we-do-content {
    max-width: 100%;
  }

  .product p {
    font-size: 1.5rem;
  }

  .product-description{
    font-size: 1.5rem;
  }

  .services-container {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .service-card {
    min-width: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    min-height: 31.25rem;
  }

  .card-image {
    max-width: 80%;
  }

  .product-realstate {
    padding: 2rem 0;
    gap: 1rem;
  }

  .native-ad {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .native-ad .product-content {
    gap: 1rem;
  }

  .expert-answer {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .product-exp-content {
    gap: 1rem;
  }

  .native-ad .product-left {
    width: 80%;
  }

  footer .container {
    flex-direction: column;
  }
  
  footer::before {
    padding-top: 0;
    top: 0;
  }

  .footer-left h2 {
    text-align: center;
  }
}

/* Small Screens and down (less than 768px) */
@media (max-width: 767px) {
  .container {
    max-width: 33.75rem;
  }

  .icon-md {
    width: 1rem;
    height: 1rem;
  }

  .hero {
    flex-direction: column-reverse;
    margin-top: 0;
  }

  .hero-image {
    max-width: 100%;
    height: 16.9375rem;
    margin-bottom: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .what-we-do h2 {
    font-size: 2rem;
  }

  .services-container {
    gap: 2rem;
  }

  .service-card {
    min-width: 100%;
    max-width: 100%;
    min-height: unset;
  }

  .service-card p {
    margin-bottom: 0;
  }

  .card-content {
    flex-direction: column-reverse;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .card-image {
    width: 3.375rem;
    height: 3.375rem;
    margin-left: unset;
    margin-bottom: 1.5rem;
  }

  .product-realstate .product-image {
    height: 18.9375rem;
  }

  .expert-image {
    width: 100%;
    height: 18.75rem;
  }

  footer::before {
    background: url(/assets/images/footer-md.png) no-repeat;
  }

  .footer-left h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .footer-right .address {
    margin-top: 1rem;
  }
}

/* Extra Small Screens (less than 576px) */
@media (max-width: 575px) {
  .container {
    max-width: 100%;
  }

  .expert-answer h2 {
    font-size: 2rem;
  }

  .product h2 {
    font-size: 2rem;
  }
}