/* =====================================================
   Wild Data – Global Site Styles
   Updated: January 2026 - Phase 2
   ===================================================== */

/* ---------- VARIABLES ---------- */
:root{
  --bg: #0b1220;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.78);
  --line: rgba(255,255,255,0.14);
  --accent: #33d6a6;
  --blue: #6aa7ff;
  --lime: #d4ff33;

  --header-h: 120px;
  --logo-h: 112px;
  --nav-size: 20px;
  --nav-weight: 450;
  --nav-gap: 44px;
  --header-max: 1700px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after{ 
  box-sizing: border-box; 
}

html, body{
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

/* ---------- BASE ---------- */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(51,214,166,0.15), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(106,167,255,0.18), transparent 55%),
    radial-gradient(600px 400px at 50% 90%, rgba(212,255,51,0.08), transparent 60%),
    var(--bg);
}

/* Kill default purple/underline link behaviour */
a{
  color: inherit;
  text-decoration: none;
}

/* Focus styles for accessibility */
a:focus,
button:focus{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =====================================================
   HEADER
   ===================================================== */

.wd-topbar{
  height: var(--header-h);
  position: relative;
  z-index: 10;
  width: 100%;

  background: rgba(8,16,28,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.wd-topbar .inner{
  height: 100%;
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0 36px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
}

/* Brand */
.wd-brand{
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.wd-brand img{
  height: var(--logo-h);
  width: auto;
  display: block;
}

.wd-brand span{
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Nav centered */
.wd-nav{
  justify-self: center;
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  position: relative;
}

.wd-nav a{
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  color: rgba(255,255,255,0.82);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.wd-nav a:hover{
  color: #ffffff;
  background: rgba(106,167,255,0.08);
  border-color: rgba(106,167,255,0.25);
  box-shadow: 0 0 12px rgba(106,167,255,0.15);
}

/* CTA button */
.wd-nav a.primary{
  justify-self: end;
  background: var(--accent);
  color: #08101c;
  font-weight: 650;
  padding: 12px 22px;
  border-radius: 999px;
  border-color: transparent;
}

.wd-nav a.primary:hover{
  filter: brightness(0.96);
}

/* Active nav item */
.wd-nav a.active{
  color: #ffffff;
  background: rgba(51,214,166,0.18);
  border-color: rgba(51,214,166,0.45);
  box-shadow: 0 0 16px rgba(106,167,255,0.2);
}

/* =====================================================
   CONTACT MODAL
   ===================================================== */

.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active{
  display: flex;
}

.modal-backdrop{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8,16,28,0.92);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-content{
  position: relative;
  background: linear-gradient(135deg, rgba(15,25,40,0.95) 0%, rgba(8,16,28,0.95) 100%);
  border: 1px solid rgba(106,167,255,0.25);
  border-radius: 24px;
  padding: 48px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(106,167,255,0.15);
  animation: slideUp 0.4s ease;
}

.modal-close{
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s ease;
}

.modal-close:hover{
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.modal-content h2{
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
}

.modal-subtitle{
  margin: 0 0 32px;
  font-size: 17px;
  color: rgba(255,255,255,0.7);
}

.form-group{
  margin-bottom: 24px;
}

.form-group label{
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 16px rgba(106,167,255,0.2);
}

.form-group textarea{
  resize: vertical;
  min-height: 120px;
}

.form-group select{
  cursor: pointer;
}

.btn-submit{
  width: 100%;
  padding: 16px 32px;
  background: var(--accent);
  color: #08101c;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 12px;
}

.btn-submit:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51,214,166,0.4);
}

.form-success{
  text-align: center;
  padding: 40px 20px;
}

.success-icon{
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--accent);
  color: #08101c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
}

.form-success h3{
  margin: 0 0 12px;
  font-size: 26px;
}

.form-success p{
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
}

.btn-secondary-small{
  padding: 12px 28px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-secondary-small:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes slideUp{
  from{ 
    opacity: 0;
    transform: translateY(40px);
  }
  to{ 
    opacity: 1;
    transform: translateY(0);
  }
}

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

.wd-footer{
  background: rgba(8,16,28,0.72);
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 80px;
}

.footer-content{
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 60px 36px 0;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col h3{
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li{
  margin-bottom: 12px;
}

.footer-col a{
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: 0.15s ease;
}

.footer-col a:hover{
  color: var(--accent);
}

.footer-logo{
  height: 80px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline{
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}

.footer-contact li{
  margin-bottom: 18px;
}

.footer-contact strong{
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-contact a{
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

/* Footer Bottom Bar */
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 28px 0;
}

.footer-bottom-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p{
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.footer-legal{
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a{
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: 0.15s ease;
}

.footer-legal a:hover{
  color: var(--accent);
}

.footer-legal span{
  color: rgba(255,255,255,0.3);
}

/* =====================================================
   SOLUTIONS PAGE STYLES
   ===================================================== */

.sol-block{
  padding-top: 22px;
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.sol-chapter{
  padding-top: 34px;
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.sol-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.sol-text h2{
  margin: 0 0 12px;
  font-size: 28px;
}

.sol-bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.sol-slider{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sol-slider img{
  flex: 0 0 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.10);
}

/* =====================================================
   READABLE CONTENT CONTAINER
   ===================================================== */

.content{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 6vw, 10%);
  padding-right: clamp(20px, 6vw, 10%);
}

/* Solutions page wider container */
.page-solutions .content{
  max-width: 1500px;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

@media (min-width: 1600px){
  .page-solutions .content{
    max-width: 1700px;
  }
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

@media (max-width: 1100px){
  :root{
    --header-h: 96px;
    --logo-h: 92px;
    --nav-size: 16px;
    --nav-gap: 16px;
  }

  .wd-topbar .inner{
    padding: 0 18px;
    column-gap: 14px;
  }

  .footer-grid{
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px){
  .sol-grid{ 
    grid-template-columns: 1fr; 
  }
  
  .sol-slider img{ 
    height: 220px; 
  }
}

@media (max-width: 820px){
  /* Header becomes stacked on mobile */
  .wd-topbar{
    height: auto;
    padding: 16px 0;
  }

  .wd-topbar .inner{
    height: auto;
    grid-template-columns: 1fr;
    row-gap: 16px;
    justify-items: center;
    padding: 0 20px;
  }

  .wd-brand img{
    height: 70px;
  }

  .wd-nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .wd-nav a{
    font-size: 15px;
    padding: 8px 14px;
  }

  /* Footer stacks on mobile */
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-content{
    padding: 40px 20px 0;
  }

  .footer-bottom-content{
    flex-direction: column;
    text-align: center;
  }

  .footer-logo{
    height: 60px;
  }

  /* Modal adjustments */
  .modal-content{
    padding: 32px 24px;
  }

  .modal-content h2{
    font-size: 26px;
  }
}

@media (max-width: 600px){
  .footer-grid{
    gap: 28px;
  }

  .footer-col h3{
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-col a,
  .footer-tagline{
    font-size: 14px;
  }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

/* Skip to main content (accessibility) */
.skip-to-main{
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #08101c;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
}

.skip-to-main:focus{
  top: 0;
}

/* Screen reader only text */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
