@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap");

/* ==================== ROOT ==================== */

:root {
  --primary-color: #e0ebed;
  --text-dark: #231e22;
  --text-light: #767268;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
}

/* ==================== RESET ==================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Lato", sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* ==================== CONTAINER ==================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 5rem 1rem;
}

/* ==================== SECTION TITLE ==================== */

.section-title {
  position: relative;
  padding-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  text-align: center;
}

.section-title::before {
  position: absolute;
  content: "";
  width: 5rem;
  height: 5px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #25453a;
  border-radius: 1rem;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 6px;
  height: 5px;
  bottom: 0;
  left: calc(50% + 3rem);
  transform: translateX(-50%);
  background: #25453a;
  border-radius: 1rem;
}

/* ==================== BUTTON ==================== */

.btn {
  padding: 1rem 2rem;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--white);
  background: var(--text-dark);
  transition: 0.3s;
}

.btn:hover {
  background: var(--text-light);
}

/* ==================== NAVBAR ==================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  isolation: isolate;
}

.nav-header {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-color);
}

.logo a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-button {
  padding: 0;
  border: none;
  outline: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  background: transparent;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--primary-color);
  transform: translateY(-110%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.nav-links.open {
  transform: translateY(0);
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

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

.hero {
  position: relative;
  display: grid;
  padding-top: 5rem;
}

.hero-image {
  width: 100%;
  min-height: 18rem;
  background: url("../images/header.png") center top / cover no-repeat;
}

.hero-content {
  min-width: 0;
  padding: 2rem 1rem 19rem;
}

.hero-content h1 {
  max-width: 700px;
  margin-inline: auto;
  font-size: clamp(2.4rem, 10vw, 5.125rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--text-dark);
  text-align: center;
}

/* ==================== SEARCH FORM ==================== */

.search-form {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 900px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: var(--white);
  box-shadow: 0 5px 40px rgb(224 235 237 / 80%);
}

.input-group {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.search-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  border: none;
  border-bottom: 1px solid var(--text-light);
  background: transparent;
}

.search-form input::placeholder {
  color: var(--text-light);
}

.search-form .btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.4rem;
}

/* ==================== SERVICES ==================== */

.services {
  overflow: hidden;
}

.service-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-list::before {
  position: absolute;
  content: "";
  width: 100vw;
  height: calc(100% - 4rem);
  bottom: -5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  z-index: -1;
}

.service-card {
  position: relative;
  min-width: 0;
  padding: 2rem 1.25rem;
  background: var(--white);
  box-shadow: 10px 10px 30px rgb(0 0 0 / 10%);
  overflow: hidden;
}

.service-card::before {
  position: absolute;
  content: "";
  width: 10rem;
  aspect-ratio: 1;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
  border-radius: 50%;
  z-index: -1;
}

.service-card img {
  max-width: 70px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.service-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.service-card p {
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  line-height: 1.7;
}

/* ==================== EXPERIENCE ==================== */

.experience {
  position: relative;
  display: grid;
  padding-block: 5rem;
}

.experience-image {
  width: 100%;
  min-height: 18rem;
  background: url("../images/experience.png") center top / cover no-repeat;
}

.experience-content {
  min-width: 0;
  padding: 2rem 1rem 19rem;
}

.experience-content p {
  margin-block: 2rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: center;
}

.experience-button {
  text-align: center;
}

.experience-stats {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 900px;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
  background: var(--white);
  box-shadow: 0 5px 40px rgb(224 235 237 / 80%);
}

.experience-stats h4 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.experience-stats p {
  margin: 0;
  font-weight: 500;
  color: var(--text-light);
}

/* ==================== PROPERTIES ==================== */

.properties {
  background: var(--white);
}

.swiper {
  width: 100%;
  max-width: 900px;
  padding-block: 3rem;
  overflow: hidden;
}

.swiper-slide {
  width: 100%;
  min-width: 0;
  height: auto;
}

.property-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 5px 40px rgb(224 235 237 / 80%);
}

.property-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.property-details {
  padding: 1rem;
}

.property-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.property-header h4 {
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
}

.property-header h5 {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
}

.property-info {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.property-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.property-info i {
  font-size: 1.15rem;
  color: var(--text-dark);
}

.property-location {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-light);
}

/* ==================== SUBSCRIBE ==================== */

.subscribe {
  padding: 5rem 1rem 3rem;
  margin-bottom: 4rem;
  background: var(--primary-color);
}

