/* RESET & NORMALIZE (Mobile-first) */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}

/* FONT FACE LOADERS */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900|Open+Sans:400,600,700&display=swap');

:root {
  /* Brand palette */
  --color-primary: #8B2220;
  --color-secondary: #215031;
  --color-accent: #F7F5F2;
  --color-background: #191C1D;
  --color-surface: #212527;
  --color-metal: #979797;
  --color-border: #2c3335;
  --color-card-bg: #232728;
  --color-card-border: #343a3c;
  --color-text-main: #ECEBEB;
  --color-text-secondary: #A8A7A7;
  --color-button-bg: #8B2220;
  --color-button-text: #F7F5F2;
  --color-shadow: rgba(21,21,24,0.22);
  --color-success: #215031;
  --color-warning: #E7B546;
  --color-error: #9a2a2a;
}

body {
  background: var(--color-background);
  color: var(--color-text-main);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--color-accent);
  margin-bottom: 20px;
}
h1 {
  font-size: 2.375rem;
  color: var(--color-primary);
  text-shadow: 0 2px 14px rgba(20,0,0,0.11);
}
h2 {
  font-size: 1.625rem;
}
h3 {
  font-size: 1.17rem;
  color: var(--color-secondary);
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, blockquote {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}
strong {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: -.5px;
}

/* ============= LAYOUT ============= */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-surface);
  border-radius: 10px;
  box-shadow: 0 4px 28px var(--color-shadow);
  border: 1px solid var(--color-card-border);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 10px;
  border: 1.5px solid var(--color-card-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 6px 28px var(--color-shadow);
  border-color: var(--color-primary);
}
.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;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F5F2;
  color: #222;
  border-radius: 10px;
  border-left: 5px solid var(--color-primary);
  box-shadow: 0 2px 10px rgba(48, 37, 37, 0.13);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: #1b1d1d;
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 8px 0;
  quotes: '\201C' '\201D' '\2018' '\2019';
}
.testimonial-card span {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.97em;
  margin-left: 12px;
  font-family: 'Open Sans', sans-serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0 0 16px 0;
}

