/* ==== CSS RESET & 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%;
  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.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}

/* ==== IMPORT FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --brand-primary: #062D57;
  --brand-primary-rgb: 6, 45, 87;
  --brand-secondary: #2D7DB6;
  --brand-accent: #F7B732;
  --brand-bg: #10141a;
  --brand-bg2: #23272F;
  --brand-surface: #1B222B;
  --brand-text: #E9EDF1;
  --brand-muted: #CDD7E1;
  --brand-metal: #A5ABB2;
  --brand-font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --brand-font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  background: var(--brand-bg);
  color: var(--brand-text);
  font-family: var(--brand-font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font-display);
  font-weight: 900;
  color: var(--brand-accent);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.1;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.1rem;
}
h4, h5, h6 {
  font-size: 1rem;
}

p, ul li, ol li, span, label {
  font-size: 16px;
  color: var(--brand-text);
}
strong, b {
  font-weight: 700;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  background: var(--brand-surface);
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: 0 2px 18px rgba(var(--brand-primary-rgb), 0.07), 0 1px 3px var(--brand-primary);
  margin-bottom: 32px;
}

.cta-section {
  background: var(--brand-secondary);
  border-radius: 10px;
  color: #fff;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  box-shadow: 0 2px 18px rgba(var(--brand-primary-rgb), 0.09), 0 1px 3px var(--brand-primary);
  margin-bottom: 32px;
  padding: 32px 20px;
}
.cta-section h2 {
  color: #fff;
}

/* ==== HERO & MAIN ==== */
.hero {
  background: linear-gradient(90deg, var(--brand-bg) 60%, var(--brand-bg2) 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  box-shadow: 0 4px 30px rgba(var(--brand-primary-rgb),0.10);
}
.hero .container {
  flex-direction: column;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--brand-accent);
}
.hero p {
  font-size: 1.2rem;
  color: var(--brand-muted);
}

/* ==== NAVIGATION ==== */
header {
  background: var(--brand-bg2);
  border-bottom: 3px solid var(--brand-accent);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 72px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--brand-font-display);
  font-size: 1rem;
  color: var(--brand-muted);
  font-weight: 700;
  padding: 8px 0 8px 0;
  position: relative;
  transition: color 0.21s cubic-bezier(.4,0,.2,1);
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}
header nav a.cta {
  background: var(--brand-accent);
  color: var(--brand-bg2);
  border-radius: 25px;
  padding: 8px 26px;
  margin-left: 10px;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px 0px rgba(0,0,0,0.10);
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: #fff799;
  color: #2D7DB6;
}
header nav a:hover,
header nav a:focus {
  color: var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
}
header .mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: var(--brand-bg2);
  font-size: 2.1rem;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 16px;
  z-index: 43;
}
header .mobile-menu-toggle:focus,
header .mobile-menu-toggle:hover {
  background: #ffe292;
  color: var(--brand-primary);
  box-shadow: 0 3px 12px var(--brand-accent);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,20,26,0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 2.2rem;
  background: var(--brand-surface);
  color: var(--brand-accent);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px 0 rgba(0,0,0,0.13);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 104;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-accent);
  color: var(--brand-surface);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 90px 32px 20px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--brand-font-display);
  font-size: 1.15rem;
  color: var(--brand-muted);
  padding: 12px 0;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.22s, color 0.22s;
  display: block;
  width: 100%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-bg2);
}

