/* --------------------------------------------------
   Tundra Expertise - Industrial Modern CSS Framework
   --------------------------------------------------
   Brand: Tundra Expertise
   Style: Industrial Modern (dark, metallic, urban)
   Fonts: Montserrat (display), Roboto (body)
   Colors: #23435B (primary), #6CB8D9 (secondary), #F7F5F2 (accent)
   Layout: Flexbox only (no grid/columns)
   -------------------------------------------------- */

/* 1. CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #181C20;
  color: #F7F5F2;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #F7F5F2;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; margin-bottom: 18px; }
h2 { font-size: 1.6rem; margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; }

p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.2em;
  color: #E0E3E7;
}

ul, ol {
  padding-left: 1.2em;
}

strong, b {
  color: #6CB8D9;
  font-weight: 700;
}
a {
  color: #6CB8D9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7F5F2;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(35,67,91,0.07);
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(30,40,50,0.07);
}

/* 3. HEADER & NAVIGATION */
header {
  background: #1A232B;
  border-bottom: 2px solid #23435B;
  box-shadow: 0 2px 8px 0 rgba(30,40,50,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #F7F5F2;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover, nav a:focus {
  color: #6CB8D9;
  border-bottom: 2px solid #6CB8D9;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 6px;
  padding: 12px 28px;
  margin-left: 20px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(35,67,91,0.10);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(90deg, #23435B 80%, #6CB8D9 100%);
  color: #F7F5F2;
  border: 1.5px solid #6CB8D9;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #6CB8D9 60%, #23435B 100%);
  color: #181C20;
  box-shadow: 0 4px 16px 0 rgba(108,184,217,0.18);
}
.btn-secondary {
  background: #F7F5F2;
  color: #23435B;
  border: 1.5px solid #23435B;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #6CB8D9;
  color: #181C20;
  border-color: #6CB8D9;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #F7F5F2;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #6CB8D9;
}

/* 4. MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,28,32,0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F7F5F2;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #6CB8D9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.3rem;
  color: #F7F5F2;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(108,184,217,0.12);
  transition: color 0.2s, border-color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #6CB8D9;
  border-bottom: 1px solid #6CB8D9;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* 5. HERO SECTION */
.hero {
  background: linear-gradient(120deg, #23435B 80%, #181C20 100%);
  color: #F7F5F2;
  padding: 60px 0 40px 0;
  border-bottom: 2px solid #6CB8D9;
  box-shadow: 0 4px 24px 0 rgba(35,67,91,0.10);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #F7F5F2;
  text-shadow: 0 2px 8px rgba(35,67,91,0.18);
}
.hero p {
  font-size: 1.2rem;
  color: #E0E3E7;
  margin-bottom: 18px;
}

/* 6. FLEXBOX LAYOUTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-item {
  background: #232B32;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,67,91,0.10);
  padding: 28px 22px;
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border-left: 4px solid #6CB8D9;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 24px 0 rgba(108,184,217,0.18);
  border-left: 4px solid #F7F5F2;
  background: #1A232B;
}
.feature-icon {
  font-size: 2.2rem;
  color: #6CB8D9;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(108,184,217,0.10);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #232B32;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,67,91,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F5F2;
  color: #23435B;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,67,91,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card p {
  color: #23435B;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  color: #6CB8D9;
  font-weight: 700;
  margin-left: 12px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(35,67,91,0.18);
  background: #E0E3E7;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #232B32;
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px 0 rgba(35,67,91,0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
}
.faq-item h3 {
  color: #6CB8D9;
  margin-bottom: 8px;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 6px 24px 0 rgba(108,184,217,0.18);
  background: #1A232B;
}

.categories-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.categories-filter span {
  color: #6CB8D9;
  font-weight: 600;
}
.categories-filter a {
  background: #232B32;
  color: #6CB8D9;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: #6CB8D9;
  color: #181C20;
}

/* 7. FOOTER */
footer {
  background: #1A232B;
  color: #F7F5F2;
  padding: 40px 0 20px 0;
  border-top: 2px solid #23435B;
  box-shadow: 0 -2px 8px 0 rgba(35,67,91,0.10);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #6CB8D9;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F7F5F2;
}
.footer-contact {
  margin-bottom: 18px;
  color: #E0E3E7;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #6CB8D9;
  text-decoration: underline;
}
footer p {
  color: #AAB4BE;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 8. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #232B32;
  color: #F7F5F2;
  box-shadow: 0 -2px 16px 0 rgba(35,67,91,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 16px 18px 16px;
  font-size: 1rem;
  animation: cookieBannerIn 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner .accept {
  background: #6CB8D9;
  color: #181C20;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #23435B;
  color: #F7F5F2;
}
.cookie-banner .reject {
  background: #232B32;
  color: #F7F5F2;
  border: 1.5px solid #6CB8D9;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #6CB8D9;
  color: #181C20;
}
.cookie-banner .settings {
  background: #F7F5F2;
  color: #23435B;
  border: 1.5px solid #6CB8D9;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #6CB8D9;
  color: #181C20;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,28,32,0.92);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #232B32;
  color: #F7F5F2;
  border-radius: 12px;
  box-shadow: 0 4px 32px 0 rgba(35,67,91,0.22);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #6CB8D9;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #F7F5F2;
  font-weight: 500;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #6CB8D9;
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category.essential label {
  color: #AAB4BE;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal .save {
  background: #6CB8D9;
  color: #181C20;
}
.cookie-modal .save:hover, .cookie-modal .save:focus {
  background: #23435B;
  color: #F7F5F2;
}
.cookie-modal .cancel {
  background: #232B32;
  color: #F7F5F2;
  border: 1.5px solid #6CB8D9;
}
.cookie-modal .cancel:hover, .cookie-modal .cancel:focus {
  background: #6CB8D9;
  color: #181C20;
}

/* 9. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .feature-item, .card, .testimonial-card {
    min-width: 0;
    padding: 18px 10px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .categories-filter {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 10px 10px;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.98rem;
    margin-left: 10px;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
  .cookie-modal {
    padding: 20px 8px 16px 8px;
    min-width: 0;
  }
}

/* 10. MICRO-INTERACTIONS & TRANSITIONS */
button, .btn-primary, .btn-secondary, .feature-item, .card, .testimonial-card, .faq-item, .categories-filter a {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
button:active, .btn-primary:active, .btn-secondary:active, .feature-item:active, .card:active, .testimonial-card:active, .faq-item:active, .categories-filter a:active {
  transform: scale(0.98);
}

/* 11. SLIDER (for testimonials) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

/* 12. UTILITY CLASSES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mb-4 { margin-bottom: 4px !important; }

/* 13. SCROLLBAR STYLING (industrial metallic) */
::-webkit-scrollbar {
  width: 10px;
  background: #232B32;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #6CB8D9 0%, #23435B 100%);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #23435B;
}

/* 14. SELECTION COLOR */
::selection {
  background: #6CB8D9;
  color: #181C20;
}

/* 15. ACCESSIBILITY: FOCUS STATES */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #6CB8D9;
  outline-offset: 2px;
}

/* 16. INDUSTRIAL MODERN DECORATIVE ACCENTS */
.section {
  border-left: 6px solid #23435B;
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: -6px; top: 18px;
  width: 6px; height: 60px;
  background: linear-gradient(180deg, #6CB8D9 0%, #23435B 100%);
  border-radius: 3px;
  opacity: 0.18;
  z-index: 0;
}

/* 17. PRINT STYLES */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
