/* ==========================================================================
   Sunrise Stake — self-hosted rebuild of www.sunrisestake.com
   Fonts: Titillium Web + Playfair Display (originals, OFL-licensed).
   Nunito Sans substitutes Avenir LT; Jost substitutes Futura LT, since the
   Wix-licensed commercial fonts cannot be redistributed off-platform.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/titillium-web-v19-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/titillium-web-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/titillium-web-v19-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/titillium-web-v19-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/titillium-web-v19-latin-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/nunito-sans-v19-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-v19-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/nunito-sans-v19-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --green: #145d3e;
  --green-deep: #11463d;
  --navy: #07081f;
  --teal: #34d1b6;
  --grey: #f5f5f5;
  --circle-grey: #efefef;
  --white: #ffffff;
  --font-titillium: 'Titillium Web', sans-serif;
  --font-avenir: 'Nunito Sans', sans-serif; /* Avenir LT substitute */
  --font-futura: 'Jost', sans-serif;        /* Futura LT substitute */
  --content-width: 980px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-titillium);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
  background: var(--white);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #1a7450;
}

.btn-pill {
  border-radius: 24px;
}

.btn-light {
  background: var(--white);
  color: var(--green);
}

.btn-light:hover {
  background: #e8efe9;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: relative;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header .logo-link svg,
.site-header .logo-link img {
  width: 131px;
  height: 58px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.site-nav a {
  display: block;
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: 14px;
  line-height: 32px;
  color: var(--green-deep);
  text-decoration: none;
  padding: 0 10px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

.site-nav a.btn {
  margin-left: 14px;
  padding: 11px 30px;
  border-radius: 24px;
  letter-spacing: 0.08em;
  color: var(--white);
}

.site-nav a.btn:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-deep);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Announcement banner ---------- */
.announcement {
  background: url('../images/announcement-bg.jpg') center bottom/cover no-repeat;
  background-color: #1b3a35;
  text-align: center;
  min-height: 246px;
  padding: 42px 20px 0;
}

.announcement p {
  font-family: var(--font-avenir);
  font-weight: 300;
  font-size: clamp(34px, 5.8vw, 70px);
  color: var(--teal);
  line-height: 1.18;
}

.announcement .btn {
  margin-top: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  padding: 10px 28px;
  border-radius: 20px;
}

.announcement .btn:hover {
  background: #e6e6e6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
}

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

.hero-copy {
  position: absolute;
  top: 39%;
  left: 0;
  right: 0;
}

.hero-copy h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.1;
  color: var(--green-deep);
  max-width: min(620px, 55%);
}

@media (max-width: 920px) {
  .hero-copy h2 {
    max-width: none;
  }
}

.hero-copy .hero-text {
  margin-top: 36px;
  max-width: 460px;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.4;
  color: var(--navy);
}

.hero-copy .btn {
  margin-top: 30px;
}

/* ---------- Wave dividers ---------- */
.wave {
  display: block;
  width: 100%;
  height: 70px;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Experience section ---------- */
.experience {
  background: var(--white);
  padding: 100px 0 40px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 50px 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-copy {
  flex: 1 1 50%;
}

.feature-copy h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  color: var(--navy);
  max-width: 460px;
}

.feature-copy .subtitle {
  font-family: var(--font-futura);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--green);
  margin-top: 22px;
  max-width: 420px;
}

.feature-copy .body-text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 440px;
}

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

/* hover-swap tree visuals */
.tree-swap {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

.tree-circle {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 1;
  background: var(--circle-grey);
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tree-circle img {
  position: absolute;
  bottom: 0;
  max-height: 112%;
  width: auto;
  transition: opacity 0.45s ease;
}

.tree-circle img.swap {
  opacity: 0;
}

.tree-circle:hover img.swap {
  opacity: 1;
}

.tree-circle:hover img.base {
  opacity: 0;
}

/* ---------- Steps cards ---------- */
.steps {
  background: var(--grey);
  padding: 80px 0;
}

.steps-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.step-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  padding: 34px 28px 40px;
  flex: 1 1 0;
  max-width: 330px;
  text-align: center;
}

.step-card .token {
  width: 170px;
  height: 170px;
}

.step-card .step-icon {
  display: block;
  margin: 22px auto 14px;
  width: 38px;
  height: 38px;
}

.step-card .step-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--green);
}

.step-card h4 {
  font-family: var(--font-avenir);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.4;
  color: var(--green);
}

.step-card p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.4;
}

/* ---------- How Sunrise works ---------- */
.how {
  background: var(--white);
  padding: 90px 0 70px;
  text-align: center;
}

.how h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.2;
  color: var(--green);
}

.how img {
  margin-top: 50px;
  width: min(928px, 100%);
}

/* ---------- Mission (parallax forest) ---------- */
.mission {
  background: #07081f url('../images/forest.jpg') center/cover no-repeat fixed;
  padding: 150px 20px;
  text-align: center;
}