/* Cards & Icon styles for services */
ul li img[src^='assets/icons/'] {
  width: 38px;
  height: 38px;
  margin-right: 14px;
  vertical-align: middle;
  filter: grayscale(40%) contrast(1.4) drop-shadow(0 1px 2px #232728);
}
ul li {
  margin-bottom: 20px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
ul li:last-child {
  margin-bottom: 0;
}

/* ================= HEADER/NAV =================== */
header {
  background: linear-gradient(to right, #232728 70%, #202423 100%);
  box-shadow: 0 3px 20px rgba(20,16,18,.14);
  border-bottom: 2px solid var(--color-card-border);
  position: relative;
  z-index: 50;
}
nav {
  display: flex;
  align-items: center;
  padding: 16px 0;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}
nav > a img {
  height: 44px;
  width: auto;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-left: 10px;
}
nav ul li {
  margin-bottom: 0;
  padding: 0;
  background: none;
  gap: 0;
}
nav ul li a {
  color: var(--color-accent);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus, nav ul li a.active {
  background: var(--color-primary);
  color: var(--color-accent);
}

.cta-button {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-radius: 7px;
  font-family: 'Merriweather', serif;
  font-size: 1.08em;
  font-weight: 700;
  padding: 12px 28px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 7px #1119  ;
  border: 1.5px solid var(--color-metal);
  transition: background 0.17s, color 0.17s, box-shadow .17s;
  cursor: pointer;
  margin-left: 16px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-primary);
  box-shadow: 0 6px 22px #0002;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  font-size: 2.1rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  border-radius: 9px;
  border: none;
  margin-left: auto;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(66,22,22,.09);
  transition: background 0.18s, color 0.18s;
  z-index: 1252;
  display: none;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}

/* ================= MOBILE MENU ============= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,21,24,0.96);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.66,.04,.36,1.04);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 18px 0 0 20px;
  font-size: 2.4rem;
  background: none;
  color: var(--color-accent);
  cursor: pointer;
  align-self: flex-start;
  border: none;
  z-index: 2040;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 44px 0 0 30px;
  width: 94vw;
}
.mobile-nav a {
  font-size: 1.25em;
  color: var(--color-accent);
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid #42535540;
  width: 96%;
  transition: color .15s, background .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-primary);
  background: #F7F5F210;
}
@media (max-width: 1024px) {
  nav ul {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .cta-button {
    padding: 10px 22px;
    font-size: 1em;
  }
  nav ul li a {
    padding: 7px 8px;
    font-size: 0.98em;
  }
}
@media (max-width: 768px) {
  nav ul, nav .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ================ MAIN LAYOUTS & SPACINGS ================ */
main {
  padding-top: 32px;
  padding-bottom: 48px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 700px) {
  .section, section {
    padding: 26px 6px;
  }
}

/* =============== FOOTER =============== */
footer {
  background: #181B1D;
  border-top: 2px solid var(--color-card-border);
  margin-top: 74px;
  padding: 42px 0 22px 0;
}
footer .container {
  padding-left: 10px;
  padding-right: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer img {
  height: 46px;
  width: auto;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-metal);
  font-size: 0.99em;
  padding: 3px 6px;
}
footer p {
  color: var(--color-text-secondary);
  font-size: 0.92em;
  padding-bottom: 4px;
}

/* ================ LINKS ================ */
article a, .text-section a, .card a, a {
  text-decoration: underline;
  color: var(--color-primary);
  transition: color .14s;
}
article a:hover, .text-section a:hover, .card a:hover, a:hover {
  color: var(--color-secondary);
}

/* ========= FORMS, BUTTONS, MICRO-INTERACTIONS ========= */
button, .cta-button, .mobile-menu-close, .mobile-menu-toggle {
  transition: all 0.15s cubic-bezier(.66,.04,.36,1.04);
}
input[type='text'], input[type='email'], textarea {
  background: var(--color-card-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-metal);
  border-radius: 7px; 
  padding: 10px 16px;
  font-size: 1rem;
  box-shadow: 0 1px 5px #1002;
  margin-bottom: 16px;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus {
  outline: 1.5px solid var(--color-primary);
}
label {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 7px;
}

/* =============== RESPONSIVE FLEXBOX ADJUSTMENTS =============== */
@media (max-width: 1050px) {
  .card-container, .content-grid {
    flex-direction: column;
  }
}
@media (max-width: 820px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .container {
    max-width: 100vw;
    padding: 0 5vw;
  }
  main {
    padding-top: 17px;
    padding-bottom: 32px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.02rem;
  }
  .card, .testimonial-card {
    padding: 12px 10px;
    font-size: 0.98em;
  }
}

/* ================ ANIMATIONS ================ */
.card, .cta-button, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-modal {
  will-change: transform, box-shadow, background;
}
.card, .cta-button, .testimonial-card {
  transition: box-shadow .17s, background .17s, border .15s;
}
.mobile-menu {
  transition: transform 0.32s cubic-bezier(.66,.04,.36,1.04);
}

/* ============ TABLES ============= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}
th, td {
  border-bottom: 1px solid var(--color-card-border);
  padding: 12px 10px;
}
th {
  background: #2a2222;
  color: var(--color-accent);
  font-weight: 700;
}

/* ================ COOKIE CONSENT BANNER ================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-surface);
  border-top: 2px solid var(--color-primary);
  color: var(--color-accent);
  z-index: 4000;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 -4px 16px rgba(21,21,25,0.16);
  font-size: 0.99rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s, transform .3s cubic-bezier(.67,0,.53,1.13);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-banner p {
  flex: 1 1 0%;
  color: var(--color-accent);
  font-size: 1em;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-primary);
  color: var(--color-button-text);
  border-radius: 5px;
  padding: 9px 28px;
  font-size: 1em;
  font-weight: 700;
  font-family: 'Open Sans',sans-serif;
  border: 1px solid var(--color-metal);
  box-shadow: 0 0px 6px #1301;
  cursor: pointer;
  transition: background 0.15s, color 0.13s, border-color .13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}
.cookie-settings-btn {
  background: none;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
  margin-left: 7px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

@media (max-width: 690px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.99em;
    padding: 18px 6px;
  }
  .cookie-banner p {
    font-size: 0.99em;
  }
}

/* ================ COOKIE MODAL ================= */
.cookie-modal {
  position: fixed;
  z-index: 5000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,32,32,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .32s ease;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--color-surface);
  border-radius: 10px;
  box-shadow: 0 4px 40px #0006;
  padding: 36px 28px 24px 28px;
  max-width: 420px;
  width: 97vw;
  border: 1.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-primary);
}
.cookie-category label {
  font-size: 1em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .cookie-close-btn {
  position: absolute;
  right: 24px;
  top: 15px;
  font-size: 1.7rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
  line-height: 1;
}
.cookie-modal .cookie-close-btn:hover, .cookie-modal .cookie-close-btn:focus {
  color: var(--color-primary);
}

/* ======= INDUSTRIAL MODERN VISUALS & ACCENTS ======= */
.section, .card, .testimonial-card, .feature-item, .card-container > .card, .content-grid > .card {
  box-shadow: 0 4px 22px var(--color-shadow);
}
.section, .card {
  border-radius: 10px;
  border: 1.5px solid var(--color-metal);
}
.card, .feature-item, .testimonial-card {
  background: var(--color-card-bg);
  /* metallic border accent */
  border: 1.5px solid #34393a;
}
.card:before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--color-metal), var(--color-primary) 95%);
  opacity: 0.18;
  pointer-events: none;
  display: block;
}
.card:hover:before {
  opacity: 0.42;
}
.section {
  border-left: 8px solid var(--color-metal);
}

