/* ==========================================================================
   THE ALAM GROUP - EXACT FONTS, HEADER, FOOTER & 2-COLUMN LISTINGS
   ========================================================================== */

/* Exact Font Families from thealamgroup.com */
:root {
  --g5-body-font: 'Poppins', sans-serif;
  --g5-heading-font: 'Montserrat', sans-serif;
  
  /* Official Brand Colors */
  --g5-color-accent: #044ab3;
  --g5-color-accent-hover: #033580;
  --g5-color-accent-light: #055fe5;
  --g5-color-accent-subtle: rgba(4, 74, 179, 0.08);
  --g5-color-gold: #c5a059;

  /* Text & Heading Colors */
  --g5-color-heading: #222222;
  --g5-color-text-main: #666666;
  --g5-color-text-dark: #333333;
  --g5-color-muted: #888888;
  --g5-color-border: #e2e8f0;

  /* Section Backgrounds */
  --bg-page: #f8f8f8;
  --bg-white: #ffffff;
  --bg-topbar: #222222;
  --bg-header: #1b1d21;
  --bg-footer-above: #242830;
  --bg-footer-main: #222222;
  --bg-bottom-bar: #141619;

  /* Card Geometry */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --transition: all 0.25s ease-in-out;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--g5-body-font);
  background-color: var(--bg-page);
  color: var(--g5-color-text-main);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--g5-heading-font);
  color: var(--g5-color-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--g5-body-font);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
/* ==========================================================================
   TOP BAR (EXACT AS THEALAMGROUP.COM)
   ========================================================================== */
