/* RESET & BASE ------------------------------------------------- */
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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.6; background: #121619; color: #f2f6f8; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* TYPOGRAPHY & BRAND ----------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
:root {
  --color-primary: #17384B;
  --color-secondary: #19B3A7;
  --color-accent: #F2F6F8;
  --color-bg-dark: #121619;
  --color-bg-medium: #23272b;
  --color-metallic: #8ea2b0;
  --color-gray: #2E3D44;
  --color-danger: #d34747;
  --shadow-1: 0px 4px 16px rgba(23, 56, 75, 0.12);
  --shadow-2: 0px 2px 8px rgba(23, 56, 75, 0.28);
  --radius: 12px;
  --transition: 0.24s cubic-bezier(.74,.01,.38,.93);
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--color-bg-dark);
  color: var(--color-accent);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.03em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 14px; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1rem; }
}
p, ul, ol, li {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.6;
}
ul, ol { margin-left: 20px; }
strong { color: var(--color-secondary); font-weight: 700; }

/* SPACING & CONTAINERS ------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 0;
}
/* Flex layouts as per requirement */
.feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-medium);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 300px;
}
.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-6px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fafbfc;
  color: #17384B;
  padding: 20px 28px;
  border-left: 6px solid var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  max-width: 440px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-4px) scale(1.02);
}
/* Gaps and alignment for dense content */
ul, ol {
  margin-top: 8px;
  margin-bottom: 8px;
}
li {
  margin-bottom: 8px;
  padding-left: 2px;
}

/* BUTTONS & INTERACTIONS ------------------------------------------ */
.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 8px;
  box-shadow: var(--shadow-1);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-block;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
}
.btn-primary:hover, .btn-primary:focus {
  background: #149187;
  color: #fff;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-2);
}
a.btn-primary, a.btn-secondary { text-align: center; }

/* MAIN LAYOUT COMPONENTS ------------------------------------------ */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 10px rgba(23,56,75,0.18);
  z-index: 30;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  padding: 6px 10px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-secondary);
  margin-top: 2px;
  transition: width var(--transition);
}
.main-nav a:hover:after, .main-nav a:focus:after { width: 100%; }
.main-nav a:hover, .main-nav a:focus { color: var(--color-secondary); }

.mobile-menu-toggle {
  background: transparent;
  color: var(--color-accent);
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 14px;
  display: none;
  z-index: 200;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus { color: var(--color-secondary); }

/* MOBILE MENU --------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(120deg, #10161b 90%, #22343c 100%);
  box-shadow: 0px 8px 32px rgba(18,22,25,0.65);
  transform: translateX(-100%);
  z-index: 999;
  transition: transform 0.34s cubic-bezier(.74,.01,.38,.93);
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  font-size: 2.3rem;
  border: none;
  align-self: flex-end;
  margin: 28px 22px 10px 0;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: var(--color-danger); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0 0 32px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 12px 0 6px 0;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(146,189,205,0.04);
  width: max-content;
  transition: color 0.18s, background 0.18s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(25,179,167,0.09);
}

/* Show/hide menu on mobile */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}

/* MAIN PAGE COMPONENTS ------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  section { margin-bottom: 36px; padding: 24px 0; }
}

.feature-grid > div,
.feature-item {
  background: var(--color-bg-medium);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 32px 24px 24px 24px;
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 0px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
    border-left: 4px solid var(--color-metallic);
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-4px) scale(1.015);
  border-left: 4px solid var(--color-secondary);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  filter: grayscale(15%) brightness(1.15) drop-shadow(0 1px 2px #1114);
}
/* Content grid, testimonials etc */
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px 18px;
}

