/* 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,
main,
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  min-height: 100vh;
  background: #F1F0EA;
  color: #1B2440;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1B2440;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #162035;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 1.5em 1.2em;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
}
button {
  background: none;
  cursor: pointer;
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1B2440;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1B2440;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1B2440;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #1B2440;
}
p, .content-wrapper > ul, .text-section ul {
  margin-bottom: 16px;
  color: #27304a;
}
strong {
  font-weight: 700;
}

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

/* SECTION SPACING */
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* FLEX LAYOUTS */
.card-container,
.card-grid,
.content-grid,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 rgba(27,36,64,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 300px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(27,36,64,0.08);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-short p,
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #33405D;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(94deg,#F1F0EA 60%,#798BA7 140%);
  border-radius: 0 0 32px 32px;
  margin-bottom: 48px;
  box-shadow: 0 4px 16px 0 rgba(122,139,167,0.08);
}
.hero .content-wrapper {
  padding: 36px 0 32px 0;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: #1B2440;
}
.hero p {
  color: #27304a;
  font-size: 1.1rem;
}

/* BUTTONS */
.btn-primary,
a.btn-primary {
  display: inline-block;
  background: #1B2440;
  color: #fff !important;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  margin-top: 10px;
  box-shadow: 0 1px 4px 0 rgba(27,36,64,0.06);
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, color 0.18s;
  border: 2px solid #1B2440;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: #27304a;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}
.btn-secondary, a.btn-secondary {
  display: inline-block;
  background: #798BA7;
  color: #fff !important;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid #798BA7;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus, a.btn-secondary:hover, a.btn-secondary:focus {
  background: #506080;
  color: #fff;
  transform: scale(1.045);
}

/* HEADER/NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(27,36,64, 0.04);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  color: #1B2440;
  padding: 7px 8px;
  border-radius: 4px;
  transition: background 0.16s, color 0.14s;
}
header nav a:hover, header nav a.active {
  background: #F1F0EA;
  color: #1B2440;
}
header img {
  height: 38px;
  margin-right: 20px;
}
.header .btn-primary {
  margin-left: 20px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 16px;
  top: 20px;
  z-index: 1002;
  width: 44px;
  height: 44px;
  background: #1B2440;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(27,36,64,0.16);
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #162035;
  outline: none;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,36,64,0.92);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 24px 32px 12px 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #798BA7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  padding-top: 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  border-radius: 5px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #27304a;
  color: #798BA7;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 950px) {
  header nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 951px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav,
  .btn-primary {
    display: flex;
  }
}

/* CARDS & SERVICE LISTS */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 8px 0 rgba(27,36,64,0.07);
  padding: 22px 18px;
  flex: 1 1 270px;
  min-width: 220px;
  margin-right: 0;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.16s;
}
.service-list > div:hover {
  box-shadow: 0 6px 18px rgba(27,36,64,0.17);
  transform: translateY(-2px) scale(1.025);
}

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  color: #27304a;
  border-left: 6px solid #798BA7;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px 0 rgba(27,36,64,0.11);
  border-radius: 8px;
  font-size: 1.05rem;
  transition: box-shadow 0.18s, border-color 0.20s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(27,36,64,0.18);
  border-color: #1B2440;
}
.testimonial-card strong {
  color: #1B2440;
}

/* FOOTER */
footer {
  background: #1B2440;
  color: #F1F0EA;
  padding: 40px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links a {
  color: #F1F0EA;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.94;
  transition: color 0.18s, opacity 0.13s;
}
.footer-links a:hover {
  color: #798BA7;
  opacity: 1;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: #F1F0EA;
}
.social-media-icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}
.social-media-icons img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%) brightness(1.5);
  opacity: 0.7;
  transition: opacity 0.18s, filter 0.18s;
  cursor: pointer;
}
.social-media-icons img:hover,
.social-media-icons img:focus {
  filter: none;
  opacity: 1;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #1B2440;
  box-shadow: 0 -3px 14px 0 rgba(27,36,64,0.13);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  width: 100%;
  font-size: 1rem;
  animation: cookie-slide-in 0.7s cubic-bezier(.6,-0.01,0,1.02);
}
@keyframes cookie-slide-in {
  from { transform: translateY(48px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 6px;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Montserrat','Open Sans',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0;
  transition: background 0.15s, color 0.16s, border 0.15s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: #1B2440;
  color: #fff;
  border: 2px solid #1B2440;
}
.cookie-banner .accept:hover {
  background: #27304a;
}
.cookie-banner .reject {
  background: #fff;
  color: #1B2440;
  border: 2px solid #798BA7;
}
.cookie-banner .reject:hover {
  background: #798BA7;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #798BA7;
  border: 2px solid #798BA7;
}
.cookie-banner .settings:hover {
  background: #798BA7;
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(27,36,64,0.62);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: cookie-modal-fade 0.36s cubic-bezier(.65,0,.21,.98);
}
@keyframes cookie-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px 0 rgba(27,36,64,0.16);
  padding: 38px 28px 28px 28px;
  min-width: 300px;
  max-width: 94vw;
  font-size: 1.06rem;
  color: #27304a;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-dialog-in 0.35s cubic-bezier(0.6,0,0,.97);
}
@keyframes cookie-dialog-in {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #798BA7;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: #1B2440;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-essential {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-actions button {
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Montserrat','Open Sans',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

/* MISCELLANEOUS */
.text-section, .content-wrapper > .text-section {
  margin-bottom: 20px;
}

@media (max-width: 950px) {
  .container {
    padding: 0 14px;
  }
  footer .container {
    gap: 24px;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section, main > section {
    padding: 24px 6px;
  }
  .hero {
    border-radius: 0 0 22px 22px;
    margin-bottom: 28px;
  }
  .card-container, .card-grid, .content-grid, .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 14px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  h1, .hero h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .cookie-modal-dialog {
    padding: 16px 11px 18px 11px;
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .footer-links, .contact-details, .social-media-icons {
    align-items: flex-start;
  }
}

/* UTILITY CLASSES */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-24 { gap: 24px; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.rounded-8 { border-radius: 8px !important; }
.rounded-12 { border-radius: 12px !important; }

/* FOCUS STYLES */
:focus {
  outline: 2px solid #798BA7;
  outline-offset: 2px;
}

/* PRINT PREVIEW */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main, .container { width: 100%; padding: 0; }
}

/* ACCESSIBILITY IMPROVEMENTS */
body {
  scroll-behavior: smooth;
}
h1, h2, h3, h4, h5 { line-height: 1.18; letter-spacing: -0.01em; }

/* Shadow for elevation */
.elev-1 {
  box-shadow: 0 2px 8px 0 rgba(27,36,64,0.08);
}
.elev-2 {
  box-shadow: 0 8px 22px 0 rgba(27,36,64,0.17);
}

/* FADE/SLIDE ANIMATIONS */
.fade-in {
  animation: fadein 0.8s cubic-bezier(.48,0,.25,.99);
}
@keyframes fadein {
  from { opacity:0; }
  to { opacity:1; }
}

.slide-in-right {
  animation: slideinright 0.55s cubic-bezier(.22,1,.36,1);
}
@keyframes slideinright {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
