/*
Theme Name: Prana Energy
Theme URI: https://prana.energy/
Author: Prana Energy
Description: A custom renewable energy theme for Prana Energy, featuring the Chisamba solar PV and battery storage project.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: prana-energy
*/

:root {
  --forest: #0c3026;
  --forest-deep: #07231c;
  --green: #0a9250;
  --sun: #f0bd25;
  --ember: #c33729;
  --paper: #f2f0e8;
  --ink: #12211b;
  --line: rgba(18, 33, 27, 0.18);
  --font-geist: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-geist), Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4.5vw; color: white; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: white; display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 15px; letter-spacing: .08em; }
.brand-name strong { font-weight: 800; }
.desktop-nav { display: flex; gap: 34px; font-size: 14px; }
.desktop-nav .prana-menu { display: flex; gap: 34px; align-items: center; list-style: none; margin: 0; padding: 0; }
.desktop-nav a { opacity: .82; transition: opacity .2s; }
.desktop-nav a:hover { opacity: 1; }
.header-cta { justify-self: end; display: flex; gap: 20px; align-items: center; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 6px; }
.mobile-menu { display: none; }

.hero { min-height: 820px; height: 100svh; position: relative; color: white; overflow: hidden; display: flex; align-items: center; }
.hero-photo { position: absolute; inset: 0; background: url('assets/images/solar-farm.jpg') center 58% / cover no-repeat; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,27,21,.88) 0%, rgba(4,27,21,.53) 48%, rgba(4,27,21,.08) 78%), linear-gradient(0deg, rgba(3,24,18,.66), transparent 42%); }
.hero-content { position: relative; z-index: 1; width: min(730px, 60vw); margin-left: 9vw; padding-top: 70px; }
.eyebrow { margin: 0 0 24px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; color: var(--green); }
.eyebrow.light { color: var(--sun); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(76px, 10.2vw, 154px); line-height: .79; }
h1 em, h2 em { color: var(--sun); font-weight: 400; }
.hero-copy { max-width: 560px; margin: 44px 0 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { min-height: 56px; display: inline-flex; align-items: center; gap: 28px; padding: 0 26px; font-size: 14px; font-weight: 650; }
.button-sun { background: var(--sun); color: var(--forest-deep); }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 6px; font-size: 14px; border-bottom: 1px solid currentColor; }
.light-link { color: rgba(255,255,255,.82); }
.hero-index { position: absolute; z-index: 1; right: 5vw; bottom: 54px; display: flex; align-items: flex-start; gap: 18px; border-top: 1px solid rgba(255,255,255,.35); width: 260px; padding-top: 16px; }
.hero-index > span { color: var(--sun); font-size: 11px; }
.hero-index div { display: flex; flex-direction: column; gap: 6px; }
.hero-index strong { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.hero-index small { color: rgba(255,255,255,.63); font-size: 11px; }
.photo-credit { position: absolute; right: 20px; top: 50%; z-index: 1; writing-mode: vertical-rl; font-size: 8px; letter-spacing: .08em; color: rgba(255,255,255,.45); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--sun); padding: 48px 6vw; }
.stat-strip div { display: flex; flex-direction: column; min-height: 116px; justify-content: space-between; padding: 0 34px; border-right: 1px solid rgba(12,48,38,.25); }
.stat-strip div:first-child { padding-left: 0; }
.stat-strip div:last-child { border-right: 0; }
.stat-strip strong { font-family: Georgia, serif; font-size: clamp(48px, 5vw, 72px); font-weight: 400; line-height: 1; }
.stat-strip sup { font-family: var(--font-geist); font-size: 13px; letter-spacing: .04em; margin-left: 5px; }
.stat-strip span { text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 700; }

