/* === RESET & TYPOGRAPHY === */
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 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #181C1B; /* Industrial dark */
  color: #E8EDEB;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #E9C46A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #23614A;
  text-decoration: underline;
}

ul, ol {
  margin-left: 24px;
}
li {
  margin-bottom: 8px;
}

/* === BRAND TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #E9C46A;
  font-weight: 900;
  letter-spacing: 1px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, strong, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #E8EDEB;
}
strong {
  color: #E9C46A;
  font-weight: bold;
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 850px) {
  .container { max-width: 98vw; }
}

/* === FLEX-ONLY SECTION SPACING (MANDATORY) === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  min-width: 220px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === INDUSTRIAL MODERN COLOR SCHEME === */
:root {
  --primary: #23614A;
  --secondary: #222222;
  --secondary2: #373737;
  --accent: #E9C46A;
  --card-bg: #222624;
  --border-metallic: #6B7C89;
  --button-metal-bg: #2D403A;
  --button-highlight: #3A6152;
  --shadow: rgba(30,37,43,0.17);
  --surface: #232826;
  --testimonial-bg: #F4F6F5;
  --testimonial-fg: #222222;
}

/* === HEADER & NAVIGATION === */
header {
  background: #181C1B;
  border-bottom: 1.5px solid var(--border-metallic);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
header img {
  height: 52px;
  width: auto;
}
nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #E8EDEB;
  font-weight: 700;
  letter-spacing: 0.7px;
  padding: 6px 0;
  position: relative;
  transition: color 0.22s;
}
nav a:hover, nav a:focus {
  color: var(--accent);
}
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #181C1B;
  background: linear-gradient(90deg, var(--accent) 80%, #FFE6A0 100%);
  border-radius: 6px;
  border: none;
  padding: 12px 26px;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px 0 var(--shadow);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 24px;
  transition: background 0.23s, color 0.23s, transform 0.17s;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #F7A440 80%, #E9C46A 100%);
  color: #232826;
  transform: translateY(-2px) scale(1.043);
  box-shadow: 0 5px 16px 0 var(--shadow);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.2rem;
  display: none;
  cursor: pointer;
  margin-left: 24px;
  transition: color .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #FFEBB7;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: #232826;
  box-shadow: 0 0 32px 2px #181C1B;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.43,.21,.18,.87);
  display: flex;
  flex-direction: column;
  padding: 40px 28px 28px 28px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 26px;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFEBB7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #E8EDEB;
  font-size: 1.27rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 1.1px;
  transition: color 0.22s;
  padding: 7px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}
@media (max-width: 950px) {
  nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === MAIN SECTION & CARD GRIDS === */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 950px) {
  section {
    padding-left: 0;
    padding-right: 0;
  }
}

.feature-grid, .team-members-grid, .project-list, .news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div,
.team-members-grid > div,
.project-list > div,
.news-list > div {
  background: var(--card-bg);
  border: 1.5px solid var(--border-metallic);
  border-radius: 14px;
  padding: 24px 22px 18px 22px;
  box-shadow: 0 2px 16px 0 var(--shadow);
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, border-color .18s;
}
.feature-grid > div:hover,
.team-members-grid > div:hover,
.project-list > div:hover,
.news-list > div:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 30px 0 var(--shadow);
}
.feature-grid img, .team-members-grid img {
  width: 40px;
  height: 40px;
  filter: grayscale(30%) brightness(1.25) drop-shadow(0 2px 7px #00000030);
  margin-bottom: 6px;
}
@media (max-width: 1050px) {
  .feature-grid > div, .team-members-grid > div, .project-list > div, .news-list > div {
    min-width: 175px;
    max-width: 98vw;
    flex: 1 1 175px;
    padding: 18px 9px;
  }
}
@media (max-width: 672px) {
  .feature-grid, .team-members-grid, .project-list, .news-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* === TESTIMONIALS (CARD, CONTRAST, SPACING) === */
.testimonial-card {
  background: var(--testimonial-bg);
  color: var(--testimonial-fg);
  border: 1.5px solid var(--border-metallic);
  border-radius: 12px;
  box-shadow: 0 1px 14px 0 var(--shadow);
  flex: 1 1 300px;
  margin-bottom: 20px;
  padding: 24px 22px 18px 22px;
  transition: box-shadow 0.22s, border-color .18s;
  min-width: 210px;
  max-width: 500px;
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  color: var(--testimonial-fg);
  font-size: 1.07rem;
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-card span {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.97rem;
}
.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px 0 var(--shadow);
}
@media (max-width: 692px) {
  .testimonial-card {
    min-width: 150px;
    padding: 15px 8px 14px 10px;
    max-width: 96vw;
  }
}

/* === FOOTER === */
footer {
  background: #232826;
  border-top: 1.7px solid var(--border-metallic);
  padding: 35px 0 22px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #AAAAAA;
  align-items: center;
}
.footer-menu a {
  color: #AAAAAA;
  font-weight: 600;
  transition: color .2s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--accent);
}
.contact-details {
  color: #bbbbbb;
  font-size: 0.98rem;
  text-align: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #BBBBBB;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%) contrast(1.3) brightness(1.18);
  transition: filter 0.22s;
}
.social-links a:hover img {
  filter: none;
}

/* === BUTTONS (INDUSTRIAL, METALLIC, ACCENT) === */
button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  padding: 11px 23px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 var(--shadow);
  transition: background 0.2s, color 0.2s, transform .11s;
  cursor: pointer;
  letter-spacing: 0.5px;
}
button:hover, .button:hover {
  background: var(--button-highlight);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}

