/* =====================
   CSS RESET & BASELINE
======================= */
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 { height: 100%; }
body {
  min-height: 100vh;
  background: #1f262b;
  color: #F3F7F9;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  background-color: #1f262b;
}
img { display: block; max-width: 100%; height: auto; }
a {
  color: #CBE7EA;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
}

/* =====================
   INDUSTRIAL MODERN ROOT STYLES
======================= */
:root {
  --color-primary: #254157;
  --color-secondary: #CBE7EA;
  --color-accent: #F3F7F9;
  --color-dark: #1f262b;
  --color-steel: #a7b6bd;
  --color-metal: #495961;
  --color-light: #F3F7F9;
  --color-bg-card: #232c31;
  --color-bg-section: #26303A;
  --color-btn: #254157;
  --color-btn-hover: #345775;
  --color-btn-text: #F3F7F9;
  --color-danger: #b63f36;
  --transition: .25s cubic-bezier(.45,.05,.55,.95);
  --radius: 12px;
  --shadow: 0 2px 10px 0 rgba(40,50,60,0.16), 0 1.5px 4px 0 rgba(20,26,32,0.09);
}

/* =====================
   TYPOGRAPHY
======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-rendering: optimizeLegibility;
}
h1 {
  font-size: 2.5rem; 
  margin-bottom: 24px;
  line-height: 1.18;
  color: var(--color-secondary);
  text-shadow: 0 2px 8px rgba(31,38,43,0.4);
}
h2 {
  font-size: 2rem; 
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}
h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }

p, li, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #E0EAEE;
}
strong { font-weight: 700; color: var(--color-secondary); }
ul, ol { margin-left: 24px; margin-bottom: 24px; }
ul li, ol li {
  margin-bottom: 10px;
  list-style-position: outside;
}
li strong { color: var(--color-secondary); }

/* =====================
   LAYOUT CONTAINERS
======================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* =====================
   FLEXBOX PATTERNS & PAGE SECTIONS
======================= */
section {
  background: var(--color-bg-section);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: column;
}
@media (min-width: 700px) {
  .features-grid {
    flex-direction: row;
    justify-content: flex-start;
  }
}
.feature {
  background: var(--color-bg-card);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 4px solid var(--color-steel);
  transition: background 0.18s, border 0.18s;
}
.feature span {
  font-size: 1.7rem;
  color: var(--color-steel);
  margin-bottom: 8px;
}
.feature:hover {
  background: #293944;
  border-left-color: var(--color-secondary);
}

/* Cards and grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  padding: 30px 22px;
  transition: box-shadow .19s, background .19s;
}
.card:hover {
  box-shadow: 0 4px 20px 0 rgba(50,60,70,0.24);
  background: #25313b;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f7f9fa;
  color: #212d33;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border-left: 3px solid var(--color-primary);
}
.testimonial-card p {
  color: #254157;
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card span {
  color: #495961;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
}

.project-summary {
  background: var(--color-bg-card);
  padding: 24px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.project-summary h3 {
  color: var(--color-secondary);
}

.faq-item {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  color: var(--color-steel);
  font-size: 1.08rem;
}

.blog-preview {
  background: var(--color-bg-card);
  padding: 22px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border-left: 4px solid var(--color-steel);
  transition: background .19s, border .19s;
}
.blog-preview h3 {
  margin-bottom: 8px;
}
.blog-preview span {
  color: var(--color-steel);
  font-size: 0.98rem;
  margin-bottom: 7px;
  display: block;
}
.blog-preview:hover {
  background: #202a33;
  border-left-color: var(--color-primary);
}

.text-section {
  background: transparent;
  padding: 0;
  border-radius: var(--radius);
  color: var(--color-light);
}

/* =====================
   NAVIGATION & HEADER
======================= */
header {
  background: #222a31;
  padding: 0;
  box-shadow: 0 2px 10px 0 rgba(16,19,23,0.12);
  border-bottom: 1.5px solid #26303a;
  position: sticky;
  top: 0;
  z-index: 80;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
  padding: 16px 20px 16px 20px;
  width: 100%;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: transparent;
}
.main-nav a {
  color: #CBE7EA;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.12s;
}
.main-nav a.cta-primary {
  background: var(--color-primary);
  color: var(--color-btn-text);
  padding: 7px 22px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 1.5px 7.5px 0 rgba(0,8,50,0.12);
  margin-left: 12px;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--color-steel);
  transition: background .18s, border .18s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: var(--color-btn-hover);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.main-nav a:hover, .main-nav a:focus {
  background: #2a3c4b;
  color: #fff;
}
.main-nav img {
  height: 40px;
  margin-right: 24px;
}

