/* ==========================================================================
   Manghalam Properties - Comprehensive Responsive Stylesheet
   Supports all modern devices: Mobile (320px - 576px), Tablets (577px - 991px),
   Laptops (992px - 1200px), and Large Desktops (1200px+)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Global Reset & Box Sizing
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  box-sizing: border-box !important;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: 100%;
}

#container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* --------------------------------------------------------------------------
   2. Fluid Wrapper & Media Elements
   -------------------------------------------------------------------------- */
.wrapper {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  box-sizing: border-box !important;
}

img {
  max-width: 100% !important;
  height: auto;
  display: inline-block;
}

iframe, embed, object, video {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

table {
  max-width: 100% !important;
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   3. Sticky Header & Sub-Header
   -------------------------------------------------------------------------- */
header {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: lavender !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

.sub-header {
  padding: 6px 0 !important;
  width: 100% !important;
}

.sub-header .wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.sub-header ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
}

.sub-header li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #ffffff !important;
}

.sub-header li:before {
  display: none !important;
}

.sub-header .socials {
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  gap: 8px !important;
}

/* --------------------------------------------------------------------------
   4. Upper Header, Logo & Mobile Menu Toggle
   -------------------------------------------------------------------------- */
.upper-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  padding: 12px 15px !important;
  background: transparent !important;
}

.upper-header::before, .upper-header::after {
  display: none !important;
}

.logo {
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 200px !important;
  display: flex !important;
  align-items: center !important;
}

.logo img {
  max-height: 55px !important;
  width: auto !important;
  height: auto !important;
}

/* Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: #203181;
  border: 1px solid #192766;
  width: 44px;
  height: 42px;
  min-width: 44px;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 9px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  outline: none;
  z-index: 100000;
  box-shadow: 0 2px 8px rgba(32, 49, 129, 0.25);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.mobile-menu-btn:hover {
  background: #bb241b;
  border-color: #a01f17;
}

.mobile-menu-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.mobile-menu-btn.active {
  background: #bb241b;
  border-color: #a01f17;
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Navigation (Desktop & Mobile)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 992px) {
  #nav {
    display: block !important;
    position: relative !important;
    float: right !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  #nav > select {
    display: none !important;
  }

  ul#navlist {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  ul#navlist > li {
    float: none !important;
    display: inline-block !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .menu-expand-icon {
    display: none !important;
  }
}

@media screen and (max-width: 991px) {
  .mobile-menu-btn {
    display: flex !important;
  }

  #nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 8px 0 16px 0 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-top: 3px solid #203181 !important;
  }

  #nav.mobile-open {
    display: block !important;
  }

  #nav > select {
    display: none !important;
  }

  /* Complete Superfish Reset for Mobile */
  .sf-menu,
  .sf-menu ul,
  .sf-menu li,
  .sf-menu a,
  .sf-menu .sub-menu,
  .sf-menu .sub-menu li,
  .sf-menu .sub-menu a {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    line-height: normal !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  ul#navlist {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
  }

  /* Level 1 Main Navigation Items */
  ul#navlist > li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #edf0f5 !important;
    position: relative !important;
    background: #ffffff !important;
  }

  ul#navlist > li > a {
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #1e293b !important;
    text-decoration: none !important;
    background: #ffffff !important;
    transition: background 0.2s, color 0.2s !important;
  }

  ul#navlist > li a:hover,
  ul#navlist > li.current > a {
    background: #f0f4ff !important;
    color: #203181 !important;
  }

  .nav-border {
    display: none !important;
  }

  /* Submenus hidden by default on mobile until parent has .submenu-open */
  .sf-menu .sub-menu {
    display: none !important;
    padding: 0 !important;
    border: none !important;
  }

  .sf-menu li.submenu-open > .sub-menu {
    display: block !important;
  }

  /* Level 2 Submenu (Projects -> Residential, Commercial) */
  .sf-menu .sub-menu {
    background: #f4f7fc !important;
    border-left: 4px solid #203181 !important;
  }

  .sf-menu .sub-menu li {
    display: block !important;
    background: transparent !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 !important;
  }

  .sf-menu .sub-menu li > a {
    padding: 12px 20px 12px 26px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #203181 !important;
    background: transparent !important;
    text-decoration: none !important;
  }

  .sf-menu .sub-menu li > a:hover {
    background: #e9eff8 !important;
    color: #bb241b !important;
  }

  /* Level 3 Submenu (Residential/Commercial -> Completed) */
  .sf-menu .sub-menu .sub-menu {
    background: #eef3fa !important;
    border-left: 4px solid #bb241b !important;
  }

  .sf-menu .sub-menu .sub-menu li > a {
    padding: 11px 20px 11px 38px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #bb241b !important;
  }

  .sf-menu .sub-menu .sub-menu li > a:hover {
    background: #e2ebf6 !important;
    color: #203181 !important;
  }

  /* Level 4 Submenu (Completed -> Manghalam Srishti, Manghalam Elite, etc.) */
  .sf-menu .sub-menu .sub-menu .sub-menu {
    background: #ffffff !important;
    border-left: 4px solid #f39c12 !important;
  }

  .sf-menu .sub-menu .sub-menu .sub-menu li > a {
    padding: 10px 20px 10px 50px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
  }

  .sf-menu .sub-menu .sub-menu .sub-menu li > a:hover {
    background: #f8fafc !important;
    color: #203181 !important;
    font-weight: 600 !important;
  }

  .sf-menu .sub-menu span {
    display: none !important;
  }

  /* Dropdown indicator icons */
  .menu-expand-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: #64748b !important;
    margin-left: auto;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  li.submenu-open > a > .menu-expand-icon {
    transform: rotate(180deg);
    color: #203181 !important;
  }
}