.subscribe .section-title {
  max-width: 700px;
  margin-inline: auto;
}

.subscribe > p {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.6;
}

.subscribe form {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  background: var(--white);
  box-shadow: 0 10px 50px rgb(224 235 237 / 80%);
}

.subscribe input {
  min-width: 0;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
  outline: none;
  border: none;
}

.subscribe input::placeholder {
  color: var(--text-light);
}

.subscribe .btn {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
}

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

.footer {
  background: var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-column {
  min-width: 0;
}

.footer-logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer-column > p {
  max-width: 350px;
  margin-block: 1rem 2rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--primary-color);
  border-radius: 50%;
}

.footer-column h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer-links {
  display: grid;
  gap: 0.9rem;
}

.footer-links a {
  font-weight: 500;
  color: var(--text-dark);
}

.footer-links a:hover {
  color: var(--text-light);
}

.featured-property {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.featured-property img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: cover;
}

.featured-property h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.featured-property p {
  margin: 0;
  line-height: 1.4;
  color: var(--text-dark);
}

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

.footer-bottom {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--primary-color);
  text-align: center;
}

/* ==================== SMALL MOBILE ==================== */

@media (max-width: 374px) {
  .container {
    padding-inline: 0.75rem;
  }

  .nav-header {
    padding-inline: 0.75rem;
  }

  .logo a {
    font-size: 1.1rem;
  }

  .hero-content {
    padding-inline: 0.75rem;
    padding-bottom: 20rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .search-form {
    width: calc(100% - 1.5rem);
    padding: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .experience-content {
    padding-inline: 0.75rem;
    padding-bottom: 21rem;
  }

  .experience-stats {
    width: calc(100% - 1.5rem);
    padding-inline: 1rem;
  }

  .property-header {
    flex-direction: column;
  }

  .property-header h5 {
    font-size: 1rem;
  }

  .subscribe {
    padding-inline: 0.75rem;
  }

  .subscribe form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe input,
  .subscribe .btn {
    width: 100%;
  }
}

/* ==================== TABLET ==================== */

@media (min-width: 540px) {
  .hero-image {
    min-height: 22rem;
  }

  .hero-content {
    padding-bottom: 11rem;
  }

  .search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 1rem;
    padding: 1.5rem;
  }

  .search-form .btn {
    width: auto;
    min-width: 55px;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-image {
    min-height: 22rem;
  }

  .experience-content {
    padding-bottom: 11rem;
  }

  .experience-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.5rem;
  }

  .property-details {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==================== DESKTOP ==================== */

@media (min-width: 769px) {
  /* Navbar */

  .navbar {
    position: static;
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-header {
    flex: 1;
    padding: 0;
    background: transparent;
  }

  .logo a {
    font-size: 1.55rem;
  }

  .menu-button {
    display: none;
  }

  .nav-links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    transform: none !important;
    z-index: auto;
  }

  .nav-links a:hover {
    color: var(--text-light);
  }

  /* Hero */

  .hero {
    padding-top: 0;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .hero-image {
    grid-area: 1 / 3 / 2 / 5;
    min-height: 30rem;
    border-top-left-radius: 100%;
  }

  .hero-content {
    grid-column: 2 / 3;
    padding-block: 6rem 12rem;
  }

  .hero-content h1 {
    text-align: left;
  }

  /* Search */

  .search-form {
    bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .search-form .input-group {
    flex: 1;
  }

  .search-form .btn {
    width: auto;
    min-width: 55px;
  }

  /* Services */

  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Experience */

  .experience {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, calc(var(--max-width) / 2))
      minmax(0, 1fr);
    align-items: center;
  }

  .experience-image {
    grid-column: 1 / 3;
    min-height: 30rem;
    border-top-right-radius: 100%;
  }

  .experience-content {
    grid-column: 3 / 4;
    padding-block: 5rem 8rem;
  }

  .experience-content :is(.section-title, p, .experience-button) {
    text-align: right;
  }

  .experience-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    text-align: left;
  }

  /* Properties */

  .swiper {
    padding-block: 4rem;
  }

  .swiper-slide {
    min-width: 0;
  }

  /* Subscribe */

  .subscribe {
    padding-inline: 1rem;
  }

  /* Footer */

  .footer-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-column:first-child {
    grid-column: 1 / 3;
  }
}

/* ==================== LARGE DESKTOP ==================== */

@media (min-width: 1025px) {
  .service-list {
    gap: 2rem;
  }

  .service-card {
    padding: 2rem;
  }
}