.mission h4 {
  font-family: var(--font-avenir);
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.4;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

@media (hover: none) {
  .mission {
    background-attachment: scroll;
  }
}

/* ---------- Team ---------- */
.team {
  background: var(--white);
  padding: 90px 0 60px;
  text-align: center;
}

.team .team-title {
  font-family: var(--font-futura);
  font-weight: 400;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.6;
  color: var(--green);
}

.team .team-intro {
  font-family: var(--font-futura);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  max-width: 430px;
  margin: 16px auto 0;
  color: var(--navy);
}

.team-slider {
  position: relative;
  margin-top: 50px;
  padding: 0 60px;
}

.team-track-window {
  overflow: hidden;
}

.team-track {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease;
}

.team-member {
  flex: 0 0 calc(25% - 21px);
  display: flex;
  justify-content: center;
}

.team-member a,
.team-member span {
  display: block;
  width: min(199px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-deep);
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  color: #c4c4c4;
  padding: 10px;
}

.slider-arrow:hover {
  color: var(--green);
}

.slider-arrow svg {
  width: 26px;
  height: 44px;
  display: block;
}

.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

.team .team-values {
  font-family: var(--font-titillium);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: var(--navy);
  max-width: 560px;
  margin: 60px auto 0;
}

.team .team-values p + p {
  margin-top: 24px;
}

/* ---------- Collaborative spirit ---------- */
.collab {
  background: var(--grey);
  padding: 70px 0 80px;
  text-align: center;
}

.collab h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--green);
}

.collab-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 70px 0 60px;
}

.collab-item {
  position: relative;
  width: 280px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.collab-item:hover {
  transform: scale(1.06);
}

.collab-item .cloud {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.collab-item .cloud svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
}

.collab-item .collab-icon {
  position: relative;
  z-index: 2;
  width: 110px;
  flex: 0 0 auto;
}

/* The filled green circle that overlaps each sketch's top corner */
.collab-item::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 42px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  z-index: 3;
}

.collab-item .collab-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-avenir);
  font-weight: 300;
  font-size: 46px;
  line-height: 0.95;
  color: var(--green);
  text-align: left;
}

.collab .btn {
  letter-spacing: 0.12em;
}

/* ---------- Find out more band ---------- */
.findout {
  background: var(--green);
  text-align: center;
  padding: 36px 20px 40px;
}

.findout p {
  font-family: var(--font-futura);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.6;
  color: var(--white);
}

.social-bar {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 14px 0 0;
  padding: 0;
}

.social-bar img {
  width: 33px;
  height: 33px;
  display: block;
  transition: opacity 0.2s ease;
}

.social-bar a:hover img {
  opacity: 0.75;
}

/* ---------- Partners ---------- */
.partners {
  background: var(--grey);
  padding: 80px 0 90px;
  text-align: center;
}

.partners .partners-title {
  font-family: var(--font-futura);
  font-weight: 400;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.6;
  color: var(--green);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.partners-grid img {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.partners-grid a:hover img {
  transform: scale(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 56px 0 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand img {
  width: 147px;
  height: auto;
}

.footer-links {
  margin-top: 36px;
}

.footer-links p {
  margin: 0 0 8px;
}

.footer-links a {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-social .footer-heading {
  font-family: var(--font-futura);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-social .social-bar {
  justify-content: flex-start;
  margin: 0;
}

/* ---------- Inner pages (blog, post, impressum) ---------- */
.page-main {
  background: var(--white);
}

/* Blog index */
.blog-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 90px;
}

.blog-breadcrumb {
  font-family: var(--font-futura);
  font-size: 14px;
  margin-bottom: 60px;
}

.blog-breadcrumb a {
  color: #5d5dff;
  text-decoration: none;
}

.blog-shell h1 {
  font-family: var(--font-futura);
  font-weight: 300;
  font-size: 34px;
  color: var(--teal);
  margin-bottom: 70px;
}

.post-card {
  border: 1px solid #e5e5e5;
  background: var(--white);
  padding: 28px 36px 32px;
}

.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-titillium);
  font-weight: 400;
  font-size: 14px;
  color: #444;
  margin-bottom: 26px;
}

.post-card .avatar,
.post-hero-meta .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d8d8d8 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4 4-6 8-6s8 2 8 6"/></svg>') center/70% no-repeat;
  flex: 0 0 auto;
}

.post-card .dot {
  color: #999;
}

.post-card h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: var(--navy);
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
}

.post-card .excerpt {
  margin-top: 18px;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: #222;
}

/* Blog post */
.post-shell {
  max-width: 740px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-titillium);
  font-size: 14px;
  color: #444;
  margin-bottom: 28px;
}

.post-shell h1 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 34px;
}

.post-body {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  color: #1a1a1a;
}

.post-body p {
  margin: 0 0 8px;
}

.post-body h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 30px 0 12px;
}

.post-body ul {
  margin: 10px 0 14px;
  padding-left: 28px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-body a {
  color: var(--green);
}

.post-body strong {
  font-weight: 700;
}

.post-footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 50px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-titillium);
  font-size: 14px;
  color: #555;
}

.post-share {
  display: flex;
  gap: 18px;
}

.post-share a {
  color: #444;
  text-decoration: none;
}

.post-share a:hover {
  color: var(--green);
}

.post-share svg {
  width: 18px;
  height: 18px;
}

/* Impressum */
.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 90px;
}

.legal-shell h2 {
  font-family: var(--font-titillium);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--navy);
  margin: 70px 0 30px;
}

.legal-shell h2:first-child {
  margin-top: 0;
}

.legal-shell p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  white-space: pre-line;
}

.legal-shell ul {
  font-size: 16px;
  line-height: 1.6;
}

.legal-shell a {
  color: var(--green);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .site-nav ul {
    display: none;
  }

  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 98px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  .hero-copy {
    position: static;
    padding: 30px 0;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-card {
    width: 100%;
    max-width: 380px;
  }

  .collab-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    flex: 0 0 calc(50% - 14px);
  }

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

  .mission {
    background-attachment: scroll;
    padding: 110px 20px;
  }
}
