/* =========================================
   COLOR VARIABLES
========================================= */

:root {
  --green-dark: #16382d;
  --green: #245744;
  --green-light: #3d7358;

  --gold: #d9a441;
  --gold-light: #e8c477;

  --cream: #faf6eb;
  --cream-dark: #eee5d1;

  --brown: #65452f;

  --white: #ffffff;
  --black: #17201c;

  --shadow: 0 12px 35px rgba(20, 45, 35, 0.12);
}


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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.7;
}


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

.hero {
  position: relative;
  min-height: 500px;

  display: flex;
  align-items: center;

  background: var(--green-dark);
  color: white;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(12, 43, 32, 0.95),
    rgba(22, 56, 45, 0.85)
  );
}

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

  width: min(1200px, 92%);
  margin: 0 auto;

  /* THREE COLUMNS */
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;

  align-items: center;
  gap: 40px;
}


/* COLUMN 1 */

.hero-images {
  display: flex;
  justify-content: center;
  align-items: center;
}

.culture-logo {
  width: 220px;
  height: 220px;

  object-fit: cover;

  border-radius: 50%;

  border: 6px solid var(--gold);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}


/* COLUMN 2 */

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;

  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--gold);
}

.hero-text p {
  max-width: 600px;
  margin: 0 auto 30px;

  font-size: 1.1rem;
}


/* COLUMN 3 */

.hero-map {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-image {
  width: 220px;
  height: 220px;

  object-fit: contain;

  background: white;

  border-radius: 50%;

  border: 6px solid var(--gold);

  padding: 10px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.eyebrow,
.section-label {
  display: inline-block;

  color: var(--gold);

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 3px;

  margin-bottom: 14px;
}


.hero h1 {
  font-family: "Playfair Display", serif;

  font-size: clamp(3rem, 6vw, 5.5rem);

  line-height: 1.05;

  margin-bottom: 25px;
}


.hero h1 span,
.intro-section h2 span,
.section-heading h2 span,
.heritage-section h2 span {
  color: var(--gold);
}


.hero p {
  max-width: 620px;

  font-size: 1.15rem;

  color: rgba(255, 255, 255, 0.88);

  margin-bottom: 35px;
}


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

.hero-button,
.outline-button {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  padding: 14px 24px;

  border-radius: 50px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
}


.hero-button {
  background: var(--gold);

  color: #241b0e;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.2);
}


.hero-button:hover {
  transform: translateY(-3px);

  background: var(--gold-light);
}


.hero-button span {
  font-size: 1.3rem;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
  position: sticky;

  top: 0;

  z-index: 100;

  background: rgba(22, 56, 45, 0.96);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.nav-container {
  width: min(1200px, 92%);

  margin: auto;

  min-height: 70px;

  display: flex;

  justify-content: space-between;

  align-items: center;
}


.nav-logo {
  color: var(--gold);

  font-family: "Playfair Display", serif;

  font-size: 1.5rem;

  font-weight: 700;

  text-decoration: none;
}


.nav-links {
  display: flex;

  gap: 35px;
}


.nav-links a {
  color: white;

  text-decoration: none;

  font-weight: 500;

  position: relative;

  transition: 0.3s;
}


.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;

  height: 2px;

  background: var(--gold);

  transition: 0.3s;
}


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


.nav-links a:hover::after {
  width: 100%;
}


/* =========================================
   MAIN
========================================= */

main {
  overflow: hidden;
}


/* =========================================
   INTRO
========================================= */

.intro-section {
  max-width: 850px;

  margin: auto;

  padding: 110px 20px 80px;

  text-align: center;
}


.intro-section h2,
.section-heading h2,
.heritage-section h2 {
  font-family: "Playfair Display", serif;

  font-size: clamp(2.3rem, 5vw, 3.6rem);

  line-height: 1.15;

  color: var(--green-dark);

  margin-bottom: 22px;
}


.intro-section p {
  font-size: 1.05rem;

  color: #5f625e;
}


/* =========================================
   CULTURE SECTION
========================================= */

.culture-section {
  width: min(1200px, 92%);

  margin: auto;

  padding-bottom: 110px;
}


.section-heading {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 50px;

  margin-bottom: 45px;
}


.section-heading > p {
  max-width: 400px;

  color: #666;

  margin-bottom: 10px;
}


.culture-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 34px 0 28px;
}

.culture-search label {
  color: var(--green-dark);
  font-weight: 600;
}

.culture-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: 50px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.culture-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.2);
}

