/* ==============================================================
   Theme: SG Homes
   Author: Ravi Ramavath
   Description: Custom theme for SG Homes
   Version: 1.0
================================================================= */

/* === Global Layout === */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Arial, sans-serif;
}

body {
  padding-top: 80px; /* prevent content hidden behind fixed header */
}

body > .site-footer {
  margin-top: auto; /* sticky footer */
}

/* === Header Styles === */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  max-height: 60px;
  height: auto;
  width: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .logo img {
    max-height: 40px;
  }
}

/* === Navigation === */
.main-nav {
  display: flex;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

/* Menu Item Glow on Click */
.nav-menu li a.glow {
  color: #ff4500;
  text-shadow: 0 0 8px #ff4500, 0 0 15px #ff6347, 0 0 20px #ff8c00;
}

/* Menu Item Hover Neon Glow (Pulsing) */
.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: #ff4500; /* 🔥 brand color */
  animation: glowPulse 1s infinite alternate;
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 5px #ff4500, 0 0 10px #ff6347, 0 0 15px #ff8c00;
  }
  100% {
    text-shadow: 0 0 15px #ff4500, 0 0 25px #ff6347, 0 0 35px #ff8c00;
  }
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Nav */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 15px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* === Footer Styles (Header-Matching) === */
.site-footer {
  background: #fff;
  color: #333;
  padding: 20px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.footer-info,
.footer-map {
  flex: 1 1 300px;
}

.footer-info h4,
.footer-map h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.footer-info p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.footer-info a {
  color: #ff4500; /* 🔥 brand color */
  text-decoration: none;
  transition: color 0.3s;
}

.footer-info a:hover {
  color: #ff6347; /* lighter brand */
}

/* Map Preview */
.map-preview {
  position: relative;
  cursor: pointer;
  max-width: 300px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.map-preview img {
  width: 100%;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(255,255,255,0.8);
  color: #333;
  text-align: center;
  font-size: 12px;
  padding: 4px 0;
}

/* Map Modal */
.map-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  overflow: auto;
  padding-top: 50px;
}

.map-modal-content {
  margin: auto;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  max-width: 90%;
}

.map-close {
  color: #333;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

/* Footer Copy */
.footer-copy {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #777;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 10px;
}

/* Dropdown Menu */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}
.menu li {
  position: relative;
}
.menu li a {
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}
.menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
  list-style: none;
  min-width: 180px;
  z-index: 9999;
}
.menu li:hover > .sub-menu {
  display: block;
}
.menu .sub-menu li a {
  padding: 8px 15px;
  color: #333;
}
.menu .sub-menu li a:hover {
  background: #ff4500; /* 🔥 brand hover */
  color: #fff;
}

/* === Force Brand Colors on Menu & Footer Links === */

/* Top navigation */
.nav-menu li a {
  color: #333 !important; /* default state */
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: #ff4500 !important; /* brand color */
}

/* Dropdown menu links */
.menu .sub-menu li a {
  color: #333 !important;
}

.menu .sub-menu li a:hover {
  background: #ff4500 !important; /* brand hover background */
  color: #fff !important;
}

/* Footer links */
.footer-info a {
  color: #ff4500 !important;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-info a:hover {
  color: #ff6347 !important;
}
/* === Force Menu Link Colors === */
.main-nav a,
.nav-menu a,
.menu a {
  color: #ff4500 !important; /* 🔥 brand color for default menu text */
  text-decoration: none !important;
}

.main-nav a:hover,
.nav-menu a:hover,
.menu a:hover,
.main-nav .current-menu-item > a,
.nav-menu .current-menu-item > a,
.menu .current-menu-item > a {
  color: #ff4500 !important; /* 🔥 brand hover + active */
}






/* === Social Section === */
.social-section {
    text-align: center;
    margin: 40px 0;
}

.social-title {
    font-size: 28px;
    font-weight: bold;
    color: #ff4500; /* 🔥 Brand color */
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-family: 'Poppins', sans-serif;
}

/* === Social Buttons === */
.social-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff8c00, #ff4500); /* brand gradient */
    box-shadow: 0 6px 15px rgba(0,0,0,0.25), inset 0 2px 6px rgba(255,255,255,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 20px rgba(255,215,0,0.8);
}
.social-btn i {
    position: relative;
    z-index: 1;
}

/* === Brand Color Overrides per Network === */
.social-btn.fb { background: linear-gradient(135deg, #3b5998, #192f6a); }
.social-btn.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.social-btn.tw { background: linear-gradient(135deg, #1da1f2, #0a84c1); }
.social-btn.li { background: linear-gradient(135deg, #0077b5, #004182); }
.social-btn.yt { background: linear-gradient(135deg, #ff0000, #cc0000); }


