/* 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;
}
html { scroll-behavior: smooth; }
body {
  line-height: 1.6;
  background: #181F32;
  color: #E1E3EA;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; height: auto; }
ul,ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* BASE TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }
.text-section h1, .text-section h2, .text-section h3 { color: #5FCB71; }
p, li, ul, ol, span, table, td, th {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #E1E3EA;
}
p { margin-bottom: 14px; }
strong { color: #5FCB71; font-weight: 700; }

/* BRAND UTILITY COLORS */
:root {
  --primary: #1A2342;
  --secondary: #5FCB71;
  --accent: #FFFFFF;
  --dark: #181F32;
  --metal: #ABB6CA;
  --mid-grey: #232A43;
  --light-grey: #3B435D;
}

/* LAYOUT CONTAINERS & SECTIONS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--mid-grey);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(26,35,66, 0.25), 0 1px 3px #21233544;
  position: relative;
  overflow: hidden;
}
.section:last-child { margin-bottom: 0; }

.text-section {
  background: transparent;
  box-shadow: none;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--dark);
  border: 1.5px solid var(--metal);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(26,35,66, 0.2);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  flex: 1 1 300px;
  min-width: 270px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(95,203,113, 0.21);
  border-color: var(--secondary);
  transform: translateY(-3px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #F1F2F6;
  color: #232834;
  box-shadow: 0 2px 10px rgba(26,35,66,0.06);
  border-left: 4px solid var(--secondary);
  transition: box-shadow 0.2s, border-left-color 0.2s;
}
.testimonial-card p {
  color: #232834;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #62687B;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 20px rgba(26,35,66,0.13);
  border-left-color: #232A43;
}

/* NAVIGATION */
header {
  background: var(--primary);
  padding: 0;
  border-bottom: 2px solid var(--metal);
  position: sticky; top:0; left:0; z-index: 20;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
nav img { height: 36px; }
nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav ul li a {
  color: var(--metal);
  font-family: 'Roboto Slab', serif;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 8px 17px;
  border-radius: 6px;
  transition: color 0.2s, background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.03em;
  position: relative;
}
nav ul li a:after {
  content: '';
  display: block;
  height: 2.5px;
  width: 0%;
  background: var(--secondary);
  border-radius: 3px;
  position: absolute;
  bottom: 4px; left: 15%;
  transition: width 0.22s cubic-bezier(.6,.16,.23,1);
}
nav ul li a:hover, nav ul li a:focus {
  color: var(--accent);
  background: #242C49;
  box-shadow: 0 1px 7px rgba(95,203,113,0.08);
}
nav ul li a:hover:after, nav ul li a:focus:after {
  width: 70%;
}
.cta-primary {
  background: var(--secondary);
  color: var(--primary) !important;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 1px 8px #5fcb7116;
  transition: filter 0.19s, background 0.17s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #31AD4F;
  filter: brightness(1.03) drop-shadow(0 3px 7px #5FCB7140);
}
.cta-secondary {
  background: var(--mid-grey);
  color: var(--secondary) !important;
  border: 2px solid var(--secondary);
  font-family: 'Roboto Slab', serif;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
  margin-top: 10px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--secondary);
  color: var(--mid-grey) !important;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: #212B46;
  color: var(--accent);
  font-size: 2.1rem;
  padding: 6px 16px;
  border-radius: 8px;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #181F32;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 96vw;
  height: 100vh;
  background: #181F32EE;
  box-shadow: -4px 0 32px #1A234299;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(102vw);
  transition: transform 0.32s cubic-bezier(.61,.12,.28,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #FFF;
  font-size: 2.2rem;
  padding: 14px 24px;
  border: none;
  margin-top: 10px;
  margin-right: 8px;
  cursor: pointer;
  align-self: flex-end;
  z-index: 201;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 48px 30px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Roboto Slab', serif;
  font-size: 1.27rem;
  font-weight: 500;
  padding: 14px 10px;
  border-left: 4px solid transparent;
  width: 100%;
  border-radius: 7px;
  transition: background 0.18s, color 0.17s, border-color 0.22s;
  margin-bottom: 2px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #333A5B;
  color: var(--secondary);
  border-left: 4px solid var(--secondary);
}
.mobile-menu {
  display: flex;
}

/* FORMS AND TABLES */
table {
  background: var(--light-grey);
  border-radius: 10px;
  border: 1.5px solid var(--metal);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,35,66,0.16);
}
table thead tr {
  background: var(--mid-grey);
}
table th, table td {
  padding: 14px 12px;
  color: #FFF;
  text-align: left;
  border-bottom: 1px solid #263051;
  font-size: 1.03rem;
}
table tbody tr:nth-child(odd) {
  background: #232A43;
}
table tbody tr:nth-child(even) {
  background: #242C49;
}
table th {
  font-family: 'Roboto Slab', serif;
  letter-spacing: 0.01em;
  font-size: 1.08rem;
  color: #5FCB71;
}

/* FOOTER */
footer {
  background: var(--primary);
  border-top: 2px solid var(--metal);
  padding: 0;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 36px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
footer a img { height: 34px; }
footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 8px 0 0;
}
footer ul li a {
  color: #ABB6CA;
  padding: 3px 0;
  font-size: 0.97rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
footer ul li a:hover, footer ul li a:focus {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
footer div span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ABB6CA;
  font-size: 0.96rem;
  margin-right: 20px;
  margin-bottom: 5px;
  font-style: normal;
}
footer div span img { height: 17px; width: auto; }

/* ICONS */
ul li > img, ul li > svg, .feature-item > img {
  margin-right: 10px;
  height: 24px;
  width: auto;
  vertical-align: middle;
}

/* SPACING - FLEX CONTAINERS */
ul, ol { margin-bottom: 15px; }
li { margin-bottom: 7px; }
ul:last-child, ol:last-child, li:last-child { margin-bottom: 0; }

/* MANDATORY CSS SPACING AND ALIGNMENT PATTERNS */
.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; }

/* BUTTON GENERAL STYLES */
button {
  font-family: 'Roboto Slab', sans-serif;
  font-size: 1rem;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  padding: 12px 26px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.19s, color 0.16s, box-shadow 0.2s, filter 0.14s;
  box-shadow: 0 1px 8px #5fcb7115;
}
button:hover, button:focus { background: #31AD4F; color: #fff; filter: brightness(1.07); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 3000;
  background: #232a43ee;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 40px #1A234277;
  padding: 22px 14px 18px 14px;
  border-top: 2px solid #5FCB71;
  gap: 18px;
  opacity: 0; pointer-events: none;
  transform: translateY(104%);
  transition: transform 0.42s cubic-bezier(.42,.16,.28,1), opacity 0.3s;
}
.cookie-banner.active {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0.18s;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  font-size: 1rem;
  border-radius: 7px;
  min-width: 144px;
}
.cookie-banner .accept-btn {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .reject-btn {
  background: #CD3423;
  color: #fff;
}
.cookie-banner .settings-btn {
  background: #3B435D;
  color: var(--metal);
}
.cookie-banner button:hover, .cookie-banner button:focus, .cookie-banner .settings-btn:hover {
  filter: brightness(1.11);
  background: #31AD4F;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,35,66,0.65);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s;
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #2C3148;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 38px #232A43AA;
  max-width: 430px;
  width: 100%;
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: popInCookie 0.38s cubic-bezier(.37,1.07,.65,1.01);
}
@keyframes popInCookie {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--secondary);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-modal .toggle {
  width: 44px;
  height: 22px;
  border-radius: 14px;
  background: #3B435E;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.cookie-modal .toggle.on {
  background: var(--secondary);
}
.cookie-modal .toggle:after {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: #FFF;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 1px;
  transition: left 0.2s;
  box-shadow: 0 2px 8px #223 0.11;
}
.cookie-modal .toggle.on:after {
  left: 22px;
}
.cookie-modal .cookie-close-btn {
  align-self: flex-end;
  background: none;
  color: #FFF;
  font-size: 1.2rem;
  border: none;
  margin-top: -10px;
  margin-right: -8px;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .cookie-close-btn:hover { color: var(--secondary);}
.cookie-modal .cookie-save-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  margin-top: 18px;
  padding: 13px 0;
  width: 100%;
  font-size: 1.07rem;
}
.cookie-modal .cookie-save-btn:hover {
  background: #31AD4F;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1023px) {
  .container { max-width: 100%; }
  nav ul { gap: 13px; }
  .section { padding: 32px 8vw; }
}

@media (max-width: 900px) {
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .section {
    padding: 27px 7px;
    margin-bottom: 40px;
    border-radius: 10px;
  }
  .card {
    min-width: unset;
    max-width: 98vw;
    padding: 16px 8px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.54rem; }
  h2 { font-size: 1.17rem; }
  body { font-size: 0.95rem; }
}
/* Animations & Microinteractions */
.cta-primary, .cta-secondary, button, .mobile-nav a, .card, .testimonial-card {
  transition: all 0.19s cubic-bezier(.55,.04,.68,.98);
}
.card:active, .cta-primary:active, .cta-secondary:active, button:active {
  filter: brightness(0.96) grayscale(0.12);
  transform: scale(0.98);
}

/* Miscellaneous/Industrial Modern Decoration */
.section {
  border: 1.5px solid #232A43;
  box-shadow: 0 8px 40px #181F3227;
}
.card::before {
  content: '';
  display: block;
  position: absolute;
  top: -5px;
  right: -6px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg,#5FCB7130 30%,#181F3250 90%);
  border-radius: 60% 12% 60% 12%;
  filter: blur(9px);
  z-index: 0;
  pointer-events: none;
}
.card-content { z-index: 1; }
.card .cta-primary { z-index: 1; }

/* Industrial Modern Touches */
.card, .section {
  /* Metal accent border on left */
  border-left: 4.5px solid var(--metal);
}
.card:hover {
  border-left-color: var(--secondary);
}
.section {
  border-left: 7px solid #3B4B61;
}
.text-section {
  border-left: 7px solid var(--secondary);
  background: none;
  box-shadow: none;
}

/* Accessibility: Focus Outline */
a:focus, button:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* Fix for always-at-bottom footer on short pages */
html, body { min-height: 100vh; height: auto; }

/* Hide cookie modal and banner by default */
.cookie-modal, .cookie-banner { display: none; }
.cookie-modal.active, .cookie-banner.active { display: flex; }

/* Hide mobile menu by default */
.mobile-menu { display: flex; pointer-events: none; opacity: 0; }
.mobile-menu.open { pointer-events: auto; opacity: 1; }

/* Show/hide overrides by js - these ensure safe fallback if scripts missing */
@media (max-width: 768px) {
  nav ul { display: none !important; }
  .mobile-menu { display: flex; }
}

/* Ensure no overlapping */
.card, .testimonial-card, section, .section, .container, .content-wrapper, .card-container, .content-grid, .text-image-section, .feature-item {
  box-sizing: border-box;
  min-width: 0;
}

/* Scrollbar styling for urban/industrial look */
::-webkit-scrollbar { width: 10px; background: #232A43; }
::-webkit-scrollbar-thumb { background: #5FCB71cc; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #31AD4Fcc; }

/* END */
