/* Halelani Village at Puhi — public site styles
   Palette: greens + Halelani blue (#6fbbbb) + cream (#fff7ee) + soft gray (#d6d6d6)
   Halelani newsletter palette added 2026-08-24 per management request.
*/
:root {
  --green-deep: #2c4a3a;
  --green-mid: #4a7c59;
  --green-soft: #6b9a78;
  --blue: #6fbbbb;
  --blue-dark: #4a9797;
  --blue-soft: #d8ecec;
  --sand: #fff7ee;
  --sand-dark: #f0e8dc;
  --gray-soft: #d6d6d6;
  --terracotta: #b47156;
  --terracotta-dark: #9a5d45;
  --cream: #fff7ee;
  --text: #2b2820;
  --text-muted: #5c564c;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(43, 40, 32, 0.08);
  --radius: 12px;
  --max: 1100px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-deep);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 74, 58, 0.1);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.65rem 0;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark span { color: var(--blue); font-weight: 500; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--green-deep);
  color: var(--green-deep);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green-deep);
  border-bottom-color: var(--terracotta);
}
.site-nav a.nav-portal {
  color: var(--blue-dark);
  border: 1px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  border-bottom: none;
  font-weight: 600;
}
.site-nav a.nav-portal:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Hero full */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, #1a3328 0%, #2c4a3a 38%, #3d6b4f 62%, #b47156 100%);
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media video:not([src]),
.hero-media video[data-missing="1"] {
  display: none;
}
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  background: #1a2e24;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  /* Cinematic cross-fade: long ease, compositor-friendly */
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hero-slide.is-leaving {
  /* Stay above base while fading out so cross-fade doesn't punch through */
  z-index: 1;
  opacity: 0;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1) translateZ(0);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Ken Burns: slow zoom over full slide lifetime (hold + fade ≈ 4s) */
  transition: transform 4s linear;
}
.hero-slide.hero-kb-left img {
  transform-origin: 28% 50%;
}
.hero-slide.hero-kb-right img {
  transform-origin: 72% 50%;
}
.hero-slide.is-active img {
  transform: scale(1.06) translateZ(0);
}
/* is-leaving freezes scale via inline transform set in JS (no snap mid-fade) */
/* Note: previously included a prefers-reduced-motion:reduce media query that
   disabled Ken Burns + fade. Removed 2026-08-25 at owner request. */
.hero-silhouette {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(44,74,58,0.15) 0%, rgba(20,30,24,0.55) 70%, rgba(15,22,18,0.72) 100%);
}
.hero-content {
  padding: 1.25rem;
  max-width: 820px;
  text-align: center;
}
.hero h1 {
  color: #ffffff;
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 4px 24px rgba(0,0,0,0.55);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #ffffff;
  max-width: 34em;
  margin: 0 auto 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.4);
}
.hero-est {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #ffffff;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--sand);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 2.5rem;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-media {
  background: linear-gradient(135deg, #2c4a3a 0%, #3d624c 55%, #6b5344 100%);
}
.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.25em;
}
.page-hero .sub {
  color: var(--sand);
  font-size: 1.1rem;
  margin: 0;
  max-width: 36em;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--sand);
}
.section-head {
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  margin-bottom: 0.35em;
}
.section-head p.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42em;
  margin: 0;
}

/* About grid */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 3rem;
  }
}
.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  border-top: 4px solid var(--blue);
}
.fact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(44, 74, 58, 0.1);
  font-size: 0.98rem;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list .label { color: var(--text-muted); }
.fact-list .value { font-weight: 600; color: var(--green-deep); text-align: right; }

/* Illustration block */
.visual-block {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  background:
    linear-gradient(160deg, #dfe9e2 0%, #c5d6c9 40%, #e8d5c4 100%);
  position: relative;
  margin-bottom: 1.5rem;
}
.visual-block svg {
  width: 100%;
  height: 100%;
  min-height: 180px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 74, 58, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card time {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}
.card .more {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--green-mid);
}
.card .more:hover { color: var(--terracotta); }

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.doc-card .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sand);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}
.doc-card.coming-soon {
  opacity: 0.72;
}
.doc-card.coming-soon a {
  pointer-events: none;
  color: var(--text-muted);
  text-decoration: none;
  cursor: not-allowed;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover {
  background: #4a9797;
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-secondary:hover {
  background: var(--green-deep);
  color: var(--cream);
}
.btn-accent {
  background: var(--blue);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* Documents page — decorative hero image band above the intro copy */
.doc-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-soft);
  background: var(--blue-soft);
}
.doc-hero-image svg { width: 100%; height: auto; display: block; }
.center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }

/* Announcement articles */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.announcement-list article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-mid);
}
.announcement-list article time {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.announcement-list article h2 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}
.announcement-list article p {
  color: var(--text);
  margin-bottom: 0.85rem;
}
.announcement-list article p:last-child { margin-bottom: 0; }
.portal-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--sand);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.portal-note a { font-weight: 600; }

/* Doc groups */
.doc-group {
  margin-bottom: 2.5rem;
}
.doc-group h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sand-dark);
}
.portal-cta {
  background: linear-gradient(135deg, var(--green-deep), #3a5f4a);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.portal-cta h3 {
  color: var(--cream);
  font-size: 1.6rem;
}
.portal-cta p {
  color: var(--sand);
  max-width: 36em;
  margin: 0 auto 1.25rem;
}

/* Contact form */
.contact-intro {
  max-width: 42em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  max-width: 640px;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green-deep);
}
.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(44, 74, 58, 0.22);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--cream);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green-mid);
  outline-offset: 1px;
  border-color: var(--green-mid);
  background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.req { color: var(--terracotta); }
.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
}
.contact-form button[type="submit"].submitting {
  opacity: 0.7;
  cursor: wait;
}
.kit-contact-msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: #ffffff;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #fff7ee; }
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
.footer-brand .name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.footer-brand p {
  font-size: 0.92rem;
  opacity: 0.88;
  margin: 0;
}
.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-col p, .footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.9;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.footer-bottom a.kit-credit {
  display: inline-block;
  line-height: 0;
  transform: translateY(19px);
}
.footer-bottom a.kit-credit img {
  height: 42px;
  width: auto;
  display: block;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.page-404 h1 { font-size: 3rem; }
.page-404 p { color: var(--text-muted); max-width: 28em; margin: 0 auto 1.5rem; }

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid rgba(44, 74, 58, 0.12);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-nav a {
    display: block;
    padding: 0.65rem 0.4rem;
    border-bottom: none;
  }
  .site-nav a.nav-portal {
    text-align: center;
    margin-top: 0.35rem;
  }
  .section { padding: 3.25rem 0; }
  .hero { min-height: 92vh; }
}