/* Hide mobile nav on desktop */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--color-dark);
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  border-radius: 8px;
  height: 44px;
  width: 44px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 105;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-menu-toggle:hover {
  background: var(--color-steel);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(96deg, #232c31 84%, #1f262b 100%);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s var(--transition), opacity .18s .07s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin-top: 24px;
  margin-left: 20px;
  background: transparent;
  color: var(--color-secondary);
  border: none;
  font-size: 2.3rem;
  cursor: pointer;
  align-self: flex-start;
  z-index: 2200;
  outline: none;
  transition: color .15s;
}
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 48px 26px;
  width: 100vw;
  max-width: 340px;
  margin-top: 18px;
  font-size: 1.1rem;
  background: transparent;
}
.mobile-nav a {
  color: #CBE7EA;
  padding: 12px 10px;
  border-radius: 7px;
  font-weight: 500;
  transition: background 0.13s, color 0.12s;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-right: 0;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #233240;
  color: #fff;
}

@media (max-width:1024px) {
  .main-nav {
    gap: 20px;
    font-size: 0.98rem;
    padding: 12px 8px 12px 14px;
  }
  .main-nav img {
    height: 37px;
    margin-right: 18px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    min-height: 64px;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* =====================
   BUTTONS
======================= */
.cta-primary, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-btn);
  color: var(--color-btn-text);
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  padding: 12px 34px;
  border-radius: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px 0 rgba(22,32,45,0.17);
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 15px;
  transition: background .18s, color .15s, box-shadow .17s;
  border: 1.5px solid var(--color-steel);
  text-decoration: none;
}
.cta-primary:focus, .cta-primary:hover,
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-btn-hover);
  color: var(--color-secondary);
  box-shadow: 0 3.5px 20px 0 rgba(30,33,39,0.19);
  border: 1.5px solid var(--color-secondary);
}
.button-secondary {
  background: #FFFFFF;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  font-weight: 600;
  border-radius: 28px;
  padding: 11px 26px;
  transition: background .14s, color .14s;
}
.button-secondary:focus,.button-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.button-danger {
  background: var(--color-danger);
  color: #fff;
  font-weight: 700;
  border-radius: 28px;
  padding: 11px 24px;
  border: none;
  margin-right: 15px;
  transition: background .15s;
}
.button-danger:focus,.button-danger:hover {
  background: #a0271f;
}

