/* Wildlands Technologies Responsive Styles */
/* Mobile-first approach with breakpoints for various devices */

/* Extra Small Devices (Phones, less than 576px) */
:root {
  --primary-dark: #0a2540;
  --secondary-teal: #00b4d8;
  --accent-gold: #ffcc00;
  --light-bg: #f8f9fa;
  --text-dark: #333333;
  --text-light: #6c757d;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Base Mobile Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

/* Flex containers for responsive layout */
.flex-container {
  display: flex;
  flex-direction: column;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Typography */
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* Navigation */
.main-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  z-index: 1000;
  padding: 80px 20px 20px;
  flex-direction: column;
  align-items: center;
}

.main-nav.active {
  display: flex;
}

.nav-list {
  list-style: none;
  width: 100%;
  text-align: center;
}

.nav-list li {
  margin-bottom: 20px;
}

.nav-list a {
  color: var(--white);
  font-size: 1.5rem;
  text-decoration: none;
  display: block;
  padding: 10px;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
  z-index: 1001;
}

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* Cards */
.card-grid {
  grid-template-columns: 1fr;
}

.card {
  margin-bottom: 25px;
}

/* Forms */
.form-row {
  grid-template-columns: 1fr;
}

.form-group {
  margin-bottom: 20px;
}

/* Sections */
.content-section {
  padding: 50px 0;
}

.section-header {
  margin-bottom: 35px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Stats Section */
.stats-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.stat-item {
  margin-bottom: 30px;
}

.stat-item:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.cta-buttons {
  flex-direction: column;
  gap: 15px;
}

/* Footer */
.footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-col {
  margin-bottom: 30px;
}

.footer-col:last-child {
  margin-bottom: 0;
}

.social-links {
  justify-content: center;
}

/* Utility classes */
.hide-mobile {
  display: none;
}

.show-mobile {
  display: block;
}

.text-center-mobile {
  text-align: center;
}

.full-width-mobile {
  width: 100%;
}

/* Small Devices (Tablets, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn {
    width: auto;
    display: inline-block;
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Medium Devices (Landscape Tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 2rem; }
  
  .flex-container {
    flex-direction: row;
  }
  
  .main-nav {
    display: flex !important;
    position: static;
    height: auto;
    background: none;
    padding: 0;
    width: auto;
  }
  
  .nav-list {
    display: flex;
    width: auto;
    text-align: left;
  }
  
  .nav-list li {
    margin: 0 0 0 25px;
  }
  
  .nav-list a {
    font-size: 1rem;
    padding: 5px 0;
    color: var(--text-dark);
  }
  
  .nav-list a:hover {
    color: var(--secondary-teal);
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
  
  .footer-col {
    margin-bottom: 0;
  }
  
  .social-links {
    justify-content: flex-start;
  }
  
  .hide-mobile {
    display: block;
  }
  
  .show-mobile {
    display: none;
  }
  
  .text-center-mobile {
    text-align: left;
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    gap: 40px;
  }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Extra Large Devices (Extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Orientation Changes */
@media (orientation: landscape) and (max-height: 500px) {
  .main-nav {
    overflow-y: auto;
  }
}

/* HiDPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Touch Device Improvements */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  a, button {
    -webkit-tap-highlight-color: rgba(0, 180, 216, 0.2);
  }
}

/* Reduced Motion Users */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn,
  .card,
  .nav-list a {
    transition: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;
    --light-bg: #1a1a1a;
    --white: #121212;
  }
  
  body {
    background-color: var(--white);
    color: var(--text-dark);
  }
  
  .card,
  .support-card,
  .dept-card,
  .perk-card,
  .kb-card,
  .testimonial-card {
    background: #2a2a2a;
    color: var(--text-dark);
  }
  
  .card-header,
  .support-header,
  .culture-header,
  .highlight-header,
  .category-header {
    background: #0d2f4d;
  }
  
  .form-control,
  .checkbox-option {
    background: #333;
    border-color: #555;
    color: var(--text-dark);
  }
  
  .stats,
  .hero,
  header {
    background: #0d0d0d;
  }
}

/* Print Media */
@media print {
  .btn,
  .mobile-menu-btn,
  .main-nav,
  .footer-social,
  .no-print {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  :root {
    --text-dark: #000;
    --text-light: #444;
    --light-bg: #eee;
  }
  
  .btn-primary {
    background: #008cba;
  }
  
  .btn-secondary {
    border-color: #000;
    color: #000;
  }
}

/* Focus Styles for Keyboard Navigation */
@media (prefers-reduced-motion: no-preference) {
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--secondary-teal);
    outline-offset: 2px;
  }
}

/* Container Queries (Modern Browsers) */
@supports (container-type: inline-size) {
  .card-container {
    container-type: inline-size;
  }
  
  @container (min-width: 400px) {
    .card-content ul {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
  }
}

/* Viewport Height Fixes for Mobile */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* Scrollbar Styling (Webkit browsers) */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--light-bg);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--secondary-teal);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #0098b8;
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}