/* ============================================
   KEYSTONE ESTATES — Website Stylesheet
   Colors: Navy #1B2A4A | Gold #C9A84C | White #FFFFFF
   ============================================ */

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

:root {
  --navy: #1B2A4A;
  --navy-light: #243560;
  --gold: #C9A84C;
  --gold-light: #E2C07A;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-400: #868E96;
  --gray-700: #343A40;
  --text: #1A1A2E;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg: 0 8px 48px rgba(27,42,74,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.10);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .btn { padding: 10px 20px; font-size: 14px; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2A4080 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.trust-icon { font-size: 16px; }

/* ---- PAIN ---- */
.pain {
  background: var(--gray-50);
  padding: 80px 0;
  text-align: center;
}
.pain h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 48px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.pain-icon { font-size: 28px; margin-bottom: 12px; }
.pain-card p { font-size: 15px; color: var(--gray-700); line-height: 1.5; }
.pain-cta {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

/* ---- SERVICES ---- */
.services {
  padding: 96px 0;
}
.services h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 52px;
  line-height: 1.2;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon { font-size: 32px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--gray-700); line-height: 1.6; }

/* ---- OFFER ---- */
.offer {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0;
}
.offer .section-label { background: rgba(201,168,76,0.15); }
.offer h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.offer-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin-bottom: 52px;
  line-height: 1.6;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.offer-item {
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  align-items: flex-start;
}
.offer-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.offer-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.offer-value {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.offer-item p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; margin-top: 6px; }

/* ---- GUARANTEES ---- */
.guarantees {
  padding: 96px 0;
  background: var(--gray-50);
}
.guarantees h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 52px;
  line-height: 1.2;
}
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.guarantee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.guarantee-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 12px;
}
.guarantee-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.guarantee-card p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 96px 0;
}
.how-it-works h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 52px;
  line-height: 1.2;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.step-content h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-content p { font-size: 16px; color: var(--gray-700); line-height: 1.6; }

/* ---- PRICING ---- */
.pricing {
  padding: 96px 0;
  background: var(--gray-50);
}
.pricing h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 52px;
  line-height: 1.2;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card-highlight {
  border-color: var(--gold);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}
.pricing-amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-400);
}
.pricing-card p { font-size: 14px; color: var(--gray-700); margin-bottom: 20px; line-height: 1.5; }
.pricing-card ul { list-style: none; }
.pricing-card ul li {
  font-size: 14px;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-note {
  text-align: center;
  font-size: 15px;
  color: var(--gray-400);
}

/* ---- WHO WE SERVE ---- */
.avatars {
  padding: 96px 0;
}
.avatars h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 52px;
  line-height: 1.2;
}
.avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.avatar-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
}
.avatar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.avatar-icon { font-size: 36px; margin-bottom: 14px; }
.avatar-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.avatar-card p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

/* ---- FAQ ---- */
.faq {
  padding: 96px 0;
  background: var(--gray-50);
}
.faq h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 52px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
}
.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: var(--gray-700); line-height: 1.6; }

/* ---- CONTACT / CTA ---- */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}
.contact .section-label { background: rgba(201,168,76,0.15); }
.contact h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.contact p {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact-note { font-size: 15px; color: rgba(255,255,255,0.55); }
.contact-note a { color: var(--gold); border-bottom: 1px solid rgba(201,168,76,0.3); }

/* ---- FOOTER ---- */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.55);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; opacity: 0.85; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 52px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-trust { flex-direction: column; align-items: center; gap: 16px; }
  .step { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; }
}
