/* =========================================================
   Quiet Vertex Industrial Modern CSS by Senior CSS Developer
   =========================================================

   1. CSS Reset & Normalize
   2. Typography & Variables
   3. Layout: Containers & Sections (Flex only, never grid)
   4. Header, Nav, Footer, Mobile Burger
   5. Buttons, Links, CTAs
   6. Cards, Testimonials, Spacing
   7. Cookie Banner & Modal
   8. Utilities & Responsive
   ========================================================= */

/* 1. 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, main, nav, output, ruby,
section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background-color: #232535;
  color: #F7F5F1;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #D9502C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fa8a6c;
  outline: none;
}
ul, ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F7F5F1;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
p + p {
  margin-top: 12px;
}

h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

strong { color: #D9502C; font-weight: 700; }

/* 2. BRAND VARIABLES (NO custom props for max compatibility) */
:root {
  /* Brand palette */
  /* Primary: #2C3053, Secondary: #D9502C, Accent: #F7F5F1 */
}

/* 3. LAYOUT
---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(44, 48, 83, 0.98); /* adds industrial depth */
  border-radius: 15px;
  box-shadow: 0 3px 14px rgba(25,27,38,0.18), 0 1px 1.5px #212230;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}
.text-section {
  background: rgba(38,40,57,0.97);
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(20,22,31,0.09);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #232535;
  color: #F7F5F1;
  border-radius: 10px;
  border: 1.5px solid #35384f;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 18px rgba(33,32,40,0.14);
  padding: 32px 24px;
  min-width: 280px;
  transition: box-shadow 0.25s, border-color 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  border-color: #D9502C;
  box-shadow: 0 6px 28px 0 rgba(217,80,44,0.11), 0 3px 16px #1e2132;
  transform: translateY(-4px) scale(1.012);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F7F5F1;
  color: #232535;
  border-left: 5px solid #D9502C;
  border-radius: 7px;
  margin-bottom: 20px;
  box-shadow: 0 2px 7px #2c30532b;
  min-width: 220px;
  max-width: 540px;
}
.testimonial-card h3 {
  color: #2C3053;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0;
}
.testimonial-card p {
  color: #232535;
  font-size: 1.09rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Minimal utility for vertical rhythm */
.mt32 { margin-top: 32px!important; }
.mb16 { margin-bottom: 16px!important; }
.mb24 { margin-bottom: 24px!important; }
.mb32 { margin-bottom: 32px!important; }

/* 4. HEADER, NAV, FOOTER, MOBILE BURGER
---------------------------------------------------------- */
header {
  width: 100%;
  background: #232535cc;
  border-bottom: 1.5px solid #35384f;
  box-shadow: 0 2px 12px #19192a21;
  z-index: 100;
  position: relative;
  min-height: 72px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 14px 0;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F7F5F1;
  font-weight: 600;
  font-size: 1.025rem;
  margin-right: 5px;
  letter-spacing: 0.035em;
  padding: 7px 12px;
  border-radius: 5px;
  transition: background 0.18s, color 0.19s;
}
header nav a.cta.primary {
  background: #D9502C;
  color: #fff;
  font-weight: 700;
  margin-left: 12px;
  border-radius: 7px;
  box-shadow: 0 2px 7px #d9502c36;
  border: none;
  transition: color 0.16s, background 0.17s, box-shadow 0.19s;
}
header nav a.cta.primary:hover, header nav a.cta.primary:focus {
  background: #fa8a6c;
  color: #fff;
  box-shadow: 0 4px 16px 0 #d9502c18;
}
header nav a:hover, header nav a:focus {
  background: #35384f;
  color: #D9502C;
}
header nav img {
  width: 33px;
  height: 33px;
  margin-right: 10px;
}

/* HEADER MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #35384f;
  border: 2px solid #3d415e;
  color: #F7F5F1;
  font-size: 2rem;
  border-radius: 7px;
  padding: 4px 10px 2px 10px;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 1px 7px #19192a26;
  transition: background 0.16s;
  align-self: center;
  z-index: 1200;
}
.mobile-menu-toggle:active {
  background: #2C3053;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #232535f7;
  color: #fff;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  box-shadow: 0 8px 32px #2c305342;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.68,0,-0.27,1.12);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 32px;
  background: #232535;
  color: #D9502C;
  border: 2px solid #3d415e;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 2100;
  box-shadow: 0 4px 18px #2c305341;
  transition: background 0.16s, color 0.18s, border-color 0.13s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #35384f;
  color: #fa8a6c;
  border-color: #fa8a6c;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 98px 18px 24px 36px;
}
.mobile-nav a {
  color: #FFF;
  background: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  padding: 13px 0;
  font-weight: 700;
  border-radius: 5px;
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: #fa8a6c;
  background: #35384f;
}

footer {
  background: #232535;
  border-top: 2px solid #35384f;
  padding: 44px 0 24px 0;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 19px;
  align-items: center;
  margin-bottom: 7px;
}
footer nav a {
  color: #F7F5F1;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
  padding: 6px 4px;
}
footer nav a:hover, footer nav a:focus {
  color: #D9502C;
}
footer img {
  width: 38px;
  height: auto;
  margin-bottom: 7px;
}
footer small {
  color: #c0c1ca;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}

/* 5. BUTTONS, LINKS, CTAs
---------------------------------------------------------- */
.cta, .btn, button, input[type="submit"] {
  padding: 12px 32px;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.20s, color 0.17s, box-shadow 0.18s, border-color 0.16s;
  border-radius: 7px;
  min-width: 142px;
  box-shadow: 0 1px 8px #2c30532a;
  border: none;
  cursor: pointer;
  outline: none;
  margin-top: 12px;
}
.cta.primary, .btn.primary {
  background: #D9502C;
  color: #fff;
  border: 1.5px solid #D9502C;
}
.cta.primary:hover, .btn.primary:hover, .cta.primary:focus, .btn.primary:focus {
  background: #fa8a6c;
  color: #fff;
  border-color: #fa8a6c;
}
.cta.secondary, .btn.secondary {
  background: transparent;
  color: #D9502C;
  border: 1.5px solid #D9502C;
}
.cta.secondary:hover, .btn.secondary:hover, .cta.secondary:focus {
  background: #D9502C;
  color: #fff;
}
button:disabled, .btn:disabled {
  opacity: 0.52;
  pointer-events: none;
}

/* Links inside text */
p a, li a {
  color: #D9502C;
  font-weight: 600;
  transition: color 0.13s;
}
p a:hover, li a:hover {
  color: #fa8a6c;
  text-decoration: underline;
}

/* 6. CARDS, TESTIMONIALS, SPACING
---------------------------------------------------------- */
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1.06rem;
  line-height: 1.72;
}
ul:last-child, ol:last-child {
  margin-bottom: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* 7. COOKIE CONSENT BANNER & MODAL
---------------------------------------------------------- */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #232535fa;
  color: #fff;
  padding: 20px 28px;
  box-shadow: 0 -4px 18px #21223054;
  z-index: 2600;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  transition: transform 0.32s cubic-bezier(0.5,0,0.5,1.1), opacity 0.23s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 0px;
  max-width: 620px;
  font-size: 1.03rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  background: #35384f;
  color: #fff;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 7px;
  border: 1.5px solid #35384f;
  margin-bottom: 0;
  transition: background 0.16s, color 0.13s, border-color 0.13s;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 7px #2c30532a;
}
.cookie-btn.accept {
  background: #D9502C;
  border-color: #D9502C;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fa8a6c;
  border-color: #fa8a6c;
}
.cookie-btn.reject {
  background: transparent;
  color: #D9502C;
  border-color: #D9502C;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #D9502C;
  color: #fff;
}
.cookie-btn.settings {
  background: #35384f;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #232535;
  color: #D9502C;
}

