/* ==========================================================================
   Home — Hero section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  z-index: 1;
  background-color: var(--color-brown);
  background-image: url("https://res.cloudinary.com/xfajwjik/image/upload/v1785918870/hzb2vzk4gzurbut7cayn.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      var(--color-overlay-beige) 0%,
      var(--color-overlay-dark) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 52rem;
  text-align: center;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: heroFadeIn 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

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

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif-display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__description {
  margin: 0 auto 2.5rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hero-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.35rem 0.35rem 0.35rem 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth),
    background var(--transition-smooth);
}

.hero-search:focus-within {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-white);
  outline: none;
}

.hero-search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-brass);
  transition: background var(--transition-smooth), transform var(--transition-smooth);
}

.hero-search__submit:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.hero-search__submit svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-search,
  .hero-search__submit {
    transition: none;
  }
}

@media (max-width: 480px) {
  .hero-search {
    padding-left: 1rem;
    border-radius: 1.25rem;
  }

  .hero-search__input {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Featured heritage sites
   ========================================================================== */

.featured-sites {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2rem);
  background: var(--color-cream);
}

.featured-sites__inner {
  max-width: 75rem;
  margin: 0 auto;
}

.featured-sites__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2.75rem, 5vw, 4rem);
}

.featured-sites__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-brown);
}

.featured-sites__subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.75;
  color: var(--color-brown-soft);
}

.featured-sites__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
  align-items: stretch;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.heritage-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid rgba(212, 196, 176, 0.45);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(74, 63, 53, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(74, 63, 53, 0.12);
}

.heritage-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.65rem 0.65rem 0 0;
  background: var(--color-beige);
}

.heritage-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.heritage-card:hover .heritage-card__image {
  transform: scale(1.06);
}

.heritage-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1.05rem;
}

.heritage-card__district {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brass);
}

.heritage-card__name {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif-display);
  font-size: clamp(0.975rem, 1.6vw, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-brown);
}

.heritage-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.heritage-card__tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-brown-soft);
  background: #f7f2ea;
  border: 1px solid rgba(212, 196, 176, 0.65);
  border-radius: 0.2rem;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.heritage-card__tag:hover {
  color: var(--color-brown);
  background: rgba(201, 169, 98, 0.18);
  border-color: var(--color-brass);
}

@media (max-width: 1024px) {
  .featured-sites__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .featured-sites__grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heritage-card,
  .heritage-card__image,
  .heritage-card__tag {
    transition: none;
  }

  .heritage-card:hover {
    transform: none;
  }

  .heritage-card:hover .heritage-card__image {
    transform: none;
  }
}

/* ==========================================================================
   Map CTA — Khám phá bản đồ
   ========================================================================== */

.map-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(28rem, 50vw, 34rem);
  padding: 4rem 1.5rem;
  background-color: var(--color-brown);
  background-image: url("https://res.cloudinary.com/xfajwjik/image/upload/v1785918898/qgkql5rokjut3zunyewg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.map-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 55, 40, 0.72);
  pointer-events: none;
}

.map-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 42rem;
  text-align: center;
}

.map-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-brass);
}

.map-cta__icon svg {
  width: 100%;
  height: 100%;
}

.map-cta__title {
  margin: 0 0 1.125rem;
  font-family: var(--font-serif-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.map-cta__description {
  margin: 0 0 2rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.map-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  background: var(--color-brass);
  border-radius: 0.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background var(--transition-smooth), transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.map-cta__button:hover {
  background: var(--color-brass-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   Quote — Trích dẫn
   ========================================================================== */

.home-quote {
  padding: clamp(6.5rem, 13vw, 9.5rem) 1.5rem;
  background: var(--color-white);
  border-top: 3px solid var(--color-brass);
}

.home-quote__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.home-quote__blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.home-quote__text {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif-display);
  font-size: clamp(0.9375rem, 2.2vw, 1.25rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: var(--color-brown);
}

.home-quote__source {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-brown-soft);
}

.home-quote__cite {
  font-style: normal;
  color: var(--color-brass);
}

@media (prefers-reduced-motion: reduce) {
  .map-cta__button {
    transition: none;
  }

  .map-cta__button:hover {
    transform: none;
  }
}
