/* RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #F3F6F9;
  color: #2B3D4F;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #2B3D4F;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #506C88;
}
ul, ol {
  margin: 0 0 1.5em 1.1em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}
button {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
}

/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: #2B3D4F;
}
h2, .h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2B3D4F;
}
h3, .h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h4, .h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}
p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1em;
}
.text-section {
  margin-bottom: 24px;
}
strong {
  font-weight: 700;
  color: #2B3D4F;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(43, 61, 79, 0.06);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #7E9BA3 0%, #F3F6F9 100%);
  padding: 0;
  margin-bottom: 64px;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero .container {
  padding: 48px 20px 56px 20px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: #2B3D4F;
  margin-bottom: 8px;
}
.hero p {
  color: #2B3D4F;
  font-size: 1.15rem;
  font-weight: 400;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, #2B3D4F 65%, #7E9BA3 100%);
  color: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  box-shadow: 0 4px 32px 0 rgba(43, 61, 79, 0.10);
}
.cta-banner .container {
  padding: 40px 20px;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 20px;
}
.cta-banner .btn-primary {
  background: #fff;
  color: #2B3D4F;
  font-weight: 700;
  border: 2px solid #fff;
}
.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus {
  background: #F3F6F9;
  color: #2B3D4F;
}

/* FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 2px 20px 0 rgba(43, 61, 79, 0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0px 8px 44px 0 rgba(43, 61, 79, 0.21);
  transform: translateY(-4px) scale(1.01);
}
.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 {
  background: #FAFBFD;
  border-radius: 12px;
  box-shadow: 0px 1.5px 12px 0 rgba(43, 61, 79, 0.04);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  color: #2B3D4F;
  font-size: 1.08rem;
  transition: box-shadow 0.22s;
}
.testimonial-card span {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  color: #2B3D4F;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0px 4px 20px 0 rgba(43, 61, 79, 0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.contact-short ul,
.content-wrapper ul {
  margin-bottom: 24px;
  padding-left: 24px;
}
.contact-short li,
.content-wrapper li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.06rem;
}
.contact-short img,
.content-wrapper img {
  width: 22px;
  height: 22px;
}

/* PRICE STYLES */
.price {
  margin-left: 8px;
  background: #D6E9F3;
  color: #2B3D4F;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.97em;
  letter-spacing: 0.04em;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1.09rem;
  line-height: 1.2;
  margin: 6px 0 0 0;
  transition: background 0.22s, color 0.2s, box-shadow 0.18s, border-color 0.2s;
  cursor: pointer;
  outline: none;
  border: 2px solid transparent;
  box-shadow: 0 1.5px 7px 0 rgba(43, 61, 79, 0.10);
}
.btn-primary {
  background: #2B3D4F;
  color: #fff;
  border: 2px solid #2B3D4F;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #506C88;
  border-color: #506C88;
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: #2B3D4F;
  border: 2px solid #2B3D4F;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #E2EDF4;
  color: #2B3D4F;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(43, 61, 79, 0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #2B3D4F;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
nav a:not(.btn-primary):hover,
nav a:not(.btn-primary):focus {
  background: #F3F6F9;
  color: #506C88;
}
nav .btn-primary {
  margin-left: 16px;
}

/* FOOTER */
footer {
  background: #2B3D4F;
  color: #fff;
  padding: 48px 0 16px 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-brand img {
  width: 72px;
  height: auto;
}
footer nav {
  gap: 8px;
}
footer nav a {
  color: #FFF;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
footer nav a:hover,
footer nav a:focus {
  color: #7E9BA3;
}
footer address {
  font-style: normal;
  text-align: center;
  font-size: 1rem;
  color: #E7EAF0;
}
footer .copy {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #aac5d1;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #2B3D4F;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 2rem;
  line-height: 1;
  z-index: 1201;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #506C88;
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(31, 47, 65, 0.97);
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  animation: mobileSlideIn 0.35s cubic-bezier(.65,.05,.36,1);
}
@keyframes mobileSlideIn {
  from {transform: translateX(-100%);}
  to {transform: translateX(0);}
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 16px 20px 8px 20px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1202;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 32px;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.22rem;
  color: #fff;
  padding: 10px 0;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  width: fit-content;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #7E9BA3;
  color: #2B3D4F;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: #2B3D4F;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 12px 20px 12px;
  box-shadow: 0px -3px 28px 0 rgba(43,61,79,0.15);
  font-size: 1.02rem;
  animation: cookieSlideIn 0.4s .2s backwards cubic-bezier(.65,.05,.36,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner p {
  text-align: center;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner .cookie-btn {
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  margin-top: 2px;
  border: none;
  transition: background .2s, color .2s, box-shadow .18s;
  cursor: pointer;
  outline: none;
}
.cookie-btn-accept {
  background: #7E9BA3;
  color: #fff;
}
.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: #F3F6F9;
  color: #2B3D4F;
}
.cookie-btn-reject {
  background: #fff;
  color: #2B3D4F;
  border: 1.5px solid #7E9BA3;
}
.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background: #7E9BA3;
  color: #fff;
}
.cookie-btn-settings {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}
.cookie-btn-settings:hover,
.cookie-btn-settings:focus {
  background: #506C88;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,47,65,0.88);
  z-index: 1700;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal.active {
  display: flex;
  animation: modalFadeIn 0.32s cubic-bezier(.65,.05,.36,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #2B3D4F;
  border-radius: 16px;
  box-shadow: 0px 6px 40px 0 rgba(43,61,79,0.19);
  padding: 38px 26px 30px 26px;
  max-width: 90vw;
  min-width: 280px;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h2 {
  font-size: 1.34rem;
  margin-bottom: 8px;
  color: #2B3D4F;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  margin-bottom: 12px;
  padding: 7px 0;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  background: #d2e6e8;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.22s;
  border: none;
}
.cookie-toggle:checked {
  background: #7E9BA3;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  top: 2.5px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px 0 rgba(43, 61, 79, 0.07);
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-save-btn {
  margin-top: 12px;
  background: #2B3D4F;
  color: #fff;
  font-weight: 600;
  border-radius: 7px;
  padding: 10px 20px;
  border: none;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  transition: background 0.2s, color 0.2s;
}
.cookie-save-btn:hover,
.cookie-save-btn:focus {
  background: #7E9BA3;
  color: #fff;
}
.cookie-modal-close {
  background: none;
  color: #2B3D4F;
  font-size: 1.9rem;
  position: absolute;
  top: 20px; right: 30px;
  cursor: pointer;
  border: none;
  z-index: 2100;
}

/* RESPONSIVE - MOBILE FIRST */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  /* Header: hide desktop nav, show burger */
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .container {
    padding: 0 7px;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 7px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cta-banner .container {
    padding: 22px 8px;
  }
  .hero {
    min-height: unset;
    padding-top: 0;
    margin-bottom: 38px;
  }
  .hero .container {
    padding: 22px 8px 35px 8px;
  }
  html {font-size: 15px;}
  h1 {font-size: 2rem;}
  h2 {font-size: 1.45rem;}
  h3 {font-size: 1.14rem;}
}
@media (max-width: 500px) {
  .cookie-modal-content {
    width: 95vw;
    min-width: unset;
    padding: 18px 10px 14px 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    font-size: 1rem;
    padding: 13px 0;
  }
}

/* UTILITIES & MICROINTERACTIONS */
.fadein {
  animation: fadeIn 0.55s cubic-bezier(.39,.57,.56,1) both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.shadow-sm {
  box-shadow: 0px 1.5px 8px 0 rgba(43,61,79,0.10);
}
.rounded {
  border-radius: 8px;
}

/* VISUAL HIERARCHY */
.section h2 {
  margin-bottom: 18px;
}
.section ul, .section ol {
  margin-bottom: 8px;
}
.section .btn-primary, .section .btn-secondary {
  margin-top: 12px;
}

/* MISCELLANEOUS */
address {
  font-style: normal;
  color: #4c6780;
  margin-bottom: 5px;
  font-size: 1em;
}
::-webkit-input-placeholder { color: #7E9BA3; }
:-moz-placeholder { color: #7E9BA3; }
::-moz-placeholder { color: #7E9BA3; }
:-ms-input-placeholder { color: #7E9BA3; }

/* Hide outline for non-keyboard users but keep for accessibility focus-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed #2B3D4F;
  outline-offset: 1.5px;
}

/* Z-INDEX LAYERS */
header { z-index: 100; position: relative; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1500; }
.cookie-modal { z-index: 1700; }

/* CUSTOM FONT LOAD (User must include fonts via <link>) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url(https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap);
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap);
}
