/* ==========================================================================
   SYNEX INFRA - UNIFIED CORE STYLESHEET
   Engineering Trust. Building the Future.
   ========================================================================== */

:root {
  --navy: #101e2c;
  --navy-light: #1b3042;
  --navy-deep: #0b1520;
  --gold: #d6ad65;
  --gold-dark: #b88a38;
  --gold-light: #f5e8cc;
  --gold-subtle: #fcf9f2;
  --white: #ffffff;
  --cream: #f7f5f0;
  --bg-light: #f5f7fa;
  --text: #344054;
  --text-muted: #667085;
  --text-dark: #101e2c;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --success: #12b76a;
  --info: #0284c7;
  
  --shadow-sm: 0 1px 3px rgba(16, 30, 44, 0.06);
  --shadow-md: 0 4px 20px rgba(16, 30, 44, 0.08);
  --shadow-lg: 0 10px 30px rgba(16, 30, 44, 0.12);
  --shadow-xl: 0 20px 40px rgba(16, 30, 44, 0.16);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1240px;
  
  --font-main: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Manrope", "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
  font-family: inherit;
}

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

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 85px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-light);
}

.section-cream {
  background: var(--cream);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-navy .eyebrow {
  color: var(--gold);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

.section-navy .section-lead {
  color: #c4d1de;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   ANNOUNCEMENT BAR & GLOBAL HEADER
   ========================================================================== */

.announcement-bar {
  background: var(--navy-deep);
  color: #c4d1de;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.announcement-badge {
  background: rgba(214, 173, 101, 0.2);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.announcement-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcement-contact a {
  color: #c4d1de;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announcement-contact a:hover {
  color: var(--gold);
}

/* Global Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 78px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
}

.site-header .container {
  max-width: 1440px;
  width: 100%;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(16, 30, 44, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: 16px;
  position: relative;
}

/* Brand - Logo, Company Name, and Tagline */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 auto;
  max-width: 252px;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(16, 30, 44, 0.14);
  border: 1px solid rgba(214, 173, 101, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.brand:hover .brand-symbol {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 14px rgba(16, 30, 44, 0.22);
}

.brand-text,
.brand > div:not(.brand-symbol) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.8px;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-main);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  line-height: 1;
  margin: 3px 0 0 0;
  padding: 0;
  white-space: nowrap;
}

/* Nav Links - Perfect Single-Line Alignment & Baseline Matching */
.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav.has-user-badge .nav-links {
  gap: clamp(8px, 1.1vw, 14px);
}

.nav-links li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
  line-height: 1;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-light);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  word-break: keep-all;
  letter-spacing: -0.1px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Dropdown Navigation Menu (AI Solution) ─────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-arrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  color: inherit;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-top: 2px solid var(--gold, #d6ad65);
  border-radius: 0 0 var(--radius-sm, 8px) var(--radius-sm, 8px);
  box-shadow: 0 14px 28px rgba(16, 30, 44, 0.12), 0 4px 10px rgba(16, 30, 44, 0.06);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1050;
  pointer-events: none;
}

/* Invisible bridge so mouse hover doesn't drop while moving from toggle to menu */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown-menu li {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 18px !important;
  font-family: var(--font-main, 'DM Sans', sans-serif);
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--navy, #101e2c) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  width: 100% !important;
  border-left: 3px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-left-color 0.18s ease, padding-left 0.18s ease;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  background: #f8fafc !important;
  color: var(--gold, #d6ad65) !important;
  border-left-color: var(--gold, #d6ad65) !important;
  padding-left: 22px !important;
}

.nav-dropdown-menu a.active {
  background: #fdfaf3 !important;
  color: var(--gold, #d6ad65) !important;
  font-weight: 700 !important;
  border-left-color: var(--gold, #d6ad65) !important;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

/* ── Logged-in User Navigation Badge ───────────────────────────────────────── */
.synex-user-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.synex-user-nav-badge:hover {
  border-color: #94a3b8;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 30, 44, 0.08);
}

.synex-user-nav-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--navy);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.synex-user-nav-mod {
  font-size: 10px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.synex-nav-logout-btn {
  background: transparent;
  border: none;
  color: #b42318;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 11px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.synex-nav-logout-btn:hover {
  color: #7a160e;
  text-decoration: underline;
}

.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  padding: 7px 11px;
  line-height: 1;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: #f1f5f9;
  border-color: var(--navy-light);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 30, 44, 0.2);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #deb874;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(214, 173, 101, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--cream);
  border-color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* ==========================================================================
   HERO BANNER (PAGE SPECIFIC HEROES)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 173, 101, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 14px;
}

.page-hero-desc {
  color: #c4d1de;
  font-size: 18px;
  max-width: 760px;
  margin-bottom: 24px;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 16px;
}

.page-breadcrumbs a {
  color: #c4d1de;
}

.page-breadcrumbs a:hover {
  color: var(--gold);
}

/* ==========================================================================
   FILTER TABS & CONTROLS
   ========================================================================== */

.filter-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  background: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--bg-light);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.filter-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.filter-search-box {
  position: relative;
  min-width: 260px;
}

.filter-search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 14px;
  background: var(--bg-light);
  transition: border-color 0.2s;
}

.filter-search-box input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.filter-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-light);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.view-mode-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.view-mode-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   SERVICES GRID & CARDS
   ========================================================================== */

.category-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 50px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.category-badge-num {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.category-group-title {
  font-size: 24px;
  color: var(--navy);
}

.category-group-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-image-wrap {
  position: relative;
  height: 210px;
  background: #e2e8f0;
  overflow: hidden;
}

.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image-wrap img {
  transform: scale(1.05);
}

.service-card-num {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 30, 44, 0.88);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.service-card-cat {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  font-size: 19px;
  margin-bottom: 14px;
  color: var(--navy);
}

.service-card-list {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.service-card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

.service-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: bold;
}


/* Accordion View for Services */
.accordion-services-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.service-accordion-item:hover {
  border-color: var(--gold);
}

.service-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  background: var(--white);
  font-weight: 700;
  list-style: none;
}

.service-accordion-summary::-webkit-details-marker {
  display: none;
}

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

.service-acc-num {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--gold-dark);
  font-size: 14px;
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 6px;
}

.service-acc-title {
  font-size: 17px;
  color: var(--navy);
}

.service-acc-cat {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 8px;
}

.service-acc-icon {
  font-size: 20px;
  color: var(--navy);
  transition: transform 0.2s;
}

details[open] .service-acc-icon {
  transform: rotate(45deg);
}

.service-accordion-body {
  padding: 20px 24px 24px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   CASE STUDIES & PROJECTS STYLES (DEDUPLICATED)
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 30px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.case-image-wrap {
  position: relative;
  height: 230px;
  background: #e2e8f0;
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-id-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}

.case-cat-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--navy);
}

