@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Capital Gain Real Estate — Shared Site Stylesheet
   Load this once, sitewide (Elementor > Site Settings > Custom CSS, or theme).
   All classes are namespaced with cg- to avoid collisions with the theme,
   the header, and the footer you are building separately.
   ========================================================================== */

/* --- 1. Design tokens ----------------------------------------------------- */
:root {
  --cg-royal: #3179FF;   /* primary actions, links */
  --cg-sky:   #4FC2F8;   /* hover and small accents */
  --cg-deep:  #0277BD;   /* footer, strong headings, stat figures */
  --cg-ink:   #0B1B2B;   /* headings */
  --cg-body:  #51606E;   /* paragraph text */
  --cg-muted: #7C8A99;   /* captions, source lines */

  --cg-bg:        #FFFFFF;
  --cg-bg-soft:   #F1F6FC; /* light blue-grey section separation */
  --cg-bg-softer: #F7FAFE;
  --cg-border:    #E4ECF5;
  --cg-wa:        #25D366; /* WhatsApp green, floating button only */

  --cg-radius-sm: 12px;
  --cg-radius:    18px;
  --cg-radius-lg: 26px;

  --cg-shadow-sm: 0 4px 14px rgba(13, 40, 74, .06);
  --cg-shadow:    0 14px 38px rgba(13, 40, 74, .09);

  --cg-maxw: 1180px;
  --cg-gutter: clamp(20px, 5vw, 40px);

  --cg-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --cg-font-body:    'Inter', system-ui, sans-serif;
}

/* --- 2. Base (scoped to the homepage wrapper) ----------------------------- */
.cg-home,
.cg-home * { box-sizing: border-box; }

.cg-home {
  font-family: var(--cg-font-body);
  color: var(--cg-body);
  background: var(--cg-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.cg-home img { max-width: 100%; display: block; }

.cg-home h1, .cg-home h2, .cg-home h3 {
  font-family: var(--cg-font-display);
  color: var(--cg-ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

.cg-home p { margin: 0; }

/* --- 3. Layout helpers ---------------------------------------------------- */
.cg-container {
  width: 100%;
  max-width: var(--cg-maxw);
  margin-inline: auto;
  padding-inline: var(--cg-gutter);
}

.cg-section { padding-block: clamp(56px, 8vw, 104px); }
.cg-section--soft { background: var(--cg-bg-soft); }
.cg-section--softer { background: var(--cg-bg-softer); }

.cg-center { text-align: center; }
.cg-measure { max-width: 720px; margin-inline: auto; }

/* --- 4. Shared type styles ------------------------------------------------ */
.cg-eyebrow {
  font-family: var(--cg-font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cg-royal);
  margin: 0 0 14px;
}

.cg-h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 800; }
.cg-h3 { font-size: 1.18rem; font-weight: 700; }

.cg-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--cg-body);
  line-height: 1.7;
}

/* --- 5. Buttons and links ------------------------------------------------- */
.cg-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--cg-font-display); font-weight: 700;
  font-size: 1rem; line-height: 1;
  padding: .95rem 1.65rem; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .16s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.cg-btn svg { width: 18px; height: 18px; flex: none; }
