/* ==========================================
   BRACESOFT DESIGN SYSTEM & CORE STYLES
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Font Awesome 6 CDN Integration */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Root CSS Variables */
:root {
  --primary: #fbad18;
  --primary-hover: #e59a0f;
  --primary-light: rgba(251, 173, 24, 0.1);
  --dark-slate: #1e293b;
  --dark-slate-hover: #0f172a;
  --text-color: #334155;
  --text-muted: #64748b;
  --bg-color: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark-footer: #0b111e;
  --border-color: #e2e8f0;
  --border-focus: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -4px rgba(0,0,0,0.04);
  --font-body: 'Inter', sans-serif;
  --font-headings: 'Outfit', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

/* CSS Reset & General Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--dark-slate);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

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

/* Layout Containers & Spacing */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.panel-space {
  padding: 80px 0;
}

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 24px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Flexbox utilities */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }

/* Grid Utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-12,
.col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9, .col-lg-12 {
  position: relative;
  width: 100%;
  padding: 0 12px;
}

/* ==========================================
   GLOBAL HEADER STYLING
   ========================================== */
#global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.top-header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

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

.nav-link {
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-slate);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.dropdown-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 960px;
  max-width: 90vw;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  padding: 30px;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.dropdown-toggle:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-toggle:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.mega-column h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.mega-column h3 a {
  color: var(--text-muted);
}

.mega-column h3 a:hover {
  color: var(--primary);
}

.mega-column ul li {
  margin-bottom: 8px;
}

.mega-column ul li a {
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
}

.mega-column ul li a:hover, .mega-column ul li a.active {
  color: var(--primary);
  padding-left: 5px;
}

/* Header Action & Request Quote Button */
.header-action {
  margin-left: 28px;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 6px var(--primary-light);
  border: 1px solid transparent;
}

.quote-btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.quote-icon {
  width: 14px;
  height: 14px;
}

/* Mobile Navbar Toggle */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggler .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--dark-slate);
  transition: all 0.25s ease;
}

/* ==========================================
   GLOBAL FOOTER STYLING
   ========================================== */
#global-footer {
  background-color: var(--bg-dark-footer);
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top-section {
  padding: 80px 0 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1100px; /* Pull columns closer to the center */
  margin: 0 auto;
}

.footer-col-title {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover, .footer-links a.active {
  color: var(--primary);
  padding-left: 4px;
}

.font-small li {
  margin-bottom: 10px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact-info i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 15px;
  width: 16px;
}

.footer-contact-info a:hover {
  color: var(--primary);
}

/* Bottom Footer (Policies & Socials) */
.footer-bottom-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 35px 0;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column; /* Center vertically on both desktop & mobile */
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-policies {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
}

.footer-policies a {
  color: #64748b;
}

.footer-policies a:hover {
  color: #ffffff;
}

.footer-policies .divider {
  color: rgba(255,255,255,0.1);
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.social-label {
  font-size: 13px;
  margin-right: 8px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.05);
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
}

.footer-socials a:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Copyright banner */
.footer-copyright-section {
  background-color: rgba(0,0,0,0.2);
  padding: 20px 0;
  font-size: 12px;
  color: #475569;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ==========================================
   GLOBAL COMMON SECTIONS & BUTTONS
   ========================================== */

/* Headings styles */
.comn-toptitle {
  font-size: 38px;
  color: var(--dark-slate);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.comn-toptitle strong, .comn-toptitle span, .heading-title span, .theam-color {
  color: var(--primary);
}

.sub-texttitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 24px;
  font-weight: 400;
}

.heading-box {
  margin-bottom: 48px;
}

/* Buttons */
.squr-btn, .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--dark-slate);
  color: #ffffff;
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.squr-btn:hover, .hero-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--primary-light);
}

.squr-btn i, .hero-btn i {
  font-size: 14px;
}

/* Card Lists & Icons checkmarks */
.list-checkstyle {
  margin: 15px 0;
}

.list-checkstyle li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 15px;
}

.list-checkstyle li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary);
  font-size: 14px;
}

/* Base Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-slate);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-color);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  transition: all 0.25s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 173, 24, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