.section-pad { padding: 132px 7vw; }
.section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; display: flex; gap: 16px; align-items: center; }
.section-label span { color: var(--green); }
.intro { display: grid; grid-template-columns: 24% 1fr; }
.intro-copy { max-width: 940px; }
.intro h2 { margin: 0; max-width: 900px; font-size: clamp(50px, 6.2vw, 92px); line-height: .98; }
.intro-columns { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; max-width: 850px; }
.intro-columns p { margin: 0; font-size: 16px; line-height: 1.8; color: #4b5a54; }

.project { background: var(--forest); color: white; position: relative; min-height: 1050px; overflow: hidden; }
.project::before { content: ''; position: absolute; width: 760px; height: 760px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -190px; top: 135px; }
.project-heading { display: grid; grid-template-columns: 24% 1fr; align-items: start; position: relative; z-index: 1; }
.light-label { color: rgba(255,255,255,.7); }
.light-label span { color: var(--sun); }
.project-heading .eyebrow { grid-column: 2; margin-bottom: 24px; }
.project-heading h2 { grid-column: 2; margin: 0; font-size: clamp(64px, 8vw, 116px); line-height: .9; }
.project-visual { position: absolute; left: 8vw; bottom: 110px; width: 43vw; max-width: 660px; height: 430px; }
.sun-orbit { width: 315px; height: 315px; border-radius: 50%; border: 1px solid rgba(240,189,37,.6); position: absolute; left: 0; bottom: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle at 40% 38%, #f6d869, var(--sun) 48%, #d97922 72%, rgba(195,55,41,.22) 73%, transparent 74%); color: var(--forest); box-shadow: 0 0 70px rgba(240,189,37,.12); }
.sun-orbit::before, .sun-orbit::after { content: ''; position: absolute; inset: -28px; border: 1px dashed rgba(240,189,37,.28); border-radius: 50%; }
.sun-orbit::after { inset: -58px; }
.sun-orbit span { font-family: Georgia, serif; font-size: 84px; line-height: .8; }
.sun-orbit small { text-transform: uppercase; font-weight: 700; letter-spacing: .16em; margin-top: 14px; }
.energy-path { position: absolute; right: 30px; bottom: 153px; display: flex; gap: 10px; align-items: center; }
.energy-path i { width: 7px; height: 7px; display: block; background: var(--sun); border-radius: 50%; opacity: .35; }
.energy-path i:nth-child(2) { opacity: .5; }.energy-path i:nth-child(3) { opacity: .7; }.energy-path i:nth-child(4) { opacity: .85; }.energy-path i:nth-child(5) { opacity: 1; }
.battery-block { position: absolute; right: -175px; bottom: 93px; width: 210px; height: 128px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; display: flex; flex-direction: column; justify-content: center; padding: 26px; background: var(--forest-deep); }
.battery-block::after { content: ''; width: 10px; height: 36px; background: rgba(255,255,255,.5); position: absolute; right: -11px; top: 45px; }
.battery-block span { font-family: Georgia, serif; font-size: 28px; }
.battery-block small { color: rgba(255,255,255,.58); margin-top: 8px; }
.project-detail { position: absolute; right: 8vw; bottom: 122px; width: 37vw; max-width: 540px; }
.project-detail > p { color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.75; margin: 0 0 48px; }
.project-detail dl { margin: 0; border-top: 1px solid rgba(255,255,255,.2); }
.project-detail dl div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.2); padding: 17px 0; font-size: 12px; }
.project-detail dt { color: rgba(255,255,255,.48); }
.project-detail dd { margin: 0; }

