/* === CSS RESET AND NORMALIZATION === */
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, 
main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.625;
  background: #161a22;
  color: #e7e9ec;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #E8472B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ff623e;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 12px;
}



/* === FONT IMPORTS (FALLBACK FOR NON HOSTED FONTS) === */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');


/* ========== CSS VARIABLES (Manual Fallback) ========== */
:root {
  --brand-primary: #1A2233;
  --brand-secondary: #E8472B;
  --brand-accent: #F6F6F6;
  --text-main: #e7e9ec;
  --text-accent: #161a22;
  --industrial-dark-1: #161a22;
  --industrial-dark-2: #222838;
  --metallic: #a6a8ab;
  --card-bg: #232a3b;
  --testimonial-bg: #f6f6f6;
  --testimonial-text: #1a2233;
  --shadow-1: 0 2px 8px 0 rgba(20,24,36,0.15);
  --shadow-2: 0 4px 18px 0 rgba(34,40,56,0.16);
}



/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Roboto', Arial, Helvetica, sans-serif;
  color: #f6f6f6;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  line-height: 1.18;
}
h1 {
  font-size: 2.6rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  color: #E8472B;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h4 {
  font-size: 1.1rem;
}
p,
dl, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #e7e9ec;
  font-size: 1rem;
}
strong, b {
  color: #f6f6f6;
  font-weight: 700;
}



/* === LAYOUT WRAPPERS === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Main content grid rules - always with flexbox */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.brand-logos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.brand-logos-row img {
  height: 40px;
  filter: grayscale(0.7) contrast(1.2);
  opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}
.brand-logos-row img:hover {
  filter: grayscale(0.2) brightness(1.2) drop-shadow(0 2px 4px #0002);
  opacity: 1;
}

@media (max-width: 900px) {
  .brand-logos-row {
    gap: 10px;
    justify-content: flex-start;
  }
}


/* === HEADER, NAVIGATION === */
header {
  background: var(--industrial-dark-2);
  box-shadow: var(--shadow-1);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header img {
  height: 48px;
  margin-right: 32px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #f6f6f6;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 4px 0;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E8472B;
  border-bottom: 2px solid #E8472B;
}
.main-nav .btn-primary {
  margin-left: 20px;
}


/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  background: #191f2e;
  border: none;
  border-radius: 8px;
  color: #F6F6F6;
  font-size: 2rem;
  z-index: 101;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background 0.15s;
  box-shadow: 0 2px 8px #0008;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #E8472B;
  background: #222838;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #161a22;
  z-index: 200;
  box-shadow: 0 2px 24px #0009;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.8,.29,.48,.94);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #f6f6f6;
  font-size: 2.3rem;
  margin: 22px 32px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E8472B;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 34px 0 0 44px;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.35rem;
  color: #f6f6f6;
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 2px solid transparent;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #E8472B;
  border-bottom: 2px solid #a6a8ab;
}

/* Only show burger menu on mobile */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}


/* === BUTTONS === */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.28s, color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px 0 #1a223324;
  text-transform: uppercase;
}
.btn-primary {
  background: #E8472B;
  color: #fff;
  border-bottom: 2px solid #b9311d;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E8472Bc9;
  color: #f6f6f6;
  box-shadow: 0 3px 18px 0 #E8472B55;
  outline: none;
}
.btn-secondary {
  background: #232a3b;
  color: #E8472B;
  border-bottom: 2px solid #E8472B;
  font-weight: 500;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #181c24;
  color: #fff;
  outline: none;
}


