/*
Theme Name: CG Broker Landing Theme
Theme URI: https://example.com/cg-broker-theme
Author: ChatGPT
Author URI: https://openai.com
Description: A modern real-estate broker network landing page theme inspired by the supplied CG Broker reference design. Built for city-wise WhatsApp groups, property broker networks and lead generation.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cg-broker-theme
Tags: real-estate, landing-page, responsive, custom-logo, custom-menu
*/

:root {
  --cg-green: #08a64b;
  --cg-green-dark: #07833e;
  --cg-green-soft: #e8f8ef;
  --cg-dark: #0b1624;
  --cg-dark-2: #121c29;
  --cg-text: #132033;
  --cg-muted: #5b6675;
  --cg-border: rgba(14, 35, 58, 0.12);
  --cg-white: #ffffff;
  --cg-shadow: 0 14px 38px rgba(4, 20, 35, 0.15);
  --cg-shadow-soft: 0 8px 24px rgba(4, 20, 35, 0.10);
  --cg-radius-xl: 24px;
  --cg-radius-lg: 16px;
  --cg-radius-md: 12px;
  --cg-container: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cg-text);
  background: #f7f9fb;
  line-height: 1.55;
}

img, svg { max-width: 100%; height: auto; }

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

button, input, textarea { font: inherit; }

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  color: #fff;
  background: var(--cg-dark);
  border-radius: 10px;
}

.cg-container {
  width: min(100% - 36px, var(--cg-container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(4, 22, 38, 0.10);
  box-shadow: 0 8px 22px rgba(3, 15, 28, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
}

.brand-mark {
  width: 62px;
  flex: 0 0 62px;
  color: var(--cg-green);
}

.brand-title {
  display: block;
  font-size: 26px;
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--cg-dark);
}

.brand-title .green { color: var(--cg-green); }

.brand-tagline {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  line-height: 1;
  color: var(--cg-muted);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-navigation { flex: 1; }

.main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 74px;
  color: #061222;
  font-size: 14px;
  font-weight: 800;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--cg-green); }

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 0;
  height: 2px;
  background: var(--cg-green);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .is-active::after { width: 44px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.call-block {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
}

.call-icon {
  display: grid;
  place-items: center;
  color: var(--cg-green);
}

.call-number {
  display: block;
  font-size: 15px;
  line-height: 1.05;
  color: #071525;
  font-weight: 900;
}

.call-label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--cg-muted);
  font-weight: 700;
}

.cg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--cg-green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(8, 166, 75, 0.20);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cg-btn:hover {
  background: var(--cg-green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(8, 166, 75, 0.25);
}

.cg-btn-outline {
  background: rgba(255, 255, 255, 0.80);
  color: var(--cg-dark);
  border-color: rgba(4, 22, 38, 0.25);
  box-shadow: none;
}

.cg-btn-outline:hover {
  background: #fff;
  color: var(--cg-dark);
  border-color: rgba(4, 22, 38, 0.30);
  box-shadow: var(--cg-shadow-soft);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--cg-dark);
  color: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 435px;
  padding: 46px 0 28px;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.90) 29%, rgba(255,255,255,0.40) 49%, rgba(255,255,255,0.18) 100%),
    url('assets/images/hero-skyline.svg');
  background-size: cover;
  background-position: center bottom;
  border-bottom: 1px solid rgba(4, 22, 38, 0.08);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(255,255,255,0.96), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: 44px;
}

.hero-kicker {
  width: 36px;
  height: 4px;
  margin: 15px 0 14px;
  background: var(--cg-green);
  border-radius: 999px;
}

.hero-title {
  margin: 0;
  color: var(--cg-dark);
  font-size: clamp(54px, 5.2vw, 82px);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-title span { color: var(--cg-green); }

.hero-subtitle {
  margin: 14px 0 0;
  max-width: 480px;
  color: var(--cg-dark);
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 460px;
  margin: 23px 0 0;
  color: #172334;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 550;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 470px;
  margin-top: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid rgba(4, 22, 38, 0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 12px 28px rgba(4, 22, 38, 0.12);
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--cg-green);
  background: var(--cg-green-soft);
  border-radius: 10px;
}

.stat-number {
  display: block;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  color: #071525;
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.05;
  color: #263244;
  font-weight: 750;
}

.video-card {
  position: relative;
  overflow: hidden;
  min-height: 375px;
  border: 4px solid rgba(255,255,255,0.86);
  border-radius: 19px;
  background: #07101a;
  box-shadow: var(--cg-shadow);
}

.video-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(4, 12, 22, 0.98), rgba(5, 14, 25, 0.78) 41%, rgba(4, 12, 22, 0.24)), url('assets/images/video-thumb.svg');
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.video-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 0;
  color: #fff;
}

