/* ==========================================================================
   DESIGN 3: AXIS ENGINEERING & BOQ ARCHITECTURAL STUDIO
   Technical Swiss Blueprint & CAD Interactive Atmosphere
   ========================================================================== */

:root {
  --bg-cad: #090e1a;
  --bg-surface: #101726;
  --bg-elevated: #162035;
  --bg-glass: rgba(16, 23, 38, 0.88);
  
  --cad-gold: #f4b41a;
  --cad-gold-soft: rgba(244, 180, 26, 0.12);
  --cad-cyan: #38bdf8;
  
  --border-cad: rgba(244, 180, 26, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --whatsapp-color: #25d366;
  --whatsapp-glow: 0 8px 24px rgba(37, 211, 102, 0.35);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-arabic: 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.blueprint-theme {
  background-color: var(--bg-cad);
  color: var(--text-main);
  font-family: var(--font-arabic);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* CAD GRID BACKGROUND */
.cad-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* TYPOGRAPHY */
.text-cad-gold {
  color: var(--cad-gold);
}

.tech-sub-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cad-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 620px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}
.text-center .section-desc {
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.92rem;
}

.btn-cad-action {
  background: var(--cad-gold);
  color: #090e1a;
  border-radius: var(--radius-full);
  font-weight: 700;
  padding: 8px 18px;
  font-size: 0.82rem;
}
.btn-cad-action:hover {
  background: #ffc43a;
  transform: translateY(-2px);
}

.btn-gold-lg {
  background: var(--cad-gold);
  color: #090e1a;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(244, 180, 26, 0.25);
}
.btn-gold-lg:hover {
  background: #ffc43a;
  transform: translateY(-2px);
}

.btn-glass-lg {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
}
.btn-glass-lg:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cad-gold);
  color: var(--cad-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING HEADER
   ========================================================================== */
.floating-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-cad-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cad-gold-soft);
  border: 1px solid var(--border-cad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-meta {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
}
.logo-tag {
  font-size: 0.68rem;
  color: var(--cad-gold);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}
.nav-item:hover, .nav-item.active {
  color: #fff;
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cad-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.technical-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(244, 180, 26, 0.08);
  border: 1px solid var(--border-cad);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--cad-gold);
  margin-bottom: 18px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cad-gold);
  box-shadow: 0 0 8px var(--cad-gold);
}

.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-specs-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  width: fit-content;
}
.spec-node {
  display: flex;
  flex-direction: column;
}
.node-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cad-gold);
}
.node-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.node-sep {
  color: var(--border-subtle);
}

/* CAD VIEWPORT CARD */
.cad-viewport-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-cad);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cad-card-header {
  background: rgba(244, 180, 26, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.cad-dots {
  display: flex;
  gap: 6px;
}
.cad-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.cad-viewport-title {
  color: var(--text-secondary);
}
.cad-scale-badge {
  color: var(--cad-gold);
  font-weight: 700;
}

.cad-image-container {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.cad-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cad-crosshair {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--cad-gold);
  border-radius: 50%;
  pointer-events: none;
}
.cad-crosshair::before, .cad-crosshair::after {
  content: '';
  position: absolute;
  background: var(--cad-gold);
}
.cad-crosshair::before {
  top: 50%; left: -6px; right: -6px; height: 1px;
}
.cad-crosshair::after {
  left: 50%; top: -6px; bottom: -6px; width: 1px;
}
.ch-1 { top: 25%; right: 30%; }
.ch-2 { bottom: 35%; left: 25%; }

.cad-inspect-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(9, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cad);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cad-inspect-badge i {
  color: var(--cad-gold);
}

/* ==========================================================================
   BLUEPRINT LAB & CAD ZONE EXPLORER
   ========================================================================== */
.blueprint-lab-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.blueprint-lab-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 30px;
  align-items: center;
}

.blueprint-zones-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
  width: 100%;
}
.zone-btn:hover {
  border-color: var(--border-cad);
  transform: translateX(-3px);
}
.zone-btn.active {
  border-color: var(--cad-gold);
  background: rgba(244, 180, 26, 0.08);
}