.case-location {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.case-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--cream);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 12px;
}

.case-spec-item strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.case-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.case-tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--navy-light);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   QUOTATION CALCULATOR STYLES
   ========================================================================== */

.calculator-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.calc-panel-title {
  font-size: 20px;
  color: var(--navy);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.preset-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.preset-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.calc-category-header {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 800;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.calc-service-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.calc-service-item:hover {
  background: var(--cream);
}

.calc-service-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  margin-top: 3px;
  cursor: pointer;
}

.calc-service-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-service-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
}

.calc-service-rate {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.calc-qty-control {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 13px;
}

.calc-qty-control.visible {
  display: flex;
}

.calc-qty-input {
  width: 110px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

/* Sticky Summary Panel */
.calc-summary-panel {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.summary-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.summary-items-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 10px;
  color: var(--text);
  gap: 10px;
}

.summary-line span:first-child {
  flex: 1;
}

.summary-line.tax {
  color: var(--text-muted);
  font-size: 13px;
}

.summary-line.total-line {
  border-top: 2px solid var(--navy);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.summary-line.total-line strong {
  color: var(--gold-dark);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Form inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 173, 101, 0.15);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: #c4d1de;
  padding: 70px 0 30px;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #9cb0c2;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #9cb0c2;
  font-size: 14px;
}

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

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  color: #9cb0c2;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #7b8e9f;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

/* ==========================================================================
   PRINT STYLES FOR OFFICIAL QUOTATION
   ========================================================================== */

@media print {
  .site-header, .announcement-bar, .site-footer, .back-to-top, .calc-actions, .filter-controls-bar, .menu-toggle {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .calculator-layout {
    display: block !important;
  }
  
  .calc-summary-panel {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid #000 !important;
    page-break-inside: avoid;
  }
  
  .print-only-header {
    display: block !important;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
}

.print-only-header {
  display: none;
}

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

/* Tablet & Compact Desktop Navbar (1025px - 1340px) */
@media (max-width: 1340px) and (min-width: 1025px) {
  .site-nav {
    gap: 12px;
  }
  .brand {
    gap: 8px;
    max-width: 215px;
  }
  .brand-symbol {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 18px;
  }
  .brand-name {
    font-size: 16.5px;
    letter-spacing: 0.5px;
  }
  .brand-tagline {
    display: none;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 12.5px;
    padding: 8px 0;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
  }
  .synex-user-nav-badge {
    padding: 3px 8px;
    font-size: 11px;
    gap: 6px;
  }
  .synex-user-nav-name {
    max-width: 95px;
  }
}

/* Tablet & Mobile navigation toggle (<= 1024px) */
@media (max-width: 1024px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  
  .calc-summary-panel {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: auto;
  }
  
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: auto;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--gold-subtle);
    color: var(--navy-deep);
    font-weight: 700;
    border-left: 3px solid var(--gold);
    padding-left: 13px;
  }

  /* Mobile Dropdown styles (AI Solution) */
  .nav-dropdown {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .nav-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--navy) !important;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
    cursor: pointer;
  }

  .nav-dropdown-toggle::after {
    display: none !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    min-width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid var(--border-subtle, #edf2f7) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    margin: 6px 0 8px !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
  }

  .nav-dropdown-menu a {
    padding: 10px 18px 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-left: 3px solid transparent !important;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a.active {
    background: var(--gold-subtle, #fdfaf3) !important;
    color: var(--navy-deep, #0b1520) !important;
    border-left-color: var(--gold, #d6ad65) !important;
    font-weight: 700 !important;
  }

  .nav-actions {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .synex-user-nav-badge {
    padding: 3px 8px;
    font-size: 11.5px;
    gap: 5px;
  }

  .synex-user-nav-name {
    max-width: 90px;
  }

  .synex-user-nav-mod {
    display: none;
  }
}

@media (max-width: 768px) {
  .announcement-inner {
    justify-content: center;
    text-align: center;
  }
  
  .announcement-items {
    display: none;
  }

  .brand {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 170px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-tagline {
    display: none;
  }
  
  .nav-actions .btn {
    display: none;
  }

  .synex-user-nav-name {
    max-width: 65px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   ADMIN LOGIN TOP RIGHT BUTTONS & RESPONSIVE RULES
   ========================================================================== */
.announcement-admin-link {
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
.announcement-admin-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

.btn-outline-admin {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-outline-admin:hover {
  background: var(--navy);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 30, 44, 0.15);
}

.mobile-only-admin {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-admin {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
  }
}

/* ==========================================================================
   PRINT / PDF STYLESHEET FOR COST CALCULATOR
   ========================================================================== */
#printableEstimate {
  display: none;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #101e2c !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Exclude all non-essential UI elements from print/PDF */
  .announcement-bar,
  .site-header,
  .site-nav,
  .nav-actions,
  .page-header,
  .calculator-layout,
  .calc-panel,
  .calc-summary-panel,
  .site-footer,
  .back-to-top,
  .status-alert,
  button,
  .btn,
  input,
  select,
  textarea {
    display: none !important;
  }

  /* Reveal dedicated print estimate */
  #printableEstimate {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .print-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #d6ad65 !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
  }

  .print-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .print-logo-box {
    width: 40px !important;
    height: 40px !important;
    background: #101e2c !important;
    color: #d6ad65 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }

  .print-brand-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #101e2c !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  .print-brand-sub {
    font-size: 9.5px !important;
    color: #667085 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 3px 0 0 !important;
  }

  .print-meta {
    text-align: right !important;
    font-size: 11px !important;
    color: #344054 !important;
  }

  .print-doc-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #101e2c !important;
    margin: 0 0 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .print-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  .print-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
  }

  .print-card-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #667085 !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 3px !important;
  }

  .print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 16px !important;
    font-size: 10.5px !important;
  }

  .print-table th {
    background: #101e2c !important;
    color: #ffffff !important;
    padding: 7px 10px !important;
    font-weight: 700 !important;
    text-align: left !important;
    border: 1px solid #101e2c !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .print-table th:last-child,
  .print-table td:last-child {
    text-align: right !important;
  }

  .print-table th.center,
  .print-table td.center {
    text-align: center !important;
  }

  .print-table td {
    padding: 6px 10px !important;
    border: 1px solid #e2e8f0 !important;
    color: #1f2937 !important;
  }

  .print-table tr:nth-child(even) td {
    background: #fcfcfd !important;
  }

  .print-totals-wrapper {
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 18px !important;
  }

  .print-totals-box {
    width: 290px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .print-totals-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 11px !important;
  }

  .print-totals-row.grand-total {
    background: #101e2c !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border-bottom: none !important;
  }

  .print-totals-row.grand-total span:last-child {
    color: #d6ad65 !important;
  }

  .print-footer-note {
    font-size: 9px !important;
    color: #667085 !important;
    line-height: 1.5 !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
    margin-top: 14px !important;
    text-align: center !important;
  }

  @page {
    size: A4 portrait;
    margin: 12mm 15mm 15mm 15mm;
  }
}

/* ==========================================================================
   MATERIAL SUPPLY & SHOP BY CATEGORY MODULE
   ========================================================================== */
.mat-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.mat-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 173, 101, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mat-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.mat-stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
}

.mat-stat-label {
  font-size: 12.5px;
  color: #c4d1de;
}

/* Category Controls */
.mat-controls-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mat-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mat-filter-btn {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mat-filter-btn:hover {
  background: #e2e8f0;
  border-color: var(--gold);
}

.mat-filter-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(16, 30, 44, 0.2);
}

.mat-search-wrap {
  position: relative;
  min-width: 260px;
}

.mat-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.mat-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 173, 101, 0.2);
}

.mat-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

/* Material Category Grid & Cards */
.mat-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
  align-items: start;
}

.mat-cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.mat-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(16, 30, 44, 0.12);
  border-color: var(--gold);
}

.mat-cat-img-wrap {
  position: relative;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}

.mat-cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mat-cat-card:hover .mat-cat-img-wrap img {
  transform: scale(1.06);
}

.mat-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 30, 44, 0.1) 0%, rgba(16, 30, 44, 0.85) 100%);
}

