/* ─── National Majestic – Custom Theme ──────────────────────────────────────
   Brand palette:
     Crimson   #CC1F2D   (logo red)
     Royal     #1E2D8A   (logo blue)
     Navy bg   #07091A   (deep navy dark)
     Navy bg2  #0D1130   (slightly lighter navy)
   ─────────────────────────────────────────────────────────────────────────── */

/* ── 1. Typography ─────────────────────────────────────────────────────────── */
* { --heading-font: "Cormorant Garamond", "Jost", Georgia, serif; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Cormorant Garamond", "Jost", Georgia, serif;
}
h1 { font-weight: 600; letter-spacing: -0.02em; }
h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; }
h3 { font-weight: 500; }

/* ── 2. Section subtitle tag ───────────────────────────────────────────────── */
.subtitle,
.subtitle.s2 {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--primary-color) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.subtitle::before,
.subtitle.s2::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  flex-shrink: 0;
}

/* ── 3. Dark section backgrounds → deep navy ───────────────────────────────── */
.bg-dark,
.section-dark {
  background-color: var(--dark-bg, #07091A) !important;
}
.bg-dark-2 {
  background-color: var(--dark-bg-2, #0D1130) !important;
}

/* ── 4. Buttons ────────────────────────────────────────────────────────────── */
.btn-main {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 14px 34px;
  background: var(--primary-color);
  color: #fff !important;
  border: 1px solid var(--primary-color);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-main:hover::after { opacity: 1; }
.btn-main:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 8px 28px rgba(204,31,45,0.4);
  transform: translateY(-2px);
}
.btn-main.btn-line {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff !important;
}
.btn-main.btn-line:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(204,31,45,0.35);
}

/* ── 5. Header ─────────────────────────────────────────────────────────────── */
header.header-float { backdrop-filter: blur(4px); }
#mainmenu > li > a.menu-item {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── 6. Hero ───────────────────────────────────────────────────────────────── */
#section-hero .hero-tagline {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
#section-hero .hero-tagline::before,
#section-hero .hero-tagline::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--primary-color);
}
#section-hero h1.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 0;
}
#section-hero p {
  color: rgba(255,255,255,0.72) !important;
}

/* ── Responsive hero — height + typography + buttons ──────────────────────── */

/* Tablet (769px – 992px) */
@media (max-width: 992px) and (min-width: 769px) {
  #section-hero {
    min-height: 72vh !important;
    min-height: 72svh !important;
  }
  #section-hero h1.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  }
  #section-hero .btn-main {
    padding: 12px 26px;
    font-size: 10.5px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  #section-hero {
    min-height: 60vh !important;
    min-height: 60svh !important;
  }
  #section-hero h1.hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.15;
  }
  #section-hero p {
    font-size: 9px !important;
    letter-spacing: 1px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.85rem !important;
  }
  #section-hero .btn-main {
    padding: 9px 14px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  #section-hero .d-flex.gap-3 {
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
  }
  #section-hero .d-flex.gap-3 > a {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
}
/* Bottom info bar */
#section-hero .hero-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
#section-hero .hero-bar-item:last-child { border-right: none; }
#section-hero .hero-bar-item strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
}
#section-hero .hero-bar-item span {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── 7. About ──────────────────────────────────────────────────────────────── */
#section-about { background: #fff; }
#section-about .about-stat-card {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: var(--dark-bg-2, #0D1130);
  border: 1px solid rgba(204,31,45,0.25);
  border-radius: 6px;
  padding: 22px 26px;
  min-width: 195px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
#section-about .about-stat-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1;
}
#section-about .about-badge {
  background: rgba(204,31,45,0.05);
  border: 1px solid rgba(204,31,45,0.15);
  border-radius: 6px;
  padding: 16px 10px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
#section-about .about-badge:hover {
  background: rgba(204,31,45,0.09);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}
#section-about .about-badge i { color: var(--primary-color) !important; }

