/* =============================================
   NEWLIFE BUILDERS — Blueprint Modern Theme
   Fresh Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --bg: #E6E2DA;
  --bg2: #F2EDE5;
  --bg3: #DDD6CD;
  --text: #101111;
  --text2: #5D1E21;
  --text3: #8B7355;
  --accent: #A6824A;
  --accent2: #154230;
  --navy: #154230;
  --border: #D4CCC1;
  --border2: rgba(16,17,17,0.08);
  --card-bg: #E6E2DA;
  --nav-bg: rgba(230,226,218,0.95);
  --shadow: 0 2px 24px rgba(16,17,17,0.07);
  --shadow-hover: 0 12px 48px rgba(16,17,17,0.14);
  --radius: 0px;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --bg: #1A1614;
  --bg2: #252220;
  --bg3: #2E2A26;
  --text: #F5F1ED;
  --text2: #E8D9CC;
  --text3: #B8A38D;
  --border: #3D3830;
  --border2: rgba(245,241,237,0.06);
  --card-bg: #252220;
  --nav-bg: rgba(26,22,20,0.97);
  --shadow: 0 2px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.45);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: default;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ---- CUSTOM CURSOR REMOVED ---- */

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  padding: 16px 64px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 0 100%);
}
.logo-mark span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-words { line-height: 1.15; }
.logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: block;
}
.logo-tagline {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: block;
}
.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.logo-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.03) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
  z-index: -1;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::before,
.nav-links a.active::before { width: 100%; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* THEME TOGGLE */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); }
.toggle-track {
  width: 34px; height: 18px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  transition: background 0.3s;
}
[data-theme="dark"] .toggle-track { background: var(--accent); }
.toggle-thumb {
  width: 12px; height: 12px;
  background: var(--text2);
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: all 0.3s ease;
}
[data-theme="dark"] .toggle-thumb {
  left: 19px;
  background: #fff;
}
.toggle-icon {
  font-size: 0.9rem;
  transition: var(--transition);
}
.toggle-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
}

.nav-quote-btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 0 100%);
  transition: var(--transition);
}
.nav-quote-btn:hover { background: var(--navy); transform: translateY(-2px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}

/* MOBILE MENU */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 28px; right: 36px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
}

/* ---- PAGE HERO BANNER ---- */
.page-hero {
  padding: 30px 64px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: attr(data-num);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--bg3);
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: color 0.4s;
}
.hero-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;

}
.hero-label::before {
  content: '';
  width: 36px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  max-width: 700px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.page-hero p {
  font-size: 1rem;
  color: var(--text2);
  margin-top: 20px;
  max-width: 500px;
  line-height: 1.8;
  font-weight: 400;
}
.hero-accent-bar {
  display: flex;
  gap: 6px;
  margin-top: 36px;
}
.bar { height: 4px; background: var(--border); }
.bar:first-child { width: 60px; background: var(--accent); }
.bar:nth-child(2) { width: 30px; background: var(--accent); opacity: 0.5; }
.bar:nth-child(3) { width: 14px; background: var(--accent); opacity: 0.25; }

/* ---- SECTION UTILITIES ---- */
.section { padding: 100px 64px; background: var(--bg); }
.section.alt { background: var(--bg2); }
.section.dark-alt { background: var(--bg3); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }
.section-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-num::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-line {
  width: 48px; height: 3px;
  background: var(--accent);
  margin: 20px 0;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.85;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 92% 0, 100% 25%, 100% 100%, 0 100%);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 13px 32px;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.arrow-icon {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.up { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.up { opacity: 1; transform: translateX(0); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: #F5F1ED;
  padding: 80px 64px 0;
}
[data-theme="dark"] footer { background: #1A1614; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,241,237,0.1);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(245,241,237,0.5);
  line-height: 1.85;
  margin: 20px 0 28px;
  max-width: 280px;
}
.footer-logo-image {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #F5F1ED;
}
.footer-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
  display: block;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.fsocial {
  width: 38px; height: 38px;
  border: 1px solid rgba(245,241,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(245,241,237,0.6);
}
.fsocial:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(245,241,237,0.55);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: #F5F1ED; }
.footer-contact-list { display: flex; flex-direction: column; gap: 18px; }
.fci-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.fci-val {
  font-size: 0.84rem;
  color: rgba(245,241,237,0.55);
  line-height: 1.6;
}
.fci-val a { color: rgba(245,241,237,0.55); transition: color 0.3s; }
.fci-val a:hover { color: #F5F1ED; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.76rem;
  color: rgba(245,241,237,0.3);
}
.footer-copy span { color: var(--accent); }

/* ---- BACKGROUND CANVAS LAYERS ---- */
/* Shared base for particle-canvas and blueprint-canvas */
.bg-canvas-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  display: block;
}
#blueprint-canvas {
  z-index: -1;
  opacity: 0; /* fades in via BlueprintLines.init() transition */
}
#particle-canvas {
  z-index: -1;
  opacity: 0;
}
#three-canvas {
  z-index: -1;
  opacity: 0;                    /* ThreeScene.init() fades this in itself */
  will-change: transform;        /* promote to compositor layer — no repaint lag */
}
/* Ensure all page content sits above canvases */
.navbar,
.mobile-nav,
.page-hero,
.section,
.mission-strip,
footer,
.quick-strip,
.cta-banner,
.stats-banner,
.intro-split,
#lightbox {
  position: relative;
  z-index: 1;
}
/* Body stacking context removed — canvas uses z-index:-1 to stay behind all content */

