/* === 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 100%;
}
body {
  line-height: 1.5;
  background: #0D1117;
  color: #f6f8fa;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img, svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* === BRAND VARIABLES (no CSS vars for full browser compatibility) === */
:root {
  /* fallback variables for reference only */
}

/* === TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700|Open+Sans:400,600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #EEF2F6;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li { font-size: 1rem; }
strong { font-weight: 700; }
p {margin-bottom: 14px; color: #e5e9f0;}

.subtitle, .testimonial-meta { font-family: 'Open Sans', Arial, sans-serif; font-size: 1rem; color: #B6701B; }

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0px 4px 22px 0px rgba(14, 25, 66, 0.07);
}

/* === HEADER === */
header {
  background: linear-gradient(90deg, #15416D 60%, #0D1117 100%);
  box-shadow: 0 2px 16px #15284d13;
  width: 100%;
  z-index: 120;
  position: relative;
}
header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
header img {
  height: 48px;
  margin-right: 36px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 4px;
  color: #efefef;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #223F7C;
  color: #D8932F;
  outline: none;
}
.cta-primary {
  display: inline-block;
  background: #D8932F;
  color: #111827;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(187,115,11,0.16);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-left: 12px;
  position: relative;
  transition: background 0.24s, color 0.19s, box-shadow 0.17s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #B6701B;
  color: #fff;
  box-shadow: 0 4px 24px 0 #D8932F,
    0 0 4px #D8932F;
  outline: none;
}
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: #D8932F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border: 2px solid #D8932F;
  border-radius: 8px;
  transition: background 0.24s, color 0.2s;
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #D8932F;
  color: #15416D;
  outline: none;
}

@media (max-width: 975px) {
  .main-nav a {
    font-size: 0.98rem;
    padding: 7px 9px;
  }
  header img { height: 38px; }
  .cta-primary { padding: 9px 17px; font-size: 0.98rem; }
}

/* === HAMBURGER MENU (MOBILE) === */
.mobile-menu-toggle {
  display: none;
  background: #223F7C;
  color: #D8932F;
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.22s;
  z-index: 210;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #15416D;
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2020;
  background: rgba(10,19,38,0.98);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.84,.14,.53,.97);
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -8px 0 24px #0004;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #D8932F;
  font-size: 1.9rem;
  cursor: pointer;
  border: none;
  margin-top: 22px;
  margin-right: 26px;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #223F7C;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
  margin-top: 10px;
  padding-left: 32px;
  padding-right: 20px;
}
.mobile-nav a {
  color: #EEF2F6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  padding: 14px 8px;
  border-radius: 5px;
  margin-bottom: 5px;
  transition: background 0.19s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #15416D;
  color: #D8932F;
}

@media (max-width: 900px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(120deg, #15416D 50%, #0D1117 100%);
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  border-bottom: 2px solid #2c486c40;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: #FFFFFF;
  font-size: 2.7rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 24px #0f2a5554;
}
.hero p {
  color: #EEF2F6;
  font-size: 1.19rem;
  font-weight: 400;
  margin-bottom: 16px;
  opacity: 0.98;
}

/* === FLEX CONTAINER PATTERNS === */
.feature-grid,
.service-grid,
.team-list,
.blog-list,
.case-studies,
.contact-details,
.testimonial-list,
.testimonial-slider,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .feature-grid,
  .service-grid,
  .team-list,
  .case-studies,
  .contact-details,
  .testimonial-list,
  .testimonial-slider,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-item, .service-item, .testimonial-card, .text-section, .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #171e2e;
  border-radius: 12px;
  box-shadow: 0 2px 12px #13274a30;
  padding: 28px 24px 20px 24px;
  transition: box-shadow 0.2s, transform 0.17s;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
  border: 1.5px solid #1e385e33;
}
.feature-item:hover, .service-item:hover, .testimonial-card:hover, .card:hover, .text-section:hover {
  box-shadow: 0 4px 26px #D8932F66, 0 0 8px #223F7C55;
  transform: translateY(-4px) scale(1.015);
  border-color: #D8932F77;
}

