/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* BRAND COLORS & FONTS */
:root {
  --color-primary: #23344B;
  --color-secondary: #6D8C38;
  --color-accent: #F1F5F8;
  --color-bg-dark: #23272b;
  --color-metal: #888b8e;
  --color-iron: #55585B;
  --color-text: #E3E6EA;
  --color-paper: #f9fafc;
  --color-warning: #ebc934;
  --shadow-industrial: 0 1px 3px 0 rgba(36,40,46,0.16), 0 4px 24px 0 rgba(35,52,75,0.08);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  background: var(--color-bg-dark);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0; /* for mobile create stack effect, desktop handles gap in flex wrappers */
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

main {
  flex: 1 0 auto;
}

/* HEADERS */
header {
  position: relative;
  width: 100%;
  background: var(--color-primary);
  box-shadow: 0 2px 16px 0 rgba(35,52,75,0.18);
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}
header a img {
  height: 40px;
  margin-right: 18px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Hide Nav on Mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
}

/* MENU BUTTONS */
.btn-primary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-secondary) 80%, var(--color-metal) 100%);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: var(--shadow-industrial);
  letter-spacing: 0.5px;
  transition: background 0.18s, transform 0.14s;
  cursor: pointer;
  display: inline-block;
  margin-left: 16px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #5d7226 80%, var(--color-metal) 100%);
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: none;
  letter-spacing: 0.2px;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  margin-top: 18px;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn-link {
  color: var(--color-secondary);
  transition: color 0.16s;
  font-weight: 700;
  text-decoration: underline;
  font-size: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: 12px;
  display: inline-block;
}
.btn-link:hover, .btn-link:focus {
  color: #f2d122;
}

/* SPACING & FLEX PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.card {
  background: #23272b;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(35,52,75,0.10);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 220px;
  border: 1.5px solid var(--color-metal);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px 22px 16px 22px;
}
.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: #fff;
  color: #23272b;
  border-radius: 12px;
  box-shadow: 0 2px 11px 0 rgba(35,52,75,0.09);
  margin-bottom: 20px;
  flex-direction: column;
  border-left: 5px solid var(--color-secondary);
  min-width: 230px;
  max-width: 500px;
}
.testimonial-card p {
  font-size: 17px;
  font-family: var(--font-body);
  font-style: italic;
  line-height: 1.55;
  color: #222;
  margin-bottom: 12px;
}
.testimonial-card strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #282C30;
  border-radius: 12px;
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 180px;
  box-shadow: 0 2px 12px 0 rgba(35,52,75,0.08);
  border-left: 4px solid var(--color-secondary);
  transition: transform 0.17s, box-shadow 0.17s;
}
.feature-grid > div:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px 2px rgba(109,140,56,0.225);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  background: none;
}
.feature-grid h3 {
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.feature-grid p {
  color: var(--color-accent);
  font-size: 16px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #202733 80%, var(--color-secondary) 100%);
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 0 0 48px 0;
  margin-bottom: 40px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.7px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(35,52,75,.3);
}
.hero p {
  color: #F1F5F8;
  font-size: 18px;
  font-family: var(--font-body);
  margin-bottom: 29px;
  max-width: 540px;
}
.hero .btn-primary {
  background: linear-gradient(90deg, var(--color-metal) 20%, var(--color-secondary) 100%);
  font-size: 18px;
  color: #fff;
}

/* TEXT SECTIONS & TYPOGRAPHY */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
  color: var(--color-accent);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-metal);
  font-weight: 600;
  margin-bottom: 8px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  color: var(--color-accent);
  font-size: 16px;
}
.text-section ul, .text-section ol {
  margin: 8px 0 8px 0;
  padding-left: 22px;
  color: var(--color-accent);
  font-size: 16px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 10px;
  line-height: 1.6;
  list-style-type: disc;
}
.text-section a, .content-wrapper a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.14s;
}
.text-section a:hover, .content-wrapper a:hover {
  color: var(--color-warning);
}
strong {
  font-weight: 700;
}

/* FOOTER */
footer {
  background: #1f2327;
  color: var(--color-paper);
  margin-top: 52px;
  border-top: 2px solid var(--color-metal);
  padding: 38px 0 16px 0;
  font-size: 15px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 280px;
}
.brand-footer img {
  width: 48px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-right: 30px;
}
.footer-nav a {
  color: var(--color-metal);
  font-size: 15px;
  transition: color 0.12s;
  font-family: var(--font-display);
}
.footer-nav a:hover {
  color: var(--color-secondary);
}
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.credits {
  width: 100%;
  margin-top: 30px;
  text-align: center;
  color: #888b8e;
  font-size: 13px;
}