/* TESTIMONIALS ---------------------------------------------- */
.testimonial-card {
  background: #fafbfc;
  color: #17384B;
  border-left: 6px solid var(--color-secondary);
  margin-bottom: 20px;
  font-size: 1.06rem;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card span {
  font-size: 1rem;
  color: #223040;
}

/* FOOTER --------------------------------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 30px 0 16px 0;
  margin-top: 40px;
  font-size: 0.99rem;
  border-top: 2px solid #222e37;
  box-shadow: 0px -2px 10px rgba(23,56,75,0.13);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
footer img {
  height: 32px;
  margin-right: 18px;
  vertical-align: middle;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-accent);
  opacity: 0.82;
  transition: color 0.18s, opacity 0.22s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
footer .footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
footer .footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
  color: var(--color-accent);
  font-size: 0.98em;
}
footer .footer-contact img {
  height: 18px;
  width: 18px;
  opacity: 0.79;
  margin-right: 6px;
}
@media (max-width: 880px) {
  footer .container {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
}

/* RESPONSIVE ADAPTATION ------------------------------------- */
@media (max-width: 1020px) {
  .feature-grid,
  .content-grid {
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 44vw;
    flex: 1 1 44vw;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .main-nav, header .btn-primary { display: none; }
  .feature-grid {
    flex-direction: column;
    gap: 24px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
    font-size: 1rem;
    padding: 16px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  section { padding: 18px 0; margin-bottom: 28px; }
}

/* MISC UTILS ---------------------------------------------------------- */
.hide { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }

/* FOCUS VISIBLE */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ANIMATIONS & MICRO-INTERACTIONS ----------------------------- */
.card, .feature-grid > div, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition), border var(--transition);
}

/* COOKIE CONSENT BANNER ---------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #212e35;
  color: #fff;
  box-shadow: 0px -2px 14px 0 rgba(23, 56, 75, 0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 36px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.28s, transform 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0%);
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  max-width: 640px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
}
.cookie-btn {
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.16s, box-shadow 0.16s;
  margin: 0;
  box-shadow: var(--shadow-1);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #17384B;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #149187; color: #fff;
}
.cookie-btn.reject {
  background: #455962;
  color: #f2f6f8;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #2e3d44; color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  margin-left: 4px;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #17384B;
}
@media (max-width: 820px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px 8px; }
  .cookie-banner-buttons { gap: 8px; }
}

/* COOKIE MODAL ------------------------------------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23, 32, 43, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.visible { display: flex; }
.cookie-modal {
  background: #202c33;
  border-radius: 14px;
  max-width: 410px;
  width: 90vw;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 16px 42px rgba(17, 19, 26, 0.34);
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-fadein 0.38s cubic-bezier(.65, .01, .48, .98);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-danger);
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 7px;
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #26323d;
  border-radius: 7px;
  padding: 10px 10px;
  font-size: 0.98rem;
}
.cookie-category label {
  flex: 1;
  color: #f2f6f8;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
}
.cookie-category input[disabled] {
  opacity: 0.5;
}

.cookie-modal .cookie-btn {
  margin-top: 8px;
  width: 100%;
}

/* METALLIC URBAN EFFECTS --------------------------------------------- */
h1, h2, h3, h4 {
  text-shadow: 0 1px 0 #222a33, 0 2px 10px rgba(67,79,92,0.26);
}
.feature-grid > div, .card {
  border-left: 4px solid var(--color-metallic);
}
.card, .feature-grid > div {
  background: linear-gradient(105deg, #23272b 93%, #17384b 100%);
}
hr {
  border: none;
  border-top: 1px solid #2E3D44;
  margin: 32px 0;
}

/* INDUSTRIAL FONT/URBAN EFFECT -------------------------------------- */
h1, h2, h3, .main-nav a, .mobile-nav a, .btn-primary, .btn-secondary, .footer nav a {
  letter-spacing: 0.045em;
  text-transform: none;
}
h1, h2 {
  border-left: 6px solid var(--color-secondary);
  padding-left: 17px;
}
@media (max-width: 480px) {
  .feature-grid > div, .card {
    min-width: 94vw;
    flex: 1 1 94vw;
    padding: 20px 10px;
  }
}

/* HINT: visually, more "industrial" feel can be enhanced with subtle lines and metal accents */
.feature-grid > div {
  border-left: 4px solid var(--color-metallic);
}

/* FORM & NEWSLETTER (if any) ------------------------------------------ */
input, textarea {
  padding: 10px 14px;
  background: #23272b;
  border: 1.5px solid #455962;
  border-radius: 8px;
  color: var(--color-accent);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
  transition: border 0.17s, box-shadow 0.13s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 2px #19b3a73a;
}

/* HOVER AND ACTIVE STATES ---------------------------------- */
a, button, .btn-primary, .btn-secondary {
  transition: color 0.17s, background 0.23s, box-shadow 0.17s, border 0.23s;
}

/* SELECTION ---------------------------------------------------------- */
::selection {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
}

/* SCROLLBARS --------------------------------------------------------- */
::-webkit-scrollbar {
  width: 11px;
  background: #17384b;
}
::-webkit-scrollbar-thumb {
  background: #273e4f;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #19b3a7;
}

/* END */
