/* ================================================================
   CSS RESET & DEFAULTS (Normalize + Box Model)
   ================================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #23262A;
  color: #F7F7F9;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #FDC100; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #fff; text-decoration: underline; }
strong { font-weight: 700; }
ul, ol { padding-left: 20px; margin-bottom: 16px; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: #FDC100;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.18; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; color: #F7F7F9; font-weight: 600; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ================================================================
   BRAND & INDUSTRIAL MODERN COLOR SCHEME
   ================================================================ */
:root {
  --blue-900: #184A8C; /* primary (brand) */
  --offwhite: #F7F7F9; /* secondary */
  --yellow-accent: #FDC100; /* accent */
  --gray-900: #23262A; /* industrial bg */
  --gray-800: #31343A; /* panels */
  --gray-700: #505358; /* body/card */
  --gray-600: #65666A; /* for border or muted text */
  --steel-shadow: rgba(15,28,41,0.23);
  --metallic: #c9ced6;
  --danger: #E8593C;
}

/* ================================================================
   CONTAINER & LAYOUTS
   ================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Allow children to handle their gap */
}

.content-wrapper {
  width: 100%;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section { /* mandatory pattern */
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gray-800);
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 12px 0 var(--steel-shadow);
  padding: 32px 24px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 6px 20px 0 var(--steel-shadow);
  transform: translateY(-4px) scale(1.018);
}
.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;
  background: var(--offwhite);
  color: var(--gray-900);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px 0 rgba(40,50,60,0.07);
  flex-direction: row;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 var(--steel-shadow);
  transform: translateY(-3px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==========================
   HERO, FEATURES, SERVICES
   ========================== */
.feature-grid, .service-list, .team-list, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div,
.service-list > div,
.team-list > div,
.article-list > div {
  background: var(--gray-800);
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 var(--steel-shadow);
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 240px;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-700);
  transition: box-shadow 0.19s, transform 0.16s;
  position: relative;
}
.feature-grid > div img,
.service-list > div img {
  width: 44px;
  height: 44px;
  filter: brightness(1.04) grayscale(0.2) drop-shadow(0 1px 1px var(--metallic));
  margin-bottom: 6px;
}
.feature-grid > div:hover,
.service-list > div:hover {
  box-shadow: 0 8px 24px 0 var(--steel-shadow);
  transform: translateY(-2px);
  border-color: var(--yellow-accent);
}
.service-price {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow-accent);
  letter-spacing: 0.03em;
}

/* ================================
   BUTTONS & CTAs
   ================================ */
.cta-btn, button, .mobile-menu-toggle, .cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  font-size: 1.07rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--yellow-accent) 80%, var(--metallic) 100%);
  color: var(--gray-900);
  box-shadow: 0 1px 4px 0 var(--steel-shadow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin: 6px 0 0 0;
  transition: background 0.18s, color 0.13s, box-shadow 0.14s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus, .cookie-btn:hover {
  background: linear-gradient(90deg, var(--yellow-accent) 68%, var(--blue-900) 98%);
  color: #FFF;
  box-shadow: 0 2px 12px 0 var(--steel-shadow);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
button:active {
  opacity: 0.93;
}

/* Special for secondary/danger buttons in cookies */
.cookie-btn.secondary {
  background: var(--gray-700);
  color: var(--offwhite);
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: var(--gray-900);
  color: var(--yellow-accent);
}
.cookie-btn.danger {
  background: var(--danger);
  color: #fff;
}
.cookie-btn.danger:hover {
  background: #b33824;
  color: #fff;
}

/* ========================
   NAVIGATION
   ======================== */
header {
  width: 100%;
  background: var(--gray-900);
  box-shadow: 0 3px 18px 0 var(--steel-shadow);
  padding: 0;
  z-index: 990;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 18px 20px;
  min-height: 70px;
}
header img { height: 48px; width: auto; }
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--metallic);
  font-size: 1.07rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.19s;
}
.main-nav a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--yellow-accent);
  transition: width 0.2s;
  margin-top: 3px;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--yellow-accent);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 90%;
}
header .cta-btn {
  margin-left: 18px;
  padding: 12px 26px;
  font-size: 1rem;
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-toggle {
  display: none;
  background: var(--gray-800);
  border: none;
  color: var(--yellow-accent);
  font-size: 2rem;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  position: fixed;
  top: 22px; right: 20px;
  z-index: 1200;
  transition: background 0.21s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--yellow-accent);
  color: var(--blue-900);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 36, 54, 0.98);
  box-shadow: 0 6px 40px 0 var(--steel-shadow);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  color: var(--offwhite);
  background: none;
  border: none;
  margin: 28px 30px 8px 0;
  cursor: pointer;
  padding: 0 12px;
  border-radius: 5px;
  transition: background 0.13s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--yellow-accent);
  background: rgba(249,219,50,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 36px 0 38px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--offwhite);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 13px 0 10px 0;
  border-bottom: 1px solid rgba(253,193,0,0.06);
  transition: color 0.17s, background 0.13s;
  border-radius: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--yellow-accent);
  background: rgba(253,193,0,0.09);
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--gray-800);
  color: var(--metallic);
  padding: 42px 0 28px 0;
  box-shadow: 0 -2px 20px 0 var(--steel-shadow);
}
footer .container {
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--metallic);
  font-size: 1rem;
  text-decoration: none;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-nav a:hover { color: var(--yellow-accent); }
