/* ===================================================
   CSS RESET & BASE NORMALIZATION
   =================================================== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background-color: #171e25;
  color: #EFEFEF;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1em;
}
a {
  color: #F2C543;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fffbe3;
  text-decoration: underline;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* ================================
   BRAND & TYPOGRAPHY
================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Roboto:400,500,700&display=swap');
:root {
  --primary: #114266;
  --secondary: #F2C543;
  --secondary-darker: #ad8d1b;
  --accent: #EFEFEF;
  --dark-bg: #171e25;
  --darker-bg: #13171b;
  --light-bg: #262f38;
  --almost-black: #23282f;
  --border-metal: #444d57;
  --shadow-metal: 0 2px 16px 0 rgba(20,24,28,0.14);
  --display: 'Montserrat', Arial, Helvetica, sans-serif;
  --body: 'Roboto', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #EFEFEF;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
}
h3 {
  font-size: 1.5rem; /* 24px */
}
h4 {
  font-size: 1.125rem; /* 18px */
}
h5, h6 {
  font-size: 1rem; /* 16px */
}
p, ul, ol, li, table, th, td {
  font-family: var(--body);
  font-size: 1rem;
}
.text-section p, .text-section ul, .text-section ol {
  color: #d8dee6;
  margin-bottom: 14px;
}

/* ==========================
   LAYOUT CONTAINERS
============================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin-bottom: 0;
  width: 100%;
}
.text-section {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

/* ==========================
   FLEXBOX SPACING PATTERNS
============================ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--darker-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-metal);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--light-bg);
  border: 1px solid var(--border-metal);
  border-radius: 10px;
  box-shadow: var(--shadow-metal);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  padding: 24px 20px;
}
.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;
  background: #fff;
  color: #23282f;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  border-left: 7px solid var(--secondary);
  margin-bottom: 20px;
  box-shadow: 0 1px 10px 0 rgba(30, 35, 40, 0.11);
  min-width: 250px;
}
.testimonial-card strong {
  font-size: 1rem;
  font-family: var(--display);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--almost-black);
  border: 1px solid var(--border-metal);
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(34, 36, 43, 0.18);
  padding: 24px 20px;
  min-width: 200px;
  color: #e2e6ea;
  transition: transform 0.17s cubic-bezier(.18,.83,.84,.21), box-shadow 0.2s;
}
.feature-item:hover, .feature-item:focus {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 4px 18px 0 rgba(222, 194, 92, 0.17), var(--shadow-metal);
}

.feature-item img {
  width: 42px;
  height: 42px;
  filter: grayscale(0.5) contrast(1.2);
}

/* Main Feature Grid on Home */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}

/* ==========================
   BUTTONS & CTAS
============================ */
.cta-primary, .cta-secondary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: .04em;
  margin-top: 18px;
  transition: background 0.19s, color 0.19s, box-shadow 0.23s;
  box-shadow: 0 1px 8px 0 rgba(44,48,58,0.11);
  border: 0;
  cursor: pointer;
  outline: none;
}
.cta-primary {
  background: var(--secondary);
  color: #23282f;
  border-bottom: 2px solid var(--secondary-darker);
}
.cta-primary:hover, .cta-primary:focus {
  background: #ffe895;
  color: #23282f;
  box-shadow: 0 3px 16px 0 rgba(242,197,67,0.12), 0 1px 8px 0 rgba(44,48,58,0.11);
}
.cta-secondary {
  background: var(--primary);
  color: var(--accent);
  border-bottom: 2px solid #234169;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #216296;
  color: #fff;
}
button, .cta-primary, .cta-secondary {
  border: none;
  font-smooth: always;
}

/* ==========================
   HEADER & NAVIGATION
============================ */
header {
  background: var(--almost-black);
  border-bottom: 2px solid var(--border-metal);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}