.zone-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.zone-btn.active .zone-icon {
  background: var(--cad-gold);
  color: #090e1a;
}

.zone-info {
  flex-grow: 1;
}
.zone-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.zone-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.zone-arrow {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: var(--transition);
}
.zone-btn.active .zone-arrow {
  color: var(--cad-gold);
  transform: translateX(-3px);
}

/* Stage Display */
.blueprint-display-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-cad);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.stage-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #000;
}
.stage-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.cad-zone-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cad);
  color: var(--cad-gold);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.stage-specs-card {
  padding: 24px;
}
.stage-zone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.stage-zone-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.stage-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.spec-cell {
  display: flex;
  flex-direction: column;
}
.s-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.s-val {
  font-size: 0.85rem;
  color: var(--cad-gold);
  font-weight: 600;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-filters {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.p-filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.p-filter-btn:hover {
  color: #fff;
}
.p-filter-btn.active {
  background: var(--cad-gold);
  color: #090e1a;
  font-weight: 700;
}

.technical-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.eng-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.eng-card:hover {
  border-color: var(--border-cad);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.eng-card:hover .card-thumb img {
  transform: scale(1.05);
}

.thumb-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 14, 26, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--cad-gold);
  font-weight: 600;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.card-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cad-gold);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   BOQ CALCULATOR SECTION
   ========================================================================== */
.boq-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.boq-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.boq-form-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.boq-field-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.f-label i {
  color: var(--cad-gold);
}

.f-area-display {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cad-gold);
}
.f-area-display span {
  font-size: 1rem;
  color: var(--text-muted);
}

.boq-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  margin: 16px 0 8px;
}
.boq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cad-gold);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(244, 180, 26, 0.6);
  border: 2px solid #090e1a;
  transition: transform 0.15s ease;
}
.boq-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Tiers */
.boq-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.boq-tier-option {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition);
}
.boq-tier-option input {
  display: none;
}
.boq-tier-option.active {
  background: rgba(244, 180, 26, 0.08);
  border-color: var(--cad-gold);
}
.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tier-top h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
}
.t-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cad-gold);
}
.t-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Addons */
.boq-addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.addon-toggle-box {
  cursor: pointer;
}
.addon-toggle-box input {
  display: none;
}
.t-box-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.t-box-inner i {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.t-box-inner span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
}
.t-box-inner strong {
  font-size: 0.72rem;
  color: var(--cad-gold);
}
.addon-toggle-box input:checked + .t-box-inner {
  background: rgba(244, 180, 26, 0.1);
  border-color: var(--cad-gold);
}
.addon-toggle-box input:checked + .t-box-inner i {
  color: var(--cad-gold);
}

/* BOQ Sheet Column */
.boq-sheet-col {
  position: sticky;
  top: 90px;
}

.boq-sheet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-cad);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sheet-head {
  background: rgba(244, 180, 26, 0.08);
  border-bottom: 1px solid var(--border-cad);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sheet-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cad-gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.sheet-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sheet-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.sheet-line span {
  color: var(--text-secondary);
}
.sheet-line strong {
  color: #fff;
}

.sheet-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.sheet-total-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tot-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.tot-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tot-amount-wrap .currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cad-gold);
}
.animated-digits {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: var(--font-arabic);
}

.tot-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
}
.tot-details strong {
  color: var(--cad-gold);
}

.btn-whatsapp-boq {
  width: 100%;
  background: var(--whatsapp-color);
  color: #0b2214;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--whatsapp-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 10px;
  transition: var(--transition);
  text-align: center;
}
.btn-whatsapp-boq:hover {
  background: #1eb857;
  transform: translateY(-2px);
}

.sheet-footer-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   STANDARDS STRIP
   ========================================================================== */
.standards-section {
  padding: 50px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.std-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.std-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--cad-gold-soft);
  color: var(--cad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.std-box h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}
