/* ===========================
   BahayNihan – Main Stylesheet
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #3a7d44;   /* forest green */
  --primary-lt: #57a85f;   /* medium green */
  --primary-dk: #2c5f34;   /* deep green */
  --accent:     #f39c12;   /* warm gold */
  --dark:       #1e3a22;   /* very dark green */
  --light:      #eef6ee;   /* pale green tint */
  --white:      #ffffff;
  --muted:      #6b8f6e;
  --text:       #2c3e2d;

  --font-head:  'Special Elite', 'American Typewriter', 'Courier New', Courier, monospace;
  --font-body:  'Special Elite', 'American Typewriter', 'Courier New', Courier, monospace;

  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.12);
  --transition: .28s ease;
}

html { scroll-behavior: smooth; font-size: 20px; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
*, *::before, *::after { font-family: inherit; }

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

sup { font-size: .6em; vertical-align: super; }

/* --- Utility --- */
.container   { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.centered    { text-align: center; }
.section {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 64px;
  padding-bottom: 64px;
}
.section > .container,
.section > .container.centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section > .container.two-col {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.section > .foundation-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-light  { background: #ffffff; }
.section-dark   { background: #ffffff; color: var(--text); }
.section-accent { background: #ffffff; color: var(--text); }
.alt-bg      { background: #f5f5f5; }

/* Alternating section backgrounds — concept(2nd section)=white, then grey, white, grey… */
section.section:nth-of-type(even) { background: #ffffff !important; }
section.section:nth-of-type(odd)  { background: #f5f5f5 !important; }
.hidden      { display: none !important; }
.mt          { margin-top: 16px; }

/* --- Section Labels & Headings --- */
/* ── Section banner (green strip with logo + title) ── */
.section-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--primary);
  padding: 18px 48px;
  margin-bottom: 48px;
  width: 100%;
  box-sizing: border-box;
  height: 72px;
}
.banner-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.section-banner span {
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: none !important;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 20px;
  color: inherit;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #e67e22; transform: translateY(-2px); }
.btn-primary.full-width { width: 100%; text-align: center; margin-top: 20px; }

/* ===========================
   NAVBAR
   =========================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}
#navbar * { color: #fff; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  width: 100%;
  box-sizing: border-box;
}
.logo {
  display: flex; align-items: center;
}
.nav-logo-img { height: 32px; width: auto; max-width: 120px; }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.nav-links a {
  color: #fff !important;
  font-size: .88rem; font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-links a:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.btn-nav {
  background: var(--accent); color: #fff !important;
  padding: 5px 12px; border-radius: 50px; font-weight: 700 !important;
}
.btn-nav:hover { background: #e67e22 !important; color: #fff !important; }

.hamburger {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.6rem; cursor: pointer;
}

/* ===========================
   HERO
   =========================== */
#hero {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  margin-top: 64px;
}
.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 56px;
  gap: 16px;
  background: #ffffff;
}
.hero-right {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.hero-bottom-left {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  animation: heroSlideUp .7s cubic-bezier(.22,1,.36,1) .8s both;
}
.hero-bottom-right {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 10;
  animation: heroSlideUp .7s cubic-bezier(.22,1,.36,1) .8s both;
}
.hero-right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-logo-br {
  width: 320px;
  height: auto;
  filter: brightness(0);
  margin-top: auto;
}
.hero-bayanihan {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.hero-brand {
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 8px;
}
.concept-brand {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 16px;
}
.hero-label {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.8vw, 2.5rem);
  white-space: nowrap;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 5;
  text-shadow: 0 2px 16px rgba(0,0,0,.8), 0 1px 6px rgba(0,0,0,.6);
  margin: 0;
  line-height: 1.25;
  padding: 120px 24px 0;
  background: rgba(0,0,0,.25);
}
#hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  border-left: 5px solid var(--accent);
  padding-left: 16px;
  animation: heroSlideUp .8s cubic-bezier(.22,1,.36,1) .2s both;
}
.hero-sub {
  font-size: 1.2rem;
  margin: 0;
  padding-left: 21px;
  animation: heroSlideUp .7s cubic-bezier(.22,1,.36,1) .4s both;
}
.hero-tag {
  font-size: 1rem; font-weight: 600;
  margin: 0;
  padding-left: 21px;
  border-left: 3px solid #ccc;
  animation: heroSlideUp .7s cubic-bezier(.22,1,.36,1) .6s both;
}
/* Discover How button */
.btn-hero-cta {
  font-size: 1.05rem;
  font-weight: 900;
  padding: 14px 32px;
  background: #f5a623;
  color: #1a2e1a;
  border-radius: 50px;
  letter-spacing: .02em;
  text-shadow: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  white-space: nowrap;
  border: none;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.btn-hero-cta:hover {
  background: #e67e22;
  transform: translateY(-2px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  white-space: nowrap;
}
.hero-badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   TWO-COLUMN LAYOUT
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; object-fit: cover;
}
.col-text p { color: var(--muted); font-size: 1.02rem; margin-bottom: 20px; }

/* --- Stakeholder List --- */
.stakeholder-list { margin-top: 12px; padding-left: 1.4em; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.stakeholder-list li {
  font-weight: 600; font-size: 1rem; list-style: disc;
}
.icon { display: none; }

/* ===========================
   GOAL / SMILES
   =========================== */
#goal > .container { justify-content: flex-start; padding-top: 8px; }
#goal h2 { margin-bottom: 4px; }
#goal .smiles-grid { margin: 12px 0; gap: 16px; }
#goal .smile-card { padding: 16px; }
.smiles-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 20px 0;
}
.smile-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}
.smile-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.smile-number {
  font-family: var(--font-head);
  font-size: 3rem; font-weight: 700;
  color: var(--accent); line-height: 1;
  margin-bottom: 8px;
}
.smile-card h3 { font-size: 1.6rem; margin-bottom: 16px; }
.smile-img { width: 100%; height: 240px; border-radius: 8px; margin-top: auto; padding-top: 16px; object-fit: cover; display: block; }
.smile-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.smile-title .smile-number { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; }
.smile-card p  { color: rgba(255,255,255,.88); font-size: 1.25rem; line-height: 1.7; }
.not-profits {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent); text-align: center;
  margin-top: 8px;
}

/* ===========================
   FOUNDATION
   =========================== */
.foundation-body { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 600px; margin: 0 auto 36px; }

/* Foundation plain text layout */
.foundation-text {
  text-align: left;
  max-width: 520px;
  margin: 0 auto 40px;
}
.fb-line {
  opacity: 0;
  transform: translateY(28px) scale(.95);
  transition: opacity .55s cubic-bezier(.34,1.56,.64,1),
              transform .55s cubic-bezier(.34,1.56,.64,1);
  margin-bottom: 28px;
}
.fb-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
}
.fb-big {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.fb-body {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.75;
}
/* Staggered pop-up delays */
.foundation-text.fb-visible .fb-line-1 { opacity:1; transform:none; transition-delay:0.2s; }
.foundation-text.fb-visible .fb-line-2 { opacity:1; transform:none; transition-delay:1.5s; }
.foundation-text.fb-visible .fb-line-3 { opacity:1; transform:none; transition-delay:2.0s; }
.foundation-text.fb-visible .fb-line-4 { opacity:1; transform:none; transition-delay:3.0s; }
.foundation-text.fb-visible .fb-line-5 { opacity:1; transform:none; transition-delay:4.0s; }

/* Individual sentence colors */
.fb-line-1 { color: var(--muted) !important; font-style: italic; }
.fb-line-2 { color: var(--primary) !important; }
.fb-line-3 { color: var(--text) !important; }
.fb-line-4 { color: var(--primary-lt) !important; font-style: italic; }
.fb-line-5 { color: #e67e22 !important; text-shadow: 0 0 24px rgba(243,156,18,.3), 0 2px 8px rgba(0,0,0,.1); }
.stat-bar {
  max-width: 500px; margin: 0 auto;
  background: rgba(0,0,0,.08);
  border-radius: 50px; height: 44px; overflow: hidden;
}
.stat-fill {
  height: 100%; width: 100%; max-width: var(--pct);
  background: linear-gradient(90deg, var(--accent), #f8c471);
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: var(--dark);
  animation: growBar 1.4s ease-out forwards;
  transform-origin: left;
}
@keyframes growBar { from { width: 0; } to { width: min(var(--pct), 100%); } }

/* Animated Chart.js canvas */
.chart-wrapper {
  position: relative;
  margin-top: 44px;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
  background: #f4f8f4;
  border-radius: var(--radius);
  padding: 28px 24px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
}
#markupChart {
  width: 100% !important;
  border-radius: var(--radius);
}

/* Lightbox / zoom state */

/* ===========================
   PROCESS
   =========================== */
.process-steps {
  display: flex; align-items: stretch;
  gap: 16px; margin-top: 40px;
}

/* Community section — keep label gold (handled by global rule below) */

/* Community section two-column layout */
.community-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 24px;
}
.community-layout .process-steps {
  flex: 1;
  margin-top: 0;
}
.community-logo-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.community-logo-img {
  width: 440px;
  height: auto;
  filter: none;
}
.community-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dk);
  text-align: center;
  margin: 0 0 0 0;
  max-width: 260px;
  line-height: 1.25;
  letter-spacing: .02em;
  font-style: italic;
  font-family: 'Special Elite', 'American Typewriter', 'Courier New', monospace;
}
@media (max-width: 640px) {
  .community-layout { flex-direction: column; }
  .community-logo-img { width: 180px; }
}
.process-step {
  flex: 1;
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  width: 56px; height: 56px; border-radius: 50%;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 12px; color: #111; }
.process-step ul { display: flex; flex-direction: column; gap: 8px; }
.process-step li { font-size: .93rem; color: var(--muted); padding-left: 12px; position: relative; }
.process-step li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.process-arrow { font-size: 2rem; color: var(--muted); align-self: center; flex-shrink: 0; }

/* ===========================
   COMMUNITY
   =========================== */
.amenity-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 20px;
}
.amenity {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* ===========================
   COMMUNITY SECTION
   =========================== */
.community-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.community-content {
  flex: 1;
}
.community-img {
  flex: 0 0 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.community-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.community-steps {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px;
  margin-top: 24px;
}
.community-block {
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.community-intro {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.community-list {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-list li {
  font-size: 1rem;
  color: var(--text);
}

/* ===========================
   BUSINESS MODEL (3P)
   =========================== */
.section-rule {
  border: none;
  border-top: 2px solid var(--primary);
  margin: 10px 0 40px;
  width: 48px;
}
.three-p-bullets {
  margin: 24px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.three-p-bullets li {
  font-family: var(--font-head);
  font-size: .95rem;
  line-height: 1.7;
  color: #222;
}
.three-p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.three-p-card {
  background: #f4f8f4;
  border: 1px solid rgba(58,125,68,.18);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background var(--transition), transform var(--transition);
}
.three-p-card:hover {
  background: #e8f2e8;
  transform: translateY(-4px);
}
.three-p-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--primary-dk);
  margin-bottom: 14px;
}
.three-p-card p {
  color: var(--text);
  font-size: .97rem;
  line-height: 1.7;
}

/* ===========================
   MARK UP
   =========================== */
.markup-desc {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  color: #333 !important;
}
.markup-chart-wrap {
  display: flex;
  justify-content: center;
}
.markup-chart-img {
  max-width: 100%;
  width: 860px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* ===========================
   HOMES
   =========================== */
.homes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}
.home-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.img-tile-wrap {
  position: relative;
  display: block;
}
.img-tile-wrap img {
  display: block;
  width: 100%;
  object-position: top !important;
}
.floor-plan-details {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.92);
  text-align: center;
  padding: 10px 14px;
}
.floor-plan-details p {
  font-size: .95rem;
  font-weight: 400;
  margin: 3px 0;
  color: #222;
}
.home-card-label {
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #111 !important;
  margin: 0 0 8px;
}
/* === MARK UP ========================= */
.markup-img-wrap {
  display: flex;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.markup-html {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 860px;
  margin: 40px auto;
  font-family: var(--font-head);
}
.markup-text { flex: 0 0 260px; }
.markup-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  white-space: nowrap;
}
.markup-desc {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.6;
}
.markup-chart-html { flex: 1; margin-left: 80px; }
.markup-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 280px;
}
.markup-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.markup-pct {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
}
.markup-bar {
  width: 60px;
  border-radius: 4px 4px 0 0;
}
.markup-label {
  font-family: var(--font-head);
  font-size: .8rem;
  text-align: center;
}
.markup-own-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 20px;
  margin-left: 80px;
}
.mobile-only { display: none; }
.markup-chart {
  display: block;
  max-width: 100%;
  width: 820px;
}

.three-p-list {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.home-card img {
  border-radius: var(--radius);
  width: 100%;
  height: 340px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.home-card-highlight img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.home-card .home-details {
  background: #f4f8f4;
  border: 1px solid rgba(58,125,68,.12);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px;
}
.home-card .home-details h3 { margin-bottom: 12px; }
.home-card .home-details li { padding: 4px 0; font-size: .95rem; }

.pricing-card {
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  padding: 0 28px 36px;
  text-align: center;
  min-width: 240px;
}
.pricing-card h3 { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #111 !important; margin: 0 0 12px; text-align: left; }
.price-main {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 700;
  color: #111; line-height: 1;
}
.price-label { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
.price-features { text-align: left; display: flex; flex-direction: column; gap: 12px; }
.price-feature { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.price-feature.highlight {
  justify-content: center; background: var(--light);
  border-radius: 8px; padding: 12px; font-size: 1.15rem; color: #111;
}
.check { color: #111; font-size: 1.1rem; }

/* ===========================
   CONTACT
   =========================== */
.contact-form {
  max-width: 640px; margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(58,125,68,.25); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
  background: #f4f8f4;
  color: var(--text);
  outline: 2px solid transparent;
  transition: outline var(--transition), background var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  background: #ffffff;
}
.contact-form button { align-self: center; }
.form-success {
  margin-top: 20px; font-size: 1.1rem;
  color: var(--primary); font-weight: 600;
}

/* New contact form */
.contact-form-new { width: 100%; }
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.contact-label { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.contact-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.contact-checks {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.contact-checks label {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; cursor: pointer;
}
.contact-checks input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.inline-input {
  border: none; border-bottom: 1px solid #333;
  width: 120px; background: transparent;
  font-family: var(--font-body); font-size: .9rem;
}
.contact-fields { display: flex; flex-direction: column; gap: 12px; }
.contact-field-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; font-size: .95rem;
}
.contact-field-row label { white-space: nowrap; font-weight: 500; }
.contact-field-row input[type="text"],
.contact-field-row input[type="tel"],
.contact-field-row input[type="email"] {
  flex: 1; border: none; border-bottom: 1px solid #333;
  background: transparent; font-family: var(--font-body);
  font-size: .95rem; padding: 2px 4px; min-width: 120px;
}
.short-input { width: 100px; flex: none !important; }
.contact-message { margin-top: 20px; }
.contact-message textarea {
  width: 100%; border: none; border-bottom: 1px solid #333;
  background: transparent; font-family: var(--font-body);
  font-size: .95rem; resize: vertical; margin-top: 8px;
  padding: 4px;
}
.contact-submit-row { margin-top: 32px; text-align: center; }

/* === LIGHTBOX ======================== */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  animation: lbZoom .25s ease;
}
@keyframes lbZoom { from { transform: scale(.85); opacity:0; } to { transform: scale(1); opacity:1; } }
.lightbox-close {
  position: absolute; top: 20px; right: 32px;
  font-size: 2.5rem; color: #fff; cursor: pointer;
  line-height: 1; user-select: none;
}
.lightbox-close:hover { color: #ccc; }
.home-card-highlight img { cursor: zoom-in; }

/* ===========================
   FOOTER
   =========================== */
#footer {
  background: #162b19; color: rgba(255,255,255,.7);
  padding: 48px 0 32px; text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700;
  color: var(--white); margin-bottom: 6px;
}
.footer-tagline { font-style: italic; margin-bottom: 24px; }
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 20px; margin-bottom: 24px;
}
.footer-nav a { font-size: .9rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: .8rem; }

/* ===========================
   WATERMARK
   =========================== */
.section { position: relative; }   /* ensure watermark is contained */

.wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
/* all content inside sections must sit above watermark */
.section > *:not(.wm) { position: relative; z-index: 1; }

.wm-img {
  width: 780px;
  max-width: 85%;
  height: auto;
  object-fit: contain;
  opacity: .08;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Green/dark sections — slightly more visible */
.wm-img.wm-light {
  opacity: .12;
}

/* ===========================
   PROCESS STEP ANIMATIONS
   =========================== */

/* Cards slide up and pop in */
.step-animate {
  opacity: 0;
  transform: translateY(50px) scale(.92);
  transition: opacity .5s cubic-bezier(.34,1.56,.64,1),
              transform .5s cubic-bezier(.34,1.56,.64,1);
  transition-delay: var(--step-delay, 0s);
}
.arrow-animate {
  opacity: 0;
  transform: scale(.4);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: var(--step-delay, 0s);
}
.process-steps.steps-visible .step-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.process-steps.steps-visible .arrow-animate {
  opacity: 1;
  transform: scale(1);
}

/* List items pop in one by one with a bounce */
@keyframes popUp {
  0%   { opacity: 0; transform: scale(.6) translateY(10px); }
  70%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Accordion – hidden details */
.process-step { cursor: pointer; user-select: none; }
.process-step:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.step-hint {
  display: block;
  font-size: .78rem;
  color: #111;
  font-weight: 700;
  letter-spacing: .05em;
  margin: 8px 0 0;
  transition: opacity .2s;
}
.process-step.is-open .step-hint { opacity: 0; height: 0; margin: 0; overflow: hidden; }

/* Hidden by default — pop open on click */
.step-details {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  transition: max-height .55s cubic-bezier(.4,0,.2,1),
              opacity .4s ease,
              margin .3s ease;
}
.process-step.is-open .step-details {
  max-height: 900px !important;
  opacity: 1 !important;
  margin-top: 14px !important;
}

/* Step detail items */
.step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
}
.step-item:last-child { margin-bottom: 0; }
.step-item p { margin: 0; flex: 1; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  border-radius: 50px;
  padding: 0 7px;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-or {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  margin: 6px 0 10px;
}

.process-step ul li {
  opacity: 0;
}
/* Step 1 items */
.process-steps.steps-visible .process-step:nth-child(1) ul li:nth-child(1) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) .55s forwards; }
.process-steps.steps-visible .process-step:nth-child(1) ul li:nth-child(2) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) .72s forwards; }
/* Step 2 items */
.process-steps.steps-visible .process-step:nth-child(3) ul li:nth-child(1) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.0s forwards; }
.process-steps.steps-visible .process-step:nth-child(3) ul li:nth-child(2) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.15s forwards; }
.process-steps.steps-visible .process-step:nth-child(3) ul li:nth-child(3) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.3s forwards; }
.process-steps.steps-visible .process-step:nth-child(3) ul li:nth-child(4) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.45s forwards; }
/* Step 3 items */
.process-steps.steps-visible .process-step:nth-child(5) ul li:nth-child(1) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.5s forwards; }
.process-steps.steps-visible .process-step:nth-child(5) ul li:nth-child(2) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.65s forwards; }
.process-steps.steps-visible .process-step:nth-child(5) ul li:nth-child(3) { animation: popUp .4s cubic-bezier(.34,1.56,.64,1) 1.8s forwards; }

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Element-level scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1),
              transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.from-left  { transform: translateX(-44px); }
