/* CSS 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.5;
  background: #181e22;
  color: #F7F6F2;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
a {
  color: #79B7C6;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #F7F6F2;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  outline: none;
  appearance: none;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #F7F6F2;
  letter-spacing: 0.015em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p, li, label {
  font-size: 1rem;
  color: #F7F6F2;
  line-height: 1.7;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: #79B7C6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* INDUSTRIAL MODERN PALETTE FOR BRAND ---------------------------------------- */
:root {
  --color-primary: #165478;
  --color-secondary: #79B7C6;
  --color-accent: #F7F6F2;
  --color-bg-dark: #181e22;
  --color-surface: #22272A;
  --color-surface-light: #32373B;
  --color-metal: #7A8B94;
  --color-metal-light: #b5c1c9;
  --color-error: #cf2331;
  --color-success: #3eb489;
  --shadow-card: 0 2px 12px 0 rgb(55 58 62 / 14%), 0 1.5px 0.5px 0 #2e3133 inset;
  --radius-card: 14px;
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* HEADER ------------------------------------------------------------ */
header {
  background: #181e22;
  border-bottom: 2px solid var(--color-metal);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.17s;
}
header nav a.active, header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* MOBILE MENU ------------------------------------------------------- */
.mobile-menu-toggle {
  background: var(--color-metal);
  color: #181e22;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.21s, color .18s;
  box-shadow: 0 2px 10px rgb(0 0 0 / 16%);
  margin-left: 12px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: #222931f2;
  z-index: 9000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.6,0,.4,1);
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  margin-top: 36px;
  margin-bottom: 24px;
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 22%);
  transition: background 0.19s, color .18s;
  z-index: 9991;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-metal);
  color: #181e22;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 12px 0;
  color: var(--color-secondary);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  transition: color .19s;
  font-weight: 700;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}

/* Hide nav+show burger on mobile */
@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* LAYOUT COMPONENTS & SPACING ---------------------------------------- */
main {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  background: #181e22;
  min-height: 60vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .21s, border-color .18s;
  border: 1.5px solid var(--color-metal);
  display: flex;
  flex-direction: column;
  min-width: 250px;
  max-width: 370px;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 22px 0 rgba(34, 36, 38, 0.18), 0 2.5px 1.5px 0 var(--color-primary) inset;
  border-color: var(--color-primary);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.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;
  width: 100%;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F7F6F2;
  color: #181e22;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px 0 rgba(50, 60, 70, 0.12);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  max-width: 500px;
}
.testimonial-card p {
  color: #181e22;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.98rem;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Flex spacing for lists */
ul,
ol {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 18px;
}
ul li,
ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.08rem;
  color: #F7F6F2;
  line-height: 1.5;
}
ul.filters {
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
  color: var(--color-accent);
  margin-top: 4px;
}

/* FAQ Accordion (Simple) ------------------------------------------------------ */
.faq-accordion > h3 {
  background: var(--color-surface-light);
  color: var(--color-accent);
  padding: 12px 14px;
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--color-metal);
}
.faq-accordion > p {
  background: var(--color-surface);
  color: var(--color-accent);
  padding: 14px 15px 18px 15px;
  margin-bottom: 10px;
  border-radius: 0 0 8px 8px;
  border-bottom: 1.5px solid var(--color-metal-light);
}
.faq-accordion > h3 + p {
  margin-top: -8px;
}

/* BUTTONS & CTAs ---------------------------------------------------------- */
.cta {
  font-family: var(--font-display);
  padding: 13px 40px;
  border-radius: 30px;
  border: none;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  /* metallic, subtle border for industrial */
  box-shadow: 0 2px 10px 0 rgba(40, 50, 60, 0.09);
  outline: none;
  transition: background 0.19s, color .19s, box-shadow .22s, border-color .2s;
  display: inline-block;
  margin-right: 8px;
  margin-top: 16px;
}
.cta.primary {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-metal-light);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: #181e22;
  border-color: var(--color-secondary);
}
.cta.secondary {
  background: #181e22;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: #181e22;
  border-color: var(--color-accent);
}
button, .cta {
  user-select: none;
}

