/* ====================================================
   HERITAGE PRIME — LANDING PAGE STYLESHEET
   Mobile-first, performance-optimized, brand-aligned
   ==================================================== */

/* ---- CSS Variables ---- */
:root {
  --gold: #C9A961;
  --gold-dark: #A88848;
  --gold-light: #E0C589;
  --text-primary: #1A1A1A;
  --text-body: #3A3A3A;
  --text-light: #666666;
  --bg-white: #FFFFFF;
  --bg-cream: #F8F5F0;
  --bg-dark: #1A1A1A;
  --whatsapp: #25D366;
  --whatsapp-dark: #1FA050;
  --success: #2D7A4F;
  --error: #C0392B;
  --border-light: #E8E2D5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --container: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* room for mobile sticky CTA */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ---- Topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.logo {
  display: inline-block;
  line-height: 0;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.logo strong { color: var(--text-primary); }
.logo span { color: var(--gold); font-weight: 400; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.phone-link:hover {
  background: var(--gold);
  color: var(--bg-white);
}
.phone-link svg { color: var(--gold); }
.phone-link:hover svg { color: var(--bg-white); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  background-image: url('/lp-assets/img/hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--bg-white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 50px 20px 60px;
}
.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--bg-white);
}
.hero-title .gold { color: var(--gold); }
.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.hero-trust span {
  font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--gold);
  color: var(--text-primary);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--bg-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--bg-white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  color: var(--bg-white);
  transform: translateY(-1px);
}
.btn-block { width: 100%; }

/* ---- Trust Strip with Auto-Scroll ---- */
.trust-strip {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 500;
  white-space: nowrap;
  width: max-content;
  animation: trustScroll 35s linear infinite;
}
.trust-track:hover { animation-play-state: paused; }
.trust-track .dot { color: var(--gold); font-size: 8px; }
@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Form Section ---- */
.form-section {
  padding: 50px 0;
  background: var(--bg-cream);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.form-intro h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.form-lead {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 20px;
}
.form-benefits {
  list-style: none;
}
.form-benefits li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-body);
}
.lead-form {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.field .req { color: var(--error); }
.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color 0.2s;
  font-family: inherit;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  font-size: 14px;
  color: var(--text-body);
}
.field-checkbox input { width: auto; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-disclaimer {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.phone-input-wrap:focus-within {
  border-color: var(--gold);
}
.phone-prefix {
  padding: 11px 12px;
  background: var(--bg-cream);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border-right: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
}
.phone-input-wrap input {
  flex: 1;
  border: none;
  padding: 11px 14px;
  font-size: 15px;
  background: var(--bg-white);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.form-error {
  background: #fee;
  color: var(--error);
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 4px solid var(--error);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  grid-column: 1 / -1;
}

/* ---- Section Heads ---- */
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-tag {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

/* ---- Projects Section ---- */
.projects-section {
  padding: 60px 0;
  background: var(--bg-white);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.project-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-img {
  position: relative;
  height: 220px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}
.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  color: var(--bg-white);
}
.status-ready { background: var(--success); }
.status-construction { background: #D89B27; }
.status-premium { background: var(--gold-dark); }
.project-body { padding: 20px; }
.project-body h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.project-location {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}
.project-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 16px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-body);
}
.btn-link {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 15px;
}
.btn-link:hover { color: var(--gold); }

/* ---- Why Section ---- */
.why-section {
  padding: 60px 0;
  background: var(--bg-cream);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.why-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

/* ---- How Section ---- */
.how-section {
  padding: 60px 0;
  background: var(--bg-white);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 20px;
}
.step-num {
  display: inline-block;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}
.step-card h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}

/* ---- FAQ ---- */
.faq-section {
  padding: 60px 0;
  background: var(--bg-cream);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Final CTA ---- */
.final-cta {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}
.final-cta h2 {
  font-size: 28px;
  color: var(--bg-white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.final-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ---- Footer ---- */
.lp-footer {
  padding: 24px 0 30px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.lp-footer .footer-meta {
  margin-top: 8px;
}
.lp-footer a { color: rgba(255,255,255,0.7); }
.lp-footer a:hover { color: var(--gold); }
.lp-footer span { margin: 0 8px; }

/* ---- Mobile Sticky CTA ---- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  display: flex;
  z-index: 99;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  border-top: 1px solid var(--border-light);
}
.mobile-sticky-cta a {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-cta-call {
  color: var(--text-primary);
  border-right: 1px solid var(--border-light);
}
.mobile-cta-wa {
  color: var(--whatsapp);
  border-right: 1px solid var(--border-light);
}
.mobile-cta-form {
  color: var(--bg-white);
  background: var(--gold);
}

/* ---- Thank You Page ---- */
.thank-you-page {
  background: var(--bg-cream);
  padding-bottom: 30px;
}
.thank-you-hero {
  background: var(--bg-white);
  padding: 50px 0;
  text-align: center;
}
.ty-checkmark {
  margin: 0 auto 20px;
  display: inline-block;
}
.thank-you-hero h1 {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}
.ty-lead {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ty-quick-actions {
  background: var(--bg-cream);
  padding: 24px 20px;
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
}
.ty-quick-actions p { margin-bottom: 16px; }

.ty-next-section {
  padding: 50px 0;
}
.ty-next-section h2 {
  font-size: 26px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 30px;
}
.ty-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.ty-step {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.ty-step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: var(--gold);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.ty-step h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.ty-step p {
  font-size: 14px;
  color: var(--text-body);
}

.ty-trust {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 50px 0;
  text-align: center;
}
.ty-trust h2 {
  color: var(--bg-white);
  font-size: 26px;
  margin-bottom: 8px;
}
.ty-sub {
  color: rgba(255,255,255,0.75);
  margin-bottom: 30px;
}
.ty-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.ty-trust-item {
  padding: 20px 10px;
}
.ty-trust-item strong {
  display: block;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 800;
}
.ty-trust-item span {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.ty-explore { padding: 40px 0; background: var(--bg-white); }
.ty-explore h3 { text-align: center; font-size: 22px; margin-bottom: 24px; color: var(--text-primary); }
.ty-explore-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 700px; margin: 0 auto; }
.ty-explore-card {
  background: var(--bg-cream);
  padding: 18px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--gold);
  transition: transform 0.2s;
}
.ty-explore-card:hover { transform: translateX(4px); }
.ty-explore-card strong { color: var(--text-primary); font-size: 15px; }
.ty-explore-card span { color: var(--text-light); font-size: 13px; }
@media (min-width: 768px) {
  .ty-explore-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====================================================
   TABLET (768px+)
   ==================================================== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-sticky-cta { display: none; }
  
  .hero { min-height: 90vh; }
  .hero-content { padding: 80px 20px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 19px; }
  .hero-cta {
    flex-direction: row;
    gap: 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
  }
  .form-intro h2 { font-size: 36px; }
  .lead-form { padding: 32px; }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .cta-buttons {
    flex-direction: row;
  }
  
  .section-head h2 { font-size: 36px; }
  .thank-you-hero h1 { font-size: 42px; }
  .ty-steps { grid-template-columns: repeat(3, 1fr); }
  .ty-trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ====================================================
   DESKTOP (1024px+)
   ==================================================== */
@media (min-width: 1024px) {
  .hero { min-height: 640px; }
  .hero-title { font-size: 56px; }
  .hero-content { padding: 100px 20px; }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section-head h2 { font-size: 40px; }
  .final-cta h2 { font-size: 36px; }
}

/* ====================================================
   PERFORMANCE: REDUCED MOTION
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