.footer-contact {
  font-size: 0.94rem;
  margin-top: 14px;
  color: var(--gray-600);
  letter-spacing: 0.03em;
  display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap;
}
footer img { height: 38px; margin-bottom: 0; }

/* ================================================================
   TEXT/INFO BLOCKS, TESTIMONIALS, ETC.
   ================================================================ */
.text-section,
.text-section ul {
  background: none;
  color: var(--offwhite);
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 7px;
  font-size: 1em;
}
blockquote {
  font-style: italic;
  font-size: 1.17em;
  color: var(--gray-900);
}
.testimonial-card blockquote { margin-bottom: 0; }
.testimonial-card span {
  margin-left: 16px;
  color: var(--blue-900);
  font-size: 0.97em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ================================================================
   RESPONSIVE DESIGN (Mobile first)
   ================================================================ */
@media (max-width: 1023px) {
  .container { max-width: 98vw; }
  header .container { flex-wrap: wrap; }
  .feature-grid > div, .service-list > div, .team-list > div {
    min-width: 190px; max-width: 100%;
    flex: 1 1 48vw;
  }
  .footer-nav { gap: 18px; }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .main-nav { flex-wrap: wrap; gap: 18px; margin-top: 10px; }
  header .cta-btn { margin-left: 0; }
  .footer-contact { flex-direction: column; gap: 3px; }
}
@media (max-width: 768px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .content-wrapper { gap: 14px; }
  .card, .feature-grid > div, .service-list > div {
    padding: 18px 10px 16px 12px;
    min-width: 140px;
    max-width: 100%;
    font-size: 0.99rem;
  }
  .section {
    padding: 22px 3px 34px 3px;
    margin-bottom: 40px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .feature-grid, .service-list, .team-list, .article-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section { flex-direction: column; gap: 12px; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.97rem;
    padding: 14px 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .footer-nav { flex-direction: column; gap: 6px; }
}
@media (max-width: 500px) {
  .section { padding: 10px 2vw 22px 2vw; margin-bottom: 25px; }
  .card, .feature-grid > div, .service-list > div {
    padding: 13px 3vw;
  }
}

/* ================================================================
   MISC EFFECTS (Shadows, BORDERS, Animations)
   ================================================================ */
.card, .feature-grid > div, .service-list > div {
  box-shadow: 0 2px 12px 0 var(--steel-shadow);
  border: 1.2px solid var(--gray-700);
  border-bottom: 2.6px solid var(--metallic);
}
.testimonial-card {
  box-shadow: 0 4px 16px 0 var(--steel-shadow);
  border: 1px solid var(--yellow-accent);
  border-left: 6px solid var(--yellow-accent);
}

/* Subtle metallic effect on icons and cards */
.feature-grid > div,
.service-list > div {
  background: linear-gradient(110deg, var(--gray-800) 87%, var(--metallic) 130%);
}

/* ================================================================
   FORM ELEMENTS, Miscellaneous
   ================================================================ */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1.3px solid var(--gray-600);
  border-radius: 5px;
  padding: 10px 14px;
  background: var(--gray-900);
  color: var(--offwhite);
  margin-bottom: 18px;
  width: 100%;
  box-shadow: 0 1px 6px 0 var(--steel-shadow);
  transition: border 0.16s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--yellow-accent);
  box-shadow: 0 2px 8px 0 var(--steel-shadow);
}
label { color: var(--yellow-accent); font-weight: 700; margin-bottom: 9px; display: block; }

/* ================================================================
   COOKIE CONSENT BANNER & MODAL
   ================================================================ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--gray-900);
  color: var(--offwhite);
  padding: 24px 10vw 24px 25vw;
  box-shadow: 0 -2px 22px 0 var(--steel-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  z-index: 3000;
  animation: cookie-slide-in 0.5s;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-right: 60px;
  font-size: 1rem;
  color: var(--offwhite);
}
.cookie-banner .cookie-btn {
  margin-right: 13px;
  margin-left: 0;
  padding: 11px 17px;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
@media (max-width: 900px) {
  .cookie-banner, .cookie-banner p {
    padding: 18px 5vw 18px 10vw;
    font-size: 0.98rem;
  }
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 4vw 13px 4vw;
  }
  .cookie-banner p { margin-right: 0; margin-bottom: 9px; font-size: 0.95rem; }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 94vw;
  max-width: 380px;
  background: var(--gray-900);
  border-radius: 11px;
  box-shadow: 0 8px 38px 0 var(--steel-shadow);
  z-index: 4200;
  padding: 36px 30px 30px 30px;
  display: flex; flex-direction: column; gap: 19px;
  animation: cookie-modal-in 0.3s;
}
@keyframes cookie-modal-in {
  from { transform: translate(-50%,-42%) scale(0.95); opacity: 0.2; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--yellow-accent);
  font-size: 1.29rem;
  margin-bottom: 10px;
  margin-top: 0;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 9px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-right: 12px;
  accent-color: var(--yellow-accent);
}
.cookie-modal .cookie-btn-block {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}

/* Modal close overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4190;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(22,34,40,0.56);
  animation: cookie-overlay-in 0.36s;
}
@keyframes cookie-overlay-in {
  from { opacity: 0; } to { opacity: 1; }
}


/* ================================================================
   INDUSTRIAL MODERN TYPOGRAPHY
   ================================================================ */
body, input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6, .main-nav a, .footer-nav a, .cta-btn, .mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4 {
  text-shadow: 0 2px 8px rgba(48,48,32,0.06);
  letter-spacing: 0.03em;
}
h1 { color: var(--yellow-accent); font-size: 2.6rem; }
h2 { color: var(--yellow-accent); font-size: 2rem; }

/* Text highlight for industrial flavor */
mark {
  background: var(--yellow-accent);
  color: var(--gray-900);
  border-radius: 4px;
  padding: 0 4px;
}

/* ================================================================
   UTILITY & OVERRIDES
   ================================================================ */
.nowrap    { white-space: nowrap; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.pb-0 { padding-bottom: 0 !important; }

/* ================================================================
   FOCUS INDICATORS for ACCESSIBILITY
   ================================================================ */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--yellow-accent);
  outline-offset: 1.7px;
}

