/* ===============================================================
   Foggy Fissure Industrial Modern CSS
   Style: industrial_modern - dark, metallic, urban, tech edge
   Brand Colors: #222B47 (primary), #F5F7FA (secondary), #39BCA9 (accent)
   Fonts: Roboto Slab, Open Sans
   Flexbox Layouts ONLY, No Grid
   ---------------------------------------------------------------
*/

/*--- 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}

/*--- Variables / Fallbacks ---*/
:root {
  --primary: #222B47;
  --secondary: #F5F7FA;
  --accent: #39BCA9;
  --metal-1: #475465;
  --metal-2: #222a33;
  --metal-light: #8993a3;
  --dark-bg: #181d29;
  --section-spacing: 60px;
  --section-padding: 40px 20px;
}

/*--- Typography ---*/
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  background: var(--dark-bg);
  color: var(--secondary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5em;
  letter-spacing: 0.015em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, li, ul, ol { font-size: 1rem; line-height: 1.7; }
strong { color: var(--accent); font-weight: 600; }

.text-center { text-align: center; }
.text-section {
  max-width: 800px;
  margin: 0 auto;
}

/*--- Layout Containers ---*/
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  box-sizing: border-box;
}

/*--- Spacing Patterns (MANDATORY) ---*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--metal-2);
  border: 1.5px solid var(--metal-1);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(50,50,70,0.04), 0 1.5px 0.5px var(--metal-1);
  transition: box-shadow 0.2s, border-color 0.2s;
  padding: 24px 20px;
  color: var(--secondary);
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 28px rgba(57,188,169,0.13), 0 4px 18px rgba(20,32,49,0.18);
  border-color: var(--accent);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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(--secondary);
  color: var(--primary);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(52,56,74,0.07);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*--- Header ---*/
header {
  width: 100%;
  background: var(--primary);
  border-bottom: 2px solid var(--metal-1);
  box-shadow: 0 2px 7px rgba(39,44,65,0.10);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 16px;
  padding: 0 20px;
  min-height: 68px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 24px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', sans-serif;
  color: var(--metal-light);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover {
  color: var(--accent);
}
.cta-btn {
  background: linear-gradient(90deg, var(--accent) 90%, #27a794 100%);
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 8px 28px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 1px 6px rgba(57,188,169,0.15);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  margin-left: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #28aa93 80%, var(--accent) 100%);
  color: var(--secondary);
  box-shadow: 0 4px 16px rgba(39,188,169,0.23);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--secondary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2.5px solid var(--accent);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,29,41,0.97);
  z-index: 7010;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 22px 16px 30px;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  width: 100vw; height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--metal-light);
  font-size: 2rem;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 7020;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: 'Roboto Slab', serif;
  font-size: 1.18rem;
  padding: 2px 0 2px 10px;
  border-left: 4px solid transparent;
  transition: border-left 0.22s, color 0.14s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  border-left: 4px solid var(--accent);
  color: var(--accent);
  background: rgba(41,188,169,0.05);
}

/*--- Hero, Features, and Cards ---*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 290px;
  background: var(--metal-2);
  border: 1.5px solid var(--metal-1);
  border-radius: 12px;
  padding: 28px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(42,48,63,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.25s, border-color 0.17s;
}
.feature-grid > div:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(57,188,169,0.13), 0 4px 10px rgba(43,62,90,0.08);
}
.feature-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 8px;
  filter: grayscale(15%) contrast(1.2);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 8px 0;
}
.team-list > div {
  flex: 1 1 260px;
  background: var(--metal-2);
  border-radius: 10px;
  padding: 20px 18px;
  min-width: 220px;
  border: 1.5px solid var(--metal-1);
  box-shadow: 0 2px 10px rgba(24,29,41,0.10);
  margin-bottom: 20px;
  transition: border-color 0.17s, box-shadow 0.24s;
}
.team-list > div:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(57,188,169,0.14);
}

/*--- Testimonial Cards ---*/
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 320px;
  background: var(--secondary);
  color: var(--primary);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(52,56,74,0.07);
  margin-bottom: 20px;
  padding: 20px 18px;
  min-width: 220px;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.21s;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: var(--metal-1);
  margin-top: 6px;
  font-family: 'Open Sans', sans-serif;
}
.testimonial-card p {
  line-height: 1.5;
  color: var(--primary);
}

/*--- FAQ Section ---*/
.faq-section ul {
  padding-left: 0;
  margin-bottom: 12px;
}
.faq-section li {
  margin-bottom: 20px;
  padding: 18px 18px;
  background: var(--metal-2);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 1rem;
  color: var(--secondary);
  box-shadow: 0 2.5px 16px rgba(28,33,47,0.07);
  transition: background 0.19s, border-color 0.18s;
}
.faq-section li strong {
  color: var(--accent);
}

/*--- Contact & Info ---*/
.contact-info-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.contact-info-summary div {
  font-size: 1.08rem;
  color: var(--metal-light);
  display: flex;
  align-items: center;
  gap: 9px;
}
.address-line, .phone-line, .email-line {
  background: var(--metal-2);
  border-radius: 6px;
  padding: 7px 14px;
  min-width: 250px;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 1.03rem;
  color: var(--accent);
}