/* === FORMS & INPUTS === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1.3px solid var(--border-metallic);
  border-radius: 7px;
  background: var(--surface);
  color: #E9C46A;
  padding: 10px 12px;
  font-size: 1rem;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

/* === MODAL STYLES === */
.cookie-consent-modal {
  position: fixed;
  z-index: 3001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  background: #222826;
  color: #EEE;
  border-radius: 16px;
  border: 2.1px solid var(--border-metallic);
  box-shadow: 0 15px 60px 0 #000000a8;
  width: 95vw;
  max-width: 450px;
  padding: 32px 22px 20px 22px;
  animation: modal-popup .3s cubic-bezier(.43,.21,.18,.87);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modal-popup {
  0% { opacity:0; transform:translate(-50%,-54%) scale(0.78); }
  100% { opacity:1; transform:translate(-50%,-48%) scale(0.98); }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-switch input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
  margin: 0;
}
.cookie-modal-footer {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 13px;
}

.cookie-close-btn {
  position: absolute;
  right: 24px;
  top: 20px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  transition: color .20s;
}
.cookie-close-btn:hover, .cookie-close-btn:focus {
  color: #FFEBB7;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--primary);
  color: #212222;
  z-index: 3000;
  width: 100vw;
  box-shadow: 0 -3px 22px 0 var(--shadow);
  padding: 28px 14px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 34px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.23s, transform 0.32s;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-consent-banner.hide {
  opacity: 0; 
  transform: translateY(110px);
  pointer-events: none;
}
.cookie-banner-message {
  max-width: 420px;
  color: #F7F7F2;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner-btn, .cookie-banner-btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  font-size: 0.98rem;
  min-width: 110px;
  cursor: pointer;
  padding: 11px 16px;
  margin-top: 3px;
  transition: background .2s, color .2s, transform .11s;
  box-shadow: 0 2px 8px 0 var(--shadow);
}
.cookie-banner-btn {
  background: var(--accent);
  color: #181C1B;
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: #f7af3f;
  color: #232826;
  transform: scale(1.05);
}
.cookie-banner-btn-secondary {
  background: #2F483F;
  color: #E9C46A;
}
.cookie-banner-btn-secondary:hover, .cookie-banner-btn-secondary:focus {
  background: #3A6152;
}
@media (max-width: 620px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 18px 7px;
    font-size: 0.96rem;
  }
  .cookie-banner-message { max-width: 92vw; }
}

/* === RESPONSIVE FLEX COLUMN FOR TEXT IMAGE ==== */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .container { padding-left: 9px; padding-right: 9px; }
}
/* --- CONTENT GRID FLEX (NO GRID) --- */
@media (max-width: 600px) {
  .content-grid { flex-direction: column; gap: 15px; }
  .card-container { flex-direction: column; gap: 12px; }
}

/* === GENERAL CARDS, BOXES, ACCENTS === */
.card, .card-content {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1.5px solid var(--border-metallic);
  box-shadow: 0 2px 16px 0 var(--shadow);
  padding: 26px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transition: box-shadow 0.22s, border-color .18s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 30px 0 var(--shadow);
}

/* === ANIMATIONS / MICRO-INTERACTIONS === */
.cta-button, button, .cookie-banner-btn, .cookie-banner-btn-secondary {
  transition: background .2s, color .2s, transform .11s, box-shadow .18s;
}
.card, .testimonial-card {
  transition: box-shadow .18s, border-color 0.15s;
}
footer .social-links a {
  transition: filter .2s;
}

/* === SCROLLBARS === */
::-webkit-scrollbar {
  width: 9px;
  background: #232826;
}
::-webkit-scrollbar-thumb {
  background: #333B3A; 
  border-radius: 7px;
}

/* === SELECTION COLOR === */
::selection {
  background: #E9C46A;
  color: #232826;
}

/* ==== ACCESSIBILITY ==== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === UTILITIES === */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* ===== PRINT HIDING (cookie banners, navs) ===== */
@media print {
  .cookie-consent-banner, .cookie-consent-modal, .mobile-menu { display: none !important; }
  nav, .footer-menu, .cta-button, .mobile-menu-toggle { display: none !important; }
}