/* --------------------------------------------------------------------------
   6. Grid System & Columns (.dark, .column*)
   -------------------------------------------------------------------------- */
.dark, .dark.row {
  width: 100% !important;
  box-sizing: border-box !important;
}

.dark::after {
  content: "";
  display: table;
  clear: both;
}

.dark [class*="column"] {
  box-sizing: border-box !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-left: 0 !important;
}

@media screen and (min-width: 992px) {
  .dark .column12 { width: 100% !important; float: left; }
  .dark .column11 { width: 91.666% !important; float: left; }
  .dark .column10 { width: 83.333% !important; float: left; }
  .dark .column9  { width: 75% !important; float: left; }
  .dark .column8  { width: 66.666% !important; float: left; }
  .dark .column7  { width: 58.333% !important; float: left; }
  .dark .column6  { width: 50% !important; float: left; }
  .dark .column5  { width: 41.666% !important; float: left; }
  .dark .column4  { width: 33.333% !important; float: left; }
  .dark .column3  { width: 25% !important; float: left; }
  .dark .column2  { width: 16.666% !important; float: left; }
  .dark .column1  { width: 8.333% !important; float: left; }
}

/* Tablet (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .dark .column12, .dark .column11, .dark .column10,
  .dark .column9,  .dark .column8,  .dark .column7 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px !important;
  }

  .dark .column6, .dark .column4, .dark .column3 {
    width: 50% !important;
    float: left !important;
    margin-bottom: 20px !important;
  }

  .dark .column2 {
    width: 33.333% !important;
    float: left !important;
    margin-bottom: 15px !important;
  }

  .inner-footer .column3 {
    width: 50% !important;
    float: left !important;
    margin-bottom: 30px !important;
  }
}

/* Mobile (<= 767px) */
@media screen and (max-width: 767px) {
  .dark [class*="column"],
  .dark .column12, .dark .column11, .dark .column10,
  .dark .column9,  .dark .column8,  .dark .column7,
  .dark .column6,  .dark .column5,  .dark .column4,
  .dark .column3 {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dark .column2 {
    width: 50% !important;
    float: left !important;
    margin-bottom: 15px !important;
    padding: 0 5px !important;
  }

  .inner-footer .column3 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 25px !important;
  }
}