/*--- Footer ---*/
footer {
  width: 100%;
  background: var(--primary);
  border-top: 1.5px solid var(--metal-1);
  padding: 38px 0 22px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  color: var(--secondary);
}
.footer-brand img {
  height: 36px;
  width: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--metal-light);
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--metal-light);
  font-family: 'Open Sans', sans-serif;
  text-align: right;
}
.footer-contact a {
  color: var(--accent);
  word-break: break-all;
  transition: color 0.14s;
}
.footer-contact a:hover {
  color: var(--secondary);
}

/*--- Typography Structure and Lists ---*/
ul, ol {
  list-style: none;
}
ul > li, ol > li {
  margin-bottom: 13px;
  line-height: 1.7;
}
ul > li:last-child, ol > li:last-child { margin-bottom: 0; }
a {
  color: var(--accent);
  transition: color 0.18s;
  word-break: break-word;
}
a:hover, a:focus { color: #198b7b; }

/*--- Table, code, blockquote ---*/
table { width: 100%; border-spacing: 0; }
td, th { padding: 8px; }
pre, code {
  font-family: 'Fira Mono', 'Consolas', monospace;
  background: var(--metal-2);
  color: var(--accent);
}
blockquote {
  font-style: italic;
  padding: 14px 32px;
  border-left: 4px solid var(--accent);
  background: rgba(34,43,71,0.17);
  margin: 24px 0;
  color: var(--secondary);
}

/*--- Button Styling / Micro-interactions ---*/
button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  border: none;
  border-radius: 32px;
  background: var(--accent);
  color: var(--primary);
  padding: 8px 26px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(39,188,169,0.13);
  transition: background 0.15s, color 0.15s, box-shadow 0.17s;
}
button:hover, button:focus {
  background: #28aa93;
  color: var(--secondary);
}

/*--- Cookie Consent Banner ---*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--metal-1);
  color: var(--secondary);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 22px;
  box-shadow: 0 -4px 18px 0 rgba(34,43,71, 0.12);
  font-size: 1rem;
}
.cookie-banner .cookie-text {
  max-width: 540px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 7px 24px;
  font-family: 'Roboto Slab', serif;
  font-size: 1.06rem;
  font-weight: 700;
  transition: background 0.12s, color 0.15s;
  margin-left: 8px;
  box-shadow: 0 1px 4px rgba(39,188,169,0.09);
}
.cookie-btn.reject {
  background: var(--metal-2);
  color: var(--secondary);
  border: 1.5px solid var(--metal-light);
}
.cookie-btn.settings {
  background: var(--metal-2);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #198b7b;
  color: var(--secondary);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35, 43, 71, 0.94);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.64,0,.21,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 8px 24px 0 rgba(34,43,71,0.20);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.35rem;
  font-family: 'Roboto Slab', serif;
}
.cookie-modal-content .cookie-categories {
  margin: 1em 0 0.5em 0;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1.06rem;
}
.cookie-category .switch {
  position: relative;
  width: 40px;
  height: 24px;
  display: inline-block;
}
.cookie-category input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--metal-1);
  border-radius: 28px;
  transition: background 0.18s;
}
.cookie-category input[type="checkbox"]:checked + .slider {
  background: var(--accent);
}
.cookie-category .slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s;
  box-shadow: 0 1px 2px rgba(57,188,169,0.18);
}
.cookie-category input[type="checkbox"]:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 18px;
  font-size: 1.55rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

/*--- Animations ---*/
@keyframes fadein-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section, .feature-grid > div, .team-list > div, .testimonial-card, .faq-section li {
  animation: fadein-up 0.8s cubic-bezier(.56,.05,.13,.95);
}

/*--- Responsive Design ---*/
@media (max-width: 1050px) {
  .feature-grid,
  .team-list,
  .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div,
  .team-list > div,
  .testimonial-card {
    width: 100%;
    min-width: unset;
  }
}
@media (max-width: 820px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  header .container {
    padding: 0 8px;
  }
  .footer-contact, .footer-brand, .footer-nav {
    text-align: left;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 8px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .section {
    margin-bottom: 40px;
    padding: 30px 8px;
  }
  .feature-grid, .team-list, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div,
  .team-list > div,
  .testimonial-card {
    width: 100%; min-width: unset;
  }
  .content-wrapper,
  .text-section {
    padding: 0;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .faq-section li {
    padding: 14px 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 17px 8px 20px 8px;
    font-size: 0.98rem;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.01rem; }
  .cta-btn, button, .cookie-btn { font-size: 0.98rem; padding: 8px 16px; }
  .testimonial-card, .team-list > div, .feature-grid > div {
    padding: 16px 7px;
  }
  .footer-brand img {
    height: 24px; width: 24px;
  }
  .cookie-modal-content {
    padding: 16px 5vw 18px 5vw;
  }
}

/*--- Utility ---*/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-20 { gap: 20px !important; }