.top-bar-wrapper {
  background-color: var(--bg-topbar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #bababa;
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left strong {
  color: #ffffff;
  font-weight: 600;
}

.top-bar-left a {
  color: #bababa;
}

.top-bar-left a:hover {
  color: #5ea4ff;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.social-profiles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-profiles a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  transition: var(--transition);
}

.social-profiles a:hover {
  background: var(--g5-color-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER (EXACT 100% AS THEALAMGROUP.COM)
   ========================================================================== */
.main-header.header-1 {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-wrapper {
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
  width: 100%;
}

.header-container {
  max-width: 100%;
  padding: 0 0 0 30px;
  margin: 0 auto;
}

@media (min-width: 1400px) {
  .header-container {
    padding: 0 0 0 40px;
  }
}

.header-above-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  position: relative;
}

.logo-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 0;
  margin-right: 25px;
}

.logo-header img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  height: 100%;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.main-menu .menu-item a {
  font-family: var(--g5-heading-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222222;
  letter-spacing: 0.4px;
  white-space: nowrap;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

@media (min-width: 1400px) {
  .main-menu {
    gap: 22px;
  }
  .main-menu .menu-item a {
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 0 6px;
  }
}

.main-menu .menu-item a:hover,
.main-menu .menu-item.current-menu-item a {
  color: var(--g5-color-accent);
}

.main-menu .menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--g5-color-accent);
  transition: var(--transition);
}

.main-menu .menu-item a:hover::after,
.main-menu .menu-item.current-menu-item a::after {
  width: 100%;
}

/* Slanted Blue Action Area on the Right */
.header-customize-nav {
  display: flex;
  align-items: center;
  background-color: var(--g5-color-accent);
  height: 90px;
  margin-left: 25px;
  position: relative;
  padding: 0 24px 0 12px;
  flex-shrink: 0;
}

.header-customize-nav .item-custom-text {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Diagonal Slanted Left Edge */
.header-customize-nav .item-custom-text::before {
  content: "";
  display: block;
  border-top: solid 0 transparent;
  border-bottom: solid 90px var(--g5-color-accent);
  border-left: solid 24px transparent;
  right: 100%;
  position: absolute;
  bottom: 0;
  top: 0;
  margin-right: 12px;
}

/* Extend blue background seamlessly to the right viewport edge */
.header-customize-nav .item-custom-text::after {
  content: "";
  display: block;
  background-color: var(--g5-color-accent);
  width: 100vw;
  height: 100%;
  position: absolute;
  left: 100%;
  top: 0;
}

.head-btn {
  background: transparent;
  border: 1.5px solid #ffffff;
  padding: 8px 18px;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.head-btn:hover {
  background: #ffffff;
}

.head-btn a {
  color: #ffffff;
  font-family: var(--g5-heading-font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-style: italic;
  display: block;
  white-space: nowrap;
}

.head-btn:hover a {
  color: var(--g5-color-accent);
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: #222222;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  margin-right: 15px;
}

/* ==========================================================================
   PAGE HEADING BANNER (CLEAN & SIMPLE)
   ========================================================================== */
.page-banner {
  background-color: #16181d;
  color: #ffffff;
  padding: 55px 0 45px;
  text-align: center;
  border-bottom: 3px solid var(--g5-color-accent);
}

.banner-tag {
  display: inline-block;
  background: var(--g5-color-accent-subtle);
  border: 1px solid var(--g5-color-accent-light);
  color: #5ea4ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.banner-title {
  font-family: var(--g5-heading-font);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #ffffff;
}

.banner-title .blue-accent {
  color: #5ea4ff;
}

.banner-subtitle {
  font-family: var(--g5-body-font);
  font-size: 15px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
}

/* ==========================================================================
   2-COLUMN SIDE-BY-SIDE LISTINGS (TEXT ONLY)
   ========================================================================== */
.listings-section {
  padding: 50px 0 70px;
  background-color: var(--bg-page);
}

.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--g5-color-border);
  flex-wrap: wrap;
  gap: 14px;
}

.section-count-title {
  font-family: var(--g5-heading-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--g5-color-heading);
}

.section-count-title span {
  color: var(--g5-color-accent);
}

.ndalink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--g5-color-accent);
  color: #ffffff !important;
  font-family: var(--g5-body-font);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(4, 74, 179, 0.2);
}

.ndalink:hover {
  background-color: var(--g5-color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 74, 179, 0.35);
  color: #ffffff !important;
}

/* 2-Column Side-by-Side Grid */
.two-column-listings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Individual Listing Card */
.listing-text-card {
  background-color: var(--bg-white);
  border: 1px solid var(--g5-color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.listing-text-card:hover {
  border-color: var(--g5-color-accent);
  box-shadow: 0 6px 20px rgba(4, 74, 179, 0.12);
  transform: translateY(-3px);
}

/* Card Header */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
  gap: 10px;
}

.prop-opportunity-tag {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--g5-color-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.prop-type-title {
  font-family: var(--g5-heading-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--g5-color-accent);
  line-height: 1.3;
}

.prop-location-badge {
  background-color: var(--g5-color-accent-subtle);
  color: var(--g5-color-accent);
  border: 1px solid rgba(4, 74, 179, 0.25);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Text Specifications Grid */
.specs-text-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 18px;
}

.spec-line {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: var(--radius-xs);
  border: 1px solid #f1f5f9;
}

.spec-line.full-width {
  grid-column: 1 / -1;
}

.spec-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--g5-color-text-main);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.spec-val {
  font-family: var(--g5-body-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--g5-color-heading);
}

.spec-val.highlight {
  color: var(--g5-color-accent);
}

.spec-val.emerald {
  color: #059669;
}

/* Key Highlight / Special Note Box */
.card-note-box {
  background-color: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: #166534;
  margin-bottom: 18px;
  line-height: 1.5;
}

.card-note-box.blue-note {
  background-color: #eff6ff;
  border-left-color: var(--g5-color-accent);
  color: #1e40af;
}

.card-note-box strong {
  font-weight: 700;
}

/* Card Bottom Footer Row */
.card-bottom-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.broker-tag {
  color: var(--g5-color-muted);
  font-weight: 500;
}

.btn-inquire-direct {
  background-color: var(--g5-color-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-inquire-direct:hover {
  background-color: var(--g5-color-accent-hover);
  color: #ffffff;
}

/* ==========================================================================
   THEALAMGROUP.COM EXACT FOOTER
   ========================================================================== */
.main-footer-wrapper {
  background-color: var(--bg-footer-main);
  color: #bababa;
  position: relative;
  margin-top: 40px;
}

/* Newsletter Top Bar */
.footer-above-wrapper {
  background-color: var(--bg-footer-above);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
}

.newsletter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.newsletter-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.newsletter-text {
  display: flex;
  flex-direction: column;
}

.newsletter-text .nl-sub {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.newsletter-text .nl-title {
  font-family: var(--g5-heading-font);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.1;
}

.newsletter-form-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  padding: 11px 16px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: var(--g5-body-font);
  transition: var(--transition);
}

.newsletter-input:focus {
  border-color: var(--g5-color-accent-light);
}

.newsletter-input::placeholder {
  color: #8c96a5;
}

.newsletter-btn {
  background: var(--g5-color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 22px;
  border-radius: var(--radius-xs);
  font-family: var(--g5-body-font);
}

.newsletter-btn:hover {
  background: var(--g5-color-accent-light);
  color: #ffffff;
}

/* Main Footer Content */
.main-footer {
  padding: 60px 0 40px;
}

.main-footer .footer-inner .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footlogo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.footlogo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-social-profiles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-profiles a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  transition: var(--transition);
}

.footer-social-profiles a:hover {
  background: var(--g5-color-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.widget-title {
  font-family: var(--g5-heading-font);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--g5-color-accent);
}

.menu-menu-footer {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-menu-footer li a {
  font-size: 13px;
  color: #bababa;
  transition: var(--transition);
}

.menu-menu-footer li a:hover {
  color: #5ea4ff;
  padding-left: 4px;
}

.footer-get-in-touch {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-get-in-touch li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #bababa;
}

.footer-get-in-touch li .fa {
  color: #5ea4ff;
  font-size: 14px;
  margin-top: 3px;
}

.footer-get-in-touch li a {
  color: #bababa;
}

.footer-get-in-touch li a:hover {
  color: #5ea4ff;
}

/* Bottom Bar */
.bottom-bar-wrapper {
  background-color: var(--bg-bottom-bar);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  font-size: 12px;
  color: #8f8f8f;
  text-align: center;
}

.bottom-bar-wrapper a {
  color: #5ea4ff;
  font-weight: 600;
}

.bottom-bar-wrapper a:hover {
  text-decoration: underline;
}

/* ==========================================================================
/* ==========================================================================
   RESPONSIVE & MOBILE MENU
   ========================================================================== */
.primary-menu.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #eee;
  z-index: 1000;
  height: auto;
}

.primary-menu.mobile-open .main-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  height: auto;
}

.primary-menu.mobile-open .main-menu li {
  width: 100%;
  height: auto;
}

.primary-menu.mobile-open .main-menu .menu-item a {
  padding: 10px 0;
  width: 100%;
  font-size: 13px;
  color: #222222;
  border-bottom: 1px solid #f4f4f4;
}

.primary-menu.mobile-open .header-customize-nav {
  margin: 16px 0 0 0;
  width: 100%;
  height: 48px;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
}

.primary-menu.mobile-open .header-customize-nav .item-custom-text::before,
.primary-menu.mobile-open .header-customize-nav .item-custom-text::after {
  display: none;
}

@media (max-width: 1100px) {
  .primary-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .header-container {
    padding: 0 20px;
  }
}

@media (max-width: 900px) {
  .two-column-listings {
    grid-template-columns: 1fr;
  }
  .main-footer .footer-inner .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }
  .specs-text-list {
    grid-template-columns: 1fr;
  }
  .newsletter-row {
    flex-direction: column;
    text-align: center;
  }
}