/* === CARDS AND FLEX CONTAINERS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  padding: 24px 24px 18px 24px;
  position: relative;
  min-width: 240px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1.5px solid #29304d;
  transition: box-shadow 0.18s, border 0.13s;
}
.card:hover {
  box-shadow: var(--shadow-2);
  border: 1.7px solid #E8472B;
}

/* Feature grid and team lists */
.feature-grid, .services-grid, .repair-types-list, .values-list, .team-list, .advantage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 14px 0 0 0;
  list-style: none;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid li, .services-grid li, .repair-types-list li, .values-list li, .team-list li, .advantage-list li {
  background: var(--card-bg);
  border-radius: 7px;
  box-shadow: 0 2px 8px #1a223324;
  flex: 1 1 260px;
  min-width: 200px;
  padding: 22px 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 4px solid #a6a8ab;
  border-bottom: 1.5px solid #29304d;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-grid li:hover, .services-grid li:hover, .repair-types-list li:hover, .advantage-list li:hover {
  border-left: 4px solid #E8472B;
  box-shadow: 0 4px 18px #232a3b60;
  background: #212733;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.team-list li {
  border-left: 4px solid #232a3b;
  background: #212733;
}
.values-list li {
  border-left: 4px solid #E8472B;
  background: #202734;
}

.service-list li,
.project-list li {
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.14rem;
  color: #e7e9ec;
  line-height: 1.6;
}

/* Testimonial cards - special contrast */
.testimonial-slider,
.testimonial-card {
  display: flex;
  gap: 20px;
}
.testimonial-slider {
  flex-wrap: wrap;
}
.testimonial-card {
  align-items: center;
  background: var(--testimonial-bg);
  color: var(--testimonial-text);
  border-radius: 10px;
  padding: 20px 32px;
  min-width: 240px;
  max-width: 520px;
  box-shadow: var(--shadow-1);
  flex: 1 1 320px;
  flex-direction: column;
  margin-bottom: 24px;
  position: relative;
  border-left: 5px solid #E8472B;
  transition: box-shadow 0.18s, border 0.18s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-2);
  border-left: 5px solid #232a3b;
}
.testimonial-card p {
  color: #1a2233;
  font-size: 1.15rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 18px;
  line-height: 1.6;
}
.testimonial-card .rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 5px;
}
.testimonial-card .rating-stars img {
  width: 21px;
  height: 21px;
}
.testimonial-name {
  display: block;
  color: #E8472B;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* Contact footer block used in main area and footer */
.contact-footer {
  display: flex;
  flex-direction: row;
  gap: 25px;
  flex-wrap: wrap;
  margin: 20px 0 10px 0;
  align-items: flex-start;
  color: #a6a8ab;
  font-size: .97rem;
}
.contact-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a6a8ab;
}
.contact-footer svg, .contact-footer img {
  width: 22px;
  height: 22px;
  filter: grayscale(0.85) contrast(.8);
  opacity: 0.85;
  margin-right: 2px;
}
.contact-footer strong {
  color: #E8472B;
  font-size: 1rem;
}

/* Section spacing on mobile */
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 30px 7px;
  }
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 17px;
  }
}


/* === TEXT AND IMAGE FLEX-SECTIONS === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === CARD WRAPPER + SPACING === */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === Hero and Headline === */
.hero, .content-wrapper > h1:first-child {
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 0 8px 22px #0004;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  font-family: 'Oswald', Arial, sans-serif;
}

/* === Footer === */
footer {
  background: #1A2233;
  color: #a6a8ab;
  padding: 34px 0 0 0;
  margin-top: 50px;
  font-size: 0.99rem;
  box-shadow: 0 -2px 22px #05050522;
  letter-spacing: 0.01em;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
footer img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.footer-nav a {
  color: #a6a8ab;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E8472B;
  border-bottom: 2px solid #E8472B;
  transition: color 0.15s, border-color 0.16s;
}
footer p {
  color: #6b6f79;
  margin: 30px 0 0 0;
  font-size: 1em;
}


/* === SPACING ADJUSTMENTS === */
@media (max-width: 600px) {
  .card-container, .feature-grid, .services-grid, .repair-types-list, .values-list, .team-list, .advantage-list {
    gap: 10px;
  }
  .testimonial-card {
    padding: 14px 5vw;
  }
  .brand-logos-row img {
    height: 27px;
  }
  .main-nav, .footer-nav {
    gap: 15px;
  }
  .contact-footer {
    gap: 10px;
    font-size: 0.9em;
  }
}


/* === ANIMATIONS AND MICRO-INTERACTIONS === */
.btn-primary, .btn-secondary {
  will-change: background, color, box-shadow;
}
.card, .testimonial-card, .feature-grid li {
  transition: box-shadow 0.20s, border-color 0.18s, transform 0.17s;
}
.card:hover, .testimonial-card:hover, .feature-grid li:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: var(--shadow-2);
}

