/* 
  THIRITHUVA ASSOCIATES - Engineered Trust Design System
  Color Palette: Royal Architectural Blue & Midnight Navy Emphasis
*/

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

:root {
  /* Default Dark Mode Theme */
  --bg-obsidian: #060D18;
  /* Midnight Deep Navy */
  --bg-surface: #0B172B;
  /* Royal Dark Navy Surface */
  --bg-card: rgba(17, 34, 64, 0.55);
  --bg-card-hover: rgba(25, 46, 84, 0.72);
  --bg-light: #F0F6FF;

  --text-primary: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --text-dark-muted: #475569;

  --steel-grey: #1E293B;
  --border-cad: rgba(56, 189, 248, 0.22);
  --border-cad-accent: rgba(0, 163, 255, 0.5);
  --border-light: #CBD5E1;

  --accent-blue: #0052CC;
  --accent-blue-bright: #0066FF;
  --accent-blue-hover: #0047AB;
  --accent-cyan: #00A3FF;
  --accent-cyan-soft: rgba(0, 163, 255, 0.15);

  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BA5A;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  --shadow-cad: 0 4px 20px rgba(0, 56, 147, 0.35);
  --shadow-accent: 0 4px 25px rgba(0, 163, 255, 0.3);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════
   SMOOTH THEME TRANSITION ANIMATIONS
   ═══════════════════════════════════════════════════ */

/* Universal smooth fallback interpolation applied ONLY when View Transitions API is unsupported */
.theme-transitioning,
.theme-transitioning body,
.theme-transitioning .site-header,
.theme-transitioning .site-footer,
.theme-transitioning .cad-card,
.theme-transitioning .equipment-card,
.theme-transitioning .calculator-box,
.theme-transitioning .pillar-content,
.theme-transitioning .form-input,
.theme-transitioning .form-select,
.theme-transitioning .btn {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
}

/* Modern Hardware-Accelerated View Transitions API – Smooth Circular Radial Sweep */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
  animation: radialClipExpand 0.48s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes radialClipExpand {
  from {
    clip-path: circle(0px at var(--theme-toggle-x, 50%) var(--theme-toggle-y, 50%));
  }

  to {
    clip-path: circle(var(--theme-toggle-radius, 150vmax) at var(--theme-toggle-x, 50%) var(--theme-toggle-y, 50%));
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════
   LIGHT THEME – High-Contrast Professional Blueprint
   ═══════════════════════════════════════════════════ */

[data-theme="light"] {
  --bg-obsidian: #EEF2FF;
  --bg-surface: #E2E8F8;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(241, 245, 255, 0.98);
  --bg-light: #FFFFFF;

  --text-primary: #0B1526;
  --text-muted: #334155;
  --text-dark: #0B1526;
  --text-dark-muted: #64748B;

  --border-cad: rgba(0, 82, 204, 0.2);
  --border-cad-accent: rgba(0, 82, 204, 0.55);
  --border-light: #94A3B8;

  --accent-blue: #0047AB;
  --accent-blue-bright: #0052CC;
  --accent-blue-hover: #003585;
  --accent-cyan: #0052CC;
  --accent-cyan-soft: rgba(0, 82, 204, 0.12);

  --shadow-cad: 0 4px 20px rgba(0, 56, 147, 0.12);
  --shadow-accent: 0 4px 25px rgba(0, 82, 204, 0.18);
}

/* HTML & BODY */
[data-theme="light"] html,
[data-theme="light"] body {
  background-color: #EEF2FF;
  color: #0B1526;
}

/* CAD grid background */
[data-theme="light"] .cad-grid-bg {
  background-color: #EEF2FF;
  background-image:
    linear-gradient(rgba(0, 71, 171, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 171, 0.07) 1px, transparent 1px);
}

[data-theme="light"] .cad-light-grid-bg {
  background-color: #F8FAFF;
  background-image:
    linear-gradient(rgba(0, 71, 171, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 171, 0.06) 1px, transparent 1px);
}

/* HEADER */
[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 71, 171, 0.18);
  box-shadow: 0 4px 24px rgba(0, 56, 147, 0.1);
}

/* LOGO text – scoped to header only so footer logo stays white */
[data-theme="light"] .site-header .logo-title {
  color: #0B1526;
}

[data-theme="light"] .site-header .logo-subtitle {
  color: #0052CC;
}

[data-theme="light"] .site-header .logo-tagline {
  color: #0047AB;
  border-top-color: #0052CC;
}

/* NAV */
[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0047AB;
}

[data-theme="light"] .mobile-nav-toggle {
  color: #0B1526;
  border-color: rgba(0, 71, 171, 0.25);
}

/* MOBILE NAV OPEN STATE */
[data-theme="light"] .nav-menu.open {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 71, 171, 0.15);
}

/* HERO */
[data-theme="light"] .hero-section {
  border-bottom-color: rgba(0, 71, 171, 0.15);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(135deg, rgba(228, 235, 255, 0.97) 40%, rgba(214, 226, 255, 0.9) 100%);
}

[data-theme="light"] .hero-title {
  color: #0B1526;
}

[data-theme="light"] .hero-title span {
  color: #0047AB;
}

[data-theme="light"] .hero-subheadline {
  color: #334155;
}

/* SECTION HEADERS & TYPOGRAPHY */
[data-theme="light"] .section-title {
  color: #0B1526;
}

/* Scope p color to not leak into dark-always footer */
[data-theme="light"] body>section p,
[data-theme="light"] .hero-section p,
[data-theme="light"] .cad-card p,
[data-theme="light"] .equipment-card p,
[data-theme="light"] .pillar-content p,
[data-theme="light"] .step-card p,
[data-theme="light"] .calculator-box p {
  color: #334155;
}

[data-theme="light"] .section-subtitle {
  color: #0047AB;
}

[data-theme="light"] .text-gold,
[data-theme="light"] .text-blue {
  color: #0047AB;
}

/* CAD BADGES */
[data-theme="light"] .cad-badge {
  background: rgba(0, 71, 171, 0.08);
  border-color: rgba(0, 71, 171, 0.4);
  color: #0047AB;
}

[data-theme="light"] .cad-badge-dot {
  background-color: #0047AB;
}

/* BUTTONS */
[data-theme="light"] .btn-secondary {
  background: rgba(0, 71, 171, 0.08);
  color: #0047AB;
  border-color: rgba(0, 71, 171, 0.3);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 71, 171, 0.15);
  color: #0047AB;
  border-color: #0047AB;
}