.std-box p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cad-footer {
  background: #050810;
  padding: 60px 0 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.f-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 6px;
}
.f-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.f-col-contact h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cad-gold);
  margin-bottom: 14px;
}
.f-col-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.f-col-contact i {
  color: var(--cad-gold);
}

.f-sub-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}
.f-sub-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MODAL: 5-PHOTO CAROUSEL
   ========================================================================== */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.project-modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-cad);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-close-icon:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.modal-gallery-wrapper {
  position: relative;
  width: 100%;
}

.gallery-main-container {
  position: relative;
  width: 100%;
  height: 440px;
  background: #050608;
  overflow: hidden;
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(9, 14, 26, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.95rem;
  transition: var(--transition);
}
.gallery-arrow:hover {
  background: var(--cad-gold);
  color: #090e1a;
}
.prev-btn { right: 14px; }
.next-btn { left: 14px; }

.gallery-counter-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
}

.gallery-thumbnails-strip {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: #050810;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.gallery-thumb {
  width: 74px;
  height: 50px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.5;
  transition: var(--transition);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb:hover, .gallery-thumb.active {
  opacity: 1;
  border-color: var(--cad-gold);
}

.modal-details {
  padding: 24px 28px;
}
.modal-badge {
  display: inline-block;
  background: var(--cad-gold-soft);
  border: 1px solid var(--border-cad);
  color: var(--cad-gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.meta-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-box span {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.meta-box strong {
  font-size: 0.88rem;
  color: #fff;
}

.modal-specs {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.modal-specs h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.specs-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.specs-list li i {
  color: var(--cad-gold);
  font-size: 0.75rem;
}

.modal-cta-bar {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   FLOATING ACTIONS
   ========================================================================== */
.floating-contact-dock {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: var(--transition);
}
.dock-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.dock-whatsapp {
  background: var(--whatsapp-color);
  box-shadow: var(--whatsapp-glow);
}
.dock-phone {
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.dock-tooltip {
  position: absolute;
  right: 58px;
  background: var(--bg-surface);
  border: 1px solid var(--border-cad);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition);
}
.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.floating-scroll-dock {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 998;
}

.scroll-top-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: none;
  color: var(--cad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--transition);
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--bg-elevated);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}
.progress-ring-circle {
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 0.1s linear;
}

/* ==========================================================================
   MOBILE & TABLET
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blueprint-lab-grid {
    grid-template-columns: 1fr;
  }
  .technical-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .boq-grid {
    grid-template-columns: 1fr;
  }
  .boq-sheet-col {
    position: static;
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .floating-header {
    top: 8px;
    padding: 0 8px;
  }
  .header-inner {
    padding: 6px 12px;
  }
  .logo-name {
    font-size: 0.92rem;
  }
  .logo-tag {
    font-size: 0.62rem;
  }
  .logo-cad-badge {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    background: #090e1a;
    border: 1px solid var(--border-cad);
    border-radius: var(--radius-lg);
    padding: 20px;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 10000;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .btn-cad-action {
    display: none;
  }

  .hero-section {
    padding-top: 88px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }
  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .hero-specs-row {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .node-val {
    font-size: 1.05rem;
  }
  .node-sub {
    font-size: 0.65rem;
  }

  .technical-projects-grid {
    grid-template-columns: 1fr;
  }
  .boq-addons-grid {
    grid-template-columns: 1fr;
  }
  .stage-specs-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main-container {
    height: 280px;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
  .specs-list {
    grid-template-columns: 1fr;
  }
  .modal-cta-bar {
    flex-direction: column;
  }

  .floating-contact-dock {
    bottom: 14px;
    left: 14px;
  }
  .floating-scroll-dock {
    bottom: 14px;
    right: 14px;
  }
  .dock-btn {
    width: 44px;
    height: 44px;
  }
  .scroll-top-btn {
    width: 42px;
    height: 42px;
  }
}