/* ── 8. Overview / Facilities ──────────────────────────────────────────────── */
#section-overview { background: #F5F4F2; }
#section-overview .facility-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 6px;
  padding: 26px 22px;
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
#section-overview .facility-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(204,31,45,0.1);
  transform: translateY(-4px);
}
#section-overview .facility-card i {
  font-size: 1.9rem !important;
  margin-bottom: 14px !important;
  color: var(--primary-color) !important;
}
#section-overview .facility-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #111;
}
#section-overview .facility-card p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: rgba(0,0,0,0.55);
}
/* Overview left column accent */
#section-overview .subtitle { color: var(--primary-color) !important; }

/* ── 9. Latest Projects ────────────────────────────────────────────────────── */
#section-projects { background: var(--dark-bg, #07091A); }
#section-projects .project-badge {
  background: var(--primary-color);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
}
#section-projects .project-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* ── 10. Floorplan ─────────────────────────────────────────────────────────── */
#section-floorplan { background: var(--dark-bg-2, #0D1130); }
#section-floorplan .bg-dark-2 { background: rgba(255,255,255,0.04) !important; }

/* ── 11. Nearby ────────────────────────────────────────────────────────────── */
#section-nearby {
  background: var(--dark-bg, #07091A);
  background-image: radial-gradient(ellipse at 70% 50%, rgba(30,45,138,0.12) 0%, transparent 65%);
}

/* ── 12. Contact ───────────────────────────────────────────────────────────── */
#section-contact { background: #fff; }
#section-contact input.form-control,
#section-contact select.form-control,
#section-contact textarea.form-control {
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.13);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
#section-contact input.form-control:focus,
#section-contact select.form-control:focus,
#section-contact textarea.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(204,31,45,0.1);
  outline: none;
}

/* ── 13. Footer ────────────────────────────────────────────────────────────── */
footer.section-dark {
  background: #04050F !important;
  border-top: 1px solid rgba(204,31,45,0.18);
}
footer .subfooter {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ── 14. Social icons ──────────────────────────────────────────────────────── */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-right: 6px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.social-icons a:hover {
  border-color: var(--primary-color);
  color: #fff;
  background: var(--primary-color);
}

/* ── 15. id-color (accent) → crimson ───────────────────────────────────────── */
.id-color { color: var(--primary-color) !important; }

/* ── 16. Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }

/* ── 17. Section separators ─────────────────────────────────────────────────── */
#section-projects,
#section-floorplan,
#section-nearby {
  border-top: 1px solid rgba(255,255,255,0.04);
}
#section-about,
#section-overview,
#section-contact {
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* ── 18. Image radius ──────────────────────────────────────────────────────── */
#section-about img.w-100 { border-radius: 4px; }

/* ── 19. Loader ────────────────────────────────────────────────────────────── */
#de-loader { background: var(--dark-bg, #07091A); }

/* ── 20. Nearby category cards ─────────────────────────────────────────────── */
#section-nearby .category-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.3s, background 0.3s;
}
#section-nearby .category-card:hover {
  background: rgba(204,31,45,0.06);
  border-color: rgba(204,31,45,0.3);
}

/* ── 21. Blue accent helper ─────────────────────────────────────────────────── */
.brand-blue { color: var(--brand-blue) !important; }
.bg-brand-blue { background: var(--brand-blue) !important; }

/* ── 22. Floorplan table rows ───────────────────────────────────────────────── */
#section-floorplan .fp-row-even {
  background: rgba(255,255,255,0.04);
}
#section-floorplan .fw-600 {
  color: var(--primary-color);
}

/* ── 23. Swiper dots color ──────────────────────────────────────────────────── */
.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

/* ── 24. Hero bottom bar background ─────────────────────────────────────────── */
#section-hero .hero-bottom-bar {
  background: linear-gradient(to top, rgba(7,9,26,0.75) 0%, transparent 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