/* TRUST BAR */
[data-theme="light"] .trust-bar {
  background: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(0, 71, 171, 0.12);
  border-bottom-color: rgba(0, 71, 171, 0.12);
}

[data-theme="light"] .trust-item {
  background: rgba(0, 71, 171, 0.04);
  border-color: rgba(0, 71, 171, 0.15);
  border-left-color: #0047AB;
}

[data-theme="light"] .trust-number {
  color: #0047AB;
}

[data-theme="light"] .trust-label {
  color: #0B1526;
}

/* CAD SERVICE CARDS */
[data-theme="light"] .cad-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 71, 171, 0.18);
  box-shadow: 0 4px 24px rgba(0, 56, 147, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .cad-card:hover {
  background: rgba(241, 245, 255, 0.99);
  border-color: rgba(0, 71, 171, 0.5);
  box-shadow: 0 12px 40px rgba(0, 56, 147, 0.15);
}

[data-theme="light"] .cad-card-header {
  border-bottom-color: rgba(0, 71, 171, 0.12);
}

[data-theme="light"] .cad-card-num {
  color: #0047AB;
}

[data-theme="light"] .cad-card-title {
  color: #0B1526;
}

[data-theme="light"] .cad-card-list li {
  color: #334155;
}

[data-theme="light"] .cad-card-list li::before {
  color: #0047AB;
}

/* EQUIPMENT CARDS */
[data-theme="light"] .equipment-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 71, 171, 0.18);
  box-shadow: 0 4px 20px rgba(0, 56, 147, 0.08);
}

[data-theme="light"] .equipment-card:hover {
  border-color: rgba(0, 71, 171, 0.5);
  box-shadow: 0 12px 40px rgba(0, 56, 147, 0.14);
}