/* Subtle fade-in for major sections */
.section {
  animation: fadein 1.2s cubic-bezier(0.25,0.1,0.3,1) 0.05s backwards;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 700px) {
  h1 {
    font-size: 1.68rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
  .main-nav, .footer-nav {
    gap: 7px;
  }
}


/* === COOKIE CONSENT BANNER (fixed to bottom) === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232a3b;
  color: #f6f6f6;
  box-shadow: 0 -2px 16px #0007;
  z-index: 4000;
  padding: 23px 10vw 22px 10vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-top: 1.5px solid #3b4257;
  animation: cookieAppear 1.1s cubic-bezier(.33,1.26,.39,1) both;
}
@keyframes cookieAppear {
  from { opacity: 0; transform: translateY(55px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner-message {
  flex: 3 1 360px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex: 1 0 auto;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  padding: 8px 22px;
  background: #E8472B;
  color: #fff;
  margin: 0 3px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow 0.17s;
  box-shadow: 0 2px 6px #E8472B33;
}
.cookie-banner .btn-reject {
  background: #232a3b;
  color: #a6a8ab;
  border: 1.5px solid #a6a8ab;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #232a3baf;
  color: #fff;
}
.cookie-banner .btn-settings {
  background: #1A2233;
  color: #F6F6F6;
  border: 1.5px solid #a6a8ab;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #3b4257;
  color: #fff;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #ff623e;
}

@media (max-width: 780px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 17px 4vw 16px 4vw;
    font-size: 0.97rem;
  }
}


/* === COOKIE SETTINGS MODAL POPUP === */
.cookie-settings-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 4300;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(32,36,45,0.91);
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-settings-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-settings-content {
  background: #f6f6f6;
  color: #232a3b;
  border-radius: 12px;
  box-shadow: 0 16px 68px #161a2277;
  min-width: 320px;
  max-width: 96vw;
  padding: 34px 34px 22px 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
.cookie-settings-title {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.38em;
  margin-bottom: 7px;
  color: #E8472B;
}
.cookie-settings-close {
  position: absolute;
  top: 15px; right: 14px;
  background: none;
  border: none;
  color: #232a3b;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-settings-close:hover, .cookie-settings-close:focus {
  color: #E8472B;
}
.cookie-settings-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 17px;
}
.cookie-settings-option {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-settings-option label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: #232a3b;
  letter-spacing: .01em;
  margin-left: 4px;
}
.cookie-toggle-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #E8472B;
}
.cookie-option-required {
  color: #aaa;
  font-size: 0.97em;
  font-style: italic;
  margin-left: 8px;
}
.cookie-settings-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-settings-actions .btn-primary {
  padding: 8px 22px;
}
.cookie-settings-actions .btn-secondary {
  padding: 8px 16px;
}

@media (max-width: 520px) {
  .cookie-settings-content {
    min-width: 95vw;
    padding: 15px 2vw 12px 2vw;
  }
}


/* === FORM ELEMENTS (for contact) === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 6px;
  border: 1.5px solid #29304d;
  padding: 10px 14px;
  background: #232a3b;
  color: #f6f6f6;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.15s, background 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E8472B;
  outline: none;
  background: #181c24;
}

label {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  color: #f6f6f6;
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-block;
}


/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2.5px solid #E8472B;
  outline-offset: 2px;
}

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

/* Hide visually but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ========== SCROLLBAR STYLE (optional for style) ========== */
::-webkit-scrollbar {
  width: 12px;
  background: #181c24;
}
::-webkit-scrollbar-thumb {
  background: #232a3b;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1A2233;
}

/* ========== DEBUG FLAGS - REMOVE IN PRODUCTION ========== */
/* .debug-flex { border: 1px dashed red !important; } */