.cookie-modal-overlay {
  display: flex;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,48,83,0.86);
  align-items: center;
  justify-content: center;
  z-index: 2700;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #F7F5F1;
  color: #232535;
  border-radius: 15px;
  box-shadow: 0 8px 20px #23253540;
  padding: 38px 28px 28px 28px;
  min-width: 330px;
  max-width: 98vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInModal 0.48s cubic-bezier(0.2,1.32,0.77,1);
}
@keyframes fadeInModal {
  from {transform: scale(0.95) translateY(40px); opacity: 0;}
  to   {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #232535;
  color: #fff;
  border: none;
  font-size: 1.65rem;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #2c305345;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #D9502C;
  color: #fff;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C3053;
  margin-bottom: 12px;
}
.cookie-preference-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #f0efeb;
  border-left: 5px solid #D9502C;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.cookie-preference-group label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  color: #232535;
}
.cookie-preference-group input[type="checkbox"] {
  accent-color: #D9502C;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.cookie-preference-group input[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

/* 8. RESPONSIVE/MOBILE FIRST STYLES
---------------------------------------------------------- */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section { padding: 34px 8px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .text-section {
    padding: 24px 8px;
    gap: 12px;
  }
  h1 { font-size: 2.04rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.08rem; }
  .section {
    margin-bottom: 36px;
    padding: 22px 4px;
    border-radius: 8px;
  }
  .content-grid, .card-container, .card-content, .feature-item,
  .text-image-section, .testimonial-list, .testimonial-card {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 6px;
    padding: 11px 10px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 15px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 11px;
    padding: 15px 6px;
    font-size: 0.97rem;
    align-items: flex-start;
  }
  .cookie-banner-message { max-width: 95vw; }
  .cookie-modal {
    padding: 22px 6px 12px 12px;
    min-width: 0;
  }
  .cookie-modal-close {
    top: 10px;
    right: 10px;
  }
  footer {
    padding: 34px 0 16px 0;
  }
  footer nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 4px;
  }
}
@media (max-width: 500px) {
  .cookie-modal {
    max-width: 100vw;
    padding: 9px 3px 5px 8px;
  }
}

