/* ========================== CSS 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;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #181A1B;
  color: #F6F8FA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}
button { cursor: pointer; }
input:focus, select:focus, textarea:focus, button:focus {
  outline: 2px solid #FFB040;
  outline-offset: 2px;
}

/* ========================== VARIABLES (with fallbacks) ========================== */
:root {
  --primary: #25436E;
  --secondary: #FFB040;
  --accent: #F6F8FA;
  --bg-dark: #181A1B;
  --bg-section: #232729;
  --bg-card: #22262A;
  --fg-metal: #B3B7BD;
  --btn-radius: 8px;
  --shadow-1: 0 2px 8px 0 rgba(40,45,53,0.16);
  --shadow-2: 0 4px 20px 0 rgba(30,35,40,0.22);
  --metal-border: 1.5px solid #54595F;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ========================== BODY & CONTAINER ========================== */
body {
  background: var(--bg-dark);
  color: var(--fg-metal);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  letter-spacing: 0.05em;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .container { max-width: 940px; }
}
@media (max-width: 768px) {
  .container { max-width: 100%; padding: 0 10px; }
}

/* ========================== TYPOGRAPHY ========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.2; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.2rem; }
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.18rem; }
}
p, li, label, textarea, input {
  font-family: var(--font-body);
  color: var(--fg-metal);
  font-size: 1rem;
  line-height: 1.7;
}
strong, b {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
a:hover, a:focus { color: var(--secondary); }

/* Industrial font enhancement: add a bold display style */
h1, h2, h3 { text-transform: uppercase; letter-spacing: 0.03em; }

/* ========================== HEADER & NAVIGATION ========================== */
header {
  background: #232729;
  border-bottom: var(--metal-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
  transition: filter 0.2s;
  filter: brightness(1.2) contrast(1.08) grayscale(0.18);
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  margin: 0 auto;
  transition: width 0.2s;
}
.main-nav a:hover::after, .main-nav a:focus::after {
    width: 100%;
}
.main-nav a:hover, .main-nav a:focus { color: var(--secondary); }
.btn-primary {
  background: var(--secondary);
  color: #1E2630;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--btn-radius);
  box-shadow: var(--shadow-1);
  padding: 10px 32px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: none;
  margin-left: 24px;
  transition: background 0.13s, color 0.13s, box-shadow 0.2s;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ff8a00;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(255,176,64,0.1);
}
.btn-secondary {
  background: #292c2f;
  color: var(--secondary);
  border: var(--metal-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 26px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 18px;
  box-shadow: var(--shadow-1);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #292c2f;
  border-color: var(--secondary);
}

/* MOBILE NAVIGATION  */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--secondary);
  padding: 4px 16px;
  border-radius: 6px;
  margin-left: 16px;
  z-index: 1202;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2b2f34;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  z-index: 1400;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,30,33,0.99);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.69,.2,.24,1);
  overflow-y: auto;
  box-shadow: 0 0 16px 0 rgba(0,0,0,0.27);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: none;
  padding: 20px 16px;
  align-self: flex-end;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 18px;
  z-index: 1500;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px 32px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  padding: 12px 0 12px 2px;
  border-left: 4px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-left: 4px solid var(--secondary);
  background: #23282c;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .btn-primary { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ========================== MAIN CONTENT SPACING & FLEXBOX LAYOUTS ========================== */
main {
  min-height: 60vh;
}
/* --- SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: 26px;
  box-shadow: var(--shadow-1);
}
@media (max-width: 768px) {
  section {
    margin-bottom: 40px;
    padding: 24px 8px;
    border-radius: 14px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  border: var(--metal-border);
  padding: 32px 18px 28px 18px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s, border-color 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 26px 0 rgba(89,94,104,0.22);
  border-color: var(--secondary);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F8FA;
  color: #232729;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  border-left: 6px solid var(--secondary);
  margin-bottom: 20px;
  margin-top: 10px;
  font-size: 1.1em;
  flex-direction: row;
  min-width: 0;
}
.testimonial-card p {
  color: #232729;
  font-family: var(--font-body);
  font-size: 1.04rem;
  margin-right: 12px;
}
.testimonial-card span {
  color: #25436E;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  min-width: 120px;
  margin-left: auto;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1em;
    gap: 10px;
  }
  .testimonial-card span {
    margin-left: 0;
  }
}

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

/* ——— Card lists for blog/guides shop etc. ——— */
ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
  background: none;
  color: var(--fg-metal);
  position: relative;
}
li img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.3) brightness(0.99) contrast(1.15);
}
li strong {
  color: var(--secondary);
}
ul li span {
  font-size: 0.98em;
  color: var(--secondary);
  font-family: var(--font-display);
  margin-left: 12px;
}

