/* Cahaya Energy holding page. Colours, type and spacing are the full site's tokens (packages/tokens/src/cahaya.json). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --deep: #0b3b24;
  --deep-light: #145232;
  --deep-dark: #072a19;
  --green-ink: #146a34;
  --gold: #f5b523;
  --gold-light: #ffd766;
  --gold-dark: #eda512;
  --paper: #faf8f2;
  --sand: #fbf0d6;
  --sand-light: #fdf5e0;
  --ink-2: #55564f;
  --line: #e6e1d3;
  --on-deep: #dcebd3;
  --footer-line: #1f5e3d;
  --footer-muted: #bcd6b0;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 8px + 3.4vw, 64px);
  --section: clamp(64px, 40px + 5vw, 128px);
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--deep);
  background: var(--paper);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.04;
  margin: 0;
}
p {
  margin: 0;
}
mark {
  color: inherit;
  background: linear-gradient(
    transparent 62%,
    rgb(250 208 102 / 0.9) 62%,
    rgb(240 168 20 / 0.85) 92%,
    transparent 92%
  );
}
.wrap {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button--deep {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgb(7 42 25 / 0.8);
}
.button--outline {
  border: 2px solid var(--deep);
  color: var(--deep);
}
.button--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--deep);
}
@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
}

/* Header */
.header {
  padding-top: 18px;
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 14px 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, #fff, var(--paper));
  box-shadow:
    0 14px 34px -22px rgb(11 59 36 / 0.45),
    0 0 0 1px var(--line);
}
.header__bar img {
  height: 30px;
  width: auto;
}
.lang {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--sand);
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.lang a[aria-current='page'] {
  background: var(--deep);
  color: #fff;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 24px + 4vw, 88px);
  padding-bottom: clamp(56px, 40px + 4vw, 104px);
}
.hero h1 {
  font-size: clamp(40px, 22px + 4.4vw, 84px);
  letter-spacing: -0.04em;
  margin: 20px 0 24px;
}
.hero__intro {
  max-width: 520px;
  font-size: clamp(16px, 15px + 0.3vw, 19px);
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}
.hero__media::before {
  content: '';
  position: absolute;
  top: -8%;
  right: -12%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 24px 24px;
  box-shadow: 0 30px 60px -36px rgb(7 42 25 / 0.6);
}
.badge {
  position: absolute;
  left: -10%;
  bottom: 9%;
  padding: 16px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 40px -24px rgb(7 42 25 / 0.55);
  transform: rotate(-3deg);
}
.badge strong {
  display: block;
  font-size: clamp(26px, 20px + 1.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.badge span {
  display: block;
  max-width: 190px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}

/* Figures */
.figures {
  background: radial-gradient(120% 140% at 0% 0%, var(--deep-light), var(--deep) 45%, var(--deep-dark));
  border-radius: 40px 40px 0 0;
  color: var(--on-deep);
  padding: clamp(40px, 30px + 2vw, 64px) 0 clamp(72px, 56px + 3vw, 104px);
}
.figures ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.figures strong {
  display: block;
  font-size: clamp(30px, 24px + 1.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gold);
}
.figures span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Sheets: sections that overlap the one above, with rounded tops */
.sheet {
  position: relative;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  padding: var(--section) 0;
}
.sheet--paper {
  background: linear-gradient(180deg, #fff 0%, var(--paper) 30%);
}
.sheet--sand {
  background: linear-gradient(180deg, var(--sand-light), var(--sand));
}
.sheet h2 {
  font-size: clamp(30px, 20px + 2.6vw, 58px);
  letter-spacing: -0.035em;
  margin: 18px 0 18px;
}
.sheet__intro {
  max-width: 560px;
  color: var(--ink-2);
}

/* What we buy */
.cards {
  list-style: none;
  margin: clamp(32px, 24px + 2vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards li {
  border-radius: 32px;
  padding: clamp(26px, 3vw, 40px);
  min-height: 190px;
}
.cards h3 {
  font-size: clamp(24px, 21px + 0.9vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card--deep {
  background: linear-gradient(160deg, var(--deep-light), var(--deep-dark));
  color: #fff;
}
.card--deep p {
  color: var(--on-deep);
}
.card--gold {
  background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
}
.card--white {
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 40px -30px rgb(7 42 25 / 0.4);
}
.card--white p,
.card--gold p {
  color: var(--deep);
}

/* What we produce */
.produce {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.list span {
  font-weight: 500;
  color: var(--ink-2);
  text-align: right;
}
.produce img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 30px 60px -40px rgb(7 42 25 / 0.6);
}

/* Contact */
.contact-cards {
  list-style: none;
  margin: clamp(32px, 24px + 2vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-cards li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 40px -30px rgb(7 42 25 / 0.35);
}
.contact-cards h3 {
  font-size: clamp(19px, 17px + 0.5vw, 23px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.contact-cards p {
  color: var(--ink-2);
  flex: 1;
}
.contact-cards .button {
  align-self: flex-start;
  margin-top: 8px;
}
.note {
  margin-top: 28px;
  font-weight: 600;
  color: var(--green-ink);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #093220, #062416);
  color: var(--footer-muted);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative;
  padding: 48px 0 40px;
  font-size: 13px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer img {
  height: 28px;
  width: auto;
}
.footer p {
  max-width: 640px;
}

/* Page not found */
.missing {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.missing img {
  height: 30px;
  width: auto;
  margin-bottom: 32px;
}
.missing h1 {
  font-size: clamp(30px, 20px + 2.6vw, 58px);
  letter-spacing: -0.035em;
}
.missing p {
  max-width: 520px;
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .hero,
  .produce {
    grid-template-columns: 1fr;
  }
  .hero__media {
    margin: 16px 0 0 10%;
    width: min(80%, 380px);
  }
  .figures ul {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
  .cards,
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .cards li {
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .header__bar {
    padding: 10px 10px 10px 18px;
  }
  .header__bar img {
    height: 24px;
  }
  .badge {
    left: -12%;
  }
}

/* Address line under the contact cards */
.address {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 20px;
  padding: 18px 24px;
  border-radius: 20px;
  background: var(--sand-light);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink-2);
}
.address strong {
  color: var(--deep);
}
.address a {
  font-weight: 700;
  color: var(--green-ink);
  text-underline-offset: 3px;
}
