@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf);
}

@font-face {
  font-family: "Playfair";
  src: url(../fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf);
}

:root {
  --primary-green: #059669;
}

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

body,
html {
  overflow-x: hidden;
  font-family: Inter;
}

a {
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 5rem;
}

header .logo-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

header .logo-container img {
  height: 1.5rem;
}

header .logo-container p {
  font-family: Playfair;
  color: #1e2938;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Background video */

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

/* Hero content */

.hero-content {
  position: relative;
  z-index: 2;

  height: 100%;
  max-width: 1200px;
  margin: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;
  padding: 0 2rem;
}

/* Typography */

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  font-family: Playfair;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  max-width: 600px;
}

/* Button */

.hero-btn {
  margin-top: 2rem;
  padding: 14px 28px;
  background: var(--primary-green);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #ddd;
  color: #000;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1.4s ease forwards;
  animation-delay: 0.5s;
}

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

@media (max-width: 768px) {
  .hero-video {
    display: none;
  }

  .hero {
    background-image: url("/assets/images/hero-fallback.jpg");
    background-size: cover;
    background-position: center;
  }

  .hero-video {
    animation: heroZoom 20s linear infinite alternate;
  }

  @keyframes heroZoom {
    from {
      transform: translate(-50%, -50%) scale(1);
    }
    to {
      transform: translate(-50%, -50%) scale(1.1);
    }
  }
}

.place-home-section,
.featured-section {
  margin: 5rem;
}

.place-home-section .top-section,
.featured-section .top-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  align-items: center;
}

.place-home-section .top-section h2,
.featured-section .top-section h2 {
  color: #1e2938;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 2.5rem;
  text-transform: capitalize;
  font-family: Playfair;
}

.place-home-section .top-section p {
  width: 44rem;
  max-width: 100%;
  color: #475569;
  text-align: center;
  font-family: Inter;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.place-home-section .place-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 4rem;
}

.place-home-section .place-home-grid .place-home-item {
  display: flex;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 1rem;
  background: #f8fafc;
}

.place-home-section .place-home-grid .place-home-item img {
  height: 2.35rem;
}

.place-home-section .place-home-grid .place-home-item h3 {
  color: #1e2938;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.place-home-section .place-home-grid .place-home-item p {
  margin-top: 1rem;
  color: #475569;
  text-align: center;
  line-height: 1.5rem;
}

.featured-section .items-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.featured-section .items-container .item-container {
  display: flex;
  flex-direction: column;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.featured-section .items-container .item-container img {
  width: 100%;
  height: 15rem;
  object-fit: contain;
}

.featured-section .items-container .item-container .bottom-section {
  padding: 1.5rem;
}

.featured-section .items-container .item-container .bottom-section .title {
  color: #1e2938;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.featured-section .items-container .item-container .bottom-section .content {
  margin-top: 0.5rem;
  color: #475569;
  line-height: 1.5;
}

.featured-section .items-container .item-container .bottom-section a {
  color: #059669;
  margin-top: 1rem;
  display: block;
}

footer {
  background-color: #1e2938;
  padding: 1rem 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .copyright,
footer .copyright a {
  color: #fff;
  text-align: center;
}

footer .copyright a {
  font-weight: 700;
}

.live-search {
  position: relative;
}

.live-search input {
  width: 25rem;
  max-width: 100%;
  padding: 0.625rem 1rem;
}

#live-search-results {
  position: absolute;
  background: white;
  width: 100%;
  border: 1px solid #ddd;
  z-index: 999;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.search-results li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.search-results li:hover {
  background: #f5f5f5;
}