.cg-btn--primary { background: var(--cg-royal); color: #fff; box-shadow: 0 10px 24px rgba(49,121,255,.26); }
.cg-btn--primary:hover { background: #1f63e6; transform: translateY(-1px); }
.cg-btn--secondary { background: #fff; color: var(--cg-ink); border-color: var(--cg-border); }
.cg-btn--secondary:hover { border-color: var(--cg-royal); color: var(--cg-royal); transform: translateY(-1px); }
.cg-btn--onblue { background: #fff; color: var(--cg-royal); }
.cg-btn--onblue:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cg-btn--onblue-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cg-btn--onblue-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-1px); }

.cg-textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--cg-font-display); font-weight: 700; font-size: .95rem;
  color: var(--cg-royal); text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.cg-textlink svg { width: 16px; height: 16px; }
.cg-textlink:hover { color: var(--cg-deep); gap: .7rem; }

/* --- 6. Hero -------------------------------------------------------------- */
.cg-hero { padding-block: clamp(48px, 7vw, 92px); }
.cg-hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.cg-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #EAF2FF; color: var(--cg-royal);
  font-family: var(--cg-font-display); font-weight: 700;
  font-size: .82rem; padding: .5rem .95rem; border-radius: 999px;
  margin-bottom: 22px;
}
.cg-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cg-sky); }
.cg-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.cg-hero h1 .cg-accent { color: var(--cg-royal); }
.cg-hero__sub { font-size: clamp(1.04rem, 1.5vw, 1.22rem); max-width: 560px; margin-bottom: 40px; }
.cg-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.cg-hero__media {
  position: relative; border-radius: var(--cg-radius-lg);
  overflow: hidden; box-shadow: var(--cg-shadow);
  aspect-ratio: 5 / 4; background: var(--cg-bg-soft);
}
.cg-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- 7. Trust strip ------------------------------------------------------- */
.cg-trust { border-block: 1px solid var(--cg-border); background: var(--cg-bg-softer); }
.cg-trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-block: 26px;
}
.cg-trust__item { display: flex; align-items: center; gap: 12px; }
.cg-trust__icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: #EAF2FF; color: var(--cg-royal);
}
.cg-trust__icon svg { width: 20px; height: 20px; }
.cg-trust__item span {
  font-family: var(--cg-font-display); font-weight: 600;
  font-size: .92rem; color: var(--cg-ink); line-height: 1.35;
}

/* --- 8. Why (statement block) -------------------------------------------- */
.cg-why__body p { font-size: clamp(1.05rem, 1.55vw, 1.28rem); line-height: 1.72; margin-top: 20px; }
.cg-why__body p:first-child { margin-top: 26px; }

/* --- 9. Service cards ----------------------------------------------------- */
.cg-grid-head { max-width: 640px; margin-bottom: 44px; }
.cg-grid-head .cg-lead { margin-top: 14px; }

.cg-services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cg-card {
  background: #fff; border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius); padding: 30px;
  box-shadow: var(--cg-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cg-card:hover { transform: translateY(-4px); box-shadow: var(--cg-shadow); border-color: #D5E3F4; }
.cg-card__icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #EAF2FF, #E2F4FE); color: var(--cg-royal);
}
.cg-card__icon svg { width: 24px; height: 24px; }
.cg-card h3 { margin-bottom: 10px; }
.cg-card p { font-size: .98rem; margin-bottom: 18px; }

/* --- 10. Communities ------------------------------------------------------ */
.cg-areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cg-area {
  position: relative; display: block; border-radius: var(--cg-radius);
  overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none;
  background: var(--cg-bg-soft); box-shadow: var(--cg-shadow-sm);
}
.cg-area img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cg-area::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,43,0) 38%, rgba(11,27,43,.78) 100%);
}
.cg-area__name {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-family: var(--cg-font-display); font-weight: 700;
  font-size: 1.12rem; color: #fff; letter-spacing: -0.01em;
}
.cg-area:hover img { transform: scale(1.06); }
.cg-area:focus-visible { outline: 3px solid var(--cg-sky); outline-offset: 3px; }
.cg-areas__note { margin-top: 44px; font-size: 1.02rem; text-align: center; }
.cg-areas__note a { color: var(--cg-royal); font-weight: 600; text-decoration: none; }
.cg-areas__note a:hover { text-decoration: underline; }

