/* ==========================================================================
   APEXX CONTRACTING & FACADE ENGINEERING
   Design System & Luxury Architectural Stylesheet
   Inspired by Butech.es (Porcelanosa Grupo)
   ========================================================================== */

:root {
  /* Brand Palette (Derived from APEXX Logo) */
  --apex-navy: #0e2b4c;
  --apex-navy-dark: #071526;
  --apex-navy-deep: #050f1c;
  --apex-navy-light: #163e6d;
  
  --apex-orange: #f16e10;
  --apex-orange-hover: #d95f09;
  --apex-orange-light: #ff8b38;
  --apex-orange-glow: rgba(241, 110, 16, 0.28);
  --apex-orange-soft: rgba(241, 110, 16, 0.08);

  /* Neutrals & Surfaces */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-dark: #0a1728;
  --bg-dark-card: #0e2238;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: #f16e10;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(14, 43, 76, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 43, 76, 0.09);
  --shadow-lg: 0 20px 50px rgba(14, 43, 76, 0.14);
  --shadow-orange: 0 10px 30px rgba(241, 110, 16, 0.3);

  /* Layout & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apex-orange);
  margin-bottom: 0.75rem;
  background: var(--apex-orange-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--apex-orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--apex-navy);
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--text-white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
}

.section-desc.light {
  color: var(--text-light);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background: var(--apex-navy-dark);
  color: #94a3b8;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--apex-orange);
}

.top-bar-item a:hover {
  color: var(--text-white);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #4ade80;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   MAIN NAVBAR & STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 43, 76, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 21, 38, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  transition: height var(--transition-fast);
}

.site-header.scrolled .header-inner {
  height: 70px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-header.scrolled .brand-logo-img {
  height: 40px;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--apex-orange);
}

.nav-link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link svg {
  transform: rotate(180deg);
}

/* Mega Dropdown Menus */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #0a1b2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  width: 680px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.nav-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mega-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mega-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--apex-orange-soft);
  color: var(--apex-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-icon svg {
  width: 18px;
  height: 18px;
}

.mega-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.mega-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--apex-orange);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--apex-orange-glow);
}

.btn-primary:hover {
  background: var(--apex-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 110, 16, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   HERO ARCHITECTURAL SLIDER
   ========================================================================== */
.hero-slider-section {
  position: relative;
  height: 85vh;
  min-height: 600px;
  max-height: 860px;
  background: var(--apex-navy-dark);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(5, 15, 28, 0.88) 0%,
    rgba(14, 43, 76, 0.72) 55%,
    rgba(7, 21, 38, 0.45) 100%
  );
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--apex-orange);
  background: rgba(241, 110, 16, 0.15);
  border: 1px solid rgba(241, 110, 16, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title span.accent {
  color: var(--apex-orange);
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrows {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.slider-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: var(--apex-orange);
  border-color: var(--apex-orange);
}

.slider-arrow-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 1.5rem;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.slider-dot {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.slider-dot.active {
  background: var(--apex-orange);
  width: 50px;
}

/* ==========================================================================
   METRICS RIBBON (FLOATING STATS)
   ========================================================================== */
.stats-ribbon {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  margin-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.stat-item {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: #fafcff;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--apex-navy);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
}

.stat-num span.suffix {
  color: var(--apex-orange);
  font-size: 1.75rem;
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apex-navy);
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   THE "DUAL ADVANTAGE" SECTION (GC + FACADE)
   ========================================================================== */
.dual-advantage-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.dual-text .section-title {
  margin-bottom: 1.25rem;
}

.advantage-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.advantage-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--apex-navy);
  transition: all var(--transition-fast);
}

.advantage-card:hover {
  border-left-color: var(--apex-orange);
  transform: translateX(4px);
  background: #fdfdfd;
  box-shadow: var(--shadow-sm);
}

.advantage-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--apex-orange-soft);
  color: var(--apex-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantage-icon svg {
  width: 22px;
  height: 22px;
}

.advantage-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--apex-navy);
  margin-bottom: 0.25rem;
}

.advantage-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Comparison Box */
.comparison-box {
  background: var(--apex-navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.comparison-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--apex-orange) 0%, transparent 70%);
  opacity: 0.25;
}

.comparison-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.comparison-item svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.comparison-item.negative svg {
  color: #ef4444;
}

.comparison-item span strong {
  color: var(--text-white);
}

/* ==========================================================================
   SYSTEMS & FACADES SHOWCASE (BUTECH STYLE)
   ========================================================================== */
.systems-section {
  padding: 6rem 0;
  background: #f1f5f9;
}

.section-head-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.system-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.system-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(241, 110, 16, 0.4);
}

.system-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.system-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.system-card:hover .system-img-wrap img {
  transform: scale(1.08);
}

.system-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 43, 76, 0.88);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.system-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.system-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--apex-navy);
  margin-bottom: 0.65rem;
}

.system-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Specs Micro-Table */
.system-specs-list {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.spec-name {
  color: var(--text-muted);
}

.spec-val {
  font-weight: 700;
  color: var(--apex-navy);
  font-family: var(--font-mono);
}

.system-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.btn-card-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--apex-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.btn-card-link:hover {
  color: var(--apex-orange-hover);
  gap: 0.55rem;
}

/* ==========================================================================
   INTERACTIVE SYSTEM CONFIGURATOR / ESTIMATOR
   ========================================================================== */
.configurator-section {
  padding: 6rem 0;
  background: var(--apex-navy-deep);
  color: var(--text-white);
  position: relative;
}

.configurator-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.config-options-group {
  margin-bottom: 1.75rem;
}

.config-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  display: block;
}