/* =====================
   FOOTER
======================= */
footer {
  background: var(--color-dark);
  color: #CBE7EA;
  padding: 38px 0 32px 0;
  margin-top: 36px;
  border-top: 1.5px solid #26303a;
  box-shadow: 0 -4px 24px 0 rgba(28,34,39,0.09);
  width: 100%;
  z-index: 10;
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #9db4c3;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .14s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #F3F7F9;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}
.footer-brand img {
  height: 38px;
}
.footer-brand span {
  color: #8d9ca6;
  font-size: 0.92rem;
}
@media (max-width: 700px) {
  .footer-nav,
  .footer-contact,
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-brand { align-items: flex-start; justify-content: flex-start; }
}

/* =====================
   COOKIE CONSENT BANNER
======================= */
.cookie-banner {
  position: fixed;
  z-index: 9999;
  bottom: 0;
  left: 0; right: 0;
  background: #29333B;
  color: #F3F7F9;
  box-shadow: 0 -2px 16px 0 rgba(40,50,60,0.17);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 20px 24px 20px;
  font-size: 1rem;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .23s, transform .27s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(130%);
}
.cookie-banner p {
  color: #F3F7F9;
  margin-bottom: 4px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  cursor: pointer;
  font-size: 1rem;
  background: var(--color-btn);
  color: var(--color-btn-text);
  border-radius: 24px;
  padding: 10px 24px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cookie-btn.settings {
  background: #495961;
  color: var(--color-light);
  border: 1.5px solid #CBE7EA;
  box-shadow: none;
}
.cookie-btn.reject {
  background: #b63f36;
  color: #fff;
  border: none;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #a0271f;
}
/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(32,36,40,0.77);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #232c31;
  color: #F3F7F9;
  width: 100vw;
  max-width: 390px;
  border-radius: 18px 18px 0 0;
  padding: 32px 22px 22px 22px;
  box-shadow: 0 14px 48px 0 rgba(25,37,64,0.49);
  position: relative;
  bottom: 0;
  animation: cookie-slide-up 0.38s cubic-bezier(.25,.55,.38,1.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@keyframes cookie-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-size: 1.41rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-secondary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-steel);
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #41575a;
  border-radius: 20px;
  position: relative;
  outline: none;
  transition: background .19s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #232c31;
  transition: transform .19s, background .19s;
  box-shadow: 0 2px 3px 0 rgba(18,22,26,0.11);
}
.cookie-toggle:checked::after {
  transform: translateX(18px);
  background: #eff6fa;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #CBE7EA;
  cursor: pointer;
  z-index: 3000;
}
.cookie-modal-close:hover  { color: #fff; }

@media (max-width: 480px) {
  .cookie-modal { max-width: 97vw; padding: 18px 5vw 20px 5vw; }
}

/* =====================
   RESPONSIVE DESIGN
======================= */
@media (max-width:1024px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .container { max-width: 97vw; }
}
@media (max-width:768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 12px;
  }
  .content-wrapper {
    gap: 18px;
    padding-bottom: 0;
  }
  .card-container, .content-grid, .features-grid {
    flex-direction: column;
    gap: 15px;
  }
  .footer-nav { gap: 12px; }
}
@media (max-width:520px) {
  .container { padding: 0 4vw; }
  h1 { font-size: 1.32rem; margin-bottom: 12px; }
  h2 { font-size: 1.16rem; margin-bottom: 10px; }
  .feature,
  .card, .project-summary, .blog-preview, .testimonial-card {
    padding: 17px 10px;
    min-width: 0;
    font-size: 0.92rem;
  }
  .main-nav img, .footer-brand img { height: 31px; }
  .footer-brand { gap: 8px; }
}

/* =====================
   UTILITY / HELPER CLASSES
======================= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }
.gap-32 { gap: 32px; }
.txt-center { text-align: center !important; }

/* =====================
   SPECIAL ELEMENTS
======================= */
hr {
  border: none;
  border-top: 1.5px solid var(--color-steel);
  margin: 28px 0;
}

::-webkit-input-placeholder { color: #9db4c3; }
::-moz-placeholder { color: #9db4c3; }
:-ms-input-placeholder { color: #9db4c3; }
::placeholder { color: #9db4c3; }

/* =====================
   DARK/INDUSTRIAL AESTHETIC DECORATIVE SHINE (decor only, never position: absolute for content) 
======================= */
.card::before, .feature::before {
  content: '';
  display: block;
  height: 2.5px;
  width: 38px;
  background: linear-gradient(90deg, rgba(180,206,218,.10) 10%, var(--color-steel) 60%, transparent 100%);
  border-radius: 2px;
  margin-bottom: 10px;
}

/* Hide shine on extra-small screens */
@media (max-width:400px) {
  .card::before, .feature::before { display: none; }
}

/* =====================
   FOCUS STATES
======================= */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 10px;
  background: #1f262b;
}
::-webkit-scrollbar-thumb {
  background: #2f414b;
  border-radius: 6px;
}

/* =====================
   VISUAL SECTIONS
======================= */
.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; }

/* =====================
   PRINT (just for better offline output)
======================= */
@media print {
  * { box-shadow: none !important; background: #fff !important; color: #191919 !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
}
