/* ===============================================
   RESET & BASE TYPOGRAPHY
   =============================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #21272b;
  color: #ececec;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: #f0f1f2;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }

p,
ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #ccd2d6;
  font-size: 1.08rem;
  margin-bottom: 16px;
}
ul, ol {
  margin: 0 0 16px 24px;
}
strong, b { color: #fff; font-weight: 700; }
a {
  color: #F9D46A;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus { color: #E2F0CB; text-decoration: underline; }

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

/* ===============================================
   BRAND COLORS / VARIABLES (with fallback)
   =============================================== */
:root {
  --color-primary: #285175;
  --color-secondary: #E2F0CB;
  --color-accent: #F9D46A;
  --color-bg: #21272b;
  --color-surface: #262d32;
  --color-metal-dark: #485460;
  --color-metal-light: #7a868e;
  --color-text: #ececec;
  --color-text-dark: #1b2330;
  --radius: 10px;
  --shadow-card: 0 2px 8px rgba(34,38,43,0.20), 0 1.5px 0 #2c3439 inset;
}

/* ===============================================
   CONTAINERS & GENERAL SPACING
   =============================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section, .hero, .cta, .about-preview, .about, .values, .services, .faqs, .legal, .testimonials, .contact {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 30px 0 rgba(34,38,43,0.30), 0 1px 0 #2c3439 inset;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #e8ebed;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(30,40,48,0.09);
  color: #23292F;
  min-width: 220px;
}
.testimonial-card p {
  color: #22292F;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-meta {
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #555d6d;
  opacity: 0.88;
}

.faq {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 22px 18px;
  width: 100%;
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
header {
  width: 100%;
  background: #22272b;
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  border-bottom: 1.5px solid #35383c;
  z-index: 30;
  position: relative;
}
header > a > img {
  height: 50px;
  margin: 18px 38px 18px 12px;
  filter: brightness(0.92) contrast(1.03);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-metal-light);
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 8px 4px;
  border-radius: 3px;
  transition: background 0.12s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  background: rgba(60,61,72,0.30);
}

.btn-primary {
  background: var(--color-accent);
  color: #252623;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 7px;
  padding: 13px 32px;
  font-size: 1rem;
  margin-left: 24px;
  box-shadow: 0 2px 11px #22272b18;
  cursor: pointer;
  display: inline-block;
  border: 2px solid var(--color-accent);
  letter-spacing: 0.01em;
  transition: background 0.14s, color 0.16s, border 0.16s, box-shadow 0.14s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFD76B;
  color: #1b2330;
  border-color: #FFD76B;
  box-shadow: 0 7px 28px 2px #22272b42;
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  margin-left: 22px;
  margin-right: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background 0.13s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #484f58;
  outline: none;
  color: var(--color-metal-light);
}

/* Hide burger on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,38,43,0.99);
  box-shadow: 2px 0 8px rgba(22,23,24,0.22);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.87,.13,.19,.95);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 8px 0 36px rgba(0,0,0,0.32);
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  font-size: 2.0rem;
  border: none;
  margin: 22px 0px 10px 22px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.15s, background 0.13s;
  padding: 4px 8px;
  border-radius: 7px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD76B;
  background: #41454a;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 44px;
  margin-left: 42px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #f0f1f2;
  padding: 12px 0 12px 0;
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  transition: background 0.12s, color 0.16s;
  width: 100vw;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #314157;
  color: var(--color-accent);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: auto;
    margin-right: 8px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-height: 62px;
    padding: 0 0 0 0;
  }
  header > a > img {
    margin: 12px 12px 12px 8px;
    height: 38px;
  }
}

/* ===============================================
   HERO & FEATURE SECTIONS
   =============================================== */
