:root {
  --green: #176b50;
  --green-dark: #0c4435;
  --green-light: #e8f3ee;
  --cream: #f7f4ed;
  --white: #ffffff;
  --text: #17352c;
  --muted: #6b7c75;
  --gold: #d9a441;
  --border: #dfe7e2;
  --shadow: 0 20px 60px rgba(12, 68, 53, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}


/* NAVIGATION */

.navbar {
  height: 78px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(15px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.logo-accent {
  color: var(--green);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
}

.logo-icon svg {
  width: 21px;
}

.nav-link {
  margin-left: auto;
  font-weight: 600;
  color: var(--muted);
  transition: .2s;
}

.nav-link:hover {
  color: var(--green);
}

.nav-pledge,
.primary-button {
  border: 0;
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 100px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: .25s;
}

.nav-pledge:hover,
.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.nav-pledge svg {
  width: 17px;
}


/* HERO */

.hero {
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(90deg, rgba(5,40,29,.82), rgba(5,40,29,.35)),
    url("https://images.unsplash.com/photo-1528127269322-539801943592?auto=format&fit=crop&w=2000&q=85")
    center / cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.hero-badge svg {
  width: 16px;
  color: #ffd87b;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.02;
  max-width: 900px;
  margin-bottom: 28px;
  letter-spacing: -2px;
}

.hero h1 span {
  display: block;
  color: #d8eddf;
}

.hero p {
  max-width: 620px;
  font-size: 19px;
  color: rgba(255,255,255,.87);
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.secondary-button {
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  color: white;
  padding: 13px 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.secondary-button:hover {
  background: white;
  color: var(--green-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.scroll-indicator svg {
  width: 17px;
}


/* INTRO */

.intro {
  padding: 110px 0;
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.section-label {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.intro h2,
.section-heading h2,
.cta-section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.intro h2 em,
.cta-section h2 em {
  color: var(--green);
  font-style: normal;
}

.intro-text {
  color: var(--muted);
  font-size: 17px;
}

.intro-text p + p {
  margin-top: 18px;
}


/* DESTINATIONS */

.destinations-section {
  padding: 110px 0;
  background: white;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
}

.section-heading p {
  margin-top: 18px;
  color: var(--muted);
}

.destination-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.destination-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10,50,35,.05);
  transition: .3s;
  cursor: pointer;
}

.destination-card:hover,
.destination-card:focus {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  outline: none;
}

.destination-card:focus {
  border-color: var(--green);
}

.card-image {
  height: 280px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.sri-lanka-image {
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.4), transparent 50%),
    url("https://images.unsplash.com/photo-1548013146-72479768bada?auto=format&fit=crop&w=900&q=85");
}

.bali-image {
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.4), transparent 50%),
    url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&w=900&q=85");
}

.nepal-image {
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.4), transparent 50%),
    url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?auto=format&fit=crop&w=900&q=85");
}

.card-location {
  position: absolute;
  bottom: 17px;
  left: 17px;
  color: white;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,.5);
}

.card-location svg {
  width: 16px;
}

.card-content {
  padding: 26px;
}

.card-content > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--green);
}

.card-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 29px;
  margin: 7px 0 9px;
}

.card-content p {
  color: var(--muted);
  font-size: 14px;
  min-height: 67px;
}

.learn-button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 800;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
}

.learn-button svg {
  width: 17px;
  transition: .2s;
}

.destination-card:hover .learn-button svg {
  transform: translateX(5px);
}


/* DESTINATION DETAIL */

.destination-detail {
  display: none;
  min-height: 620px;
  padding: 100px 0;
  background: var(--green-dark);
  color: white;
}

.destination-detail.active {
  display: block;
}

.detail-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 60px;
  max-width: 900px;
}

.detail-number {
  font-family: "Playfair Display", serif;
  font-size: 100px;
  color: rgba(255,255,255,.15);
}

.detail-content {
  max-width: 700px;
}

.detail-content .section-label {
  color: #9dd8bb;
}

.detail-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(45px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 25px;
}

.detail-content > p {
  color: rgba(255,255,255,.76);
  font-size: 17px;
  max-width: 650px;
}

.impact-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 35px 0;
}

.impact-list div {
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dcefe6;
}

.impact-list svg {
  width: 18px;
  color: #a6d8bf;
}

.back-btn {
  background: white;
  border: 0;
  color: var(--green-dark);
  border-radius: 100px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}


/* CTA */

.cta-section {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, #e3f2e9, transparent 50%),
    var(--cream);
}

.cta-content {
  max-width: 800px;
}

.cta-section p {
  max-width: 580px;
  margin: 22px auto 30px;
  color: var(--muted);
}

.primary-button.large {
  padding: 16px 25px;
}


/* FOOTER */

footer {
  background: #092f25;
  color: white;
  padding: 55px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 50px;
  align-items: center;
}

.footer-brand p {
  color: rgba(255,255,255,.6);
  margin-top: 12px;
  font-size: 14px;
}

.footer-brand .logo {
  color: white;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a,
.footer-links button {
  color: rgba(255,255,255,.75);
  background: none;
  border: 0;
}

.footer-links a:hover,
.footer-links button:hover {
  color: white;
}

.copyright {
  color: rgba(255,255,255,.45);
  font-size: 13px;
}


/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4,25,20,.75);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.hidden {
  display: none !important;
}

.modal-box {
  position: relative;
  background: white;
  border-radius: 25px;
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 38px;
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: #f1f5f2;
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.modal-close svg {
  width: 18px;
}

.modal-icon {
  width: 55px;
  height: 55px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.modal-icon svg {
  width: 24px;
}

.modal-box h2 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  margin-bottom: 7px;
}

.modal-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 27px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--text);
  background: #fbfcfb;
  outline: none;
  transition: .2s;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23,107,80,.1);
}

.amount-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fbfcfb;
  padding-left: 14px;
}

.amount-input span {
  font-weight: 800;
  color: var(--green);
}

.amount-input input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.amount-input input:focus {
  box-shadow: none;
}

.submit-button {
  width: 100%;
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 15px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  transition: .2s;
}

.submit-button:hover {
  background: var(--green-dark);
}

.submit-button svg {
  width: 17px;
}

.toast {
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: #e8f7ed;
  color: #146238;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.toast.error {
  background: #fff0ef;
  color: #a52c25;
}

.toast svg {
  width: 20px;
  flex-shrink: 0;
}

.toast strong,
.toast span {
  display: block;
}

.toast span {
  font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 850px) {

  .nav-link {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .destination-cards {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: auto;
  }

  .card-image {
    height: 300px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-number {
    font-size: 55px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}


@media (max-width: 560px) {

  .container {
    width: min(100% - 28px, 1160px);
  }

  .navbar {
    height: 68px;
  }

  .logo {
    font-size: 17px;
  }

  .logo-icon {
    width: 33px;
    height: 33px;
  }

  .nav-pledge {
    padding: 10px 14px;
    font-size: 12px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 49px;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 16px;
  }

  .intro,
  .destinations-section,
  .cta-section {
    padding: 75px 0;
  }

  .modal-box {
    padding: 27px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}