header img {
  height: 46px;
  width: auto;
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav a {
  color: #E7E7E7;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* Hide default mobile nav initially */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #23282f;
  border: none;
  border-radius: 5px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  box-shadow: var(--shadow-metal);
  transition: background 0.18s;
  position: relative;
  z-index: 113;
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  background: var(--almost-black);
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  height: 100vh;
  width: 100vw;
  box-shadow: 0 8px 30px #000b1a78;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.68,-0.6,0.32,1.6), opacity 0.24s;
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: #23282f;
  border: none;
  border-radius: 4px;
  font-size: 2.15rem;
  width: 45px;
  height: 45px;
  align-self: flex-end;
  margin: 16px 22px 0 0;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 122;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 38px;
  margin: 42px auto 0 auto;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 700;
  color: #EFEFEF;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 14px 3px;
  width: 100vw;
  text-align: center;
  transition: background 0.18s, color 0.13s;
  border-bottom: 1px solid #23282f;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #23282f;
}

@media (max-width: 1024px) {
  nav {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  header .container nav, header .container .cta-primary {
    display: none;
  }
  header .container {
    justify-content: space-between;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  header img {
    height: 38px;
  }
}

/* ==========================
   FOOTER
============================ */
footer {
  background: var(--almost-black);
  border-top: 2px solid var(--border-metal);
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 18px;
}
footer nav {
  gap: 16px;
}
footer nav a {
  color: #8ea0b8;
  font-family: var(--display);
  font-size: 0.99rem;
  text-transform: none;
  border-bottom: 2px solid transparent;
}
footer nav a:hover,footer nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
footer small {
  font-size: 0.92rem;
  color: #99aabb;
  margin-left: 10px;
}
footer img {
  width: 37px;
  height: auto;
  margin-right: 6px;
}

/* ==========================
   SERVICE-LIST VARIATIONS
============================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 36px 0 26px 0;
  padding-left: 18px;
  list-style-type: disc;
}
.service-list li,
.service-item {
  background: var(--almost-black);
  border-radius: 9px;
  padding: 20px 18px 18px 16px;
  color: #E0E1E3;
  border-left: 4px solid var(--secondary);
  margin-bottom: 0px;
  box-shadow: 0 1px 8px 0 rgba(47, 50, 60, 0.10);
  font-size: 1.09rem;
  position: relative;
}
.service-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}
.badge {
  display: inline-block;
  background: var(--secondary);
  color: #23282f;
  font-family: var(--display);
  font-weight: 700;
  border-radius: 18px;
  padding: 5px 22px;
  font-size: 0.97rem;
  letter-spacing: 0.04em;
  margin-top: 8px;
  box-shadow: 0 2px 9px 0 rgba(242,197,67,0.07);
}

/* ==========================
   TABLES (Pricing Page)
============================ */
table {
  width: 100%;
  background: var(--light-bg);
  color: #F7FAFC;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-metal);
  table-layout: auto;
}
thead {
  background: var(--primary);
}
th, td {
  padding: 16px 13px;
  border-bottom: 1px solid var(--border-metal);
  font-family: var(--display);
  font-weight: 600;
  text-align: left;
  color: #FFEEC6;
}
th {
  font-size: 1.07rem;
  color: var(--secondary);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #18355b18;
}

/* ==========================
   FAQ Styles
============================ */
ul li, ol li {
  margin-bottom: 6px;
}

/* ==========================
   MODALS & COOKIE BANNER
============================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #23282f;
  color: #EFEFEF;
  padding: 26px 15px 24px 15px;
  box-shadow: 0 -2px 22px 0 rgba(30,32,38,0.23);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  gap: 14px;
  animation: cookie-popin .46s cubic-bezier(.47,.12,0,1.17);
}
@keyframes cookie-popin {
  0% { transform: translateY(100%); opacity: 0; }
  70% { transform: translateY(-12%); }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  max-width: 670px;
  color: #EFEFEF;
  margin-bottom: 10px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--secondary);
  color: #23282f;
  border-radius: 6px;
  border: none;
  padding: 10px 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  box-shadow: 0 2px 7px 0 rgba(242,197,67,0.08);
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffe895;
  color: #23282f;
}
.cookie-settings-btn {
  background: var(--primary);
  color: #EFEFEF;
  border: 1.5px solid var(--secondary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #1d3456;
  color: var(--secondary);
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 33, 40, 0.65);
  z-index: 2200;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fade-in 0.27s linear;
}
@keyframes cookie-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #23282f;
  color: #EFEFEF;
  border-radius: 14px;
  padding: 38px 24px 32px 24px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 6px 30px 0 rgba(34, 38, 43, .28);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-switch {
  appearance: none;
  width: 42px; height: 22px;
  background: #171e25;
  border-radius: 13px;
  border: 1px solid var(--border-metal);
  position: relative;
  outline: none;
  margin-left: 8px;
  transition: background 0.18s;
}
.cookie-switch:checked {
  background: var(--secondary);
}
.cookie-switch::before {
  content: '';
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 16px; height: 16px;
  background: #EFEFEF;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch:checked::before {
  transform: translateX(17px);
}
.cookie-essential {
  opacity: 0.65;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 1.4rem;
  background: none;
  color: var(--secondary);
  border: none;
  cursor: pointer;
}

/* ==========================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 990px) {
  .container {
    max-width: 97vw;
    padding: 0 7vw;
  }
  .section {
    margin-bottom: 44px;
    padding: 32px 12px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}
@media (max-width: 800px) {
  .container {
    padding: 0 3vw;
  }
  .section {
    padding: 16px 2vw;
  }
  .card, .feature-item, .testimonial-card {
    min-width: unset;
    width: 100%;
    padding: 17px 10px;
  }
  .feature-grid {
    gap: 18px;
  }
  h1 { font-size: 1.5rem; }
}
@media (max-width: 700px) {
  .feature-grid,
  .testimonial-cards,
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .section {
    margin-bottom: 32px;
    padding: 13px 2vw;
    border-radius: 8px;
  }
  .testimonial-card {
    min-width: unset;
    padding: 18px 10px;
  }
  .card {
    min-width: unset;
    width: 100%;
  }
  .feature-item {
    min-width: unset;
    width: 100%;
    padding: 17px 10px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.16rem; }
  h2 { font-size: 1rem; }
  .section { padding: 8px 3vw; }
  nav, footer .container nav {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .container, footer .container { padding: 0 5vw; }
  .cta-primary, .cta-secondary, .cookie-btn, .cookie-settings-btn {
    font-size: 0.95rem;
    padding: 10px 18px;
  }
}

/* ==========================
   ACCESSIBILITY UTILITIES
============================ */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #8491a0; }
::-moz-placeholder          { color: #8491a0; }
:-ms-input-placeholder      { color: #8491a0; }
::placeholder              { color: #8491a0; }

/* ==========================
   MICRO-INTERACTIONS/ANIMATIONS
============================ */
.cta-primary, .cta-secondary, .cookie-btn, .cookie-settings-btn {
  transition: background 0.18s, color 0.17s, box-shadow 0.23s;
}
.feature-item, .card, .service-item, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.17s;
}
.feature-item:active, .card:active, .service-item:active, .testimonial-card:active {
  transform: scale(.98);
}
nav a {
  transition: border-color 0.16s, color 0.16s;
}
.mobile-nav a {
  transition: background 0.16s, color 0.16s;
}
.service-item:hover, .service-item:focus {
  box-shadow: 0 6px 22px 0 rgba(242,197,67,0.15), 0 1px 8px 0 rgba(44,48,58,0.19);
  border-left: 4px solid #ffdb5e;
  background: #182937;
}
table tbody tr {
  transition: background 0.11s;
}
tbody tr:hover {
  background: #1e344f17;
}

/* ==========================
   INDUSTRIAL MODERN TOUCHES
============================ */
.section, .card, .feature-item, .testimonial-card, .service-item, table, .cookie-modal {
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 rgba(32,39,44,0.13);
}
.card, .feature-item, .service-item {
  border-left: 4px solid var(--primary);
}

/* Thin lines for urban/industrial vibe */
h1, h2, h3, h4, h5, h6 {
  text-shadow: 0.5px 1.8px 0.6px rgba(17,66,102,0.07);
}
hr {
  border: none;
  border-bottom: 1.5px solid var(--border-metal);
  margin: 30px 0;
}

/* Metallic "plate" effect for selected blocks */
.service-list li, .service-item, .feature-item {
  box-shadow:
    0 1.5px 8px 0 rgba(97,100,110,0.08),
    inset 0 1.5px 0 #2b3342;
  border-top: 1px solid #2b3342;
}

/* ==========================
   CUSTOM SCROLLBAR FOR INDUSTRIAL FEEL
============================ */
::-webkit-scrollbar {
  width: 12px;
  background: #29303b;
}
::-webkit-scrollbar-thumb {
  background: #444d57;
  border-radius: 7px;
  border: 3px solid #23282f;
}
/* ==========================
   PRINT (just in case)
============================ */
@media print {
  header, footer, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  body { background: #fff; color: #111; }
}
