/*
  Puna ʻĀina Project — styles.css
  ---------------------------------------------------------
  Editing tips:
  - Colors live in :root variables.
  - Section padding is set by --section-pad.
  - Cards/panels use consistent border + shadow tokens.
  - Keep fonts privacy-first (system stack, no external web fonts).
*/

:root{
  /* Brand palette (tweak freely) */
  --sand: #f3efe6;
  --ink: #111827;
  --muted: #4b5563;
  --paper: #ffffff;

  --forest: #1f5b3a;     /* primary brand */
  --ulu: #2f7a4d;        /* accents / hover */
  --earth: #5a4632;      /* headings, dividers */
  --ocean: #1f6f8b;      /* links */
  --sunrise: #d9822b;    /* buttons / highlights */

  /* UI tokens */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 6px 18px rgba(17, 24, 39, 0.08);
  --border: 1px solid rgba(17, 24, 39, 0.10);

  --section-pad: clamp(56px, 6vw, 92px);
  --container: 1120px;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html{
  scroll-behavior: smooth; /* smooth anchor scrolling */
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--ocean); text-decoration: none; }
a:hover{ text-decoration: underline; }

code{
  background: rgba(31, 91, 58, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  font-size: 0.95em;
}

.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 10px 12px;
  border-radius: 10px;
  border: var(--border);
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.75);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover{ text-decoration: none; }

.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  border: var(--border);
  padding: 6px;
}

.brand-name{
  font-weight: 750;
  letter-spacing: 0.2px;
}
.brand-tag{
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav a{
  font-weight: 600;
  color: rgba(17, 24, 39, 0.85);
}
.site-nav a:hover{ color: var(--forest); text-decoration: none; }

.nav-cta{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 91, 58, 0.12);
  border: 1px solid rgba(31, 91, 58, 0.25);
}

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  margin: 7px 10px;
  background: rgba(17, 24, 39, 0.75);
  border-radius: 4px;
}

/* Sections */
.section{
  padding: var(--section-pad) 0;
  background: transparent;
}
.section.alt{
  background: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.section-head{
  max-width: 760px;
}
.section h2{
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.section-sub{
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Hero */
.hero{
  padding: clamp(48px, 6vw, 84px) 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
  padding-bottom: clamp(44px, 6vw, 70px);
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.hero-sub{
  margin: 0 0 18px;
  color: rgba(17, 24, 39, 0.82);
  font-size: 1.08rem;
  max-width: 60ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-badges{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-badges li{
  background: rgba(31, 91, 58, 0.10);
  border: 1px solid rgba(31, 91, 58, 0.18);
  color: rgba(17, 24, 39, 0.85);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 650;
  font-size: 0.92rem;
}

.hero-card .card{
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card-title{
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}
.facts{
  margin: 0;
}
.facts div{
  padding: 10px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
}
.facts div:first-child{ border-top: none; }
.facts dt{
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2px;
}
.facts dd{
  margin: 0;
  font-weight: 650;
  color: rgba(17, 24, 39, 0.9);
}

.hero-wave{
  height: 80px;
  background: linear-gradient(90deg, rgba(31,91,58,0.0), rgba(31,91,58,0.12), rgba(31,91,58,0.0));
  transform: skewY(-2deg);
}

/* Grid helpers */
.grid{
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel{
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.panel h3{ margin: 0 0 10px; }
.panel p{ margin: 0; color: rgba(17,24,39,0.85); }

.checklist{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,24,39,0.85);
}
.checklist li{ margin: 8px 0; }

.card{
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.card.feature h3, .card.support h3{
  margin: 0 0 8px;
}
.card p{ margin: 0; color: rgba(17,24,39,0.84); }

.muted{ color: var(--muted); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0); box-shadow: none; }

.btn.primary{
  background: var(--forest);
  color: #fff;
  border-color: rgba(0,0,0,0.08);
}
.btn.primary:hover{ background: var(--ulu); }

.btn.ghost{
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(17,24,39,0.14);
  color: rgba(17,24,39,0.9);
}
.btn.ghost:hover{ border-color: rgba(31,91,58,0.35); }

.btn.small{
  padding: 10px 14px;
  font-weight: 750;
  font-size: 0.98rem;
}

.doc p{ margin: 6px 0 10px; }

/* Metrics */
.metric{
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.metric-num{
  font-size: 2rem;
  font-weight: 850;
  color: var(--forest);
  letter-spacing: -0.3px;
}
.metric-label{
  margin-top: 6px;
  color: rgba(17,24,39,0.86);
  font-weight: 650;
}
.note{
  margin-top: 18px;
  background: rgba(217,130,43,0.12);
  border: 1px solid rgba(217,130,43,0.22);
  padding: 14px 16px;
  border-radius: var(--radius);
}

/* CTA band */
.cta-band{
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(31,91,58,0.10), rgba(31,111,139,0.10));
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: var(--radius);
}
.cta-title{ font-weight: 850; }
.cta-sub{ color: var(--muted); }

/* Contact */
.contact-card{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 22px;
}
.contact-card h3{ margin: 0 0 10px; }
.contact-line{ margin: 6px 0; }
.contact-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Footer */
.site-footer{
  padding: 26px 0 18px;
  background: rgba(17, 24, 39, 0.92);
  color: rgba(255,255,255,0.86);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-left{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-mark{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  padding: 6px;
}
.footer-title{ font-weight: 850; }
.footer-sub{ color: rgba(255,255,255,0.70); font-size: 0.95rem; }
.footer-right a{ color: rgba(255,255,255,0.85); }
.footer-bottom{ margin-top: 10px; }
.footer-bottom small{ color: rgba(255,255,255,0.65); }

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .contact-card{ grid-template-columns: 1fr; }
  .grid.three{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .site-nav{
    position: absolute;
    right: 16px;
    top: 70px;
    width: min(92vw, 340px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }
  .site-nav.is-open{ display: flex; }
  .site-nav a{
    padding: 10px 12px;
    border-radius: 12px;
  }
  .site-nav a:hover{
    background: rgba(31,91,58,0.08);
    text-decoration: none;
  }
  .nav-cta{ background: rgba(31,91,58,0.12); }
}