/* ========================== FORMS ========================== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: none;
  margin-top: 10px;
  margin-bottom: 14px;
}
label {
  font-weight: 500;
  color: var(--accent);
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--btn-radius);
  border: var(--metal-border);
  background: #232729;
  color: var(--accent);
  font-size: 1rem;
  margin-top: 4px;
  margin-bottom: 8px;
  transition: border-color 0.18s;
  resize: none;
}
input::placeholder, textarea::placeholder {
  color: #888C93;
  font-size: 1.08em;
  font-family: var(--font-body);
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  background: #292D32;
}
textarea {
  min-height: 100px;
  max-height: 260px;
}
button[type="submit"] {
  margin-top: 8px;
}

/* ========================== FOOTER ========================== */
footer {
  background: #232729;
  border-top: var(--metal-border);
  padding: 45px 0 23px 0;
  margin-top: 40px;
  color: var(--fg-metal);
}
footer .container {
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer .logo img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.04rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--secondary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  font-size: 0.98em;
}
.footer-contact p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.footer-contact img {
  width: 21px;
  height: 21px;
  filter: grayscale(0.5) contrast(1.4) brightness(1.1);
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-contact { min-width: 0; }
}

/* ========================== COOKIE CONSENT BANNER ========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 11000;
  background: #232729;
  color: var(--accent);
  padding: 28px 16px 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  box-shadow: 0 -2px 14px 0 rgba(0,0,0,0.16);
  border-top: var(--metal-border);
  animation: cookie-slide-up 0.5s cubic-bezier(.67,.01,.32,.99);
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  font-size: 1rem;
  max-width: 460px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1em;
  padding: 9px 24px;
  border-radius: var(--btn-radius);
  border: none;
  font-weight: 600;
  transition: background 0.15s, color 0.12s;
  margin-left: 0;
  box-shadow: var(--shadow-1);
  margin-right: 0;
}
.cookie-btn--accept {
  background: var(--secondary);
  color: #232729;
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: #ff8a00;
  color: #fff;
}
.cookie-btn--reject {
  background: #232729;
  color: var(--secondary);
  border: var(--metal-border);
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: #292D32;
  color: #fff;
  border-color: var(--secondary);
}
.cookie-btn--settings {
  background: transparent;
  border: var(--metal-border);
  color: var(--fg-metal);
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: #2e3236;
  color: var(--secondary);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 6px 16px 6px;
    font-size: 0.93em;
    align-items: flex-start;
  }
  .cookie-banner__text { max-width: 100%; }
  .cookie-banner__actions { gap: 7px; }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,24,29,0.89);
  z-index: 12010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #232729;
  border: var(--metal-border);
  border-radius: 18px;
  box-shadow: 0 6px 28px 0 rgba(30,35,45,0.29);
  padding: 38px 30px 30px 30px;
  max-width: 420px;
  min-width: 290px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInScale 0.32s ease;
}
@keyframes fadeInScale {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 1.18em;
}
.cookie-modal .cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 10px 0 13px 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0px;
  border-bottom: 1px solid #373B3E;
  font-size: 1em;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  background: #313639;
  border: 2px solid #54595F;
  border-radius: 13px;
  width: 38px;
  height: 21px;
  position: relative;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal .cookie-toggle[disabled] {
  background: #54595F;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-category[aria-disabled='true'] label {
  color: #64686c;
}

/* ========================== RESPONSIVE: LAYOUT FLEX CONTROL ========================== */
@media (max-width: 900px) {
  .container, .content-wrapper, .content-grid { flex-direction: column !important; }
  .card-container { flex-direction: column; gap: 18px; }
  .card { min-width: 0; width: 100%; }
}

/* ========================== MICRO-INTERACTIONS & ANIMATIONS ========================== */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.16s, color 0.14s, box-shadow 0.22s, border-color 0.15s;
}
.card {
  transition: box-shadow 0.22s, border-color 0.16s;
}
a, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.18s, border-color 0.17s;
}
input, textarea {
  transition: border-color 0.18s, background 0.2s;
}
section, .card, .testimonial-card {
  transition: box-shadow 0.19s;
}

/* Micro metal-gloss effect for cards */
.card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0.035) 60%, rgba(200,200,200,0.01) 100%);
  border-radius: 18px;
  z-index: 1;
}
.card:hover::before { opacity: 0.7; }

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

/* ========================== MISC: Z-INDEX ========================== */
header { z-index: 1000; }
.mobile-menu { z-index: 1400; }
.cookie-banner { z-index: 12000; }
.cookie-modal-overlay { z-index: 12010; }

/* ======================= ENSURE NO OVERLAP & GAPS ======================= */
section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
section:last-child, .card:last-child, .testimonial-card:last-child, .feature-item:last-child {
  margin-bottom: 0;
}

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