* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f6f1;
  color: #183c31;
  font-family: 'DM Sans', Arial, sans-serif;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

p {
  line-height: 1.75;
}

/* TOP BAR */

.topline {
  height: 28px;
  background: #183c31;
  color: #e8e8d7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 2px;
}

/* NAVIGATION */

.nav {
  height: 100px;
  background: #f7f6f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  z-index: 5;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 185px;
  height: 100%;
  line-height: 1.25;
}

/* OFFICIAL LANKA TOGETHER LOGO */

.nav .brand-logo {
  display: block;
  width: 185px;
  height: 94px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.mark {
  font-family: Georgia, serif;
  font-size: 33px;
  letter-spacing: -4px;
}

.dot {
  color: #b47a43;
}

.nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.7vw, 34px);
  font-size: 12px;
  font-weight: 700;
}

.nav nav a {
  white-space: nowrap;
}

.nav nav a:not(.nav-donate):hover,
.arrow-link:hover {
  color: #b47a43;
}

.nav-donate {
  background: #183c31;
  color: #fff;
  padding: 15px 19px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: #183c31;
  cursor: pointer;
}

/* HERO */

.hero {
  height: min(760px, 82vh);
  min-height: 580px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 9%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 35, 28, 0.82) 0%,
    rgba(10, 35, 28, 0.55) 38%,
    rgba(10, 35, 28, 0.18) 72%,
    rgba(10, 35, 28, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.7px;
  color: #a16e40;
  display: block;
  margin-bottom: 27px;
}

.eyebrow.light {
  color: #e0c4a3;
}

.hero h1 {
  font-size: clamp(56px, 7vw, 105px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 26px;
}

.hero p {
  font-size: 18px;
  max-width: 590px;
  color: #f1f0e9;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 25px;
  font-size: 12px;
  font-weight: 700;
  gap: 22px;
}

.btn.cream {
  background: #f2e7d7;
  color: #183c31;
}

.btn.dark {
  background: #183c31;
  color: #fff;
}

.btn.outline {
  border: 1px solid #f4eadd;
  color: #fff;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
}

.hero-bottom {
  position: absolute;
  bottom: 30px;
  left: 9%;
  right: 9%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
}

/* SECTIONS */

.section {
  padding: 110px 9%;
}

.mission,
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
}

.section h2,
.feature h2,
.cta h2 {
  font-size: clamp(40px, 4.3vw, 67px);
  line-height: 1.18;
  letter-spacing: -1px;
}

.lead {
  font-size: 21px;
  line-height: 1.7;
}

.arrow-link {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #a16e40;
  padding-bottom: 9px;
  display: inline-block;
  margin-top: 17px;
}

/* FEATURE */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 570px;
  background: #183c31;
  color: #fff;
}

.feature-image {
  background: url('https://images.unsplash.com/photo-1593001874117-c99c800e3eb0?auto=format&fit=crop&w=1200&q=85') center/cover;
}

.feature-copy {
  padding: 90px 13%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.feature-copy p {
  max-width: 470px;
  color: #d3ded8;
}

.feature-copy .btn {
  margin-top: 18px;
}

/* PROJECTS AND STORIES */

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 20px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.content-card {
  display: block;
}

.card-image {
  height: 270px;
  background: #d6ddd3 center/cover;
  margin-bottom: 22px;
  transition: transform .2s;
}

.content-card:hover .card-image {
  transform: translateY(-4px);
}

.card-meta {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a16e40;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.content-card h3 {
  font-size: 29px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.content-card p {
  color: #61766c;
  font-size: 14px;
}

.card-more {
  font-size: 12px;
  font-weight: 700;
}

.stories {
  background: #eeeae1;
}

/* ABOUT AND CTA */

.about p:not(.lead) {
  color: #61766c;
}

.cta {
  background: #264d3f;
  text-align: center;
  color: #fff;
  padding: 110px 20px;
}

.cta h2 {
  font-size: clamp(45px, 6vw, 83px);
}

.cta p {
  color: #d7e0da;
}

.cta .btn {
  margin-top: 22px;
}

/* FOOTER */

footer {
  background: #102b23;
  color: #fff;
  padding: 80px 9%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

footer a {
  display: block;
  margin: 12px 0;
  font-size: 13px;
}

footer h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

footer .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 31px;
  margin: 0 0 20px;
}

footer p {
  font-size: 13px;
}

.muted {
  color: #8da79b;
}

/* INNER PAGES */

.page-hero {
  padding: 115px 9% 95px;
  background: #e8e7dc;
}

.page-hero h1 {
  font-size: clamp(54px, 7vw, 94px);
  line-height: 1.1;
}

.page-hero p {
  font-size: 19px;
  max-width: 620px;
  color: #5d766b;
}

/* DONATION PAGE */

.donate-hero {
  background: #dfe8df;
}

.donate-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13%;
}

.donate-placeholder {
  padding: 45px;
  background: #fff;
  border: 1px solid #e0e3dc;
  text-align: center;
}

.donate-icon {
  font-size: 52px;
  color: #ad7645;
}

.donate-placeholder h3 {
  font-size: 31px;
}

.donate-placeholder p {
  font-size: 14px;
  color: #61766c;
}

.amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 30px 0;
}

.amounts span {
  border: 1px solid #d5dcd4;
  padding: 13px;
  font-size: 12px;
  color: #61766c;
}

.donate-placeholder button {
  background: #bcc9c1;
  color: #fff;
  padding: 17px;
  border: 0;
  width: 100%;
  cursor: not-allowed;
}

.donate-placeholder small {
  display: block;
  margin-top: 12px;
  color: #61766c;
}

/* ARTICLES */

.article-hero {
  padding: 95px 16% 75px;
  background: #e8e7dc;
}

.article-hero h1 {
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.15;
}

.article-hero p {
  font-size: 19px;
  color: #61766c;
}

.back {
  display: block;
  margin-bottom: 55px;
  font-size: 13px;
  font-weight: 700;
}

.article-image {
  height: 480px;
  background: #ddd center/cover;
}

.article-body {
  max-width: 800px;
  margin: auto;
  padding: 90px 25px;
  font-size: 18px;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 24px;
}

/* TABLET AND MOBILE */

@media (max-width: 1050px) {
  .nav {
    height: 85px;
  }

  .brand {
    width: 155px;
  }

  .nav .brand-logo {
    width: 155px;
    height: 80px;
  }

  .menu-toggle {
    display: block;
  }

  .nav nav {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: #f7f6f1;
    padding: 20px 6% 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 10px 25px #0002;
  }

  .nav nav.open {
    display: flex;
  }

  .nav nav a {
    padding: 14px;
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 620px;
    height: 80vh;
    padding: 0 7%;
  }

  .hero-bottom {
    left: 7%;
    right: 7%;
  }

  .section {
    padding: 75px 7%;
  }

  .mission,
  .about,
  .feature,
  .donate-section {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 350px;
  }

  .feature-copy {
    padding: 70px 7%;
  }

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

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 65px 7%;
  }
}

@media (max-width: 560px) {
  .nav {
    height: 78px;
  }

  .brand {
    width: 140px;
  }

  .nav .brand-logo {
    width: 140px;
    height: 73px;
  }

  .nav nav {
    top: 78px;
  }

  .hero h1 {
    font-size: 54px;
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-bottom {
    font-size: 8px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-image {
    height: 245px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 75px 7%;
  }

  .article-hero {
    padding: 70px 7%;
  }

  .article-image {
    height: 280px;
  }

  .donate-placeholder {
    padding: 25px;
  }
}