/* ==== MAIN FLEX & SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .features-grid, .services-grid, .industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature, .service, .industry {
  background: var(--brand-surface);
  margin-bottom: 20px;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 0px #274159;
  padding: 30px 28px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover, .feature:hover, .service:hover, .industry:hover {
  box-shadow: 0 7px 34px rgba(247,183,50,0.13), 0 2.5px 0px #F7B732;
  border-color: var(--brand-accent);
}

.locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.location-entry {
  background: var(--brand-bg2);
  border-radius: 9px;
  box-shadow: 0 2px 13px rgba(45,125,182,0.13), 0 1px 0px #A5ABB2;
  padding: 22px 18px 18px 18px;
  flex: 1 1 280px;
  min-width: 220px;
}

.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.team-profiles > div {
  background: var(--brand-bg2);
  padding: 18px 14px;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 2px 10px rgba(45,125,182,0.07);
}

.jobs-listing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.jobs-listing li {
  background: var(--brand-bg2);
  padding: 13px 16px;
  border-radius: 8px;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--brand-surface);
  padding: 26px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(45,125,182,0.08);
  margin-bottom: 32px;
}

/* ==== CARDS & FEATURES === */
.feature img,
.service img {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  filter: grayscale(80%) brightness(1.3) contrast(1.2);
}
.feature h3, .service h2 {
  color: var(--brand-secondary);
  margin-bottom: 6px;
}
.feature p, .service p {
  color: var(--brand-muted);
  font-size: 1rem;
}
.features-grid, .services-grid, .industries-grid {
  justify-content: flex-start;
  gap: 24px;
}
.feature, .service, .industry {
  flex: 1 1 260px;
  min-width: 240px;
}

/* ==== TESTIMONIALS ==== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #f7fafc;
  color: #23272F;
  border-radius: 10px;
  box-shadow: 0 1.5px 7px 0px rgba(6,45,87,0.07), 0 1.5px 0 #F7B732;
  min-width: 250px;
  max-width: 420px;
  flex: 1 1 310px;
  font-size: 1.01rem;
}
.testimonial-card p {
  color: #23272F;
  font-size: 1.08rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: var(--brand-metal);
  font-weight: 400;
}

/* ==== BUTTONS ==== */
.cta, .cta:visited {
  display: inline-block;
  font-family: var(--brand-font-display);
  font-size: 1.04rem;
  font-weight: 800;
  background: var(--brand-accent);
  color: var(--brand-bg2);
  padding: 13px 36px;
  border-radius: 38px;
  box-shadow: 0 2px 12px rgba(247,183,50,0.14);
  letter-spacing: 0.06em;
  transition: background 0.21s, color 0.21s, box-shadow 0.24s, transform 0.17s;
  cursor: pointer;
  border: none;
}
.cta:hover, .cta:focus {
  background: #ffe292;
  color: var(--brand-primary);
  box-shadow: 0 5px 18px #f7b732c2, 0 1.5px 0 #F7B732;
  transform: translateY(-2px) scale(1.012);
}