.video-channel {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 850;
}

.channel-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--cg-green);
  background: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.video-controls {
  display: flex;
  gap: 28px;
  align-items: start;
  color: rgba(255,255,255,0.94);
  font-size: 12px;
  font-weight: 700;
}

.video-control {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.video-content {
  position: relative;
  z-index: 2;
  padding: 62px 35px 30px;
  color: #fff;
}

.video-title {
  margin: 0;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.video-title span { color: #38d66f; }

.video-tagline {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--cg-green);
  border-radius: 4px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.play-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 64px;
  background: #ff0000;
  color: #fff;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.video-icons {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 80px);
  gap: 18px;
  color: #fff;
}

.video-icon-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.video-icon-item .icon-wrap {
  color: #4ada79;
}

.section-row {
  padding: 20px 0 24px;
  background: #fff;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 1px minmax(380px, 0.85fr);
  gap: 30px;
}

.section-title {
  margin: 0 0 14px;
  color: #0b1624;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-title span { color: var(--cg-green); }

.city-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
}

.city-card {
  overflow: hidden;
  border: 1px solid rgba(4, 22, 38, 0.11);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(4, 22, 38, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 28px rgba(4, 22, 38, 0.16);
}

.city-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35/1;
  object-fit: cover;
}

.city-body {
  padding: 10px 10px 12px;
  text-align: center;
}

.city-name {
  margin: 0;
  color: #0b1624;
  font-size: 15px;
  font-weight: 950;
}

.city-place {
  margin: 2px 0 0;
  color: var(--cg-green);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.city-members {
  margin: 2px 0 8px;
  color: #2f3948;
  font-size: 11px;
  font-weight: 650;
}

.city-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 11px;
  border-radius: 5px;
  color: #fff;
  background: var(--cg-green);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(8, 166, 75, 0.20);
}

.city-join:hover { background: var(--cg-green-dark); color: #fff; }

.view-all-wrap { text-align: center; margin-top: 11px; }

.view-all-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 182px;
  min-height: 28px;
  border: 1px solid rgba(4,22,38,0.28);
  border-radius: 7px;
  background: #fff;
  color: #0b1624;
  font-size: 11px;
  font-weight: 800;
}

.split-line { background: rgba(4,22,38,0.13); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.why-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 12px;
}

.why-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--cg-green);
  background: var(--cg-green-soft);
  border-radius: 50%;
}

.why-title {
  margin: 1px 0 2px;
  font-size: 13px;
  line-height: 1.2;
  color: #0b1624;
  font-weight: 950;
}

.why-text {
  margin: 0;
  color: #384252;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 620;
}


.all-cities-section {
  padding: 42px 0 50px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  border-top: 1px solid rgba(4,22,38,0.08);
}

.all-cities-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  scroll-margin-top: 94px;
}

.all-cities-desc {
  max-width: 650px;
  margin: -4px 0 0;
  color: var(--cg-muted);
  font-size: 15px;
  font-weight: 650;
}

