/* ===================================================================
   CSS RESET + NORMALIZE
=================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 16px; }
body { min-height: 100vh; font-family: 'Open Sans', Arial, sans-serif; background: #181A1B; color: #F5F6FA; line-height: 1.6; }
img { max-width: 100%; display: block; }
ul, ol { margin-left: 1.25em; margin-bottom: 1em; }
a { color: #C1A362; text-decoration: none; transition: color .2s; }
a:focus, a:hover { color: #FFD88A; outline: none; }
button { font-family: 'Montserrat', Arial, sans-serif; border: none; background: none; cursor: pointer; }
:focus { outline: 2px solid #C1A362; outline-offset: 2px; }
hr { border: none; height: 1px; background: #313638; margin: 32px 0; }

/* ===================================================================
   BRAND + TYPOGRAPHY
=================================================================== */
:root {
  --color-primary: #22406C;
  --color-secondary: #C1A362;
  --color-accent: #F5F6FA;
  --color-bg-dark: #181A1B;
  --color-bg-elevated: #222527;
  --color-metal: #A2ACB5;
  --color-shadow: rgba(34, 64, 108, 0.32);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
body, input, textarea { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  color: var(--color-accent);
  font-weight: 700;
}
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 10px; }
p, ul, ol, li, blockquote { font-size: 1rem; color: #E3E5EB; }
strong { color: var(--color-secondary); font-weight: bold; }
blockquote {
  border-left: 4px solid var(--color-secondary);
  padding-left: 16px;
  color: #333;
  background: #F5F6FA;
  font-style: italic;
  margin-bottom: 8px;
}
cite { color: #22406C; font-style: normal; font-size: .95em; display: block; }

/* ===================================================================
   LAYOUT CONTAINERS
=================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Allow hero to go edge-to-edge and have no top margin */
.hero {
  background: linear-gradient(115deg, #202327 80%, #222527 100%);
  padding: 60px 20px 40px 20px;
  margin-bottom: 60px;
  border-bottom: 4px solid var(--color-metal);
  box-shadow: 0 4px 32px var(--color-shadow);
}
.hero h1 { color: var(--color-secondary); font-size: 2.5rem; margin-bottom: 16px; }
.hero p { color: #F5F6FA; font-size: 1.25rem; margin-bottom: 24px; }

/* ===================================================================
   FLEX LAYOUTS (NO GRID!)
=================================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature-grid > div {
  flex: 1 1 270px;
  min-width: 230px;
  background: #23262A;
  border-radius: 12px;
  border: 1px solid #313638;
  box-shadow: 0 2px 12px rgba(34,64,108,0.05);
  padding: 28px 20px 20px 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-6px) scale(1.03);
  border-color: var(--color-secondary);
}
/* Card layouts (if used) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #222527;
  border-radius: 10px;
  border: 1px solid #343A40;
  box-shadow: 0 2px 10px #20232744;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  background: #F5F6FA;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 12px #22406C22;
  border-left: 6px solid #C1A362;
  flex-wrap: wrap;
}
.testimonial-card blockquote { color: #222527; background: none; border: none; margin-bottom: 0; }
.testimonial-card cite { color: #22406C; font-weight: bold; }
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #23262A;
  border-radius: 10px;
  padding: 28px 22px;
  border: 1px solid #313638;
}
.address-block {
  background: #222527;
  border-radius: 8px;
  border: 1px solid #313638;
  padding: 16px 18px;
  color: #C1A362;
  font-weight: bold;
  margin: 10px 0 20px 0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.map {
  margin-bottom: 12px;
  padding: 14px 0;
}
.category-filters button {
  background: #181A1B;
  color: #C1A362;
  border: 1px solid #C1A362;
  border-radius: 18px;
  padding: 6px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.category-filters button:hover, .category-filters button:focus {
  background: #C1A362;
  color: #222527;
  box-shadow: 0 4px 20px 0 #C1A36233;
}
.faq-accordion ul {
  margin-top: 8px;
  margin-bottom: 0;
}
.faq-accordion li { margin-bottom: 20px; }

/* For feature items (style guide) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ===================================================================
   NAVIGATION STYLES (Main, Footer, Mobile)
=================================================================== */
header {
  background: #181A1B;
  border-bottom: 2px solid #313638;
  padding: 0px 0 0px 0;
  width: 100%;
  position: relative;
  z-index: 900;
  display: flex;
  flex-direction: column;
}
header img {
  height: 56px;
  margin: 22px 0 0px 0;
  margin-left: 20px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px 12px 20px;
  align-items: center;
  justify-content: flex-end;
}
.main-nav a {
  color: #C1A362;
  font-family: var(--font-display);
  font-size: 1.05em;
  letter-spacing: 0.02em;
  font-weight: 500;
  border-radius: 22px;
  padding: 7px 14px;
  transition: background 0.18s, color 0.14s;
  margin-bottom: 0px;
}
.main-nav a.cta {
  background: #C1A362;
  color: #23262A;
  margin-left: 16px;
  font-weight: 800;
  box-shadow: 0 4px 18px #C1A36233;
  transition: background .22s, color .22s, box-shadow .15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #23262A;
  color: #FFD88A;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #FFD88A;
  color: #181A1B;
  box-shadow: 0 6px 21px #C1A36266;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 25px;
  top: 32px;
  z-index: 999;
  font-size: 2rem;
  color: #C1A362;
  background: #222527;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid #313638;
  transition: background 0.21s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #C1A362;
  color: #181A1B;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #181A1BEE;
  z-index: 2002;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.69,0,.4,1), opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  color: #C1A362;
  font-size: 2.5rem;
  background: transparent;
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2100;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #C1A362;
  color: #181A1B;
}
.mobile-nav {
  margin-top: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  color: #C1A362;
  font-family: var(--font-display);
  font-size: 1.3em;
  font-weight: 500;
  padding: 14px 0;
  display: block;
  width: 100%;
  border-bottom: 1px solid #23262A;
  transition: color 0.18s, background 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD88A;
  background: #23262A;
}

/* Footer Navigation */
footer {
  background: #1A1D1F;
  border-top: 2px solid #313638;
  padding: 36px 0 24px 0;
  margin-top: 60px;
  color: #C1A362;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #C1A362;
  font-family: var(--font-display);
  font-size: 1em;
  letter-spacing: 0.02em;
  font-weight: 500;
  border-radius: 22px;
  padding: 2px 10px;
  transition: background 0.18s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #FFD88A; background: #23262A; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 0.98em;
  color: #E3E5EB;
}
.footer-contact a {
  color: #C1A362;
  text-decoration: underline;
  font-weight: 600;
}

/* ===================================================================
   BUTTONS & CALL TO ACTIONS
=================================================================== */
.cta, a.cta, .newsletter-signup a, .feature-grid a.cta {
  display: inline-block;
  background: #C1A362;
  color: #222527;
  padding: 13px 32px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: none;
  box-shadow: 0 4px 24px #C1A36221, 0 1.5px 0 #A2ACB5;
  transition: background 0.22s, color 0.22s, box-shadow 0.14s;
  margin-top: 16px;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: #FFD88A;
  color: #181A1B;
  box-shadow: 0 8px 32px #C1A36244;
}

/* ===================================================================
   MISC UI ELEMENTS & VISUALS
=================================================================== */
section ul, section ol {
  margin-left: 1.6em;
  margin-bottom: 16px;
  padding-left: 1em;
}
section ul li, section ol li {
  margin-bottom: 10px;
  color: #D2D8E4;
  line-height: 1.6;
  padding-left: 0;
}
/* Section style - enforced spacing */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Responsive container */
@media (max-width: 1120px) { .container { max-width: 99vw; } }

/* Icon style */
.feature-grid img, .feature-item img, .contact-details img, .map img, .testimonial-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  filter: grayscale(0.14) drop-shadow(0px 1.5px 1.5px #222527);
}
.address-block img { width: 22px; height: 22px; margin-bottom: 0; }
.contact-details div, .map { display: flex; align-items: center; gap: 9px; }

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
=================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3990;
  background: #23262A;
  color: #F5F6FA;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 12px 20px 12px;
  box-shadow: 0 -6px 32px #0005;
  border-top: 2px solid #C1A362;
  animation: cookieslidein 0.5s cubic-bezier(.59,0,.49,1);
}
@keyframes cookieslidein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  max-width: 420px;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button, .cookie-btn-group button {
  padding: 10px 24px;
  border-radius: 22px;
  border: none;
  font-family: var(--font-display);
  background: #C1A362;
  color: #23262A;
  font-weight: 700;
  font-size: 1em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  margin-right: 8px;
}
.cookie-banner button:hover, .cookie-btn-group button:hover, .cookie-banner button:focus {
  background: #FFD88A;
  color: #181A1B;
  box-shadow: 0 4px 18px #C1A36233;
}
.cookie-banner .settings {
  background: #181A1B;
  color: #C1A362;
  border: 1.5px solid #C1A362;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #23262A;
  color: #FFD88A;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed; left: 50%; top: 50%; z-index: 4800;
  transform: translate(-50%, -50%) scale(1);
  background: #23262A;
  color: #F5F6FA;
  width: 97vw; max-width: 420px;
  padding: 40px 26px 28px 26px;
  border-radius: 16px;
  box-shadow: 0 8px 48px #181A1BEE;
  border: 2px solid #C1A362;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookiepop 0.23s cubic-bezier(.59,0,.49,1);
}
@keyframes cookiepop {
  from { opacity: .5; transform: translate(-50%, -46%) scale(.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h3 {
  color: #C1A362;
  font-size: 1.13rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 6px;
}
.cookie-modal input[type=checkbox] {
  accent-color: #C1A362;
  transform: scale(1.3);
  cursor: pointer;
}
.cookie-modal .cookie-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-modal .modal-btn-group {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cookie-modal .close-modal {
  background: #23262A;
  color: #C1A362;
  border: 1.5px solid #C1A362;
  padding: 10px 18px;
  border-radius: 22px;
  align-self: flex-end;
  margin-top: -23px;
  margin-bottom: 0;
  font-size: 1em;
  font-family: var(--font-display);
  transition: background .14s, color .12s;
}
.cookie-modal .close-modal:hover { background: #C1A362; color: #181A1B; }

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: #181A1B99;
  z-index: 4799;
  pointer-events: all;
  transition: opacity 0.2s;
}

/* ===================================================================
   RESPONSIVE DESIGN (MOBILE FIRST)
=================================================================== */
@media (max-width: 1160px) {
  .main-nav, .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 990px) {
  .main-nav { gap: 8px; flex-wrap: wrap; }
  .feature-grid { gap: 16px; }
}
@media (max-width: 850px) {
  .feature-grid > div { min-width: 170px; padding: 18px 11px 14px 14px; }
  .feature-grid { gap: 12px; }
}
@media (max-width: 1024px) {
  h1 { font-size: 2.05rem; }
  .hero h1 { font-size: 2.1rem; }
  .feature-grid > div { font-size: 0.98rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.13rem; }
  .hero { padding: 32px 12px; }
  .content-wrapper { gap: 14px; }
  .section, section { padding: 24px 8px; margin-bottom: 40px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 18px;
    right: 20px;
  }
  .feature-grid, .card-container, .content-grid, .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .newsletter-signup { padding: 20px 7px; }
  .testimonial-card { flex-direction: column; gap: 9px; padding: 16px; }
  header img { margin-left: 10px; height: 46px; margin-top: 16px; }
  .mobile-menu { padding: 0; }
}
@media (max-width: 500px) {
  .container { padding: 0 2px; }
  .section, section { padding: 10px 0 20px 0; }
  .cookie-banner { flex-direction: column; gap: 10px; padding: 13px 5px; }
}

/* Mobile: flex-direction column for text-image-section */
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }
}

/* ===================================================================
   INDUSTRIAL MODERN EFFECTS & DETAILS
=================================================================== */
body {
  background: #181A1B url('../assets/industrial-bg.png') repeat top left;
  background-size: cover;
  min-height: 100vh;
}
.card, .feature-grid > div, .newsletter-signup, .testimonial-card {
  border: 1px solid #30353B;
  box-shadow: 0 2px 10px #22406C22;
  position: relative;
}
.card:after, .feature-grid > div:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, #C1A36200 0%, #C1A36244 50%, #C1A36200 100%);
  border-radius: 0 0 8px 8px;
  z-index: 1;
}
section, .section {
  border-left: 4px solid #C1A36233;
}
/* Metal accent for headings */
h2, h3 {
  position: relative;
  z-index: 2;
}
h2:before, h3:before {
  content:'';
  position: absolute;
  left: -26px; top: 54%;
  width: 18px; height: 2px;
  background: #C1A36288;
  border-radius: 2px;
  display: block;
  transform: translateY(-50%);
}

/* Micro-interactions */
button, .cta, .category-filters button, .cookie-banner button {
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform .12s;
}
button:active, .cta:active, .category-filters button:active {
  transform: scale(.96);
}
/* Subtle industrial line for image sections */
.text-image-section {
  border-bottom: 2px solid #23262A;
  padding-bottom: 18px;
}


/* ===================================================================
   MISC: FORMS, INPUTS IF NEEDED
=================================================================== */
input, textarea, select {
  background: #222527;
  color: #F5F6FA;
  border: 1px solid #A2ACB5;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1em;
  margin-bottom: 18px;
  font-family: var(--font-body);
  transition: border 0.15s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #C1A362;
  box-shadow: 0 1.5px 8px #C1A36233;
}

/* ===================================================================
   ACCESSIBILITY ENHANCEMENTS
=================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Hide visually only, but accessible to screenreaders */
.sr-only { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===================================================================
   PRINT (OPTIONAL)
=================================================================== */
@media print { body, section, .container { background: #FFF !important; color: #181A1B !important; } }