/* CARDS, NEWSLETTER, PAGINATION ---------------------------------------------- */
.newsletter-info {
  background: var(--color-surface-light);
  color: var(--color-secondary);
  padding: 16px 24px;
  border-radius: 10px;
  margin: 14px 0 0 0;
  font-size: 1.12rem;
  box-shadow: 0 2px 8px 0 rgba(40, 50, 60, 0.10);
  border-left: 3px solid var(--color-primary);
}
.pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}
.pagination span, .pagination a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  background: var(--color-surface-light);
  color: var(--color-secondary);
  padding: 8px 18px;
  border-radius: 22px;
  min-width: 28px;
  text-align: center;
  transition: background .17s, color .17s;
  text-decoration: none;
}
.pagination span {
  background: var(--color-primary);
  color: var(--color-accent);
  font-weight: bold;
}
.pagination a:hover, .pagination a:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* BLOG SEARCH --------------------------------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0 10px 0;
}
.search-bar input[type="text"] {
  border: 1.5px solid var(--color-metal-light);
  border-radius: 22px;
  background: var(--color-surface);
  color: var(--color-accent);
  padding: 12px 18px;
  font-size: 1rem;
  transition: border-color .16s;
  outline: none;
  width: 220px;
}
.search-bar input[type="text"]:focus {
  border-color: var(--color-primary);
}

/* BLOG CATEGORIES ----------------------------------------------------------- */
.blog-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.blog-categories span {
  color: var(--color-secondary);
  font-size: 1.08rem;
}

/* FOOTER ------------------------------------------------------------------ */
footer {
  background: #1B2328;
  border-top: 2px solid var(--color-primary);
  color: var(--color-metal-light);
  margin-top: 46px;
}
footer .container {
  padding-top: 34px;
  padding-bottom: 34px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-metal-light);
  font-size: 1.05rem;
  font-family: var(--font-display);
  margin-bottom: 0;
  transition: color .13s;
}
footer nav a:hover,footer nav a:focus {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
}
.footer-contact img {
  display: inline;
  height: 16px;
  width: 16px;
  margin-right: 8px;
  vertical-align: baseline;
  opacity: 0.8;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  transition: filter .15s, transform .15s;
  filter: grayscale(0.65) brightness(1.35);
}
.footer-social a:hover img, .footer-social a:focus img {
  transform: scale(1.15) rotate(-6deg);
  filter: none;
}

/* MAP, CONTACT, SECTIONS -------------------------------------------------- */
.map {
  background: var(--color-surface-light);
  color: var(--color-secondary);
  padding: 20px;
  border-radius: 10px;
  margin-top: 16px;
  margin-bottom: 18px;
  font-size: 1.03rem;
}
.contact-information {
  background: var(--color-surface);
  color: var(--color-secondary);
  padding: 18px 24px;
  border-radius: 10px;
  min-width: 220px;
  margin-bottom: 16px;
}
.contact-information img {
  width: 20px;
  margin-right: 10px;
}

/* TEXT-SECTIONS AND ACCORDIONS -------------------------------------------- */
.text-section {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
  margin-bottom: 0px;
}
.text-section h2, .text-section h3 {
  color: var(--color-secondary);
}
.text-section p {
  font-size: 1.08rem;
  color: var(--color-accent);
}

/* HOW-TO GUIDES --------------------------------------------------- */
.how-to-guides {
  background: var(--color-surface-light);
  color: var(--color-accent);
  padding: 20px;
  border-radius: 12px;
  margin-top: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px 0 rgba(50, 60, 70, 0.08);
}