/* Remove card style for .text-section in some contexts */
.blog-list .text-section,
.case-studies .text-section,
.contact-details .text-section {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

/* === TESTIMONIAL CARD DESIGN CRITICAL CONTRAST === */
.testimonial-card {
  background: #fff;
  color: #1a222d;
  border-radius: 12px;
  box-shadow: 0 2px 12px #15284d22;
  padding: 20px 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  position: relative;
  min-width: 270px;
  max-width: 460px;
  flex: 1 1 290px;
  border: 1.5px solid #e6e6e6;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #1a222d;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.testimonial-meta {
  color: #B6701B;
  font-size: 1rem;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Testimonial slider (horizontal scroll for preview) */
.testimonial-slider {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
}

/* === USP / CERTIFICATION / LISTS === */
.brand-values ul, .usp-list ul, .working-principles ul, .faq-snippet ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
}
.brand-values li, .usp-list li, .working-principles li, .faq-snippet li {
  position: relative;
  padding-left: 17px;
  color: #e5e9f0;
}
.brand-values li::before, .usp-list li::before, .working-principles li::before, .faq-snippet li::before {
  content: '';
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #D8932F;
  position: absolute;
  left: 0; top: 7px;
}

/* === SECTIONS === */
section {
  margin-bottom: 60px;
}
ul, ol {
  margin-bottom: 15px;
  padding-left: 20px;
  color: #e5e9f0;
}

div.content-wrapper.newsletter-section {
  background: #222642;
  border: 2px solid #2e486e22;
}
div.content-wrapper.cta-section,
div.content-wrapper.contact-cta,
div.content-wrapper.utility-thank-you {
  background: #111827;
  border: 2px solid #223F7C26;
  border-radius: 18px;
  box-shadow: 0 2px 15px #15284d17;
  align-items: center;
  gap: 18px;
}

/* === CONTACT INFO SHORT === */
.contact-info-short {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 14px 0;
}
.contact-info-short div {
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #EEF2F6;
  background: #223F7C;
  border-radius: 8px;
  padding: 10px 18px;
}
.contact-info-short img {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .contact-info-short {
    flex-direction: column;
    gap: 15px;
  }
}

/* === CERTIFICATIONS, ICONS & DECORATIVE === */
.certifications {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 12px 0 24px 0;
}
.certifications img {
  width: 38px; height: 38px;
  margin-right: 12px;
  filter: drop-shadow(0 0 3px #D8932F44);
}

.section .map-embed {
  border-radius: 10px;
  background: #222942;
  color: #B3B8C6;
  font-size: 0.98rem;
  border: 1.5px solid #1e385e22;
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  display: flex;
}

/* === LEGAL TEXT === */
.legal-text {
  color: #e2e8f0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #181E2A;
  border-radius: 10px;
  padding: 28px 18px;
  font-size: 1.002rem;
  box-shadow: 0 2px 12px #223F7C11;
  margin-bottom: 24px;
}
.legal-text h2, .legal-text h3 {
  color: #B6701B;
  margin-top: 32px;
  margin-bottom: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
}
.legal-text ul {
  padding-left: 18px;
}
.legal-text a {
  color: #D8932F;
  border-bottom: 1px dashed #B6701B;
  transition: border 0.2s;
}
.legal-text a:hover, .legal-text a:focus {
  border-bottom: 1px solid #D8932F;
}

/* === FOOTER === */
footer {
  background: #111827;
  border-top: 2px solid #223F7C22;
  color: #c0ccda;
  padding: 36px 0 28px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}
footer img {
  height: 48px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #d1d5db;
  font-size: 1rem;
  padding: 4px 0;
  border-radius: 3px;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #D8932F;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.99rem;
  color: #b3b9c6;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* === SPACING & FLEX ALIGNMENT CRITICAL === */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* === SEARCH FUNCTION === */
.search-function {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 9px 0 16px 0;
}
.search-function label {
  color: #c2d1e6;
  font-weight: 600;
}
.search-function input {
  background: #181E2A;
  border: 1.5px solid #223F7C60;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 1rem;
  outline: none;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 210px;
  transition: border 0.2s;
}
.search-function input:focus {
  border: 1.5px solid #D8932F;
}

/* === BUTTONS === */
button, .cta-primary, .cta-secondary {
  outline: none;
}
button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid #D8932F;
  outline-offset: 2px;
}

/* === MICRO-INTERACTIONS === */
.card, .feature-item, .service-item, .testimonial-card, .cta-primary, .cta-secondary {
  transition: box-shadow 0.19s, transform 0.18s, background 0.13s, color 0.15s;
}
.card:active, .feature-item:active, .service-item:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* === ANIMATIONS === */
@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0%{ opacity: 0; }
  100%{ opacity: 1; }
}

.content-wrapper > *, .section > *, .card, .feature-item, .testimonial-card {
  animation: slideInUp 0.65s cubic-bezier(.68,-0.55,.27,1.55);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero h1 { font-size: 1.5rem; }
  .hero {
    min-height: 220px;
    margin-bottom: 36px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  .section { padding: 22px 5px; margin-bottom: 32px; }
  .content-wrapper, .content-wrapper.contact-cta, .content-wrapper.cta-section {
    gap: 12px;
  }
  .card, .feature-item, .testimonial-card {
    padding: 18px 11px;
    min-width: 150px;
  }
  .content-grid,
  .feature-grid,
  .service-grid,
  .team-list,
  .case-studies,
  .testimonial-list,
  .testimonial-slider,
  .contact-details {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card { max-width: 100%; }
  .contact-info-short {
    flex-direction: column;
    gap: 12px;
  }
  footer .container { gap: 8px; }
}
@media (max-width: 540px) {
  .section { padding: 8px 0; }
  .cta-primary, .cta-secondary { font-size: 0.95rem; padding: 9px 10px; }
  header img, footer img { height: 32px; }
}

.text-image-section {display: flex; align-items: center; gap: 30px; flex-wrap: wrap;}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 17px; }
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #181E2A;
  color: #e6eaf0;
  border-top: 2px solid #223F7C50;
  padding: 22px 16px 18px 20px;
  box-shadow: 0 -4px 44px #15416D22;
  z-index: 3005;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  animation: fadeIn 1s cubic-bezier(.71,.06,.43,1.06);
}
.cookie-banner p {
  flex: 2 1 250px;
  font-size: 0.98rem;
  color: #eaeaea;
  margin-bottom: 0;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 18px;
  border-radius: 7px;
  border: none;
  margin: 0 4px;
  cursor: pointer;
  font-weight: 700;
  transition: background .17s, color .13s, box-shadow .23s;
  box-shadow: 0 2px 8px #D8932F22;
}
.cookie-banner .accept {
  background: #D8932F;
  color: #181E2A;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #B6701B;
  color: #fff;
}
.cookie-banner .reject {
  background: #223F7C;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #15416D;
  color: #fff;
}
.cookie-banner .settings {
  background: transparent;
  color: #B6701B;
  border: 1.5px solid #B6701B;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #B6701B;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    padding: 13px 4px 11px 8px;
  }
}

