/* Aloe Energy - site styles, following Brandbook v0.4 */
:root {
  --forest: #0E3B2C;
  --aloe-deep: #106B42;
  --aloe: #1FA463;
  --leaf: #7ED69A;
  --mint: #C9EFD3;
  --orange: #FF8A1F;
  --sun: #F2B42F;
  --cream: #FBF8F1;
  --sand: #F3E6C9;
  --ink: #0B2A20;
  --ink-muted: #4B6559;
  --card: #FFFFFF;
  --line: rgba(14, 59, 44, .14);
  --radius: 16px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aloe-deep); text-decoration: none; font-weight: 500; }
a:hover { color: var(--forest); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
b, strong { font-weight: 700; }

/* Type scale (screen): display 64/64, H1 44/48, H2 28/34, H3 DM Sans bold 20/26 */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--forest); margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 2.75rem); line-height: 1.09; }
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); line-height: 1.22; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--forest); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-muted); max-width: 40em; }
.eyebrow { font-family: var(--sans); font-size: .75rem; line-height: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aloe-deep); margin-bottom: .9em; display: block; }
.tagline, .section-line { font-family: var(--serif); font-weight: 400; }
.section-line { font-size: clamp(1.35rem, 2.6vw, 1.6rem); line-height: 1.25; color: var(--aloe-deep); margin: 0 0 .8em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--forest); color: var(--cream); }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark p, .section.dark .lead, .section.dark li { color: var(--mint); }
.section.dark .eyebrow { color: var(--leaf); }
.section.dark a:not(.btn) { color: var(--leaf); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: var(--cream); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header: cream navigation with the full-colour horizontal logo */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 241, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--ink); font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--aloe-deep); }
.site-nav a[aria-current="page"] { color: var(--aloe-deep); border-bottom-color: var(--aloe); }
.site-nav a.nav-cta { background: var(--orange); color: var(--forest); padding: 8px 18px; border-radius: 999px; border-bottom: 0; font-weight: 700; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--forest); color: var(--cream); }
.nav-toggle { display: none; font: 700 .9rem var(--sans); background: var(--forest); color: var(--cream); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }

/* Buttons: pill. Main = orange with forest text; secondary = forest with cream text */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2; background: var(--orange); color: var(--forest); border: 2px solid var(--orange); }
.btn:hover { background: var(--sun); border-color: var(--sun); color: var(--forest); }
.btn.ghost { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn.ghost:hover { background: var(--aloe-deep); border-color: var(--aloe-deep); color: var(--cream); }
.section.dark .btn.ghost, .hero .btn.ghost { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.section.dark .btn.ghost:hover, .hero .btn.ghost:hover { background: var(--mint); border-color: var(--mint); }

/* Hero: aloe deep band, cream and mint text, cropped big leaf and one sun */
.hero { position: relative; overflow: hidden; background: var(--aloe-deep); color: var(--cream); padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--mint); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; color: var(--cream); max-width: 11em; }
.hero .lead { color: var(--mint); }
.hero-leaf { position: absolute; z-index: 1; right: -120px; bottom: -150px; width: min(560px, 60vw); opacity: .55; pointer-events: none; }
.hero-sun { position: absolute; z-index: 1; right: clamp(24px, 12vw, 180px); top: clamp(28px, 6vw, 72px); width: clamp(56px, 8vw, 104px); pointer-events: none; }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.sand .card { background: var(--cream); }
.card p { color: var(--ink-muted); }
.card.era { display: flex; flex-direction: column; }
.card.era .when { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aloe-deep); }
.card.era .more { margin-top: auto; font-weight: 700; }
.icon { width: 48px; height: 48px; margin-bottom: 14px; }
.card .icon { width: 44px; height: 44px; }