.search-status {
  grid-column: 2;
  min-height: 1.5em;
  margin-top: -4px;
  color: var(--green-light);
  font-size: 0.9rem;
}


/* =========================================
   CULTURE GRID
========================================= */

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  align-items: stretch;
}

.culture-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(20, 45, 35, 0.12);
  transition: transform 0.3s ease;
}

.culture-card:hover {
  transform: translateY(-8px);
}

.card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;

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

  background-color: #f5f1e8;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* Shows the WHOLE image */
  object-position: center;
  display: block;
}

.card-image img[src$="images12.png"] {
  transform: scale(1.2);
}

.culture-card:hover .card-image img {
  transform: scale(1.06);
}

.culture-card:hover .card-image img[src$="images12.png"] {
  transform: scale(1.272);
}

.card-content {
  flex: 1;
  padding: 25px;
}


.card-number {
  color: var(--gold);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 2px;
}


.card-content h3 {
  color: var(--green-dark);

  font-family: "Playfair Display", serif;

  font-size: 1.55rem;

  margin: 6px 0 10px;
}


.card-content p {
  color: #666;

  font-size: 0.95rem;

  margin-bottom: 20px;
}


.card-content a {
  color: var(--green);

  text-decoration: none;

  font-weight: 700;

  transition: 0.25s;
}


.card-content a:hover {
  color: var(--gold);
}


/* =========================================
   HERITAGE SECTION
========================================= */

.heritage-section {
  position: relative;

  min-height: 500px;

  display: flex;

  align-items: center;

  background:
    linear-gradient(
      rgba(15, 53, 40, 0.91),
      rgba(15, 53, 40, 0.91)
    ),
    url("images/tangkhul-header.jpg")
    center / cover no-repeat;

  color: white;
}


.heritage-content {
  width: min(850px, 90%);

  margin: auto;

  text-align: center;
}


.heritage-section h2 {
  color: white;
}


.heritage-section p {
  max-width: 700px;

  margin: 0 auto 30px;

  color: rgba(255, 255, 255, 0.85);
}


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

.outline-button {
  border: 1px solid var(--gold);

  color: var(--gold);
}


.outline-button:hover {
  background: var(--gold);

  color: var(--green-dark);
}


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

footer {
  background: #10291f;

  color: white;

  text-align: center;

  padding: 60px 20px;
}


.footer-content {
  max-width: 700px;

  margin: auto;
}


.footer-content h2 {
  font-family: "Playfair Display", serif;

  font-size: 2rem;

  color: var(--gold);

  margin-bottom: 8px;
}


.footer-content p {
  color: rgba(255, 255, 255, 0.7);
}


.footer-line {
  width: 60px;

  height: 2px;

  background: var(--gold);

  margin: 25px auto;
}


.copyright {
  font-size: 0.8rem;
}


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

@media (max-width: 900px) {

  .hero {
    min-height: auto;

    padding: 90px 0;
  }


  .hero-content {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 40px;
  }


  .hero-images {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .culture-logo {
    width: 240px;
    height: 240px;
  }


  .map-logo {
    width: 120px;
    height: 120px;
    position: absolute;
    right: 0;
    bottom: 0;
  }


  .hero-text {
    margin: auto;
  }

  .hero-spacer {
    display: none;
  }


  .hero p {
    margin-left: auto;
    margin-right: auto;
  }


  .section-heading {
    align-items: start;

    flex-direction: column;

    gap: 15px;
  }


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

}


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

@media (max-width: 600px) {

  .hero {
    padding: 70px 0;
  }


  .hero-content {
    width: 90%;
  }


  .hero-images {
    position: relative;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .culture-logo {
    width: 190px;
    height: 190px;

    border-width: 5px;
  }


  .map-logo {
    width: 90px;
    height: 90px;

    position: absolute;
    right: 0;
    bottom: 0;

    border-width: 3px;
  }


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


  .hero p {
    font-size: 1rem;
  }


  .nav-container {
    min-height: 60px;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    padding: 10px 0;
  }


  .nav-links {
    gap: 20px;
  }


  .nav-links a {
    font-size: 0.85rem;
  }


  .intro-section {
    padding:
      80px 20px
      60px;
  }


  .culture-section {
    width: 90%;

    padding-bottom: 80px;
  }


  .culture-search {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .search-status {
    grid-column: 1;
  }


  .culture-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }


  .card-image {
    height: 230px;
  }


  .heritage-section {
    min-height: 450px;
  }

}