/*
Theme Name: Salem Bricks Theme
Theme URI: https://salembricks.in
Author: Salem Bricks Engineering Team
Author URI: https://salembricks.in
Description: Master WordPress Theme for Salem Bricks. Engineered for performance, SEO, Single Clean Header Architecture, and 100% Elementor Free visual editing compatibility.
Version: 3.2.0
License: GNU General Public License v2 or later
Text Domain: salem-bricks
*/

:root {
  --charcoal-900: #16181C;
  --charcoal-700: #23262B;
  --construction-orange: #E8631C;
  --brick-red: #A8412D;
  --concrete-gray: #E7E5E1;
  --concrete-gray-dark: #9C9994;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 10px 25px rgba(232, 99, 28, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--charcoal-900);
  color: var(--white);
}

.section-gray {
  background-color: #F9F8F6;
}

.section-alt {
  background-color: var(--charcoal-700);
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--construction-orange);
  margin-bottom: 12px;
}

/* Button Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 200ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--construction-orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: #d15414;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-brick {
  background-color: var(--brick-red);
  color: var(--white);
}

.btn-brick:hover {
  background-color: #923725;
}

/* Cards & Badges */
.card-base {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  transition: all 300ms ease;
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-orange {
  background-color: rgba(232, 99, 28, 0.12);
  color: var(--construction-orange);
}

.badge-red {
  background-color: rgba(168, 65, 45, 0.12);
  color: var(--brick-red);
}

/* ==========================================================================
   MASTER HEADER NAVBAR STYLES
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(22, 24, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 300ms ease;
}

.site-header.scrolled {
  background-color: rgba(16, 18, 22, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.custom-logo,
.custom-logo-link img,
.brand-logo img {
  max-height: 50px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background-color: var(--construction-orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-text-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--concrete-gray-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: #E7E5E1;
  font-size: 15px;
  font-weight: 600;
  transition: color 200ms ease;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--construction-orange);
}

.nav-link .arrow {
  font-size: 12px;
  transition: transform 200ms ease;
}

.has-mega-menu:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Header CTA Group */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone-link,
.header-phone-link span,
.header-phone-link:visited,
.header-phone-link:hover {
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  opacity: 1 !important;
}

.header-quote-btn {
  white-space: nowrap;
}

/* Mega Menu Dropdown */
.has-mega-menu {
  position: relative;
}

.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: -100px;
  width: 580px;
  background-color: var(--charcoal-900);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  opacity: 0;
  transition: all 200ms ease;
  z-index: 1005;
}

.has-mega-menu:hover .mega-menu-dropdown {
  display: grid;
  opacity: 1;
}

.mega-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 200ms ease;
}

.mega-card.full-span {
  grid-column: span 2;
}

.mega-card:hover {
  background-color: rgba(232, 99, 28, 0.12);
  border-color: var(--construction-orange);
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 300ms ease;
}

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

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

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

/* Mobile Navigation Drawer Default Desktop Behavior (ALWAYS HIDDEN ON DESKTOP) */
.mobile-nav-drawer,
.site-header .mobile-nav-drawer,
header .mobile-nav-drawer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

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

.mobile-nav-link {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Mobile Accordion Submenu */
.mobile-accordion-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-accordion-toggle .accordion-icon {
  font-size: 14px;
  transition: transform 200ms ease;
}

.mobile-accordion-toggle.active .accordion-icon {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
  margin-top: 8px;
  border-left: 2px solid var(--construction-orange);
}

.mobile-accordion-content.active {
  display: flex;
}

.mobile-sub-link {
  color: #E7E5E1;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.mobile-drawer-cta {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-phone-btn {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-quote-btn {
  width: 100%;
  text-align: center;
  min-height: 44px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--charcoal-900);
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  color: var(--concrete-gray-dark);
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--construction-orange);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 200ms ease;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   STRICT RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Landscape (1025px to 1199px) */
@media screen and (max-width: 1199px) {
  .nav-menu-list {
    gap: 16px;
  }
  .nav-link {
    font-size: 14px;
  }
  .header-phone-link {
    font-size: 13px;
  }
}

/* Mobile & Tablet Screens (<= 1024px) */
@media screen and (max-width: 1024px) {
  header nav,
  header .desktop-nav,
  .site-header nav,
  .site-header .desktop-nav,
  .desktop-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .header-phone-link {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .nav-container {
    height: 64px !important;
  }

  .site-header .custom-logo-link img,
  .site-header img.custom-logo,
  .brand-logo img {
    max-height: 38px !important;
  }

  .header-quote-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Mobile Drawer Active State ONLY on Mobile Screens */
  .mobile-nav-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--charcoal-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    display: none !important;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 1001;
  }

  .mobile-nav-drawer.open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    pointer-events: auto !important;
  }
}

/* Small Mobile Devices (<= 480px) */
@media screen and (max-width: 480px) {
  .header-quote-btn {
    display: none !important;
  }
  .brand-text-title {
    font-size: 15px;
  }
  .brand-text-sub {
    font-size: 9px;
  }
}
