/* --- 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;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #23272B;
  color: #F5F5F5;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}

/* --- BRAND VARIABLES (No custom props for max compatibility) --- */
:root {
  /* Brand Colors */
  --primary: #29549C;
  --primary-dark: #193364;
  --secondary: #E2B832;
  --accent: #F5F5F5;
  --metallic: #B1B4B7;
  --bg-dark: #23272B;
  --bg-card: #292C32;
  --elevated: #353942;
  --danger: #A52424;
  --success: #3CB371;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--bg-dark);
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.35rem;}
}

strong, b {
  color: var(--secondary);
  font-weight: 600;
}
p {
  color: var(--accent);
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  font-size: 1rem;
}
.text-section ul, .text-section ol, .services ul, .values ul {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
.text-section ul li, .services ul li, .values ul li {
  margin-bottom: 8px;
  list-style: disc;
  color: var(--metallic);
}

blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23272B;
  background: #F5F5F5;
  border-left: 4px solid var(--secondary);
  padding: 12px 20px;
  font-size: 1.1rem;
  margin-bottom: 8px;
  border-radius: 8px;
}
cite {
  display: block;
  color: var(--primary);
  font-style: normal;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .3px;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid #3B3F46;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(34,38,44,0.12);
  padding: 28px 24px 24px 24px;
  transition: box-shadow .22s cubic-bezier(.33,1,.68,1);
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(41,84,156,.16), 0 1.5px 8px 0 rgba(34,38,44,0.10);
  border-color: var(--metallic);
  z-index: 1;
}

.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;
  background: #F5F5F5;
  color: #23272B;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(41, 84, 156, 0.09);
  border-left: 5px solid var(--primary);
  transition: transform .21s cubic-bezier(.4,0,.2,1), box-shadow .18s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 6px 30px 0 rgba(226,184,50,0.13);
  border-color: var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-grid, .feature-grid, .card-container, .content-wrapper {
    flex-direction: column !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #23272B;
  border-bottom: 2px solid #252930;
  z-index: 1000;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
  position: relative;
}
.main-nav > a img {
  height: 38px;
  width: auto;
  filter: grayscale(10%) contrast(120%);
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav ul li {
  margin-left: 12px;
}
.main-nav ul li a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--metallic);
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 6px;
  transition: color .14s, background .15s;
  position: relative;
}
.main-nav ul li a.cta,
.cta {
  background: linear-gradient(90deg, #E2B832 0%, #d6a823 100%);
  color: #23272B !important;
  font-weight: 700;
  border-radius: 7px;
  box-shadow: 0 2px 11px 0 rgba(226,184,50, 0.09),0 0.5px 1.7px 0 rgba(34,38,44,0.10);
  margin-left: 18px;
  transition: background .20s, color .18s, box-shadow .18s;
}
.main-nav ul li a.cta:hover, .cta:hover {
  background: #29549C;
  color: #F5F5F5 !important;
  box-shadow: 0 8px 26px 0 rgba(41,84,156, 0.13);
}
.main-nav ul li a.active, .main-nav ul li a:focus {
  color: var(--secondary);
  background: rgba(226,184,50,0.04)
}
.main-nav ul li a:hover {
  color: var(--accent);
  background: #2d323c;
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 2px;
  }
  .main-nav ul li a {
    padding: 8px 10px;
    font-size: 0.97rem;
  }
}