[data-theme="light"] .equipment-tag {
  background: rgba(255, 255, 255, 0.92);
  color: #0047AB;
  border-color: #0047AB;
}

[data-theme="light"] .equipment-title {
  color: #0B1526;
}

[data-theme="light"] .equipment-specs {
  background: rgba(238, 242, 255, 0.7);
  border-color: rgba(0, 71, 171, 0.2);
}

[data-theme="light"] .spec-label {
  color: #64748B;
}

[data-theme="light"] .spec-val {
  color: #0B1526;
}

/* CALCULATOR BOX */
[data-theme="light"] .calculator-box {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 71, 171, 0.3);
  box-shadow: 0 10px 40px rgba(0, 56, 147, 0.1);
}

[data-theme="light"] .calc-result-box {
  background: rgba(238, 242, 255, 0.8);
  border-color: rgba(0, 71, 171, 0.2);
}

[data-theme="light"] .calc-price {
  color: #0047AB;
}

/* FORM INPUTS & SELECTS */
[data-theme="light"] .form-label {
  color: #0047AB;
}

[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 71, 171, 0.22);
  color: #0B1526;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-input::placeholder {
  color: #94A3B8;
}

[data-theme="light"] .form-input:hover {
  border-color: #0052CC;
  background: #FFFFFF;
}

[data-theme="light"] .form-input:focus {
  border-color: #0047AB;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
  background: #FFFFFF;
}

[data-theme="light"] .form-select {
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230047AB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  border-color: rgba(0, 71, 171, 0.22);
  color: #0B1526;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-select:hover {
  border-color: #0052CC;
  background-color: #FFFFFF;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 10px rgba(0, 71, 171, 0.12);
}

[data-theme="light"] .form-select:focus {
  border-color: #0047AB;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
  background-color: #FFFFFF;
}

[data-theme="light"] .form-select option {
  background-color: #FFFFFF;
  color: #0B1526;
}

/* PILLAR TABS (Real Estate) */
[data-theme="light"] .pillar-tab {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 71, 171, 0.18);
  color: #475569;
}

[data-theme="light"] .pillar-tab:hover,
[data-theme="light"] .pillar-tab.active {
  background: rgba(255, 255, 255, 0.98);
  color: #0047AB;
  border-color: #0047AB;
  box-shadow: 0 0 16px rgba(0, 71, 171, 0.15);
}

[data-theme="light"] .pillar-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 71, 171, 0.15);
  box-shadow: 0 8px 32px rgba(0, 56, 147, 0.08);
}

/* STEP CARDS (Remote Hub) */
[data-theme="light"] .step-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 71, 171, 0.18);
  box-shadow: 0 4px 20px rgba(0, 56, 147, 0.08);
}

[data-theme="light"] .step-number-badge {
  background: #0047AB;
  border-color: #0052CC;
  box-shadow: 0 0 12px rgba(0, 71, 171, 0.35);
}

/* ═══════════════════════════════════════════════════════
   FOOTER – Always dark navy in BOTH themes.
   Override every possible inherited light-theme color.
   ═══════════════════════════════════════════════════════ */
[data-theme="light"] .site-footer {
  background: #0D1B33;
  border-top-color: rgba(75, 150, 255, 0.25);
}

/* Lock all text inside footer to white/light slate */
[data-theme="light"] .site-footer,
[data-theme="light"] .site-footer p,
[data-theme="light"] .site-footer li,
[data-theme="light"] .site-footer div {
  color: #CBD5E1;
}

/* Footer logo text – always white */
[data-theme="light"] .site-footer .logo-title {
  color: #FFFFFF !important;
}

[data-theme="light"] .site-footer .logo-subtitle {
  color: #4B96FF !important;
}

[data-theme="light"] .site-footer .logo-tagline {
  color: #4B96FF !important;
  border-top-color: #4B96FF !important;
}

/* Footer address box */
[data-theme="light"] .footer-address-box {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: #4B96FF;
}

/* Footer bottom bar */
[data-theme="light"] .footer-bottom {
  color: #64748B;
  border-top-color: rgba(75, 150, 255, 0.15);
}