/* =========== UTILITY CLASSES ============= */
.mt-0 {margin-top: 0;}
.mb-0 {margin-bottom: 0;}
.mt-1 {margin-top: 12px;}
.mb-1 {margin-bottom: 12px;}
.mt-2 {margin-top: 24px;}
.mb-2 {margin-bottom: 24px;}

.text-center {text-align: center;}
.text-right {text-align: right;}
.text-bold {font-weight: 700;}

/* ========== VISUAL HIERARCHY/HEADLINES ========= */
h1, h2 {
  border-left: 8px solid var(--color-primary);
  padding-left: 16px;
  margin-bottom: 20px;
}
h1 {
  border-left: 10px solid var(--color-primary);
  padding-left: 20px;
}
@media (max-width: 760px) {
  h1, h2 {
    border-left-width: 4px;
    padding-left: 10px;
  }
  h1 {
    border-left-width: 7px;
    padding-left: 13px;
  }
}

/* ========== SPECIAL INDUSTRIAL METAL ACCENT ========= */
.metal-accent {
  color: var(--color-metal);
}

/* ============ TESTIMONIALS ============= */
.testimonial-card {
  background: var(--color-accent);
  color: #1D1D1D;
  box-shadow: 0 3px 12px rgba(35,24,10,0.11);
  border-left: 6px solid var(--color-primary);
  margin-bottom: 20px;
  border-radius: 9px;
  transition: border-color .18s, box-shadow .19s;
}
.testimonial-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 40px #1112;
}
.testimonial-card blockquote {
  font-size: 1.1em;
  line-height: 1.7;
}

/* ============= BLOG CARD/ARTICLE ============== */
article {
  background: var(--color-card-bg);
  border-radius: 10px;
  border: 1.5px solid var(--color-card-border);
  padding: 20px 15px;
  margin-bottom: 32px;
  box-shadow: 0 2px 10px var(--color-shadow);
}

/* =========== ICON SPACING UTILITY ============ */
.icon {
  margin-right: 8px;
  vertical-align: middle;
}

/* ================ ACCESSIBILITY ================ */
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-warning);
  outline-offset: 2px;
}

/* ================ PRINT FRIENDLY ================ */
@media print {
  header, nav, .mobile-menu, footer, .cookie-banner, .cookie-modal {display: none !important;}
  section, .section, main {
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* ============================================== */
/*        CUSTOMIZE FOR PAGE TYPE (content)       */
/* ============================================== */
/* Homepage hero section */
main > section:first-child {
  background: linear-gradient(90deg, #181B1D 60%, #222 90%);
  border-left: 9px solid var(--color-primary);
  border-radius: 0 18px 18px 0;
  box-shadow: 0 6px 62px var(--color-shadow);
  margin-bottom: 60px;
}
main > section .cta-button {
  margin-top: 13px;
}

/* Services List icons */
ul li img[src^='assets/icons/'] {
  margin-right: 14px;
  margin-top: 3px;
}

/* Blog cards */
main ul > li > h3 {
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
}
main ul > li {
  background: var(--color-card-bg);
  border-radius: 6px;
  border: 1px solid var(--color-card-border);
  margin-bottom: 24px;
  margin-top: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* =============== DARK MODE SELECTOR =============== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #191C1D;
    --color-surface: #232728;
    --color-text-main: #ECEBEB;
    --color-text-secondary: #A8A7A7;
    --color-accent: #F7F5F2;
    --color-card-bg: #232728;
    --color-card-border: #343A3C;
  }
  body, .section, .card, .feature-item {
    background: var(--color-background);
    color: var(--color-text-main);
  }
}

/* ============== END OF CSS ============== */
