/* Shared by every page: fonts, base, site header, closing CTA and footer.
   Page-specific styles stay inline in each page. */

@font-face {
  font-family: 'Livvic';
  src: url('/Livvic_font/Livvic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Livvic';
  src: url('/Livvic_font/Livvic-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
  --bg: #FAFAFA;
  --ink: #0A0B0A;
  --green: #79B850;
  --green-ink: #3F6E2A;
  --card: #FEFFFD;
  /* Hero wash: grey fading to white (Farhan's mockup, 2026-10-06) */
  --hero-top: #CCCCCC;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Site header */
.site-header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  border-radius: 50px;
  padding: 8px 20px;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled .header-inner {
  background-color: #FAFFF6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .nav-pill {
  background-color: transparent;
  border-color: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.logo img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: 'Livvic', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: contents;
}

.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #FFFFFF;
  border: 1px solid #ECEDE4;
  border-radius: 50px;
  padding: 6px;
  list-style: none;
}

.site-header .nav-pill a {
  display: block;
  font-family: 'Livvic', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #494949;
  padding: 10px 22px;
  border-radius: 50px;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.site-header .nav-pill a.active {
  background-color: var(--green);
  color: #FAFFF6;
}

.site-header .nav-pill a:not(.active):hover {
  color: var(--green);
}

.site-header .nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background-color: var(--ink);
  color: #fff;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
  justify-self: end;
}

.site-header .nav-cta:hover {
  background-color: #2C2E2B;
  color: #fff;
}

.burger {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
}

.burger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle:checked ~ .header-inner .burger span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle:checked ~ .header-inner .burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .header-inner .burger span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Closing CTA */
.closing-cta {
  padding: 96px 0;
  text-align: center;
}

.closing-cta h2 {
  font-family: 'Livvic', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: #010E05;
  margin-bottom: 0;
}

.closing-cta h2 .highlight {
  display: inline-block;
  font-size: 45px;
  background-color: var(--green);
  color: #FEFFFD;
  padding: 2px 18px;
  border-radius: 14px;
  transform: rotate(-2deg);
}


/* Footer */
.footer-wrapper {
  background-color: #0C1B02;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-wrapper a {
  text-decoration: none;
}

.footer-content {
  padding-top: 56px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-logo-text {
  font-family: 'Livvic', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #F6FFF0;
}

.footer-cols {
  display: flex;
  gap: 72px;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

.footer-wrapper .footer-col a {
  display: block;
  font-size: 16px;
  color: #E8EEEA;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.footer-wrapper .footer-col a:hover {
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 14px;
  color: #E8EEEA;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}

.footer-wrapper .footer-bottom a {
  color: #E8EEEA;
}

/* Desktop: the header pill keeps its inner padding, so pull it out by the
   same amount to put the logo on the same left edge as page content. */
@media (min-width: 721px) {
  .header-inner {
    margin: 0 -20px;
  }
}

@media (max-width: 900px) {
  .footer-cols { gap: 40px; }
}

@media (max-width: 720px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border: 1px solid #E5E5DD;
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle:checked ~ .header-inner .nav-links {
    display: flex;
  }

  .nav-pill {
    flex-direction: column;
    align-items: stretch;
    background: none;
    border: none;
    padding: 0;
    gap: 0;
  }

  .site-header .nav-pill a {
    padding: 12px 20px;
    border-radius: 0;
  }

  .site-header .nav-pill a.active {
    background: rgba(121, 184, 80, 0.08);
    color: var(--green);
  }

  .site-header .nav-pill a:not(.active):hover {
    background: rgba(121, 184, 80, 0.08);
  }

  .site-header .nav-cta {
    margin: 8px 12px 4px;
    text-align: center;
  }

  .closing-cta {
    padding: 64px 0;
  }

  .closing-cta h2 {
    font-size: 28px;
  }

  .closing-cta h2 .highlight {
    font-size: 32px;
  }

  .footer-row {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