/* --- MOBILE HEADER/BURGER --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--secondary);
  border: none;
  font-size: 32px;
  cursor: pointer;
  z-index: 1200;
  padding: 3px 16px;
  margin-left: auto;
  transition: color .13s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #23272BCC;
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.7,0,.25,1);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
  opacity: 0.90;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  padding: 12px 26px 12px 7px;
  align-self: flex-end;
  cursor: pointer;
  margin-top: 13px;
  margin-right: 7px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 16px 28px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  padding: 14px 0 14px 10px;
  border-bottom: 1px solid #353942;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 3px;
  transition: background .18s, color .15s;
}
.mobile-nav a.cta {
  background: linear-gradient(90deg,#E2B832 0%,#d6a823 100%);
  color: #23272B !important;
  font-weight: 700;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #29549C;
  color: #F5F5F5;
}

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

/* --- HERO --- */
.hero {
  background: linear-gradient(120deg,#23272B 76%,#424442 100%);
  padding: 60px 0 36px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: var(--secondary);
  font-size: 2.65rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.hero p {
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 400;
}
.hero .cta {
  margin-top: 10px;
  font-size: 1.18rem;
  padding: 14px 38px;
}

@media (max-width: 600px) {
  .hero {padding: 32px 0 24px 0;}
  .hero h1 {font-size: 1.55rem;}
}

/* --- FEATURES/FEATURE GRID --- */
.features, .feature-grid {
  width: 100%;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: var(--elevated);
  border-radius: 8px;
  box-shadow: 0 1px 7px 0 rgba(41,84,156,0.08);
  border: 1.5px solid #31353D;
  padding: 28px 22px;
  flex: 1 0 240px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  margin-bottom: 20px;
  transition: border .18s, box-shadow .16s;
}
.feature:hover {
  border-color: var(--secondary);
  box-shadow: 0 8.5px 28px 0 rgba(226,184,50, 0.13);
  z-index: 2;
}
.feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  filter: grayscale(28%) contrast(118%);
}
.feature h3 {
  font-size: 1.17rem;
  color: var(--secondary);
  margin-bottom: 4px;
}
.feature p {
  font-size: 1rem;
  color: var(--metallic);
}
@media (max-width:1020px){
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature {max-width: 100%; min-width: 0;}
}

/* --- SERVICES / LISTS --- */
.services {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1.5px 11px 0 rgba(41,84,156,0.07);
  margin-bottom: 60px;
  padding: 38px 0;
}
.services ul, .values ul {
  margin-bottom: 20px;
}
.services ul li, .values ul li {
  padding: 10px 0;
  font-size: 1.07rem;
  color: var(--accent);
  border-bottom: 1px dashed #363a42;
}
.services ul li:last-child, .values ul li:last-child {
  border-bottom: none;
}
.services h2 {
  margin-bottom: 18px;
}
.services .text-section {
  margin-top: 7px;
}

/* --- FAQ (Accordion) --- */
.faq-accordion h3 {
  font-size: 1.095rem;
  margin: 0 0 5px 0;
  color: var(--secondary);
  background: none;
  border: none;
  padding: 10px 7px;
  cursor: pointer;
  border-radius: 5px;
  transition: background .14s;
}
.faq-accordion h3:hover {
  background: #31353d;
}
.faq-accordion .text-section {
  margin-bottom: 15px;
  background: #23272B;
  color: #F5F5F5;
  border-radius: 7px;
  padding: 12px 18px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  padding: 40px 0 10px 0;
  margin-bottom: 60px;
}
.testimonials h2 {
  color: var(--secondary);
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

/* --- CTA SECTION --- */
.cta {
  background: linear-gradient(90deg, #29549C 85%, #23272B 100%);
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0.5px 8px 0 rgba(34,38,44,.08);
  padding: 50px 10px 44px 10px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta h2 {
  color: var(--secondary);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* --- CARDS --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

/* --- ABOUT/VALUES/TEAM --- */
.about, .values, .team {
  background: var(--elevated);
  border-radius: 10px;
  margin-bottom: 60px;
  padding: 38px 0;
}
.values ul {
  margin-bottom: 22px;
}
.team ul {
  margin-top: 10px;
  margin-bottom: 10px;
}
.team ul li {
  color: var(--metallic);
  padding: 5px 0;
  font-size: 1rem;
}

/* --- LEGAL/TEXT-SECTION --- */
.legal, .contact, .thankyou {
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 60px;
  padding: 42px 0 32px 0;
}
.text-section {
  margin-bottom: 14px;
}
.text-section a {
  color: var(--primary);
  text-decoration: underline;
  transition: color .13s;
}
.text-section a:hover {
  color: var(--secondary);
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #23272B;
  color: var(--metallic);
  border-top: 2px solid #252930;
  padding-top: 22px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #31353D;
  padding-bottom: 16px;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-top a img {
  height: 34px;
  width: auto;
  filter: grayscale(16%) contrast(130%);
}
.footer-top ul {
  display: flex;
  gap: 20px;
}
.footer-top ul li {
  margin-left: 0;
}
.footer-top ul li a {
  color: var(--metallic);
  font-size: 0.98rem;
  transition: color .14s;
  padding: 2px 8px;
}
.footer-top ul li a:hover {
  color: var(--secondary);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  color: #B1B4B7;
  margin-top: 16px;
  padding-bottom: 20px;
}
@media (max-width:850px) {
  .footer-top ul {
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/* --- BUTTONS & LINKS --- */
.button, .cta, button, input[type="submit"] {
  background: linear-gradient(90deg,#E2B832 0%,#e7c44f 100%);
  color: #23272B;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 1px 6.5px 0 rgba(34,38,44,0.11);
  transition: background .17s, color .15s, box-shadow .16s;
  margin: 7px 0;
  outline: none;
  display: inline-block;
}
.button:hover,
.cta:active,
.cta:focus,
.button:focus {
  background: var(--primary);
  color: #F5F5F5 !important;
  box-shadow: 0 7px 25px 0 rgba(41,84,156, 0.16);
}
input[type=submit]:hover, input[type=submit]:focus {
  background: var(--secondary);
  color: #23272B;
}

/* --- FORM ELEMENTS (Basic) --- */
input[type=text], input[type=email], input[type=password], textarea {
  background: var(--bg-card);
  color: var(--accent);
  border: 1.4px solid #36414F;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 1rem;
  margin-bottom: 12px;
  margin-top: 4px;
  transition: border .16s, background .14s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  outline: 2px solid var(--secondary);
}

/* --- MICRO-INTERACTIONS --- */
.card, .feature, .testimonial-card, .button, .cta {
  transition: box-shadow .20s, border .13s, color .14s, background .18s, transform .17s;
}

/* --- ANIMATIONS --- */
@keyframes slideInUp {
  from {transform: translateY(60px);opacity:0;}
  to {transform: translateY(0);opacity:1;}
}
@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}
.animate-in {
  animation: slideInUp .5s cubic-bezier(.33,.99,.60,1.18) both;
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 600px) {
  .container {padding: 0 6px;}
  .section, .cta, .about, .values, .team, .legal, .contact, .thankyou {
    padding-left: 6px;
    padding-right: 6px;
  }
  .cta {
    padding: 24px 5px !important;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #292C32;
  color: #E2B832;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -2px 24px 2px rgba(41,84,156,.07);
  padding: 18px 20px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  gap: 15px;
  animation: fadeIn .6s cubic-bezier(.23,1,.32,1);
  flex-wrap: wrap;
}
.cookie-banner p {
  color: #E2B832;
  margin: 0;
  font-size: 1rem;
  flex: 1 1 140px;
  line-height: 1.32;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #E2B832;
  color: #23272B;
  border: none;
  border-radius: 7px;
  padding: 8px 23px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s, color .14s, box-shadow .13s;
  margin-left: 0;
  margin-right: 3px;
}
.cookie-banner .cookie-btn:hover {
  background: var(--primary);
  color: #F5F5F5;
}
.cookie-banner .cookie-settings-btn {
  background: var(--primary);
  color: #E2B832;
  border: 1.5px solid #E2B832;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #E2B832;
  color: #23272B;
}
@media (max-width: 700px) {
  .cookie-banner {flex-direction: column;align-items: flex-start;gap:8px;}
  .cookie-banner .cookie-btns{width:100%;}
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 39, 43, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #292C32;
  color: #F5F5F5;
  border-radius: 12px;
  box-shadow: 0 8px 48px 0 rgba(41,84,156,.19);
  padding: 36px 22px 18px 22px;
  max-width: 95vw;
  width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInUp .45s cubic-bezier(.23,1,.32,1) both;
}
.cookie-modal-content h3 {
  color: #E2B832;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 1rem;
  color: var(--accent);
}
.cookie-category label {
  font-weight: 600;
  margin-right: 12px;
}
.cookie-category input[type=checkbox] {
  accent-color: #E2B832;
  transform: scale(1.2);
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 21px;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 15px;
}
.cookie-modal .cookie-btn {
  padding: 7px 19px;
  min-width: 103px;
}

/* --- INDUSTRIAL EFFECTS/METALLIC ACCENTS --- */
.feature, .services, .about, .values, .team, .legal, .contact, .thankyou {
  box-shadow: 0 3px 24px 0 rgba(41,84,156, .08);
  border: 1.5px solid #2d2f31;
}
.card, .feature, .testimonial-card {
  border-bottom: 3.5px solid var(--metallic);
}
hr {
  border: 0;
  border-top: 1px solid #31353D;
  margin: 32px 0;
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 10px;
  background: #23272B;
}
::-webkit-scrollbar-thumb {
  background: #4e5460;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E2B832;
}

::selection {
  background: var(--secondary);
  color: #23272B;
}

@media (max-width: 450px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1rem; }
  .feature, .services, .about, .values, .team, .legal, .contact, .thankyou {
    padding: 17px 4px !important;
  }
}