.approach { display: grid; grid-template-columns: 24% 1fr; }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.approach-title h2 { margin: 0; font-size: clamp(48px, 5.3vw, 78px); line-height: 1.02; }
.approach ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.approach li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.approach li > span { color: var(--green); font-size: 10px; font-weight: 700; }
.approach h3 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; margin: -6px 0 12px; }
.approach li p { margin: 0; color: #5a6862; font-size: 14px; line-height: 1.65; }

.impact { padding: 110px 7vw; display: grid; grid-template-columns: 1.2fr 1fr; gap: 9vw; background: #b83429; color: white; }
.impact h2 { margin: 0; max-width: 620px; font-size: clamp(56px, 6.5vw, 94px); line-height: .94; }
.impact .eyebrow { color: var(--sun); }
.impact-items { border-top: 1px solid rgba(255,255,255,.32); }
.impact-items div { display: grid; grid-template-columns: 52px 1fr; border-bottom: 1px solid rgba(255,255,255,.32); padding: 28px 0; }
.impact-items span { font-size: 10px; color: var(--sun); }
.impact-items p { margin: -5px 0 0; font-size: 17px; line-height: 1.5; max-width: 430px; }

footer { background: var(--forest-deep); color: white; padding: 116px 7vw 30px; }
.footer-lead { position: relative; padding-bottom: 100px; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-lead h2 { margin: 0; font-size: clamp(74px, 10vw, 148px); line-height: .8; }
.round-link { position: absolute; right: 0; bottom: 100px; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 25px; }
.footer-info { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 5vw; padding: 64px 0 80px; }
.footer-info > div > span { color: var(--sun); text-transform: uppercase; font-size: 9px; letter-spacing: .16em; font-weight: 700; }
.footer-info address, .footer-info p { margin: 18px 0 0; font-style: normal; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.68); }
.footer-mark { align-self: center; justify-self: end; width: 280px; height: 200px; overflow: hidden; border-radius: 12px; padding: 16px; background: white; display: grid; place-items: center; }
.footer-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.wp-content { min-height: 70vh; padding-top: 150px; }
.wp-content article { max-width: 860px; margin: 0 auto; }
.wp-content h1 { color: var(--forest); font-size: clamp(56px, 7vw, 96px); line-height: .95; }
body.admin-bar .site-header { top: 32px; }

@media (min-width: 1201px) and (max-width: 1650px) {
  .battery-block { right: -30px; }
  .energy-path { right: 175px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .project-heading { grid-template-columns: 1fr; gap: 50px; }
  .project-heading .eyebrow, .project-heading h2 { grid-column: 1; }
  .project-heading .eyebrow { margin: 0; }
  .project { min-height: auto; padding-bottom: 100px; }
  .project-visual { position: relative; left: auto; bottom: auto; width: 550px; max-width: calc(100vw - 14vw); height: 420px; margin: 70px 0; transform: scale(.85); transform-origin: left center; }
  .project-detail { position: relative; right: auto; bottom: auto; width: auto; max-width: 620px; }
}

@media (max-width: 900px) {
  .site-header { height: 82px; grid-template-columns: 1fr auto; padding: 0 24px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; align-content: center; gap: 7px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { display: block; height: 1px; background: white; width: 26px; justify-self: end; }
  .mobile-menu nav { position: absolute; top: 52px; right: -24px; width: 240px; padding: 22px 24px; background: var(--forest-deep); display: flex; flex-direction: column; gap: 20px; }
  .hero { min-height: 760px; }
  .hero-content { width: auto; margin: 0 24px; padding-top: 10px; }
  h1 { font-size: clamp(72px, 20vw, 108px); }
  .hero-copy { max-width: 470px; }
  .hero-index { right: 24px; bottom: 28px; width: 210px; }
  .photo-credit { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; padding: 18px 24px; }
  .stat-strip div { min-height: 130px; padding: 24px; border-bottom: 1px solid rgba(12,48,38,.25); }
  .stat-strip div:nth-child(2) { border-right: 0; }.stat-strip div:nth-child(3) { padding-left: 0; border-bottom: 0; }.stat-strip div:nth-child(4) { border-bottom: 0; }
  .section-pad { padding: 90px 24px; }
  .intro, .approach { grid-template-columns: 1fr; gap: 55px; }
  .project-heading { grid-template-columns: 1fr; gap: 50px; }
  .project-heading .eyebrow, .project-heading h2 { grid-column: 1; }
  .project-heading .eyebrow { margin: 0; }
  .project { min-height: auto; padding-bottom: 100px; }
  .project-visual { position: relative; left: auto; bottom: auto; width: 550px; max-width: calc(100vw - 48px); height: 420px; margin: 70px 0; transform: scale(.85); transform-origin: left center; }
  .project-detail { position: relative; right: auto; bottom: auto; width: auto; max-width: 620px; }
  .approach-grid { grid-template-columns: 1fr; gap: 70px; }
  .impact { grid-template-columns: 1fr; padding: 90px 24px; }
  footer { padding: 90px 24px 28px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 13px; }
  .hero { min-height: 720px; align-items: flex-start; padding-top: 158px; }
  .hero-photo { background-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,27,21,.9), rgba(4,27,21,.38)), linear-gradient(0deg, rgba(3,24,18,.7), transparent 60%); }
  h1 { font-size: 70px; }
  .hero-copy { margin-top: 30px; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 28px; }
  .button { min-height: 52px; }
  .hero-index { display: none; }
  .stat-strip strong { font-size: 44px; }
  .stat-strip div { padding-right: 10px; }
  .intro h2, .approach-title h2 { font-size: 48px; }
  .intro-columns { grid-template-columns: 1fr; gap: 25px; margin-top: 44px; }
  .project-heading h2 { font-size: 60px; }
  .project-visual { height: 345px; transform: scale(.68); margin: 45px 0 -20px; }
  .battery-block { right: -165px; }
  .impact h2 { font-size: 54px; }
  .footer-lead { padding-bottom: 80px; }
  .footer-lead h2 { font-size: 64px; }
  .round-link { bottom: 76px; width: 52px; height: 52px; }
  .footer-info { grid-template-columns: 1fr 1fr; }
  .footer-mark { display: none; }
  .footer-bottom { gap: 30px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