.hero {
  background: linear-gradient(90deg, #273642 0%, #1e263a 100%);
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 2.5px solid #314157;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-shadow: 0 3px 16px #2a303a33;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.16rem;
  color: #f3f5f7;
  margin-bottom: 16px;
}

.features, .services, .about-preview, .about, .values, .cta, .faqs, .legal, .testimonials, .contact {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
}
.features h2, .services h2, .about-preview h2, .values h2, .cta h2, .testimonials h2, .faqs h2, .about h2, .legal h1, .contact h2 {
  color: var(--color-accent);
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
}
.feature-grid > div,
.values .feature-grid > div,
.services .feature-grid > div {
  background: #242D32;
  border: 1.6px solid #40474b;
  border-radius: 10px;
  box-shadow: 0 2.5px 10px #19202822 inset;
  flex: 1 1 240px;
  min-width: 215px;
  max-width: 100%;
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.16s;
  margin-bottom: 20px;
  gap: 8px;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px #21272b55;
  border-color: var(--color-accent);
}
.feature-grid img {
  height: 36px;
  margin-bottom: 8px;
  filter: grayscale(22%) brightness(1.05) drop-shadow(0 2px 3px #191e2222);
}

/* ===============================================
   FAQ & GENERAL CARDS
   =============================================== */
.faq h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.faq p {
  font-size: 1rem;
  color: #e3e7ea;
  margin-bottom: 4px;
}

/* ===============================================
   CTA SECTION
   =============================================== */
.cta {
  background: #323C46;
  border: none;
  color: var(--color-accent);
  box-shadow: 0 2px 12px 0 #141a2022, 0 1.5px 0 #1c212a inset;
}
.cta h2 {
  color: #F9D46A;
}
.cta p {
  color: #ffffff;
  font-size: 1.14rem;
  margin-bottom: 22px;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
  background: #232830;
  padding: 0;
  border-top: 2px solid #344150;
  min-height: 84px;
}
footer .container {
  padding: 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #E2F0CB;
  font-size: 1rem;
  opacity: 0.88;
  transition: color 0.15s, text-decoration 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
  opacity: 1.0;
}
.contact-info {
  font-size: 0.97rem;
  color: #c7d1d6;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.contact-info img {
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
  margin-bottom: -2px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .footer-nav { gap: 10px; }
}

/* ===============================================
   ABOUT/LEGAL/FEATURE FURTHER DETAILING
   =============================================== */
.about-preview, .about, .values, .legal {
  background: #23292f;
  color: #e5e7ee;
}
.legal ul, .legal ol {
  color: #e3e7ed;
}
.legal li {
  margin-bottom: 10px;
}

/* ===============================================
   LAYOUT: FLEX SPACING & CARDS
   =============================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 900px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 24px;
  }
  .feature-grid > div, .values .feature-grid > div,
  .services .feature-grid > div {
    flex: 1 1 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section, .hero, .features, .services, .about-preview, .about, .values, .cta, .faqs, .legal, .testimonials, .contact {
    padding: 25px 8px;
  }

  .content-wrapper, .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 13px;
    gap: 8px;
  }
  .btn-primary {
    padding: 11px 20px;
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.36rem; }
  h2 { font-size: 1.22rem; }
}

/* ===============================================
   TRANSITIONS & HOVER EFFECTS
   =============================================== */
section, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.16s, background 0.17s, border 0.16s;
}
a, .btn-primary, .main-nav a, .footer-nav a {
  transition: background 0.14s, color 0.17s, text-decoration 0.15s;
}

/* ===============================================
   COOKIE CONSENT BANNER & MODAL
   =============================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2a3038;
  color: #fff;
  z-index: 1600;
  box-shadow: 0 -2px 24px #181a1f99;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 18px 14px 16px 14px;
  font-size: 0.98rem;
  width: 100vw;
  border-top: 3px solid var(--color-accent);
  animation: cookieSlideIn 0.45s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  margin-bottom: 0;
  color: #fff;
  flex: 2 1 300px;
  font-size: 1.02rem;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex: 1 1 125px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(22,26,40,0.11);
  transition: background 0.13s, color 0.15s;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: #1d1e21;
}
.cookie-banner .accept:hover {
  background: #FFD76B;
}
.cookie-banner .reject {
  background: #485460;
  color: #fff;
}
.cookie-banner .reject:hover {
  background: #363f47;
}
.cookie-banner .settings {
  background: #21272b;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner .settings:hover {
  background: #2e3a40;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(49,54,63,0.86);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1800;
  animation: fadeInModal 0.44s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #23292f;
  color: #ececec;
  border-radius: 14px;
  padding: 38px 28px 26px 28px;
  max-width: 410px;
  min-width: 0;
  box-shadow: 0 6px 48px #191f2262;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #263138;
  padding: 11px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
}
.cookie-category.essential {
  background: #324450;
  color: #ffe682;
  font-weight: 700;
}
.cookie-category label {
  flex: 1 1 auto;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.cookie-modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-modal-content button {
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal-content .save {
  background: var(--color-accent);
  color: #23292f;
}
.cookie-modal-content .save:hover {
  background: #FFD76B;
}
.cookie-modal-content .close {
  background: #485460;
  color: #fff;
}
.cookie-modal-content .close:hover {
  background: #2a3540;
}

@media (max-width: 600px) {
  .cookie-modal-content {
    max-width: 94vw;
    padding: 14vw 4vw 8vw 4vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===============================================
   MICRO-INTERACTIONS
   =============================================== */
.btn-primary, .cookie-banner button, .cookie-modal-content button {
  transition: box-shadow 0.17s, background 0.13s, color 0.15s, opacity 0.14s;
}
.card, .feature-grid > div, .faq, .testimonial-card {
  transition: box-shadow 0.14s, border 0.15s;
}
.card:active, .feature-grid > div:active {
  transform: translateY(1.5px) scale(0.985);
  box-shadow: 0 1px 2px #11131526;
  border-color: #F9D46A;
}
.btn-primary:active {
  opacity: 0.94;
  box-shadow: 0 1px 2px #484d5111;
}

input:focus, button:focus, select:focus, textarea:focus {
  outline: 1.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===============================================
   SCROLLBAR (for a more industrial look)
   =============================================== */
::-webkit-scrollbar {
  width: 10px;
  background: #232830;
}
::-webkit-scrollbar-thumb {
  background: #314157;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #485460;
}

/* ===============================================
   METALLIC ACCENTS (Urban Industrial Look)
   =============================================== */
.section, .feature-grid > div, .testimonial-card, .faq, .card {
  border-bottom: 3.5px solid #485460;
  box-shadow: 0 2px 16px 0 #00173319;
}
.section {
  border-bottom: 4.5px solid #31415755;
}

/* ===============================================
   INDUSTRIAL FONT Fallbacks for Robustness
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;700&display=swap');

body, button, input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
h1, h2, h3, .btn-primary, .main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}

/* ===============================================
   HIGHLIGHT: SECONDARY ACCENT FOR ENRICHMENT
   =============================================== */
.secondary-accent {
  color: var(--color-secondary);
}
.bg-accent {
  background: var(--color-accent);
  color: #21272b;
  border-radius: 5px;
  padding: 2px 8px;
}

/* ===============================================
   A11Y: FOCUS AND CONTRAST (CRITICAL IN TESTIMONIALS)
   =============================================== */
.testimonials, .testimonial-card {
  color: #22292F;
}
.testimonials h2, .testimonials h3, .testimonials .testimonial-meta {
  color: #2a3e56;
}
@media (max-width: 480px) {
  .testimonial-card p {
    font-size: 0.95rem;
  }
}

/* ===============================================
   END OF STYLE.CSS - AUTOECHO BALANCE (2024)
   =============================================== */