/* 9. MICROS & INTERACTIONS
---------------------------------------------------------- */
.card, .testimonial-card, .cta, .btn, button {
  will-change: box-shadow, transform;
}
.card:active {
  transform: scale(0.98);
}
.cta:active, .btn:active, button:active {
  transform: scale(0.987);
}
.mobile-menu {
  will-change: transform, opacity;
}

/* 10. INDUSTRIAL MODERN VISUAL ELEMENTS
---------------------------------------------------------- */
.section {
  border-top: 3.5px solid #35384f;
  border-bottom: 3.5px solid #35384f;
  box-shadow: 0 5px 28px 0 rgba(44,48,83,0.07);
}
.card, .testimonial-card {
  background-image: repeating-linear-gradient(135deg, #232535 0px, #232535 9px, #292c43 10px, #292c43 17px );
}
.card {
  border-right: 5px solid #6b6f85;
}
.testimonial-card {
  border-left: 5px solid #D9502C;
  background: #F7F5F1;
  color: #232535;
}

/* Scrollbar Styling for modern OS */
::-webkit-scrollbar {
  width: 9px;
  background: #2C3053;
}
::-webkit-scrollbar-thumb {
  background: #35384f;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b6f85;
}

/* Hide outline on mouse users but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid #D9502C;
  outline-offset: 2px;
}

/* Decorative metallic accent lines for headings */
h1, h2 {
  position: relative;
}
h1:after, h2:after {
  content: '';
  display: block;
  margin: 12px 0 0 0;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #D9502C 0%, #6b6f85 100%);
}

h2:after {
  width: 28px;
  height: 3px;
  margin-top: 7px;
}

/* Urban font features for industrial modern */
h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* 12. MISC UTILITIES
---------------------------------------------------------- */
.hide, [hidden] { display: none !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.gap-20 { gap: 20px !important; }

/* 13. ACCESSIBILITY
---------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  body { background: #232535; color: #F7F5F1; }
  .testimonial-card { color: #232535; background: #F7F5F1; }
}

/* END Industrial Modern CSS for Quiet Vertex */