.mat-cat-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 30, 44, 0.85);
  color: var(--gold);
  border: 1px solid rgba(214, 173, 101, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.mat-cat-icon-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mat-cat-icon-circle {
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mat-cat-meta-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-heading);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mat-cat-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mat-cat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Expandable Control Button */
.mat-expand-btn {
  width: 100%;
  background: #f8fafc;
  border: 1px solid rgba(16, 30, 44, 0.12);
  border-radius: var(--radius-md, 8px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 2px;
  margin-bottom: 14px;
  font-family: inherit;
  color: var(--navy);
  box-sizing: border-box;
}

.mat-expand-btn:hover {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 3px 10px rgba(214, 173, 101, 0.22);
}

.mat-expand-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.mat-cat-card.is-expanded .mat-expand-btn {
  background: rgba(16, 30, 44, 0.04);
  border-color: rgba(214, 173, 101, 0.6);
}

.mat-expand-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mat-expand-main-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.mat-expand-sub-label {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
}

.mat-expand-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  margin-left: 10px;
}

.mat-expand-btn:hover .mat-expand-icon {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.08);
}

.mat-cat-card.is-expanded .mat-expand-btn:hover .mat-expand-icon {
  background: var(--gold);
  color: var(--navy);
}

/* Collapsible Content Container */
.mat-cat-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
  visibility: hidden;
  margin: 0 -24px;
}