/* TESTIMONIALS */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.testimonial-slider .testimonial-card {
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 420px;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 50;
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #21252aee;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  z-index: 1002;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 35px;
  padding: 15px 22px 10px 0;
  color: #fff;
  cursor: pointer;
  z-index: 1010;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 13px 0;
  border-bottom: 1px solid #4448571c;
  transition: color 0.13s;
  letter-spacing: 0.1em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

/* Responsive Menu (Hide/Show) */
@media (max-width: 1024px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* SECTION/CONTENT UTILITY CLASSES */
ul, ol {
  margin-left: 22px;
  margin-bottom: 22px;
}
ul li, ol li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-accent);
}

/* REVIEW SECTION Accessibility: readable on white */
.testimonial-card, .testimonial-slider .testimonial-card {
  background: #fff;
  color: #23272b !important;
}
.testimonial-card strong {
  color: var(--color-primary);
}

/* COOKIES BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #23272B;
  color: var(--color-accent);
  border-top: 2px solid var(--color-metal);
  box-shadow: 0 -2px 17px 0 rgba(35,52,75,0.13);
  z-index: 1500;
  width: 100vw;
  padding: 22px 15px 22px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.27s cubic-bezier(.58,0,.27,1), opacity 0.21s;
  font-size: 16px;
  font-family: var(--font-body);
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: none;
  box-shadow: 0 1px 8px 0 rgba(35,52,75,0.10);
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
  margin-right: 6px;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #496c1c;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-metal);
}
.cookie-btn.reject:hover {
  background: #ffeded;
  color: #c82b34;
}
.cookie-btn.settings {
  background: #23272b;
  color: var(--color-accent);
  border: 1px solid var(--color-metal);
}
.cookie-btn.settings:hover {
  background: var(--color-metal);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width:100vw; height:100vh;
  background: rgba(22,26,28,0.67);
  z-index: 1501;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 28px 2px rgba(35,52,75,0.20);
  width: 95vw;
  max-width: 392px;
  padding: 30px 26px 23px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #23272b;
  font-family: var(--font-body);
  z-index: 1505;
  animation: fadein .2s cubic-bezier(.8,0,.35,1);
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-secondary);
  font-family: var(--font-display);
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 16px;
  color: #23344b;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #888b8e;
  opacity: 0.7;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 13px;
  background: none;
  border: none;
  font-size: 23px;
  color: #888b8e;
  cursor: pointer;
  z-index: 1600;
}
@keyframes fadein {
  from {opacity:0;transform: scale(0.96);}
  to   {opacity:1;transform: scale(1);}
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding: 0 9px;
  }
  header .container {
    padding: 8px 6px;
    gap: 7px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 24px;
  }
  .container {
    max-width: 100vw;
    padding: 0 5px;
  }
  .main-nav { display: none; }
  .hero {
    padding: 23px 0 24px 0;
    min-height: unset;
  }
  .hero .container {
    min-height: unset;
    padding: 0 6px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    margin-right: 0;
  }
  .footer-cta {
    align-items: flex-start;
    margin: 0 auto;
    width: 100%;
    justify-content: flex-end;
  }
  footer .container {
    flex-direction: column;
    gap: 15px;
  }
  .section {
    padding: 26px 10px;
    margin-bottom: 34px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 98vw;
    font-size: 15px;
    padding: 15px 10px;
  }
  .card {
    min-width: 180px;
    max-width: 94vw;
  }
  .card-content {
    padding: 13px 8px 10px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 13px;
  }
  h1, .h1 {
    font-size: 19px;
  }
  h2, .h2 {
    font-size: 16px;
  }
  .btn-primary, .btn-secondary {
    font-size: 15px;
    padding: 11px 14px;
  }
  .feature-grid > div {
    padding: 16px 7px;
  }
  .testimonial-card {
    padding: 9px 6px;
  }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 10px;
  background: #23272B;
}
::-webkit-scrollbar-thumb {
  background: #888b8e;
  border-radius: 6px;
}

/* VISUAL EFFECTS - BUTTON FOCUS */
.btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-warning);
  outline-offset: 2px;
}
.main-nav a:focus, .mobile-nav a:focus, .footer-nav a:focus {
  outline: 2px solid var(--color-secondary);
}

/* ACCESSIBILITY FOR HOVER/FOCUS (reduce motion) */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Z-INDEX FOR OVERLAYS */
.mobile-menu,
.cookie-banner,
.cookie-modal-backdrop { z-index: 998; }

/* VISUAL INDUSTRIAL ACCENTS */
.feature-grid > div, .card, .testimonial-card {
  border-bottom: 2.5px solid var(--color-metal);
}

/* PRINT SAFE */
@media print {
  header, nav, .btn-primary, .btn-secondary, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
}