.city-search-box {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(4,22,38,0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(4,22,38,0.08);
  overflow: hidden;
}

.city-search-box span {
  display: grid;
  place-items: center;
  color: var(--cg-green);
}

.city-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 14px 13px 0;
  color: var(--cg-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
}

.city-search-box input::placeholder { color: #7a8594; }

.all-city-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.all-city-card {
  border-radius: 10px;
}

.all-city-card[hidden] { display: none; }

.city-search-empty {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px dashed rgba(4,22,38,0.20);
  border-radius: 14px;
  color: var(--cg-muted);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.info-band {
  padding: 62px 0;
  background: linear-gradient(135deg, #f3fff8, #ffffff 48%, #edf8ff);
  border-top: 1px solid rgba(4,22,38,0.08);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.info-title {
  margin: 0;
  max-width: 540px;
  color: var(--cg-dark);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.info-title span { color: var(--cg-green); }

.info-desc {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--cg-muted);
  font-size: 17px;
  font-weight: 560;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 22px 18px;
  border: 1px solid rgba(4,22,38,0.10);
  border-radius: var(--cg-radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(4,22,38,0.08);
}

.step-number {
  position: absolute;
  right: 12px;
  top: 2px;
  color: rgba(8,166,75,0.10);
  font-size: 68px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.step-card .icon-wrap {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--cg-green);
  background: var(--cg-green-soft);
  border-radius: 12px;
}

.step-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  color: var(--cg-dark);
  font-size: 16px;
  font-weight: 950;
}

.step-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--cg-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.site-footer {
  background: radial-gradient(circle at 10% 20%, rgba(8,166,75,0.20), transparent 27%), linear-gradient(145deg, #0b141f, #111a25);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(140px, 0.7fr) minmax(240px, 0.9fr) minmax(240px, 0.95fr) minmax(220px, 0.8fr);
  gap: 38px;
  padding: 22px 0 26px;
}

.footer-brand .brand-link { min-width: 0; color: #fff; }
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-tagline { color: rgba(255,255,255,0.66); }

.footer-desc {
  margin: 10px 0 0;
  max-width: 310px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 560;
}

.footer-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li { margin-top: 7px; }
.footer-links a { color: rgba(255,255,255,0.80); font-size: 13px; font-weight: 650; }
.footer-links a:hover { color: #fff; }

.city-columns {
  columns: 2;
  column-gap: 28px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 650;
}

.footer-contact li + li { margin-top: 8px; }
.footer-contact .icon-wrap { color: #6ee89a; }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--cg-green);
}

.social-btn.youtube { background: #ff0000; }
.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }

.youtube-box p {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 600;
}

.youtube-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #ff0000;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.footer-bottom {
  background: var(--cg-green);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
}

.footer-bottom-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-bottom a { font-weight: 700; }

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 90;
  display: grid;
  gap: 13px;
}

.float-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cg-green);
  box-shadow: 0 12px 24px rgba(4,22,38,0.23);
}

.float-btn.call { background: #0cab58; }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #152033;
  color: #fff;
  box-shadow: 0 12px 24px rgba(4,22,38,0.25);
}

.entry-content {
  width: min(100% - 36px, 920px);
  margin: 42px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid rgba(4,22,38,0.10);
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .main-navigation ul { gap: 20px; }
  .header-actions .call-block { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .video-card { max-width: 840px; }
  .content-split { grid-template-columns: 1fr; }
  .split-line { display: none; }
  .city-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .all-city-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .footer-main { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .site-header { position: relative; }
  .header-inner { min-height: 70px; }
  .brand-link { min-width: auto; }
  .brand-title { font-size: 22px; }
  .brand-mark { width: 52px; flex-basis: 52px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 6px);
    display: none;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(4,22,38,0.10);
    border-radius: 14px;
    box-shadow: var(--cg-shadow);
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 0; }
  .main-navigation a { min-height: 42px; width: 100%; }
  .main-navigation a::after { display: none; }
  .header-actions .cg-btn { display: none; }
  .hero-section { padding-top: 34px; }
  .hero-stats { grid-template-columns: 1fr; }
  .video-icons { position: relative; left: auto; bottom: auto; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 0 22px 22px; }
  .video-content { padding: 44px 24px 20px; }
  .video-tagline { font-size: 17px; }
  .play-button { width: 74px; height: 54px; }
  .city-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .all-cities-head { grid-template-columns: 1fr; align-items: start; }
  .all-city-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .cg-container { width: min(100% - 24px, var(--cg-container)); }
  .hero-title { font-size: 52px; }
  .hero-subtitle { font-size: 25px; }
  .hero-actions { display: grid; }
  .cg-btn { width: 100%; }
  .video-card { min-height: 430px; }
  .video-top { padding: 16px 16px 0; }
  .video-controls { display: none; }
  .video-title { font-size: 42px; }
  .video-icons { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .city-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .city-card { border-radius: 7px; }
  .city-card img { aspect-ratio: 1.18/1; }
  .city-body { padding: 6px 4px 7px; }
  .city-name { font-size: 10px; line-height: 1.15; }
  .city-place { font-size: 7.8px; line-height: 1.1; }
  .city-members { margin: 1px 0 5px; font-size: 8.5px; line-height: 1.15; }
  .city-join { min-height: 22px; padding: 4px 5px; font-size: 8.5px; gap: 2px; }
  .city-join svg { width: 10px; height: 10px; }
  .all-cities-section { padding: 28px 0 34px; }
  .city-search-box { grid-template-columns: 36px 1fr; min-height: 46px; }
  .city-search-box input { font-size: 12px; }
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; justify-content: center; padding: 10px 0; }
  .floating-actions, .back-to-top { right: 10px; }
  .float-btn, .back-to-top { width: 50px; height: 50px; }
}

/* v1.3 updates: dedicated all cities page, mobile quick menu, fixed city card button alignment */
.city-grid,
.all-city-grid {
  align-items: stretch;
}

.city-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.city-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.city-members {
  flex: 0 0 auto;
}

.city-join {
  align-self: center;
  margin-top: auto;
}

.all-cities-hero {
  padding: 56px 0 38px;
  background: linear-gradient(135deg, rgba(8,166,75,0.10), #ffffff 46%, rgba(237,248,255,0.95));
  border-bottom: 1px solid rgba(4,22,38,0.08);
}

.all-cities-hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.all-cities-eyebrow {
  margin: 0 0 8px;
  color: var(--cg-green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.all-cities-main-title {
  margin: 0;
  max-width: 920px;
  color: var(--cg-dark);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.all-cities-main-title span {
  color: var(--cg-green);
}

.all-cities-search-box {
  width: min(100%, 620px);
  margin-top: 24px;
  text-align: left;
}

.all-cities-page-section {
  border-top: 0;
  padding-top: 34px;
}

.mobile-menu-extra {
  display: none;
}

@media (max-width: 860px) {
  .mobile-menu-extra {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(4,22,38,0.10);
  }

  .mobile-menu-extra-title {
    display: block;
    margin: 0 4px 8px;
    color: var(--cg-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-menu-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-menu-extra-grid a {
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid rgba(8,166,75,0.20);
    border-radius: 10px;
    background: var(--cg-green-soft);
    color: var(--cg-dark);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-menu-extra-grid a::after {
    display: none;
  }

  .all-cities-hero {
    padding: 40px 0 28px;
  }
}

@media (max-width: 560px) {
  .all-cities-main-title {
    font-size: 31px;
  }

  .all-cities-page-section .all-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .all-cities-page-section .city-card {
    border-radius: 7px;
  }
}

/* v1.4 updates: Govt/Pvt project posts and Post Property lead form */
.main-navigation ul { gap: 18px; }
.main-navigation a { font-size: 13px; }

.projects-section,
.property-form-section,
.single-project-content-section {
  padding: 38px 0 54px;
  background: #f7f9fb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(4, 22, 38, 0.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--cg-shadow-soft);
}

.project-thumb {
  display: block;
  background: var(--cg-green-soft);
}

.project-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.project-title {
  margin: 0 0 8px;
  color: var(--cg-dark);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.project-excerpt {
  color: var(--cg-muted);
  font-size: 14px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.project-pdf-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.empty-state {
  padding: 34px;
  border: 1px dashed rgba(8, 166, 75, 0.35);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.single-project-hero {
  padding: 58px 0 34px;
  background: linear-gradient(135deg, rgba(8,166,75,0.12), #ffffff 50%, rgba(232,248,239,0.92));
}

.single-project-inner {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.single-project-title {
  margin: 0;
  max-width: 980px;
  color: var(--cg-dark);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.single-project-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}

.single-project-featured img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--cg-shadow-soft);
}

.single-project-content {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--cg-shadow-soft);
}

.property-form-wrap {
  width: min(100% - 36px, 920px);
}

.property-submit-form {
  padding: 24px;
  border: 1px solid rgba(4, 22, 38, 0.10);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--cg-shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.property-submit-form label {
  display: grid;
  gap: 7px;
  color: var(--cg-dark);
  font-size: 13px;
  font-weight: 900;
}

.property-submit-form input,
.property-submit-form textarea {
  width: 100%;
  border: 1px solid rgba(4, 22, 38, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--cg-text);
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
}

.property-submit-form input:focus,
.property-submit-form textarea:focus {
  border-color: var(--cg-green);
  box-shadow: 0 0 0 4px rgba(8,166,75,0.10);
}

.form-full { grid-column: 1 / -1; }

.property-submit-btn { margin-top: 18px; }

.form-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 850;
}

.form-notice-success {
  border: 1px solid rgba(8,166,75,0.22);
  background: var(--cg-green-soft);
  color: var(--cg-green-dark);
}

.form-notice-error {
  border: 1px solid rgba(190,30,30,0.22);
  background: #fff2f2;
  color: #9f2020;
}

@media (max-width: 1180px) {
  .main-navigation ul { gap: 12px; }
  .main-navigation a { font-size: 12px; }
}

@media (max-width: 920px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-project-content-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-body { padding: 14px; }
  .project-title { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .property-submit-form { padding: 16px; border-radius: 16px; }
  .property-form-wrap { width: min(100% - 24px, 920px); }
}


/* v1.5 update: show mobile quick options in desktop primary navigation when custom menu is used */
@media (max-width: 860px) {
  .main-navigation li.desktop-quick-menu-item {
    display: none !important;
  }
}