/* Cookie Settings Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 3030;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(18,30,42,0.91);
  align-items: center;
  justify-content: center;
  padding: 15px;
  animation: fadeIn 0.62s cubic-bezier(.7,.07,.56,1.08);
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #f6f8fa;
  color: #121c29;
  border-radius: 13px;
  padding: 32px 22px 28px 24px;
  box-shadow: 0 6px 48px #223F7C30;
  max-width: 430px;
  width: 100%;
  animation: slideInUp 0.52s cubic-bezier(.71,.06,.35,.97);
  position: relative;
}
.cookie-modal-content h2 {
  color: #15416D;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.cookie-modal-content .close {
  position: absolute;
  top: 11px; right: 17px;
  background: none;
  border: none;
  color: #B6701B;
  font-size: 1.28rem;
  cursor: pointer;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 21px 0;
}
.cookie-modal-content .category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal-content .category label {
  flex: 1;
  font-weight: 600;
  color: #15416D;
}
.cookie-modal-content .category input[type=checkbox], .cookie-modal-content .category input[type=radio] {
  width: 17px; height: 17px; accent-color: #B6701B;
}
.cookie-modal-content .category input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-content .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.cookie-modal-content button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #D8932F;
  color: #181E2A;
  padding: 9px 19px;
  border-radius: 7px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background .17s, color .13s;
}
.cookie-modal-content button:hover,
.cookie-modal-content button:focus {
  background: #B6701B;
  color: #fff;
}
.cookie-modal-content .cookie-actions .close-btn {
  background: #223F7C;
  color: #fff;
}
.cookie-modal-content .cookie-actions .close-btn:hover,
.cookie-modal-content .cookie-actions .close-btn:focus {
  background: #15416D;
  color: #fff;
}
@media (max-width: 475px) {
  .cookie-modal-content { padding: 13px 5px 13px 6px; }
}

/* === UTILITY CLASSES === */
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom:0 !important;}
.ml-0 {margin-left: 0 !important;}
.mr-0 {margin-right: 0 !important;}
.full-width {width:100%!important;}
.text-center {text-align: center!important;}
.text-right {text-align: right!important;}
.rounded {border-radius: 12px!important;}
.shadow {box-shadow: 0 2px 16px #15284d21!important;}

/* === END === */