/* ================================================================
   Z-INDEX MANAGEMENT
   ================================================================ */
header, .mobile-menu-toggle { z-index: 1200; }
.mobile-menu, .mobile-menu.open { z-index: 1500 !important; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4200; }

/* ================================================================
   PREVENT OVERLAPPING & ADD GAPS BETWEEN ELEMENTS
   ================================================================ */
.card, .testimonial-card, .feature-grid > div, .service-list > div, .article-list > div {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .service-list, .team-list, .article-list, .content-grid {
  gap: 20px;
}

/* Ensure enough vertical spacing between sections */
section + section {
  margin-top: 40px;
  padding-top: 10px;
}

/* Efficient whitespace for mobile readability */
@media (max-width: 500px) {
  section + section { margin-top: 16px; }
}

/* Prevent content overlap & enforce min-height of sections */
main > section {
  min-height: 80px;
}

/* ================================================================
   INDUSTRIAL MODERN VISUAL FLAVOR (METALLIC ACCENTS)
   ================================================================ */
.feature-grid > div:before, .service-list > div:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--metallic) 0, #bbc4cf 36%, var(--yellow-accent) 98%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  opacity: 0.45;
}

/* Accent for selected or hovered links */
.main-nav a.active, .mobile-nav a.active {
  color: var(--yellow-accent) !important;
}

/* Icon sound for accessibility on menu buttons */
.mobile-menu-toggle:after, .mobile-menu-close:after {
  display: none;
}

/* Hide mobile menu if not open (class .open is added by JS) */
.mobile-menu:not(.open) { pointer-events: none; }

/* ================================================================
   PRINT STYLES (minimal)
   ================================================================ */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-overlay {
    display:none !important;
  }
  body { color: #222; background: #fff; }
  a { color: #184A8C !important; text-decoration: underline; }
  * { background: none !important; box-shadow: none !important; }
}