/* Big numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.stat { border-top: 3px solid var(--orange); padding-top: 16px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--sun); margin-bottom: 10px; }
.section:not(.dark) .stat b { color: var(--forest); }
.stat span { font-size: .93rem; line-height: 1.5; }

/* Partner list */
.partners { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.partners li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 500; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--mint); }
.timeline li { position: relative; padding: 0 0 40px 48px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 3px solid var(--aloe); }
.timeline li.now::before { background: var(--orange); border-color: var(--orange); }
.timeline .when { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aloe-deep); }
.timeline h3 { margin: 4px 0 8px; }
.timeline p { color: var(--ink-muted); max-width: 44em; }
.era-label { font-family: var(--serif); font-size: 1.35rem; color: var(--aloe-deep); margin: 8px 0 28px; padding-left: 48px; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photos figure { margin: 0; }
.photos img { border-radius: 12px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photos figcaption { font-size: .82rem; line-height: 1.55; color: var(--ink-muted); margin-top: 8px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.center { align-items: center; }

/* Numbered steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 66px; position: relative; }
.section.sand .steps li { background: var(--cream); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--aloe-deep); color: var(--cream); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps b { display: block; color: var(--forest); }
.steps span { color: var(--ink-muted); font-size: .95rem; }

/* Option illustrations */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.option { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.option svg { width: 100%; height: 110px; margin-bottom: 14px; }
.option p { color: var(--ink-muted); font-size: .95rem; margin: 0; }

/* Callout and notes */
.callout { border-left: 4px solid var(--orange); background: var(--card); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 28px 0; }
.section.sand .callout { background: var(--cream); }
.callout p:last-child { margin: 0; }
.quote { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--forest); }
.note { background: var(--sand); border-radius: 12px; padding: 18px 22px; font-size: .95rem; color: var(--ink); }
.section.sand .note { background: var(--cream); }
.email-big { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.2; word-break: break-word; }
.pillar-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--leaf); color: var(--forest); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

/* Leaf bullets for every list */
.checks, .leaf-list { list-style: none; padding: 0; margin: 0; }
.checks li, .leaf-list li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before, .leaf-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 17px; background: url("/assets/brand/leaf-bullet.png") no-repeat center / contain; }
.section.dark .checks li::before, .hero .checks li::before { background-image: url("/assets/brand/leaf-bullet-light.png"); }

/* Life cycle */
.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: lc; }
.lifecycle li { counter-increment: lc; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lifecycle li::before { content: counter(lc); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--forest); font-weight: 700; margin-bottom: 12px; }
.lifecycle p { color: var(--ink-muted); font-size: .95rem; margin: 0; }

/* Planning map */
.map-card svg { width: 100%; height: auto; display: block; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .82rem; color: var(--ink-muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.map-legend i.dash { background: repeating-linear-gradient(90deg, var(--forest) 0 4px, transparent 4px 7px); }

/* Founder bio */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.founder-photo { margin: 0; }
.founder-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }

/* Footer: forest band, reverse logo and tagline */
.site-footer { background: var(--forest); color: var(--mint); padding: 56px 0 36px; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand img { height: 52px; width: auto; }
.footer-tagline { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--cream); margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--cream); font-weight: 500; font-size: .95rem; }
.site-footer nav a:hover { color: var(--leaf); }
.site-footer .fine { font-size: .82rem; line-height: 1.6; color: var(--mint); margin: 0; }
.site-footer .fine a { color: var(--leaf); }

/* Responsive */
@media (max-width: 1060px) { .site-nav { gap: 16px; } .site-nav a { font-size: .9rem; } }
@media (max-width: 900px) {
  .split, .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; }
  .grid-3, .options { grid-template-columns: 1fr; }
  .grid-4, .stats, .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav a.nav-cta { margin-top: 12px; text-align: center; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 38px; }
  .grid-2, .photos, .lifecycle { grid-template-columns: 1fr; }
  .photos img { aspect-ratio: 4 / 3; }
  .card { padding: 22px; }
  .hero-leaf { width: 300px; right: -110px; bottom: -110px; opacity: .4; }
  .hero { padding-top: 88px; }
  .hero-sun { top: 18px; right: 16px; width: 44px; }
}