/* ---- WHY CHOOSE US GRID ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.why-item {
  background: var(--bg);
  padding: 44px 28px;
  text-align: center;
  transition: var(--transition);
}
.why-item:hover { background: var(--bg2); }
.wi-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.wi-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.wi-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.7; }

/* ---- FAQ SECTION ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 24px 32px;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg2);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 32px 24px;
  color: var(--text2);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-hover);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.whatsapp-float:hover { background-color: #128c7e; transform: translateY(-3px); color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .navbar, .navbar.scrolled { padding-left: 32px; padding-right: 32px; }
  .section { padding: 80px 32px; }
  .page-hero { padding: 140px 32px 70px; }
  .footer-inner { padding: 0 0 50px; }
  footer { padding: 60px 32px 0; }
}

@media (max-width: 900px) {
  .nav-links, .nav-quote-btn { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { margin-bottom: 40px; }

  /* Buttons touch-friendly */
  .btn-primary, .btn-secondary { min-height: 48px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 20px; }
  .page-hero { padding: 110px 20px 56px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 50px 20px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .navbar, .navbar.scrolled { padding: 16px 20px; }
  .page-hero::before { font-size: 6rem; right: 10px; }
  .why-grid { grid-template-columns: 1fr; }

  /* Typography scaling */
  .section-title { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .section-num { font-size: 0.62rem; letter-spacing: 0.2em; }
  .section-desc { font-size: 0.85rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .page-hero p { font-size: 0.88rem; }

  /* Buttons full-width on mobile */
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 0.72rem;
  }

  /* Footer adjustments */
  .footer-brand p { max-width: 100%; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-contact-list { gap: 14px; }

  /* FAQ mobile padding */
  .faq-question { padding: 18px 20px; font-size: 0.95rem; }
  .faq-answer p { padding: 0 20px 20px; font-size: 0.84rem; }

  /* WhatsApp floating button compact */
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    padding: 10px 18px;
    font-size: 0.75rem;
  }

  /* Why grid items */
  .why-item { padding: 32px 20px; }
  .wi-label { font-size: 0.95rem; }
  .wi-desc { font-size: 0.8rem; }
  
  /* Logo image responsive */
  .logo-image { height: 42px; }
}

@media (max-width: 380px) {
  .section { padding: 48px 16px; }
  .navbar, .navbar.scrolled { padding: 14px 16px; }
  .mobile-nav a { font-size: 2rem; }
  .logo-name { font-size: 0.9rem; }
  .logo-tagline { font-size: 0.5rem; }
  .logo-mark { width: 38px; height: 38px; }
  
  /* Logo image for very small screens */
  .logo-image { height: 36px; }
  .footer-brand-name { font-size: 0.95rem; }
  footer { padding: 40px 16px 0; }

  .whatsapp-float { padding: 8px 14px; font-size: 0.68rem; }
}