.mat-cat-card.is-expanded .mat-cat-details {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-cat-details-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mat-cat-card.is-expanded .mat-cat-details-inner {
  opacity: 1;
  transform: translateY(0);
}

.mat-specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.mat-spec-pill {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(214, 173, 101, 0.35);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
}

.mat-product-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.mat-product-highlights li {
  font-size: 13px;
  color: #334155;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.45;
}

.mat-product-highlights li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 12px;
}

.mat-brands-bar {
  background: #f8fafc;
  border-top: 1px dashed var(--border);
  padding: 10px 24px;
  margin: 0 -24px 14px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mat-brands-bar strong {
  color: var(--navy);
}

.mat-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mat-pricing-indicator {
  font-size: 11.5px;
  color: var(--text-muted);
}

.mat-pricing-indicator strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.mat-inquire-btn {
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
}

.mat-inquire-btn:active,
.mat-inquire-btn.is-active {
  transform: translateY(2px) scale(0.96);
  filter: brightness(0.92);
  box-shadow: 0 1px 3px rgba(16, 30, 44, 0.25);
}

#rfqSection {
  scroll-margin-top: 86px;
}

/* Material RFQ Section & Form */
.mat-rfq-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.88fr 1.42fr;
  align-items: stretch;
}

.mat-rfq-sidebar {
  background: linear-gradient(135deg, #101e2c 0%, #192e42 100%);
  color: #ffffff;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mat-rfq-content {
  padding: 40px 38px;
  background: #ffffff;
}

.mat-perk-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.mat-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(214, 173, 101, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Redesigned Portal Form Sections */
.mat-form-section {
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  transition: border-color 0.2s ease;
}

.mat-form-section:focus-within {
  border-color: rgba(214, 173, 101, 0.6);
}

.mat-section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.mat-section-badge {
  background: var(--navy);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.mat-section-title {
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 4px;
}

.mat-section-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

/* Upload Dropzone */
.mat-upload-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mat-upload-dropzone:hover,
.mat-upload-dropzone.drag-over {
  border-color: var(--gold);
  background: rgba(214, 173, 101, 0.08);
}

.mat-dropzone-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.mat-dropzone-text {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.mat-browse-btn {
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.mat-browse-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.mat-dropzone-formats {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Uploaded Files List */
.mat-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.mat-file-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mat-file-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.mat-file-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.mat-file-badge.pdf {
  background: #fee4e2;
  color: #b42318;
}

.mat-file-badge.xlsx,
.mat-file-badge.xls {
  background: #ecfdf3;
  color: #027a48;
}

.mat-file-badge.docx,
.mat-file-badge.doc {
  background: #eff8ff;
  color: #175cd3;
}

.mat-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.mat-file-size {
  font-size: 11.5px;
  color: var(--text-muted);
}

.mat-file-status-badge {
  font-size: 11px;
  font-weight: 600;
  color: #027a48;
  background: #ecfdf3;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
}

.mat-file-remove-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mat-file-remove-btn:hover {
  background: #fee4e2;
  color: #b42318;
}

/* Dynamic Material Cards */
.mat-items-counter-badge {
  background: rgba(16, 30, 44, 0.06);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.mat-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mat-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mat-item-card:hover {
  border-color: rgba(214, 173, 101, 0.4);
}

.mat-item-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.mat-item-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.mat-item-index {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.mat-item-summary-pill {
  font-size: 11.5px;
  color: #475467;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.mat-item-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mat-collapse-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
}

.mat-remove-item-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.mat-remove-item-btn:hover {
  background: #fee4e2;
  color: #b42318;
  border-color: #fecdca;
}

.mat-remove-item-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.mat-item-body {
  padding: 16px;
}

.mat-item-body.collapsed {
  display: none;
}

/* Grids for inputs */
.mat-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.mat-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
  margin-bottom: 14px;
}

.mat-field-error {
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.35;
}

.req-star {
  color: #b42318;
  font-weight: 700;
}

.opt-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
}

/* Phone input with flag/prefix */
.phone-input-group {
  display: flex;
  align-items: center;
}

.phone-input-group .country-prefix {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 12px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}

.phone-input-group .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Submit Section & Trust Badge */
.mat-submit-trust {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .mat-rfq-wrapper {
    grid-template-columns: 1fr;
  }
  .mat-rfq-sidebar {
    padding: 32px 24px;
  }
  .mat-rfq-content {
    padding: 32px 24px;
  }
  .mat-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mat-grid-2,
  .mat-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .mat-form-section {
    padding: 16px;
  }
  .mat-file-name {
    max-width: 170px;
  }
  .mat-item-summary-pill {
    max-width: 150px;
  }
}

/* Control validation error highlight */
.control-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  background-color: #fffafa !important;
}