/* MOBILE STICKY BAR */
[data-theme="light"] .mobile-sticky-bar {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: rgba(0, 71, 171, 0.25);
  box-shadow: 0 -4px 20px rgba(0, 56, 147, 0.1);
}

[data-theme="light"] .mobile-sticky-call {
  background: linear-gradient(135deg, #0047AB 0%, #003585 100%);
}

/* THEME TOGGLE BUTTON */
[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 71, 171, 0.08);
  border-color: rgba(0, 71, 171, 0.3);
  color: #0047AB;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #0047AB;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 71, 171, 0.35);
}

/* Theme icon visibility handled via smooth CSS transform transitions */



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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: 70px;
  /* Space for mobile sticky bottom bar */
}

main {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter;
}

main.page-loaded,
body.page-loaded main {
  opacity: 1;
  filter: blur(0px);
}

@media (prefers-reduced-motion: reduce) {
  main {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

/* ── MOBILE: < 992px – hide desktop call button, show hamburger ── */
@media (max-width: 991px) {

  /* Show the hamburger toggle */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Modern, smooth transition-based mobile menu dropdown (animates both open and close) */
  .nav-menu {
    display: flex !important;
    position: fixed;
    top: 68px;
    /* matches collapsed header height */
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(6, 13, 24, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent-cyan);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 998;

    /* Hidden state transition targets */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
  }

  /* Disable desktop bottom line hover/active indicator on mobile */
  .nav-link.active::after,
  .nav-link:hover::after {
    display: none !important;
  }

  /* Clean and modern mobile active/hover state with left border accent */
  .nav-link.active {
    color: var(--accent-cyan) !important;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 20px !important;
    /* adjust to keep text aligned */
    background-color: rgba(0, 163, 255, 0.05);
  }

  /* Light mode mobile active adjustments */
  [data-theme="light"] .nav-link.active {
    color: #0047AB !important;
    border-left-color: #0047AB;
    background-color: rgba(0, 71, 171, 0.05);
  }

  /* Light mode mobile nav */
  [data-theme="light"] .nav-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: #0047AB;
  }

  /* Collapse nav element on mobile to avoid pushing actions off-screen */
  nav {
    display: block;
    width: 0;
    height: 0;
    position: static;
  }

  /* Position header elements absolutely to guarantee alignment and padding on all screens */
  .header-container {
    height: 68px;
    position: relative;
  }

  .site-header .site-logo {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }

  .header-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
  }
}


