/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  font-weight: 400;
  color: #F4ECD6;
  background: #181D22;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: #96B38A;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4ECD6;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.13;
  color: #F4ECD6;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p, li, address, label, blockquote, cite {
  font-size: 1rem;
  line-height: 1.68;
  color: #e3e3e3;
}
strong {
  color: #96B38A;
}

/* BRANDING COLORS (custom properties) */
:root {
  --color-primary: #23415A;
  --color-secondary: #96B38A;
  --color-accent: #F4ECD6;
  --color-bg-dark: #181D22;
  --color-card: #22272E;
  --color-metal: #6C7A89;
  --color-text-light: #F4ECD6;
  --color-text: #e3e3e3;
  --color-text-dark: #1C2328;
  --color-error: #D64840;
  --color-focus: #FFAD38;
}

/* MAIN CONTAINERS & SECTION SPACING */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 12px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* LAYOUT UTILITIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(60,80,100,0.13);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #313C47;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(50,70,90,0.23);
  transform: translateY(-4px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MAIN NAVIGATION */
header {
  background: #181D22;
  border-bottom: 2px solid #313C47;
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.main-nav > a img {
  height: 36px;
  width: auto;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav ul li a {
  color: var(--color-accent);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  opacity: 0.92;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s, opacity 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  opacity: 1;
}
.cta-btn {
  margin-left: 12px;
  background: linear-gradient(90deg, #23415A 0%, #6C7A89 95%);
  color: #F4ECD6;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 28px;
  border: none;
  transition: background 0.19s, box-shadow 0.2s, color 0.18s;
  box-shadow: 0 2px 8px rgba(35,65,90,0.21);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #96B38A 30%, #23415A 70%);
  color: #181D22;
  box-shadow: 0 6px 26px rgba(35,65,90,0.27);
  text-decoration: none;
}

/* HAMBURGER MENU BUTTON (MOBILE) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 51;
  font-size: 1.9rem;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}

/* MOBILE NAVIGATION SIDE PANEL */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,65,90, 0.96);
  z-index: 100;
  box-shadow: 0 0 60px 12px #22283177;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 30px;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.85,.01,.31,1.02);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 10px 28px 14px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 120;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.3rem;
  padding: 13px 30px;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: background 0.17s, color 0.18s;
  width: 85%;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #181D22;
}

/* Hide main navigation on mobile, show hamburger */
@media (max-width: 980px) {
  .main-nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MAIN CONTENT AREAS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* UL FEATURE GRID */
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 0;
}
section ul li {
  background: var(--color-card);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(60,80,100,0.09);
  padding: 28px 20px;
  min-width: 234px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid #6C7A89;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.14s, border-left 0.18s;
}
section ul li:hover {
  box-shadow: 0 5px 24px rgba(35,65,90,0.13);
  border-left: 4px solid var(--color-secondary);
}
section ul li img {
  width: 32px;
  height: 32px;
}

/* SERVICES CARDS */
.service-card {
  background: var(--color-card);
  border: 1.5px solid #313C47;
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(60,80,100,0.13);
  padding: 32px 24px 24px 24px;
  margin-bottom: 20px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  min-width: 270px;
  min-height: 200px;
  transition: box-shadow 0.18s, border 0.18s, background 0.15s;
}
.service-card:hover {
  box-shadow: 0 7px 32px rgba(80,120,150,0.23);
  border-color: var(--color-secondary);
  background: #232c36;
}
.service-card h3 {
  color: var(--color-secondary);
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.service-card div {
  color: var(--color-text-dark);
  background: var(--color-accent);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
}

/* TESTIMONIALS / REVIEWS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4ECD6;
  border-radius: 12px;
  margin-bottom: 20px;
  min-width: 260px;
  color: #181D22;
  box-shadow: 0 2px 14px rgba(60,80,100,0.14);
  border-left: 5px solid #96B38A;
  position: relative;
  transition: box-shadow 0.15s, border-left 0.19s, background 0.15s;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #FEFEFE;
  border: 2px solid #23415A;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.08rem;
  color: #353535;
  line-height: 1.68;
  margin: 0 0 4px 0;
  max-width: 370px;
}
.testimonial-card cite {
  font-size: 0.98rem;
  color: #23415A;
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 5px 32px rgba(35,65,90,0.15);
  border-left: 5px solid #23415A;
  background: #F9F8F1;
}

/* BUTTONS & LINK HOVER */
button, .cta-btn, input[type="submit"], input[type="button"] {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.19s, color 0.13s;
  outline: none;
}
button:focus, .cta-btn:focus, input[type="submit"]:focus, input[type="button"]:focus {
  box-shadow: 0 0 0 3px var(--color-focus);
}

/* INPUT FIELDS */
input[type="text"], input[type="email"], textarea {
  background: #2F3641;
  color: var(--color-accent);
  border-radius: 8px;
  padding: 10px 15px;
  border: 1.2px solid #313C47;
  font-size: 1rem;
  margin: 8px 0 18px 0;
  width: 100%;
  font-family: inherit;
  transition: border 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.2px solid var(--color-secondary);
  outline: none;
}

/* ADDRESS AND CONTACT INFO */
address {
  color: #bfcbe0;
  font-style: normal;
  line-height: 1.6;
  margin-top: 12px;
  font-size: 1rem;
}
address a {
  color: var(--color-secondary);
  word-break: break-all;
}

/* FOOTER */
footer {
  background: #1B232A;
  color: #F4ECD6;
  padding: 36px 0 0 0;
  margin-top: 48px;
  border-top: 2.5px solid #313C47;
}
footer section {
  padding: 20px 0 16px 0;
  margin-bottom: 0;
  border-radius: 0;
  background: none;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 1rem;
}
footer nav {
  flex: 1 1 250px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #96B38A;
  font-size: 1rem;
  margin-bottom: 0;
}
footer nav a {
  color: #96B38A;
  padding: 0 4px;
  transition: color 0.15s;
  font-size: 1rem;
}
footer nav a:hover {
  color: var(--color-accent);
}
footer img {
  height: 38px;
}
footer .social-links {
  display: flex;
  gap: 16px;
}
footer .social-links img {
  width: 30px;
  height: 30px;
  filter: grayscale(60%) brightness(90%);
  transition: filter 0.15s;
}
footer .social-links img:hover {
  filter: grayscale(0%) brightness(105%);
}

/* COOKIE CONSENT BANNER */
#cookie-banner, .cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #22272E;
  color: #F4ECD6;
  border-top: 2px solid #313C47;
  z-index: 250;
  box-shadow: 0 -2px 30px #22283199;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 20px 10px;
  gap: 28px;
  opacity: 1;
  transition: opacity 0.23s, transform 0.3s cubic-bezier(.7,.15,.3,.85);
  font-size: 1rem;
}
#cookie-banner.hide, .cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #181D22;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 32px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 0 8px;
  transition: background 0.16s, color 0.12s, box-shadow 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F4ECD6;
  color: #23415A;
  box-shadow: 0 2px 10px #96B38A66;
}
.cookie-btn.reject {
  background: #D64840;
  color: #F4ECD6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b34238;
}
.cookie-btn.settings {
  background: #6C7A89;
  color: #F4ECD6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #96B38A;
  color: #181D22;
}

/* COOKIE MODAL */
.cookie-modal-mask {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(25, 28, 34, 0.77);
  z-index: 299;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-mask.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #22272E;
  color: #F4ECD6;
  border-radius: 14px;
  padding: 38px 24px 28px 24px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 60px #222831cc;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  animation: modal-in 0.34s cubic-bezier(.7,.18,.35,.98) both;
}
@keyframes modal-in {
  0% { opacity: 0; transform: translateY(30px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  margin-bottom: 9px;
  color: #96B38A;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #181D22;
  padding: 10px 14px;
  border-radius: 8px;
}
.cookie-category label {
  color: #F4ECD6;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #313C47;
  border-radius: 20px;
  position: relative;
  outline: none;
  margin-right: 3px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-toggle:checked {
  background: #96B38A;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #F4ECD6;
  border-radius: 50%;
  transition: left 0.13s;
}
.cookie-toggle:checked::before {
  left: 18px;
  background: #23415A;
}
.cookie-modal .cookie-btn {
  margin-top: 14px;
  width: 100%;
}

/* METALLIC/INDUSTRIAL DETAILS */
.card, .service-card, section ul li {
  border: 1.5px solid #313C47;
  box-shadow: 0 2px 14px rgba(60,80,100,0.13);
}
.card::after, .service-card::after, section ul li::after {
  content: "";
  position: absolute;
  bottom: 8px; right: 16px;
  width: 28px; height: 5px;
  background: linear-gradient(90deg, #cdd3db10 30%, #474F59 80%);
  border-radius: 14px 6px 14px 8px;
  opacity: 0.26;
  pointer-events: none;
}

/* GENERAL TYPOGRAPHY */
.text-section h2, .text-section h1 {
  color: var(--color-secondary);
}
.text-section p {
  color: var(--color-text);
  font-size: 1.08rem;
  max-width: 580px;
}

blockquote {
  border-left: 3px solid #96B38A;
  margin: 0 0 1.2em 0;
  padding-left: 16px;
  color: #222;
  background: #faf9f5;
}

/* VISUAL SEPARATOR IN FOOTER NAV */
footer nav a:not(:last-child)::after {
  content: '\00B7';
  color: #23415A;
  margin-left: 4px;
  margin-right: 4px;
}

/* BLOG SEARCH */
#blog-search {
  width: 230px;
  font-size: 1rem;
  padding: 8px 14px;
  margin-top: 10px;
  border-radius: 6px;
  background: #2F3641;
  color: #F4ECD6;
  border: 1px solid #96B38A;
}
#blog-search:focus {
  outline: 2px solid #96B38A;
}

/* Responsive flex layouts & font sizes */
@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .content-wrapper, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  section ul, .card-container, .content-grid {
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
  .service-card, section ul li {
    min-width: 95%;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  section {
    padding: 30px 2vw;
    margin-bottom: 40px;
  }
  h1 {
    font-size: 1.36rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.08rem;
    margin-bottom: 8px;
  }
  h3 {
    font-size: .98rem;
  }
  .main-nav {
    flex-direction: row;
    padding: 12px 0 8px 0;
    gap: 8px;
  }
  .main-nav > a img {
    height: 28px;
  }
  .container {
    padding: 0 3vw;
    max-width: 100vw;
  }
  .content-wrapper, .content-grid, .card-container, section ul {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .service-card, section ul li, .card {
    padding: 22px 8px 16px 12px;
    min-width: unset;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 98%;
    padding: 15px 8px 15px 12px;
  }
  footer .content-wrapper {
    gap: 14px;
  }
}

/* ADDITIONAL MOBILE MENU Z-INDEX AND OVERLAP PREVENTION */
.mobile-menu {
  box-shadow: 0 0 65px 18px #181d2281;
  z-index: 220;
}
header, nav {
  z-index: 210;
}

/* FOCUS STYLES FOR ACCESSIBILITY */
:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* UTILITIES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1x { margin-top: 8px !important; }
.mb-1x { margin-bottom: 8px !important; }
.mt-2x { margin-top: 16px !important; }
.mb-2x { margin-bottom: 16px !important; }
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.align-center {
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-20 {
  gap: 20px;
}

/* INDUSTRIAL FONT (Montserrat) fallback */
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular');
}

/* Hide mobile menu when not open */
.mobile-menu:not(.open) {
  pointer-events: none;
}

/* Prevent unintentional overlapping of cards & sections */
.content-wrapper > * + * {
  margin-top: 0 !important;
}

/* Hide scrollbars for mobile nav */
.mobile-menu {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: auto;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* Z-INDEX STACKING FOR CRITICAL COMPONENTS */
header { z-index: 99; }
.mobile-menu { z-index: 220; }
#cookie-banner, .cookie-banner { z-index: 250; }
.cookie-modal-mask { z-index: 299; }

/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .card *, .service-card, .service-card * {
  transition: box-shadow 0.17s, background 0.12s, border-color 0.16s, color 0.15s;
}
section ul li, section ul li * {
  transition: border 0.16s, box-shadow 0.13s, color 0.13s;
}
.cta-btn, .cookie-btn {
  transition: background 0.14s, color 0.14s, box-shadow 0.2s;
}
.main-nav ul li a { transition: color 0.2s, border-bottom 0.16s; }

