/* =========================================================
   FactoryLandPro — Amverton Carey Business Park Phase 1
   Landing page stylesheet
   Mobile-first. CSS variables for theme. No frameworks.
   ========================================================= */

:root {
  /* Brand colors, sampled from the FactoryLandPro logo */
  --navy: #11327d;
  --navy-dark: #0b2258;
  --gold: #ffbf0f;      /* reserved ONLY for primary CTA buttons */
  --teal: #00adcf;
  --green: #55820c;
  --green-light: #86bd2d;
  --charcoal: #333333;
  --grey: #757575;
  --grey-light: #f3f5f7;
  --grey-border: #e2e6ea;
  --white: #ffffff;
  --danger: #b00020;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 10px;
  --shadow: 0 4px 18px rgba(17, 50, 125, 0.10);
  --shadow-lg: 0 10px 34px rgba(17, 50, 125, 0.18);
  --max-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for sticky mobile bar */
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
}

h2 { font-size: 1.6rem; margin-bottom: 10px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }
p  { margin-bottom: 12px; }

.section { padding: 48px 0; }
.section-alt { background: var(--grey-light); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px; /* thumb-sized tap target */
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(255, 191, 15, 0.45);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(255, 191, 15, 0.6); }

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0rem;
  color: var(--navy-dark);
  line-height: 1.1;
}
.brand-tagline { font-size: 0.62rem; color: var(--grey); letter-spacing: 0.02em; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--grey-border);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
}
.lang-toggle button {
  background: var(--white);
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--grey);
}
.lang-toggle button.active { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #0e2d70 100%);
  color: var(--white);
  padding: 40px 0 44px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,191,15,0.25) 0%, rgba(255,191,15,0) 70%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.hero .lede {
  color: rgba(255,255,255,0.88);
  font-size: 1.0rem;
  max-width: 560px;
  margin-bottom: 22px;
}
.hero-cta-row { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
  max-width: 480px;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  display: block;
}
.hero-stat .lbl { font-size: 0.74rem; color: rgba(255,255,255,0.85); }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 16px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--grey);
  font-family: var(--font-head);
  font-weight: 600;
}
.trust-item .dot { color: var(--teal); }

/* ---------- USP grid ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.usp-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.usp-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grey-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.usp-card p { font-size: 0.92rem; color: var(--grey); margin-bottom: 0; }

/* ---------- Specs table ---------- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.specs-table th, .specs-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--grey-border);
}
.specs-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) td { background: var(--grey-light); }
.specs-note { font-size: 0.8rem; color: var(--grey); margin-top: 10px; }

/* ---------- Location ---------- */
.map-frame {
  width: 100%;
  aspect-ratio: 16/10;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.distance-list { list-style: none; margin-top: 18px; }
.distance-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--grey-border);
  font-size: 0.92rem;
}
.distance-list li span:first-child { color: var(--charcoal); font-weight: 600; }
.distance-list li span:last-child { color: var(--teal); font-family: var(--font-head); font-weight: 700; white-space: nowrap; }

/* ---------- Investor teaser ---------- */
.investor-box {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.investor-box h2 { color: var(--white); }
.investor-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.scenario {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.scenario .psf { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--gold); }
.scenario .gain { font-size: 0.72rem; color: rgba(255,255,255,0.85); margin-top: 4px; }
.investor-disclaimer { font-size: 0.74rem; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ---------- Scarcity strip ---------- */
.scarcity-strip {
  background: var(--gold);
  color: var(--navy-dark);
  text-align: center;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------- Lead form ---------- */
.lead-section { background: var(--navy-dark); color: var(--white); }
.lead-section h2 { color: var(--white); }
.lead-section .section-head p { color: rgba(255,255,255,0.8); }
.lead-card {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--navy-dark);
}
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.form-field input:focus { outline: none; border-color: var(--teal); }
.form-error {
  color: var(--danger);
  font-size: 0.76rem;
  margin-top: 4px;
  display: none;
}
.form-field.invalid input { border-color: var(--danger); }
.form-field.invalid .form-error { display: block; }
.form-status { font-size: 0.85rem; margin-top: 10px; text-align: center; }
.form-status.success { color: var(--green); font-weight: 700; }
.form-status.error { color: var(--danger); font-weight: 700; }
.divider-or {
  text-align: center;
  font-size: 0.78rem;
  color: var(--grey);
  margin: 16px 0;
  position: relative;
}
.privacy-note { font-size: 0.72rem; color: rgba(255,255,255,0.6); text-align: center; margin-top: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--teal); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 18px 16px; font-size: 0.9rem; color: var(--grey); }

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 34px 0 26px;
  font-size: 0.82rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer .footer-brand { display: flex; align-items: center; gap: 10px; }
footer .footer-brand img { height: 34px; }
footer a { color: var(--gold); text-decoration: none; }
footer .footer-placeholder {
  color: #ff9d9d;
  font-weight: 600;
}
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid var(--grey-border);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.08);
  display: flex;
  gap: 10px;
  padding: 10px 14px;
}
.sticky-bar .btn { flex: 1; }

/* Hidden language variant */
[data-lang-zh] { display: none; }
html[data-active-lang="zh"] [data-lang-en] { display: none; }
html[data-active-lang="zh"] [data-lang-zh] { display: block; }
html[data-active-lang="zh"] span[data-lang-zh],
html[data-active-lang="zh"] li[data-lang-zh] { display: list-item; }
html[data-active-lang="zh"] .btn[data-lang-zh] { display: inline-flex; }

/* =========================================================
   Tablet and up
   ========================================================= */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.15rem; }
  .hero .lede { font-size: 1.08rem; }
  .hero-cta-row { flex-direction: row; max-width: none; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .investor-scenarios { grid-template-columns: repeat(3, 1fr); }
  h2 { font-size: 1.9rem; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  .hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
  .hero h1 { font-size: 2.5rem; }
  .usp-grid { grid-template-columns: repeat(3, 1fr); }
  .location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .sticky-bar { display: none; } /* desktop has header CTA always visible */
  body { padding-bottom: 0; }
}