/* ==== FOOTER ==== */
footer {
  background: #161c22;
  border-top: 3px solid var(--brand-accent);
  padding: 0;
}
.footer-navigation {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0px 16px 0px;
}
.footer-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-navigation nav a {
  color: var(--brand-metal);
  font-size: 0.97rem;
  transition: color 0.18s;
}
.footer-navigation nav a:hover,
.footer-navigation nav a:focus {
  color: var(--brand-accent);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
}
.footer-brand span {
  color: var(--brand-muted);
  font-size: 1.01rem;
  font-style: italic;
}
.footer-socials {
  display: flex;
  gap: 13px;
}
.footer-socials img {
  width: 32px;
  height: 32px;
  filter: grayscale(60%) contrast(1.35);
  transition: filter 0.2s;
}
.footer-socials img:hover,
.footer-socials img:focus {
  filter: grayscale(0%) brightness(1.1) contrast(1.1);
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #23272F;
  border-top: 3px solid var(--brand-accent);
  color: var(--brand-muted);
  box-shadow: 0 -2px 20px #000b15;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 22px 13px 22px 13px;
  z-index: 1999;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 750px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  font-family: var(--brand-font-display);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.16s;
}
.cookie-banner .accept {
  background: var(--brand-accent);
  color: var(--brand-bg2);
}
.cookie-banner .accept:hover {
  background: #fff799;
  color: var(--brand-secondary);
}
.cookie-banner .reject {
  background: var(--brand-bg2);
  color: var(--brand-metal);
  border: 2px solid var(--brand-accent);
}
.cookie-banner .reject:hover {
  background: var(--brand-metal);
  color: var(--brand-bg2);
}
.cookie-banner .cookie-settings {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-banner .cookie-settings:hover {
  background: #216094;
  color: #ffe292;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed !important;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,20,26,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2090;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #23272F;
  color: var(--brand-muted);
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(6,45,87,0.21);
  padding: 38px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 320px;
  max-width: 98vw;
}
.cookie-modal-content h3 {
  color: var(--brand-accent);
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
  background: var(--brand-surface);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
}
.cookie-category label {
  flex: 1 1 auto;
  color: var(--brand-muted);
  font-size: 1rem;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  width: 23px;
  height: 23px;
}
.cookie-category.essential label {
  color: var(--brand-accent);
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal-content button {
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: var(--brand-font-display);
}
.cookie-modal-content .modal-close {
  background: var(--brand-accent);
  color: var(--brand-bg2);
}
.cookie-modal-content .modal-close:hover {
  background: #fff799;
  color: var(--brand-secondary);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1020px) {
  .features-grid, .services-grid, .industries-grid, .testimonials, .locations-list {
    flex-direction: column;
    gap: 20px;
  }
  .container {
    max-width: 98vw;
    padding: 0 13px;
  }
}
@media (max-width: 900px) {
  .footer-navigation {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-brand {
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 210px;
    background: var(--brand-bg2);
    padding: 0;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    min-height: 56px;
    padding: 0 9px;
  }
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    padding: 0;
    gap: 20px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 5px;
  }
  .testimonial-card {
    padding: 14px 9px;
    font-size: 0.97rem;
    min-width: 180px;
    max-width: 98vw;
  }
  .contact-details {
    padding: 12px 4px;
  }
  .card, .feature, .service, .industry, .location-entry {
    padding: 18px 9px;
    min-width: 95vw;
    max-width: 98vw;
  }
}
@media (max-width: 680px) {
  .hero h1 {
    font-size: 1.45rem;
  }
  h1 {
    font-size: 1.35rem;
  }
  .cta, .cta:visited {
    font-size: 0.93rem;
    padding: 11px 18px;
  }
  .cta-section {
    padding: 18px 6px;
    gap: 9px;
  }
  .footer-navigation {
    gap: 14px;
    padding: 17px 0 10px 0;
  }
  .footer-brand span {
    font-size: 0.94rem;
  }
  .footer-socials img {
    width: 26px;
    height: 26px;
  }

  .cookie-modal-content {
    padding: 28px 10px 20px 10px;
    min-width: 90vw;
  }
  .cookie-category label {
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-text {
    max-width: 90vw;
  }
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
    padding: 18px 7px 18px 7px;
  }
  .cookie-modal-content {
    min-width: unset;
    width: 98vw;
  }
}

/* ==== ANIMATIONS / EFFECTS ==== */
.cta, .card, .feature, .service, .industry,
.header nav a, .footer-navigation nav a, .cookie-banner button, .mobile-menu,
.cookie-modal-content {
  will-change: transform, box-shadow, color;
}

/* Micro-interactions: underline for links */
a:not(.cta):not(.cookie-btn):not(.cookie-settings) {
  position: relative;
  transition: color 0.17s;
}
a:not(.cta):not(.cookie-btn):not(.cookie-settings):after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width .23s;
}
a:not(.cta):not(.cookie-btn):not(.cookie-settings):hover:after, a:not(.cta):not(.cookie-btn):not(.cookie-settings):focus:after {
  width: 80%;
}

/* For high contrast in testimonials on dark bg */
.testimonial-card {
  color: #23272F;
  background: #f7fafc;
  border: 1.5px solid #dedede;
}
/* On dark backgrounds, ensure all buttons/links are clearly visible */

/* ==== MISC ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #19212d;
}
::-webkit-scrollbar-thumb {
  background: #313a47;
  border-radius: 5px;
}