.reveal.from-right { transform: translateX(44px); }
.reveal.from-bottom{ transform: translateY(44px); }
.reveal.scale-up   { transform: scale(.88) translateY(20px); }

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .two-col, .smiles-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); align-self: center; }
  .homes-grid { grid-template-columns: 1fr; }
  .homes-grid .home-card:first-child  { order: 2; } /* Floor Plan → 2nd */
  .homes-grid .home-card:nth-child(2) { order: 1; } /* Building Model → 1st */
  .homes-grid .pricing-card           { order: 3; min-width: unset; text-align: center; padding: 0; }
  .homes-grid .pricing-card h3        { text-align: center; margin: 0; }
  .homes-grid .pricing-card .price-main { line-height: 1; }
  .homes-grid .pricing-card .price-label { margin: 0; }
  .homes-grid .pricing-card .price-features { align-items: center; gap: 4px; }
  .homes-grid .pricing-card .price-feature { margin: 0; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary);
    padding: 20px 24px; gap: 8px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}

@media (max-width: 640px) {
  /* Hero */
  #hero { flex-direction: column; }
  .hero-left { padding: 24px 16px; overflow: hidden; }
  .hero-right { flex: 0 0 260px; width: 100%; }
  .hero-bayanihan { font-size: 1.2rem; word-break: break-word; }
  .hero-brand { font-size: 1.6rem; }
  .hero-sub { font-size: .9rem; }
  .hero-bottom-right { bottom: 10px; right: 10px; left: 10px; align-items: center; gap: 8px; }
  .btn-hero-cta { font-size: .85rem; padding: 10px 18px; }
  .hero-badge { font-size: .7rem; padding: 4px 8px; white-space: normal; text-align: center; background: transparent; border: none; }

  /* Section banner */
  .section-banner { flex-wrap: wrap; gap: 4px; padding: 10px 16px; font-size: 1rem; }

  /* Two-col concept layout */
  .two-col { grid-template-columns: 1fr !important; }
  .two-col.reverse { direction: ltr; }
  .col-img { width: 100%; }
  .col-img img { width: 100%; height: auto; }

  /* Contact form */
  .contact-cols { grid-template-columns: 1fr !important; gap: 24px; }

  /* Homes grid */
  .home-card-highlight img { height: 260px; }

  /* Three P grid */
  .three-p-grid { grid-template-columns: 1fr !important; }

  /* Smiles */
  .smiles-grid { grid-template-columns: 1fr !important; }

  /* Markup chart */
  .markup-html { flex-direction: column; gap: 24px; }
  .markup-text { flex: unset; width: 100%; }
  .markup-chart-html { margin-left: 0; width: 100%; }
  .markup-bar-group { gap: 16px; height: 200px; justify-content: center; }
  .markup-bar { width: 44px; }
  .markup-own-bar { display: none; }
  .markup-title { white-space: normal; }
  .mobile-only { display: flex; }

  /* Form rows */
  .form-row { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }

  /* Contact field rows */
  .contact-field-row { flex-direction: column; align-items: flex-start; }
  .contact-field-row label { min-width: unset; }
  .contact-field-row input { width: 100%; }
}


/* ── Global: ALL text black ── */
body, h1, h2, h3, h4, h5, h6, p, li, span, a:not(.btn-primary):not(.btn-nav),
label, input, textarea, .section-label, .section-label.light,
.fb-line-1, .fb-line-2, .fb-line-3, .fb-line-4, .fb-line-5,
.fb-big, .fb-body, .community-tagline, .three-p-card h3, .three-p-card p,
.smile-card h3, .smile-card p, .not-profits, .home-card h3,
.price-main, .price-label, .price-feature, .check, .step-hint,
.process-step h3, .stat-label, .amenity h4, .hero-sub, .hero-tag,
.footer-logo, .footer-tagline, .footer-nav a, .footer-copy {
  color: #111 !important;
  text-shadow: none !important;
}

/* Nav links always white */
#navbar .nav-links a { color: #fff !important; }

/* stakeholder bullets */
.stakeholder-list li { list-style: disc; margin-left: 1.2em; }
.stakeholder-list .icon { display: none; }