@media screen and (max-width: 480px) {
  .dark .column2 {
    width: 100% !important;
    float: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Sliders, Hero, Banners & Headers
   -------------------------------------------------------------------------- */
.slider, .fullwidthbanner-container, .fullwidthbanner {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

.head-banner {
  padding: 15px 0 !important;
}

.head-banner .wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.head-banner h4 {
  margin: 0 !important;
  font-size: 20px !important;
}

.head-banner .site_map {
  float: none !important;
  margin: 0 !important;
  font-size: 13px !important;
}

/* Heading Sizes on Small Screens */
@media screen and (max-width: 767px) {
  h1 {
    margin-left: 0 !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  h1 strong {
    font-size: 28px !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
  }
}

/* --------------------------------------------------------------------------
   8. Feature Boxes & Why Choose Us
   -------------------------------------------------------------------------- */
.feature-box {
  height: auto !important;
  min-height: unset !important;
  margin-bottom: 20px !important;
}

.feat-text {
  width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.feature-box i {
  display: none !important;
}

.company-story {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

.choose-img {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

/* --------------------------------------------------------------------------
   9. Project Cards, Filter Gallery & Amenities
   -------------------------------------------------------------------------- */
.filter {
  width: 100% !important;
  overflow-x: auto !important;
  margin-bottom: 25px !important;
}

.filter ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.filter li {
  float: none !important;
  margin: 0 !important;
}

.filter a {
  margin: 0 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

/* Srishti Photo Grid - Exact 4 Columns, Rounded Cards with Shadow (Matching Screenshot 2) */
.srishti-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 22px !important;
  width: 100% !important;
  padding: 15px 0 !important;
  box-sizing: border-box !important;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .srishti-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media screen and (max-width: 767px) {
  .srishti-photo-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

.srishti-card {
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16) !important;
  background: #ffffff !important;
  transition: all 0.35s ease !important;
  height: 200px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.srishti-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
}

.srishti-card a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.srishti-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;
  transition: transform 0.4s ease !important;
}

.srishti-card:hover img {
  transform: scale(1.06) !important;
}

.port4 .filter-container li.class1,
.port4 .filter-container li.class2,
.port4 .filter-container li.class3,
.port4 .filter-container li.class4,
.port4 .filter-container li.class5 {
  max-width: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
}

.view, .view img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.prjimg {
  width: 100% !important;
  box-sizing: border-box !important;
}

.prjimg img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
}

ul.prj_list li:before {
  width: auto !important;
}

/* Srishti and Meera Gallery rows */
.filter-container .row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  margin: 0 !important;
}

.filter-container .row > [class*="col-"] {
  flex: 1 1 calc(33.333% - 15px);
  min-width: 250px;
}

@media screen and (max-width: 767px) {
  .filter-container .row > [class*="col-"] {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   10. Contact Forms & Maps
   -------------------------------------------------------------------------- */
.contact-form, #contact-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.form-content {
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
}

.float-input,
.float-input input[type="text"],
.float-input input[type="email"],
.float-input input[type="tel"],
textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

textarea {
  min-height: 120px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.main-button {
  width: 100% !important;
  box-sizing: border-box !important;
}

.map iframe,
.map-address-container-child iframe {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 6px !important;
}

.map-address-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.map-address-container-child {
  width: 100% !important;
  max-width: 100% !important;
}

@media screen and (min-width: 768px) {
  .map-address-container-child {
    width: 48% !important;
  }
}

/* --------------------------------------------------------------------------
   11. Footer & Copyright
   -------------------------------------------------------------------------- */
.inner-footer {
  padding: 30px 0 !important;
}

.inner-footer iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  border-radius: 6px !important;
}

.last-div {
  padding: 15px 0 !important;
}

.last-div .wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.copyright {
  float: none !important;
  margin: 0 !important;
  font-size: 13px !important;
}

.f-socials {
  float: none !important;
  margin: 0 !important;
}

@media screen and (max-width: 576px) {
  .sub-header .wrapper,
  .last-div .wrapper {
    justify-content: center !important;
    text-align: center !important;
  }
}



/* --------------------------------------------------------------------------
   13. WhatsApp Floating Icon
   -------------------------------------------------------------------------- */
.whatsapp_float {
  position: fixed !important;
  width: 50px !important;
  height: 50px !important;
  bottom: 20px !important;
  right: 20px !important;
  background-color: #25d366 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  text-align: center !important;
  font-size: 26px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: transform 0.2s ease-in-out;
}

.whatsapp_float:hover {
  transform: scale(1.1);
  color: #ffffff !important;
}

.whatsapp-icon {
  margin: 0 !important;
  color: #ffffff !important;
}
