/* ==================== AERO GLASS CONTACT SECTION - WHITE THEME ==================== */

:root {
    /* Updated for White Theme */
    --aero-bg-white: #ffffff;
    --aero-text-dark: #0f172a;
    --aero-text-muted: #475569;
    --aero-blue: #3b82f6;
    --aero-accent: #0ea5e9;
    --aero-border-light: #e2e8f0;
    --aero-glass-white: rgba(255, 255, 255, 0.85);
    --aero-red: #ef4444;
    --aero-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  .aero-contact {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* White Background */
    background: #ffffff;
    padding: 60px 5%;
    color: var(--aero-text-dark);
    font-family: "Outfit", system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease; /* Smooth transition */
  }
  
  /* Background Orbs (Adjusted for white bg) */
  .aero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.15; /* Reduced opacity */
    pointer-events: none;
  }
  
  .orb-1 {
    width: 40vmin;
    height: 40vmin;
    background: #3b82f6;
    top: -15%;
    right: -15%;
  }
  
  .orb-2 {
    width: 35vmin;
    height: 35vmin;
    background: #8b5cf6;
    bottom: -10%;
    left: -15%;
  }
  
  /* ── Content ── */
  .aero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
  
  .live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0284c7; /* Darker blue */
    margin-bottom: 1.4rem;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
  }
  
  .aero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #0f172a; /* Dark Navy */
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
  }
  
  .aero-subtitle {
    color: #475569; /* Slate 600 */
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 400; /* Increased weight slightly */
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 2.5rem;
  }
  
  /* ── Cards ── */
  .aero-deck {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 680px;
  }
  
  .aero-card {
    background: #f8fafc; /* Very light gray */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--aero-border-light);
    border-left: 3px solid transparent;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.28s ease;
    /* Added Shadow */
    box-shadow: var(--aero-shadow);
  }
  
  .aero-card:hover {
    background: #ffffff;
    border-left-color: var(--aero-accent);
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Smoother hover shadow */
  }
  
  .aero-card.emergency-mode:hover {
    border-left-color: var(--aero-red);
  }
  
  .glow-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #eff6ff; /* Light blue bg */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--aero-accent);
    /* Subtle shadow for icon */
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
  }
  
  .aero-card.emergency-mode .glow-icon.alert {
    color: var(--aero-red);
    background: #fef2f2; /* Light red bg */
  }
  
  .card-text {
    flex: 1;
    min-width: 0;
  }
  
  .card-text h6 {
    margin: 0 0 5px 0;
    font-size: 1.02rem;
    font-weight: 700; /* Bolder for dark theme */
    letter-spacing: 0.4px;
    color: #1e293b; /* Slate 800 */
  }
  
  .card-text p {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b; /* Slate 500 */
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
  }
  
  /* Extra protection for very long strings (emails, urls, etc) */
  .card-text p a,
  .card-text p strong {
    word-break: break-all;
    overflow-wrap: anywhere;
    color: #0ea5e9; /* Link color */
  }
  
  /* ── Map ── */
  .tech-map-frame {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 580px;
    min-height: 420px;
    margin-top: 3rem;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--aero-border-light);
    border-radius: 14px;
    overflow: hidden;
    /* Added Shadow to Map */
    box-shadow: var(--aero-shadow);
  }
  
  .tech-map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    /* Removed filters for clear map */
    filter: none;
  }
  
  /* Decorative corners */
  .corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--aero-accent);
    transition: all 0.4s ease;
    pointer-events: none;
  }
  
  .tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
  }
  .tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
  }
  .bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
  }
  .br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
  }
  
  .tech-map-frame:hover .corner {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
  }
  
  /* ==========================================================================
     ✅ AUTO-FIX: BLUE THEME OVERRIDE (For when Compliance Section is hidden)
     ========================================================================== */
  
  .aero-contact.force-blue-theme {
    /* Match your exact Blue Gradient from Compliance/Downloads */
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Adjust Text Colors for Blue Background */
  .aero-contact.force-blue-theme .aero-title,
  .aero-contact.force-blue-theme .aero-subtitle,
  .aero-contact.force-blue-theme .card-text h6,
  .aero-contact.force-blue-theme .card-text p {
    color: #ffffff !important;
  }
  
  .aero-contact.force-blue-theme .aero-subtitle,
  .aero-contact.force-blue-theme .card-text p {
    opacity: 0.9;
  }
  
  /* Adjust Cards for Blue Background */
  .aero-contact.force-blue-theme .aero-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  .aero-contact.force-blue-theme .aero-card:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(5px);
  }
  
  /* Adjust Icons inside Cards */
  .aero-contact.force-blue-theme .glow-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }
  
  /* Adjust Map Frame */
  .aero-contact.force-blue-theme .tech-map-frame {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Hide Background Orbs in Blue Mode (Clean look) */
  .aero-contact.force-blue-theme .aero-orb {
    display: none;
  }
  
  /* ==========================================================================
     END OF AUTO-FIX
     ========================================================================== */
  
  /* ── RESPONSIVE ──────────────────────────────────────────────── */
  
  @media (max-width: 1200px) {
    .aero-orb {
      filter: blur(70px);
      opacity: 0.15;
    }
  }
  
  /* ==========================================================================
   OPTIMIZED 100VH MOBILE LAYOUT (Grid Cards + Bigger Heading)
   ========================================================================== */

@media (max-width: 992px) {
  .aero-contact {
      height: 100vh !important;
      min-height: 100vh !important;
      overflow: hidden !important;
      padding: 0;
      display: flex;
      flex-direction: column;
  }

  .aero-content {
      height: 100%;
      display: flex;
      flex-direction: column;
      /* Padding: Top(Header) | Right | Bottom | Left */
      padding: 110px 20px 20px 20px; 
  }

  /* 1. BIGGER HEADER */
  .aero-title {
      font-size: 2.2rem; /* Increased size */
      line-height: 1.1;
      margin-bottom: 5px;
      flex-shrink: 0;
  }

  /* Hide subtitle to give breathing room */
  .aero-subtitle { display: none; }
  .live-indicator { display: none; }

  /* 2. GRID LAYOUT FOR CARDS (SAVES VERTICAL SPACE) */
  .aero-deck {
      display: grid;
      grid-template-columns: 1fr 1fr; /* 2 Columns */
      gap: 10px;
      margin-bottom: 15px;
      flex-shrink: 0;
      width: 100%;
  }

  /* Make the Email card span full width if it's the 3rd item */
  .aero-card:last-child {
      grid-column: span 2; 
  }

  .aero-card {
      padding: 10px;
      flex-direction: column; /* Stack Icon on top of text for grid */
      text-align: center;
      justify-content: center;
      gap: 6px;
      min-height: 80px; /* Fixed height for uniformity */
  }

  .glow-icon {
      width: 36px; height: 36px; min-width: 36px;
      font-size: 1.1rem;
      margin: 0 auto; /* Center icon */
  }

  .card-text { text-align: center; width: 100%; }
  
  .card-text h6 { 
      font-size: 0.85rem; 
      margin-bottom: 2px;
      white-space: nowrap; /* Prevent wrapping */
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .card-text p { 
      font-size: 0.75rem; 
      line-height: 1.1;
      display: -webkit-box;
      -webkit-line-clamp: 1; /* One line only */
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  /* 3. MAP FILLS REMAINING SPACE */
  .tech-map-frame {
      flex-grow: 1; /* Take all leftover height */
      width: 100%;
      height: auto !important;
      min-height: 0;
      border-radius: 12px;
      margin-top: 5px;
      margin-bottom: 0;
  }
  
  .corner { display: none; }
}

@media (max-width: 380px) {
  /* Super small screens */
  .aero-title { font-size: 1.8rem; }
  .aero-deck { display: flex; flex-direction: column; } /* Stack back to column */
  .aero-card:last-child { grid-column: auto; }
  .aero-card { flex-direction: row; text-align: left; padding: 8px; }
  .glow-icon { margin: 0; }
  .card-text { text-align: left; }
}