/* COOKIE CONSENT BANNER -------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 12000;
  background: #23282C;
  border-top: 2px solid var(--color-secondary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  box-shadow: 0 -3px 20px 0 rgba(0,0,0,0.20);
  animation: cookieIn 0.7s cubic-bezier(.53,0,.12,1);
  font-size: 1.03rem;
}
@keyframes cookieIn {
  0% { transform: translateY(120%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  border: none;
  outline: none;
  transition: background .17s, color .15s, border-color .16s;
  box-shadow: 0 2px 8px 0 rgba(80,90,110,0.10);
}
.cookie-banner .cookie-accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: #33a77a;
}
.cookie-banner .cookie-reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #a31b23;
}
.cookie-banner .cookie-settings {
  background: var(--color-surface-light);
  color: var(--color-accent);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--color-secondary);
  color: #181e22;
}

/* COOKIE MODAL ------------------------------------------------- */
.cookie-modal {
  position: fixed;
  z-index: 13000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,30,34,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .29s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  animation: cookieModalIn 0.6s cubic-bezier(.5,0,.15,1);
}
@keyframes cookieModalIn {
  0% { transform: translateY(40px) scale(0.92); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-content {
  background: #222931;
  color: var(--color-accent);
  padding: 38px 32px 30px 32px;
  border-radius: 14px;
  box-shadow: 0 6px 44px 0 rgba(32,47,67,0.17);
  min-width: 305px;
  max-width: 98vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-close {
  position: absolute;
  right: 32px;
  top: 24px;
  font-size: 1.4rem;
  border: none;
  background: none;
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  transition: background .17s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-metal-light);
  color: #181e22;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--color-primary);
  border-radius: 6px;
  margin-right: 2px;
}
.cookie-category.essential label {
  color: var(--color-secondary);
}
.cookie-category .cookie-desc {
  font-size: 0.96rem;
  color: var(--color-metal-light);
  margin-left: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--color-secondary);
  color: #181e22;
}

/* TYPOGRAPHY SCALE ---------------------------------------------------------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.12rem;
  }
}

/* RESPONSIVE FLEX & ALIGNMENT ------------------------------------------------------ */
@media (max-width: 990px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-grid, .text-image-section, .card-container, .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start !important;
  }
  .card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  header .container {
    height: auto;
    padding-top: 13px; padding-bottom: 13px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .map, .contact-information, .newsletter-info, .how-to-guides {
    padding: 14px 9px;
  }
}

@media (max-width: 650px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start !important;
  }
  .cookie-banner {
    padding: 16px 8px 16px 10px;
    gap: 8px;
    font-size: 0.96rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- INDUSTRIAL ACCENTS (subtle metallic) --------------------------------------- */
.card, .testimonial-card, .newsletter-info, .how-to-guides, .map {
  border-bottom: 3.5px solid var(--color-metal);
}

hr {
  border: none;
  border-top: 1.1px solid var(--color-metal);
  margin: 32px 0;
}

/* --- FORMS --- */
input[type="text"], input[type="email"], textarea {
  background: var(--color-surface-light);
  border: 1.5px solid var(--color-metal-light);
  border-radius: 20px;
  color: var(--color-accent);
  padding: 11px 16px;
  margin-bottom: 14px;
  transition: border-color .16s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-secondary);
}

/* ------ Misc. Utility Styles ------------------------------------------------------------- */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.hide {
  display: none !important;
}

/* --- High Contrast for Testimonials on mobile dark — force light bg ----------- */
@media (max-width: 700px) {
  .testimonial-card {
    background: #fff;
    color: #181e22;
    border-left: 4px solid var(--color-primary);
  }
  .testimonial-card p {
    color: #181e22;
  }
}

/* --- Preventing Overlap & Min Gaps ----------- */
section, .section, .card, .testimonial-card, .newsletter-info, .how-to-guides, .map {
  margin-bottom: 24px;
}
.card:not(:last-child), .testimonial-card:not(:last-child), .newsletter-info:not(:last-child) {
  margin-bottom: 20px;
}

/* --- Accessibility Focus Ring ----------- */
a:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Visually Hidden (for accessibility) ----------- */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
