/*
Theme Name: RED Real Estate
Theme URI: https://redrealestate.in
Description: Custom theme for RED Real Estate Developers
Version: 2.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: #fff; color: #1a1a1a; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --navy:       #0d2137;
  --navy-mid:   #153047;
  --navy-light: #1e3f5a;
  --red:        #C0392B;
  --red-dark:   #922b21;
  --gold:       #e6a817;
  --white:      #ffffff;
  --off-white:  #f7f6f3;
  --border:     #e4e2dc;
  --text:       #1a1a1a;
  --muted:      #5a5a5a;
  --header-h:   70px;
  --radius:     8px;
}

/* HEADER */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); height: var(--header-h);
  box-shadow: 0 2px 16px rgba(13,33,55,0.22);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; background: var(--red);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; fill: white; }
.logo-text .brand {
  font-family: 'DM Serif Display', serif; font-size: 19px;
  color: var(--white); letter-spacing: -0.2px; display: block; line-height: 1;
}
.logo-text .tagline {
  font-size: 9px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; display: block;
}
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.72);
  padding: 6px 14px; border-radius: 6px; transition: all 0.15s; white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.main-nav a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-wa {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.82);
  background: transparent; transition: all 0.15s; white-space: nowrap;
}
.btn-wa:hover { border-color: #25D366; background: rgba(37,211,102,0.1); color: #7fe8a6; }
.btn-wa svg { width: 15px; height: 15px; fill: #25D366; flex-shrink: 0; }
.btn-call {
  display: flex; align-items: center; gap: 7px; padding: 9px 20px;
  border-radius: var(--radius); background: var(--red); color: var(--white);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s; border: none;
}
.btn-call:hover { background: var(--red-dark); }
.btn-call svg { width: 14px; height: 14px; fill: white; flex-shrink: 0; }
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 6px; border-radius: 6px; border: none; background: none;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 999; overflow-y: auto; padding: 8px 0;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: flex; align-items: center; padding: 16px 24px;
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.07); transition: all 0.15s;
}
.mobile-nav a:hover { color: white; background: rgba(255,255,255,0.05); }
.mobile-ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 24px 32px; }
.mobile-ctas .btn-call, .mobile-ctas .btn-wa { justify-content: center; padding: 15px; font-size: 15px; }

/* CONTENT */
#page-content { min-height: calc(100vh - var(--header-h)); }

/* FOOTER */
#site-footer { background: var(--navy); color: rgba(255,255,255,0.65); margin-top: 80px; }
.trust-strip {
  background: var(--navy-mid); border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  gap: 36px; padding: 20px 28px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); }
.trust-item svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px; padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-mark { margin-bottom: 16px; }
.footer-brand .brand { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--white); display: block; margin-bottom: 3px; }
.footer-brand .tagline { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.45); margin-bottom: 16px; max-width: 260px; }
.footer-address { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-bottom: 18px; }
.footer-contact-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 7px; }
.footer-contact-line svg { width: 14px; height: 14px; fill: var(--gold); flex-shrink: 0; }
.social-row { display: flex; gap: 8px; margin-top: 20px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 7px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.social-btn:hover { background: var(--red); border-color: var(--red); }
.social-btn svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.55); }
.social-btn:hover svg { fill: white; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.48); transition: color 0.15s; display: flex; align-items: center; gap: 7px; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-col ul li a::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--red); flex-shrink: 0; opacity: 0.7; }
.contact-label { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px; margin-top: 18px; }
.contact-label:first-child { margin-top: 0; }
.contact-val { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; display: block; margin-bottom: 4px; transition: color 0.15s; }
.contact-val:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.28); transition: color 0.15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.55); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .main-nav, .header-ctas { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 16px; }
  .logo-text .tagline { display: none; }
  .logo-text .brand { font-size: 16px; }
  .trust-strip { gap: 14px; padding: 16px; justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
  .footer-inner { padding: 0 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  #site-footer { margin-top: 48px; }
}

/* Override insurance — prevent Elementor/plugin CSS conflicts */
#site-footer .footer-col h4,
#site-footer h4 {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 18px !important;
  font-family: 'DM Sans', sans-serif !important;
}
#site-footer .footer-brand .brand {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 20px !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  display: block !important;
}
#site-footer .footer-brand .tagline {
  font-size: 10px !important;
  color: rgba(255,255,255,0.3) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  display: block !important;
  margin-bottom: 16px !important;
}
#site-footer .footer-brand p {
  font-size: 13px !important;
  color: rgba(255,255,255,0.45) !important;
  line-height: 1.7 !important;
}
#site-footer .footer-address {
  font-size: 12px !important;
  color: rgba(255,255,255,0.35) !important;
  line-height: 1.7 !important;
}

#site-header .main-nav a,
#site-header .main-nav a:visited {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
}
#site-header .main-nav a:hover,
#site-header .main-nav a.active {
  color: #ffffff !important;
}
#site-header .btn-call,
#site-header .btn-call:visited {
  color: #ffffff !important;
  background: #C0392B !important;
}
#site-header .btn-wa,
#site-header .btn-wa:visited {
  color: rgba(255,255,255,0.82) !important;
}
#site-footer .contact-label {
  color: #e6a817 !important;
  display: block !important;
}
#site-footer .footer-col ul li a,
#site-footer .footer-col ul li a:visited {
  color: rgba(255,255,255,0.5) !important;
}
#site-footer .footer-col h4 {
  color: #ffffff !important;
}
#site-footer .trust-item {
  color: rgba(255,255,255,0.6) !important;
}
#site-header .main-nav a,
#site-header .main-nav a:visited {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  font-size: 14px !important;
}
#site-header .main-nav a:hover,
#site-header .main-nav a.active {
  color: #ffffff !important;
}
#site-header .btn-call,
#site-header .btn-call:visited {
  color: #ffffff !important;
  background: #C0392B !important;
  text-decoration: none !important;
}
#site-header .btn-wa,
#site-header .btn-wa:visited {
  color: rgba(255,255,255,0.82) !important;
  text-decoration: none !important;
}
#site-footer .contact-label {
  color: #e6a817 !important;
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
#site-footer .footer-col ul li a,
#site-footer .footer-col ul li a:visited {
  color: rgba(255,255,255,0.5) !important;
  font-size: 13px !important;
}
#site-footer .footer-col ul li a:hover {
  color: rgba(255,255,255,0.9) !important;
}
#site-footer .trust-item {
  color: rgba(255,255,255,0.6) !important;
  font-size: 13px !important;
}
#site-footer .trust-strip {
  background: #153047 !important;
}
#site-footer .footer-bottom p,
#site-footer .footer-bottom-links a {
  color: rgba(255,255,255,0.28) !important;
  font-size: 12px !important;
}

/* ---- MOBILE DRAWER FIXES ---- */
.mobile-nav a,
.mobile-nav a:visited {
  color: rgba(255,255,255,0.88) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 18px 24px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
}

.mobile-nav a:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.06) !important;
}

/* WhatsApp button text in drawer */
.mobile-nav .btn-wa,
.mobile-nav .btn-wa:visited {
  color: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-bottom: 1px solid rgba(255,255,255,0.25) !important;
  padding: 15px 24px !important;
  justify-content: center !important;
  font-size: 15px !important;
  border-radius: 8px !important;
}

/* Remove excess bottom padding from drawer */
.mobile-nav {
  padding-bottom: 0 !important;
}

.mobile-ctas {
  margin: 20px 20px 28px !important;
}