.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.selector-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.selector-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.selector-pill.active {
  background: var(--apex-orange);
  border-color: var(--apex-orange);
  color: var(--text-white);
  box-shadow: 0 4px 12px var(--apex-orange-glow);
}

/* Config Result Card */
.config-result-card {
  background: rgba(14, 43, 76, 0.6);
  border: 1px solid rgba(241, 110, 16, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--apex-orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.result-system-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.result-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.result-spec-item .r-label {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.result-spec-item .r-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-mono);
}

/* ==========================================================================
   PROJECTS & CASE STUDIES SHOWCASE
   ========================================================================== */
.projects-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--apex-navy);
  border-color: var(--apex-navy);
}

.filter-btn.active {
  background: var(--apex-navy);
  color: var(--text-white);
  border-color: var(--apex-navy);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--apex-navy-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img-bg {
  transform: scale(1.08);
}

.project-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(5, 15, 28, 0.95) 0%,
    rgba(14, 43, 76, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
}

.project-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--apex-orange);
  margin-bottom: 0.35rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* ==========================================================================
   BUTECH-STYLE TECHNICAL FAQ
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
  background: #f8fafc;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  border-top: 1px solid var(--border-light);
  margin-top: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--apex-navy);
  transition: color var(--transition-fast);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--apex-orange);
}

.faq-icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--apex-navy);
  transition: all var(--transition-normal);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item[open] .faq-icon::before {
  background: var(--apex-orange);
}

.faq-answer {
  padding: 0 0.5rem 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT & RFP SECTION
   ========================================================================== */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
}

/* Contact Info Card */
.contact-card {
  background: var(--apex-navy);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.c-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.c-info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(241, 110, 16, 0.15);
  color: var(--apex-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-info-icon svg {
  width: 20px;
  height: 20px;
}

.c-info-text strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.c-info-text span, .c-info-text a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
}

.c-info-text a:hover {
  color: var(--apex-orange);
}

/* Form */
.rfp-form-wrap {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--apex-navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--apex-orange);
  box-shadow: 0 0 0 3px var(--apex-orange-soft);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--apex-navy-deep);
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--apex-orange);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   MODAL / POPUP CASE STUDY
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 15, 28, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--apex-navy);
  color: var(--text-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--apex-orange);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .systems-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .dual-grid, .configurator-wrap, .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-left, .main-nav, .header-actions {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .systems-grid, .projects-grid, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .configurator-wrap, .rfp-form-wrap, .contact-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   LANGUAGE SELECTOR STYLES (EN, FR, ES)
   ========================================================================== */
.lang-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  transition: all var(--transition-fast);
}

.lang-selector-wrap:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--apex-orange);
}

.lang-globe-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
}

.lang-select-dropdown {
  background: transparent;
  color: #ffffff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding-right: 0.25rem;
}

.lang-select-dropdown option {
  background: #071526;
  color: #ffffff;
  padding: 0.5rem;
}

.mobile-lang-wrap {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-lang-wrap label {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-lang-wrap .lang-selector-wrap {
  flex: 1;
}

/* ==========================================================================
   SYSTEM TECHNICAL SPECS MODAL
   ========================================================================== */
#systemModal .modal-card {
  max-width: 880px;
}

.system-modal-header {
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.system-modal-body {
  padding: 2rem;
  max-height: 75vh;
  overflow-y: auto;
}

.system-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .system-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.system-modal-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.system-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.system-modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.system-modal-specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.system-modal-specs-table tr:last-child {
  border-bottom: none;
}

.system-modal-specs-table td {
  padding: 0.65rem 0.5rem;
}

.system-modal-specs-table td.label-cell {
  font-weight: 600;
  color: var(--apex-navy);
  width: 42%;
}

.system-modal-specs-table td.val-cell {
  color: #334155;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.system-modal-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.system-material-tag {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apex-navy);
}

.system-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

/* Card highlight animation when navigated from mega menu */
@keyframes cardGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 110, 16, 0.7);
    transform: translateY(0);
  }
  40% {
    box-shadow: 0 0 25px 6px rgba(241, 110, 16, 0.55);
    transform: translateY(-8px);
    border-color: var(--apex-orange);
  }
  100% {
    box-shadow: var(--shadow-md);
    transform: translateY(0);
  }
}

.card-highlight-pulse {
  animation: cardGlowPulse 1.8s ease-in-out;
  border-color: var(--apex-orange) !important;
}

/* ==========================================================================
   CONTACT CARD COORDINATES & ICON SIZING
   Fix for oversized SVGs
   ========================================================================== */
.coord-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1.15rem !important;
  margin-bottom: 1.5rem !important;
}

.coord-item:last-child {
  margin-bottom: 0 !important;
}

.coord-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(241, 110, 16, 0.15) !important;
  color: var(--apex-orange) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.coord-icon svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block !important;
  stroke: var(--apex-orange) !important;
  flex-shrink: 0 !important;
}

.coord-label {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
  margin-bottom: 0.25rem !important;
}

.coord-val {
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: var(--text-white) !important;
  line-height: 1.5 !important;
}

.coord-val a {
  color: var(--text-white) !important;
  transition: color var(--transition-fast) !important;
}

.coord-val a:hover {
  color: var(--apex-orange) !important;
}

/* Footer Contact Item Icons */
.footer-contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 0.85rem !important;
  font-size: 0.88rem !important;
  color: #cbd5e1 !important;
}

.footer-contact-item svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  color: var(--apex-orange) !important;
  stroke: var(--apex-orange) !important;
  display: block !important;
}

.footer-contact-item a {
  color: #cbd5e1 !important;
}

.footer-contact-item a:hover {
  color: var(--apex-orange) !important;
}