/* --- 11. Data centerpiece (signature) ------------------------------------ */
.cg-data { background:
  radial-gradient(120% 120% at 100% 0%, #EAF3FF 0%, rgba(234,243,255,0) 55%),
  var(--cg-bg-soft); }
.cg-data__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.cg-stat {
  background: #fff; border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius); padding: 28px 24px;
  box-shadow: var(--cg-shadow-sm); position: relative; overflow: hidden;
}
.cg-stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--cg-royal), var(--cg-sky)); }
.cg-stat__figure {
  font-family: var(--cg-font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--cg-deep);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.cg-stat__label { font-size: .95rem; color: var(--cg-body); line-height: 1.5; margin-bottom: 16px; }
.cg-stat__source {
  font-size: .76rem; color: var(--cg-muted); font-weight: 500;
  padding-top: 12px; border-top: 1px solid var(--cg-border);
}
.cg-data__note { margin: 48px auto 0; max-width: 760px; font-size: 1.04rem; line-height: 1.7; text-align: center; }

/* --- 12. How we work (numbered steps) ------------------------------------ */
.cg-steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; position: relative; }
.cg-step { position: relative; }
.cg-step__num {
  font-family: var(--cg-font-display); font-weight: 800; font-size: 2.4rem;
  color: var(--cg-sky); line-height: 1; margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.cg-step h3 { margin-bottom: 8px; }
.cg-step p { font-size: .96rem; }

/* --- 13. Founder ---------------------------------------------------------- */
.cg-founder__grid {
  display: grid; grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.cg-founder__photo {
  width: 280px; max-width: 100%; aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; overflow: hidden;
  border: 6px solid var(--cg-royal); box-shadow: var(--cg-shadow);
  background: var(--cg-bg-soft);
}
.cg-founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.cg-founder__body p { font-size: 1.05rem; line-height: 1.72; margin-top: 18px; }
.cg-founder__body .cg-textlink { margin-top: 24px; }

/* --- 14. FAQ accordion ---------------------------------------------------- */
.cg-faq__list { max-width: 820px; margin: 44px auto 0; }
.cg-faq__item { border-bottom: 1px solid var(--cg-border); }
.cg-faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 24px 4px;
  font-family: var(--cg-font-display); font-weight: 700; font-size: 1.08rem; color: var(--cg-ink);
}
.cg-faq__icon { flex: none; width: 24px; height: 24px; position: relative; transition: transform .25s ease; color: var(--cg-royal); }
.cg-faq__icon::before, .cg-faq__icon::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.cg-faq__icon::before { width: 14px; height: 2.5px; }
.cg-faq__icon::after  { width: 2.5px; height: 14px; transition: opacity .25s ease; }
.cg-faq__q[aria-expanded="true"] .cg-faq__icon::after { opacity: 0; }
.cg-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.cg-faq__a p { padding: 0 4px 24px; font-size: 1rem; line-height: 1.7; max-width: 720px; }

/* --- 15. Final CTA band --------------------------------------------------- */
.cg-cta { background: linear-gradient(125deg, var(--cg-royal) 0%, var(--cg-deep) 100%); }
.cg-cta__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.cg-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.cg-cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; line-height: 1.65; margin: 18px 0 30px; }
.cg-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- 16. Floating WhatsApp (mobile) -------------------------------------- */
.cg-wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--cg-wa); color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .18s ease;
}
.cg-wa-float svg { width: 30px; height: 30px; }
.cg-wa-float:hover { transform: scale(1.06); }

/* --- 17. Scroll reveal (gentle, optional) -------------------------------- */
.cg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.cg-reveal.cg-in { opacity: 1; transform: none; }

/* --- 18. Accessibility ---------------------------------------------------- */
.cg-home a:focus-visible,
.cg-home button:focus-visible { outline: 3px solid var(--cg-sky); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  .cg-home *, .cg-home *::before, .cg-home *::after {
    transition: none !important; animation: none !important; scroll-behavior: auto !important;
  }
  .cg-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   19. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cg-areas__grid { grid-template-columns: repeat(2, 1fr); }
  .cg-data__grid  { grid-template-columns: repeat(2, 1fr); }
  .cg-steps__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 860px) {
  .cg-hero__grid { grid-template-columns: 1fr; }
  .cg-hero__media { order: -1; aspect-ratio: 16 / 11; }
  .cg-founder__grid { grid-template-columns: 1fr; text-align: center; }
  .cg-founder__body .cg-textlink { margin-inline: auto; }
  .cg-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .cg-wa-float { display: grid; }
}

@media (max-width: 600px) {
  .cg-services__grid { grid-template-columns: 1fr; }
  .cg-areas__grid { grid-template-columns: 1fr; }
  .cg-data__grid  { grid-template-columns: 1fr; }
  .cg-steps__grid { grid-template-columns: 1fr; }
  .cg-trust__grid { grid-template-columns: 1fr; }
  .cg-hero__cta .cg-btn, .cg-cta__btns .cg-btn { width: 100%; justify-content: center; }
  .cg-card { padding: 26px; }
}