/* ── SMALL MOBILE: < 640px – tighten everything ── */
@media (max-width: 639px) {

  /* Smaller logo text on tiny screens */
  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  .logo-tagline {
    display: none;
    /* hide on very small screens */
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .site-logo {
    gap: 10px;
  }

  /* Hero section breathing room */
  .hero-section {
    padding: 50px 0 40px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section padding on mobile */
  .section-padding {
    padding: 60px 0;
  }

  /* Card grids – single column on small screens */
  .cad-card-grid {
    grid-template-columns: 1fr;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Pillar tabs – scroll horizontally */
  .pillar-tabs {
    gap: 8px;
  }

  .pillar-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .pillar-content {
    padding: 24px 20px;
  }

  /* Calculator box */
  .calculator-box {
    padding: 24px 20px;
  }

  /* Container padding reduction */
  .container {
    padding: 0 16px;
  }

  /* Footer grid – single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Reduce section title on mobile */
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
}

/* ── TABLET: 640px–991px ── */
@media (min-width: 640px) and (max-width: 991px) {

  .hero-section {
    padding: 70px 0 50px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .cad-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Architectural Blue CAD Single-Direction Slide Sweep Transition Overlay */
.cad-page-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0B172B 0%, #060D18 100%);
  border-right: 3px solid var(--accent-cyan);
  box-shadow: 10px 0 35px rgba(0, 163, 255, 0.4);
  z-index: 99999;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cad-page-curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.7;
}

.cad-page-curtain-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: #FFFFFF;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.25s ease;
}

/* Phase 1: On link click, curtain sweeps in from left (-100%) to center (0%) */
body.curtain-entering .cad-page-curtain {
  transform: translateX(0%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

body.curtain-entering .cad-page-curtain-logo {
  opacity: 1;
  transform: scale(1);
}

/* Phase 2: On new page load, curtain continues forward from center (0%) to right (+100%) */
body.curtain-leaving .cad-page-curtain {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Instant reset state */
body.curtain-reset .cad-page-curtain {
  transform: translateX(-100%);
  transition: none !important;
}

/* CAD Technical Blue Grid Overlay Background */
.cad-grid-bg {
  background-color: var(--bg-obsidian);
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cad-light-grid-bg {
  background-color: #F8FAFC;
  background-image:
    linear-gradient(rgba(0, 71, 171, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 171, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 800;
  text-transform: uppercase;
}

p {
  color: var(--text-muted);
}

.text-gold,
.text-blue {
  color: var(--accent-cyan);
}

.text-white {
  color: #FFFFFF;
}

/* Technical Badges & Cad Markers */
.cad-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 163, 255, 0.08);
  border: 1px solid var(--border-cad-accent);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.cad-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Buttons & Direct Protocols */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 3px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary-call {
  background: linear-gradient(135deg, #0052CC 0%, #003893 100%);
  color: #FFFFFF;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

.btn-primary-call:hover {
  background: linear-gradient(135deg, #0066FF 0%, #0047AB 100%);
  box-shadow: 0 6px 22px rgba(0, 163, 255, 0.5);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
  border-color: var(--whatsapp-green);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0, 82, 204, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-cad);
}

.btn-secondary:hover {
  background: rgba(0, 163, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 13, 24, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

nav {
  flex: 1;
  display: flex;
  align-items: center;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: 42px;
  /* Generous breathing room between logo and HOME link */
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 2px;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: fit-content;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: #FFFFFF;
  line-height: 1.0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.28em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
  width: 100%;
}

.logo-tagline {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1.5px solid #38BDF8;
  width: 100%;
  display: block;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-cad);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  will-change: transform;
}

.theme-toggle-btn:hover {
  background: var(--accent-cyan);
  color: #FFFFFF;
  transform: rotate(12deg) scale(1.08);
  box-shadow: 0 0 16px rgba(0, 163, 255, 0.45);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Theme Icons Smooth Hardware-Accelerated Rotation & Scaling */
.theme-icon-dark,
.theme-icon-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Default Dark mode state: Moon visible (0deg scale 1), Sun hidden (-90deg scale 0.3) */
.theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1) translateZ(0);
}

.theme-icon-light {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.3) translateZ(0);
}

/* Light mode state: Sun visible (0deg scale 1), Moon hidden (90deg scale 0.3) */
[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: rotate(90deg) scale(0.3) translateZ(0);
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1) translateZ(0);
}



.header-actions .btn-primary-call {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #0052CC 0%, #0066FF 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 18px rgba(0, 102, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.header-actions .btn-primary-call:hover {
  background: linear-gradient(135deg, #0066FF 0%, #0047AB 100%);
  border-color: #00A3FF;
  box-shadow: 0 6px 25px rgba(0, 163, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
}

@media (min-width: 992px) {
  .header-actions .btn-primary-call {
    display: inline-flex;
  }
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-cad);
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border-cad);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 13, 24, 0.95) 40%, rgba(11, 23, 43, 0.8) 100%),
    url('../assets/images/hero-blueprint.png') center/cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 20px 0;
  color: #FFFFFF;
}

.hero-title span {
  color: var(--accent-cyan);
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 760px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Credentials Trust Bar */
.trust-bar {
  background: rgba(11, 23, 43, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0, 163, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* CAD Cards Grid (Core Divisions) */
.section-padding {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 50px;
}

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

.section-subtitle {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #FFFFFF;
}

.cad-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.cad-card {
  background: rgba(17, 34, 64, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 36px 30px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cad-card:hover {
  background: rgba(25, 46, 84, 0.72);
  border-color: rgba(0, 163, 255, 0.6);
  transform: translateY(-6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 15px 40px rgba(0, 163, 255, 0.25);
}

.cad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-cad);
  padding-bottom: 16px;
}

.cad-card-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.cad-card-icon {
  font-size: 1.8rem;
}

.cad-card-title {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.cad-card-body {
  margin-bottom: 28px;
}

.cad-card-list {
  list-style: none;
  margin-top: 14px;
}

.cad-card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cad-card-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-size: 0.65rem;
}

/* Equipment Catalog Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.equipment-card {
  background: rgba(11, 23, 43, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.equipment-card:hover {
  border-color: rgba(0, 163, 255, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 15px 40px rgba(0, 82, 204, 0.45);
  transform: translateY(-4px);
}

.equipment-img-wrapper {
  height: 220px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.equipment-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.equipment-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.equipment-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equipment-title {
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.equipment-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(6, 13, 24, 0.55);
  backdrop-filter: blur(8px);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 6px;
}

.spec-item {
  font-size: 0.8rem;
}

.spec-label {
  color: var(--text-muted);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.spec-val {
  color: #FFFFFF;
  font-weight: 600;
}

/* Calculator Widget Container */
.calculator-box {
  background: rgba(11, 23, 43, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 163, 255, 0.4);
  padding: 36px;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 15px 40px rgba(0, 163, 255, 0.2);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.form-input {
  min-height: 48px;
  background: rgba(11, 23, 43, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #FFFFFF;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input::placeholder {
  color: #64748B;
}

.form-input:hover {
  border-color: var(--accent-cyan);
  background: rgba(17, 34, 64, 0.85);
}

.form-input:focus {
  outline: none;
  border-color: #00A3FF;
  box-shadow: 0 0 16px rgba(0, 163, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  background: rgba(11, 23, 43, 0.95);
}

/* Custom Themed Select Dropdown & Options */
.form-select {
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(11, 23, 43, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300A3FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  padding: 0 44px 0 16px;
  cursor: pointer;
  color: #FFFFFF;
  border: 1px solid rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-select:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(17, 34, 64, 0.85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 15px rgba(0, 163, 255, 0.25);
}

.form-select:focus {
  outline: none;
  border-color: #00A3FF;
  box-shadow: 0 0 18px rgba(0, 163, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  background-color: rgba(11, 23, 43, 0.95);
}

/* Style Option items inside select dropdowns to match theme */
.form-select option {
  background-color: #0B172B;
  color: #FFFFFF;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:active,
.form-select option:checked {
  background-color: #0052CC !important;
  color: #FFFFFF !important;
}

.calc-result-box {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.calc-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

/* Pillar Tabs (Real Estate) */
.pillar-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.pillar-tab {
  padding: 14px 28px;
  background: rgba(11, 23, 43, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.pillar-tab:hover,
.pillar-tab.active {
  background: rgba(17, 34, 64, 0.75);
  color: #FFFFFF;
  border-color: var(--accent-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 15px rgba(0, 163, 255, 0.3);
}

.pillar-content {
  display: none;
  background: rgba(11, 23, 43, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 36px;
  border-radius: 8px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 12px 35px rgba(0, 0, 0, 0.4);
}

.pillar-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3-Step Process Display (Remote Hub) */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
}

.step-card {
  background: rgba(17, 34, 64, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 36px 28px;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.step-number-badge {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 40px;
  height: 40px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.5);
}

/* Footer */
.site-footer {
  background: #030810;
  border-top: 1px solid var(--border-cad);
  padding: 60px 0 40px;
}

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

.footer-address-box {
  background: rgba(11, 23, 43, 0.55);
  backdrop-filter: blur(12px);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 6px;
  padding: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border-cad);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dark-muted);
}

/* Persistent Mobile Sticky Bar (< 768px) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 163, 255, 0.5);
  display: flex;
  z-index: 9999;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 12px;
}

.mobile-sticky-call {
  background: linear-gradient(135deg, #0052CC 0%, #003893 100%);
  color: #FFFFFF;
}

.mobile-sticky-whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
}




/* ==========================================================================
   Section Transition & Scroll-Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-35px);
}

.reveal.reveal-right {
  transform: translateX(35px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Stagger Delays for Cards & Grids */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Image hover zoom transition */
.equipment-img-wrapper img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.equipment-card:hover .equipment-img-wrapper img {
  transform: scale(1.06);
}

/* Hero Section Entrance Animation */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content>* {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .cad-badge {
  animation-delay: 0.1s;
}

.hero-content .hero-title {
  animation-delay: 0.25s;
}

.hero-content .hero-subheadline {
  animation-delay: 0.4s;
}

.hero-content .hero-ctas {
  animation-delay: 0.55s;
}

/* ==========================================================================
   Instagram-Style Logo Zoom Lightbox Modal
   ========================================================================== */
.logo-img {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 163, 255, 0.7);
}

.logo-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  z-index: 9999999;
  background: rgba(6, 13, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-ring {
  width: clamp(240px, 60vw, 360px);
  height: clamp(240px, 60vw, 360px);
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #00A3FF 0%, #0052CC 100%);
  box-shadow: 0 0 45px rgba(0, 163, 255, 0.55);
  margin-bottom: 24px;
}

.lightbox-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 8px;
}

.lightbox-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.lightbox-caption span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.18em;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-cad);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════
   PAGE TRANSITION CURTAIN (EXPLICIT 2-PHASE KEYFRAME SWEEP)
   ═══════════════════════════════════════════════════════ */
.cad-page-curtain {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: linear-gradient(135deg, #0B172B 0%, #060D18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateX(-100%);
  pointer-events: none;
}

.cad-page-curtain-content {
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.curtain-brand-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  text-shadow: 0 0 25px rgba(0, 163, 255, 0.65);
  margin-bottom: 6px;
}

.curtain-brand-tagline {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes curtainSlideInKeyframes {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0%);
  }
}

@keyframes curtainSlideOutKeyframes {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Phase 1: Slide In from Left to Cover Screen */
body.curtain-entering .cad-page-curtain {
  animation: curtainSlideInKeyframes 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: auto;
}

body.curtain-entering .cad-page-curtain-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Phase 2: Slide Out to Right to Reveal New Page */
body.curtain-leaving .cad-page-curtain {
  animation: curtainSlideOutKeyframes 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

body.curtain-leaving .cad-page-curtain-content {
  opacity: 0;
  transform: scale(0.9) translateY(-10px);
}


/* ═══════════════════════════════════════════════════════
   INFO PANELS – Semantic reusable classes replacing
   hard-coded inline styles across all HTML pages.
   These classes respond to both dark and light themes.
   ═══════════════════════════════════════════════════════ */

/* Primary info/detail panel (replaces bg-obsidian inline) */
.info-panel {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-cad);
  padding: 30px;
  border-radius: 4px;
}

/* Accent/outcome box with left cyan border (audit outcomes etc.) */
.info-panel-accent {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-cad);
  padding: 20px;
  border-left: 3px solid var(--accent-cyan);
}

/* "Before Audit" comparison block */
.info-panel-before {
  padding: 16px;
  background: rgba(0, 82, 204, 0.12);
  border-left: 2px solid var(--accent-cyan);
}

/* "After Audit" comparison block */
.info-panel-after {
  padding: 16px;
  background: rgba(37, 211, 102, 0.08);
  border-left: 2px solid var(--whatsapp-green);
}

/* Secondary card panel – used for investor/buyer/landowner benefit boxes */
.info-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cad);
  padding: 24px;
  border-radius: 4px;
}

/* Text that adapts with theme */
.panel-text-primary {
  color: var(--text-primary);
}

.panel-text-body {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Panel headings (accent-colored labels like "INVESTOR BENEFIT") */
.panel-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

/* Panel main heading (e.g. "Capital Risk Mitigation") */
.panel-heading {
  color: var(--text-primary);
  margin: 8px 0 12px;
}

/* Step number badges inside info panels */
.panel-step-num {
  background: var(--accent-blue);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid var(--accent-cyan);
  font-family: var(--font-heading);
}

/* Strong/bold text inside steps */
.panel-step-title {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ── FOOTER – always dark navy background, always uses fixed light text ── */
.footer-heading {
  color: #FFFFFF;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-body {
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-address-text {
  color: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-address-link {
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-address-link:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.maps-badge-link {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.maps-badge-link:hover {
  color: var(--accent-blue-bright);
  text-decoration: underline;
}

/* Footer elements maintain fixed high-contrast light colors on dark background in all themes */
[data-theme="light"] .footer-address-link {
  color: #FFFFFF;
}

[data-theme="light"] .footer-address-link:hover {
  color: var(--accent-cyan);
}

.footer-link-phone {
  color: #4BBFFF;
  text-decoration: none;
}

.footer-link-whatsapp {
  color: #25D366;
  text-decoration: none;
}

.footer-link-email {
  color: #CBD5E1;
  text-decoration: none;
}

/* ═══ WCAG ACCESSIBILITY FOCUS RINGS ═══ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* ═══ LIGHT MODE OVERRIDES for info panels ═══ */

[data-theme="light"] .info-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 71, 171, 0.2);
  box-shadow: 0 4px 20px rgba(0, 56, 147, 0.07);
}

[data-theme="light"] .info-panel-accent {
  background: rgba(238, 242, 255, 0.8);
  border-color: rgba(0, 71, 171, 0.2);
  border-left-color: #0047AB;
}

[data-theme="light"] .info-panel-before {
  background: rgba(0, 71, 171, 0.07);
  border-left-color: #0047AB;
}


/* ═══════════════════════════════════════════════════
   ENGINEERING UTILITY & COMPONENT CLASSES
   ═══════════════════════════════════════════════════ */

/* Section & Hero Layout Utilities */
.section-hero-compact {
  padding: 70px 0 50px;
}

.relative-z2 {
  position: relative;
  z-index: 2;
}

.hero-title-responsive {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-subheadline-spacing {
  margin-bottom: 24px;
}

.section-surface-border {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-cad);
}

.section-surface-border-top {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-cad);
}

.container-cta {
  max-width: 800px;
}

.container-narrow {
  max-width: 900px;
}

/* Grid Utilities */
.grid-split-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.grid-3col-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Info Card Component */
.info-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cad);
  padding: 28px;
  border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card-box:hover {
  border-color: var(--border-cad-accent);
  transform: translateY(-2px);
}

.info-card-title {
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.info-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Banner Component */
.cta-section-banner {
  background: linear-gradient(135deg, #0B172B 0%, #060D18 100%);
  text-align: center;
}

.cta-heading {
  font-size: 2.2rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-subtext {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.flex-center-gap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flex-gap-16 {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.flex-column-gap16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Typography & Spacing Helpers */
.mb-10 {
  margin-bottom: 10px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-30 {
  margin-bottom: 30px;
}

.panel-padding-lg {
  padding: 32px;
}

.badge-after-audit {
  font-size: 0.75rem;
  color: var(--whatsapp-green);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.panel-list-clean {
  margin-top: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

/* Footer Layout Component Utilities */
.footer-logo-box {
  margin-bottom: 16px;
}

.footer-description-text {
  font-size: 0.85rem;
  max-width: 320px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-list-vertical {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

/* Form & Portal Utilities */
.hub-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  padding: 36px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 163, 255, 0.15);
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.form-actions-grid {
  border-top: 1px solid var(--border-cad);
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.form-note-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dark-muted);
  text-align: center;
  margin-top: 8px;
}

.confidentiality-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-cad);
  text-align: center;
}

.container-medium {
  max-width: 700px;
}

.title-cyan-lg {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.title-cyan-md {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.text-base-sm {
  font-size: 0.95rem;
}

.card-copy-text {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-btn-wrapper {
  margin-top: 24px;
}

[data-theme="light"] .info-panel-after {
  background: rgba(37, 211, 102, 0.06);
}

[data-theme="light"] .info-panel-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 71, 171, 0.18);
  box-shadow: 0 4px 20px rgba(0, 56, 147, 0.07);
}

/* ═══ CTA BANNER light mode override ═══ */
[data-theme="light"] .cta-banner-section {
  background: linear-gradient(135deg, #0047AB 0%, #003585 100%) !important;
}

[data-theme="light"] .cta-banner-section h2,
[data-theme="light"] .cta-banner-section p {
  color: #FFFFFF !important;
}