/* --- 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;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
body { background: #F5F7FA; color: #17485E; line-height: 1.6; font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; min-height: 100vh; }
*, *::before, *::after { box-sizing: inherit; }

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600;700&display=swap');
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; letter-spacing: 0.01em; }
h1 { font-size: 2.7rem; letter-spacing: 0.015em; line-height: 1.12; }
h2 { font-size: 2rem; letter-spacing: 0.01em; margin-bottom: 16px; line-height: 1.18; }
h3 { font-size: 1.35rem; margin-bottom: 8px; font-weight: 700; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, li, blockquote { color: #17485E; font-family: 'Open Sans', Arial, sans-serif; }
p { font-size: 1rem; margin-bottom: 16px; }
strong, b { font-weight: 700; }
blockquote { font-style: italic; border-left: 4px solid #D9AE7D; margin: 0 0 12px 0; padding: 4px 0 4px 18px; color: #1C3440; background: #fffaf5; font-size: 1.07rem; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 3px 16px 0 rgba(23, 72, 94, 0.10);
  padding: 0;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 18px;
  gap: 24px;
}
header img { height: 48px; width: auto; display: block; }
nav.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: #17485E;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  color: #D9AE7D;
}
header .btn.primary {
  padding: 13px 24px;
}
.mobile-menu-toggle {
  background: none;
  border: 2px solid #17485E;
  color: #17485E;
  font-size: 1.9rem;
  border-radius: 7px;
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  margin-left: 8px;
  transition: border 0.2s;
  z-index: 70;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  border: 2px solid #D9AE7D;
  color: #D9AE7D;
  background: #F5F7FA;
}

/* Responsive header menu (burger) */
@media (max-width: 992px) {
  nav.main-nav { gap: 17px; }
  header .btn.primary { padding: 11px 13px; font-size: 0.98rem; }
}
@media (max-width: 768px) {
  nav.main-nav,
  header .btn.primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  header .container { min-height: 58px; gap: 10px; }
  header img { height: 36px; }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 60px 12px rgba(23,72,94,0.10);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.61,-0.02,.84,.51);
  display: flex;
  flex-direction: column;
  z-index: 120;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 2.1rem;
  color: #17485E;
  align-self: flex-end;
  cursor: pointer;
  margin-top: 20px; margin-right: 11px;
  transition: color 0.17s;
  z-index: 131;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #D9AE7D; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  padding: 34px 32px 34px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  color: #17485E;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1.5px solid #F5F7FA;
  width: 100%;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus { background: #F5F7FA; color: #D9AE7D; }

/* --- STRUCTURED SECTIONS / LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card {
  background: #fff;
  border: 2.5px solid #e4e9ed;
  border-radius: 20px 4px 20px 4px;
  box-shadow: 0 2px 12px 0 rgba(23,72,94,0.10);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  min-width: 270px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s, border-color 0.19s;
  z-index: 1;
}
.card:hover, .card:focus-within {
  border-color: #D9AE7D;
  box-shadow: 0 6px 26px 0 rgba(25,70,110,0.15);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURED SERVICE-LIST --- */
.service-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.service-list > div {
  background: #fff;
  border: 2px solid #e4e9ed;
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 3px 14px 0 rgba(23,72,94,0.08);
  padding: 22px 20px 16px 20px;
  flex: 1 1 210px;
  min-width: 200px;
  transition: border-color 0.19s, box-shadow 0.21s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
  position: relative;
}
.service-list > div:hover {
  border-color: #D9AE7D;
  box-shadow: 0 7px 19px -3px #edd6bb40;
}
.service-list h2, .service-list h3 {
  color: #17485E;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}
.service-list p {
  color: #1B3249;
  font-size: 1rem;
}
.service-list strong {
  color: #D9AE7D;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border-radius: 24px 4px 24px 4px;
  background: #fff;
  box-shadow: 0 3.5px 14px 0 rgba(23,72,94,0.10);
  border: 2px solid #e6ecef;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: #D9AE7D;
  box-shadow: 0 8px 24px 0 rgba(23,72,94,0.13);
}
.testimonial-card blockquote {
  color: #1C3440;
  font-size: 1.13rem;
  font-style: italic;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}
.testimonial-card div {
  font-size: 1em;
  color: #17485E;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 10px;
}

/* --- TABLES --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 24px 0;
  background: #fff;
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 2px 14px 0 rgba(23,72,94,0.05);
  overflow: hidden;
}
table th, table td {
  border: 1.5px solid #e4e9ed;
  padding: 12px 17px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
table th {
  background: #e4e9ede6;
  color: #17485E;
}
table td {
  background: #fff;
}

/* --- BUTTONS --- */
.btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  border-radius: 8px 2px 8px 2px;
  background: #fff;
  color: #17485E;
  border: 2px solid #D9AE7D;
  padding: 13px 26px;
  font-weight: 800;
  box-shadow: 0 6px 18px -6px #b1bbce3d;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 9px;
  transition: background 0.20s, border-color 0.20s, color 0.18s, box-shadow 0.2s;
}
.btn.primary {
  background: #17485E;
  color: #fff;
  border: 2px solid #17485E;
}
.btn:hover,
.btn:focus {
  background: #D9AE7D;
  color: #17485E;
  border-color: #17485E;
  box-shadow: 0 10px 24px -4px #ffe4ba60;
}
.btn.primary:hover,
.btn.primary:focus {
  background: #235E7A;
  color: #fff;
  border-color: #D9AE7D;
}

/* --- LISTS --- */
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: #17485E;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}
ul li::marker { color: #D9AE7D; font-weight: bold; }
ol li::marker { color: #17485E; font-weight: bold; }

/* --- FOOTER --- */
footer {
  background: #17485E;
  color: #fff;
  padding: 32px 0 24px 0;
}
footer .container {
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #D9AE7D;
  border-bottom: 2px solid #D9AE7D;
}
.footer-text {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.96rem;
  margin-top: 0;
  color: #D9AE7D;
}

/* --- SPACING: CARDS/SECTIONS --- */
.card, .testimonial-card, .service-list > div, .content-wrapper, .section, .feature-item, .content-grid, .card-container, .text-image-section {
  margin-bottom: 20px;
}
@media (min-width: 992px) {
  .container { padding: 0 42px; }
  .section { padding: 56px 34px; }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1099px) {
  .container { max-width: 96vw; }
  .service-list { gap: 16px; }
  .section { padding: 32px 8px; }
}
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .service-list > div { min-width: 170px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 32px 7px; }
  .card, .testimonial-card, .service-list > div { padding: 17px 10px; }
  .service-list { flex-direction: column; gap: 18px; }
  .content-grid, .card-container { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; gap: 17px; }
  .container { padding: 0 4px; }
}
@media (max-width: 520px) {
  .testimonial-card { flex-direction: column; padding: 15px 6px; gap: 10px; }
  .container { padding: 0 2px; }
  .service-list > div { min-width: 120px; }
}

/* --- FORM ELEMENTS --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  border-radius: 7px 2px 7px 2px;
  border: 1.7px solid #d7dbe0;
  padding: 10px 13px;
  background: #fff;
  color: #17485E;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #D9AE7D;
}
label { font-size: 1rem; color: #17485E; font-family: 'Montserrat', Arial, sans-serif; }

/* --- LINK STYLES --- */
a {
  color: #17485E;
  text-decoration-color: #D9AE7D;
  transition: color 0.16s, text-decoration-color 0.18s;
  outline: none;
}
a:hover, a:focus {
  color: #D9AE7D;
  text-decoration-color: #17485E;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 9px; background: #F5F7FA; }
::-webkit-scrollbar-thumb { background: #dde8ef; border-radius: 7px; }

/* --- GEOMETRIC DECORATIVE --- */
.card, .testimonial-card, .service-list > div, table {
  border-style: solid;
  border-width: 2.5px;
  border-color: #e4e9ed;
  border-radius: 20px 4px 20px 4px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #17485E;
  color: #fff;
  box-shadow: 0 -4px 28px 0 rgba(23,72,94,0.16);
  z-index: 170;
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: transform 0.24s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__text {
  flex: 2 1 220px;
  max-width: 600px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px 2px 7px 2px;
  font-weight: 700;
  border: 2px solid #D9AE7D;
  background: #fff;
  color: #17485E;
  padding: 11px 20px;
  margin: 0 0 0 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cookie-btn.primary {
  background: #D9AE7D;
  color: #17485E;
  border-color: #fff;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #17485E;
  color: #fff;
  border-color: #D9AE7D;
}
/* Cookie settings button distinct look */
.cookie-btn.settings {
  background: #F5F7FA;
  color: #17485E;
  border: 2px solid #D9AE7D;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #D9AE7D;
  color: #17485E;
}

/* Cookie Modal (Preferences) */
.cookie-modal-overlay {
  position: fixed;
  z-index: 190;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,72,94,0.21);
  display: flex;
  align-items: center; justify-content: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s, visibility 0.23s;
}
.cookie-modal-overlay.active {
  visibility: visible;
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px 4px 18px 4px;
  box-shadow: 0 7px 26px 0 rgba(23,72,94,0.11);
  min-width: 320px;
  max-width: 95vw;
  padding: 30px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 200;
  outline: none;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px; right: 13px;
  background: none;
  border: none;
  color: #17485E;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 100%;
  transition: color 0.13s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus { color: #D9AE7D; }
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26rem;
  color: #17485E;
  margin-bottom: 6px;
  font-weight: 700;
}
.cookie-modal__category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 13px;
}
.cookie-modal__category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  color: #1C3440;
}
.cookie-switch {
  position: relative;
  width: 42px; height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #e4e9ed;
  border-radius: 20px;
  transition: background 0.17s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #D9AE7D;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 2.5px 8px #e7caaaab;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal__category[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* --- ACCESSIBILITY HIDE/SHOW HELPERS --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* --- ANIMATIONS / EFFECTS --- */
.card, .service-list > div, .testimonial-card, .cookie-modal {
  transition: box-shadow 0.20s, border-color 0.17s, filter 0.15s;
}
.btn, .cookie-btn {
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
:focus {
  outline: 2px solid #D9AE7D;
  outline-offset: 1.5px;
}

/* --- SPECIAL CLASSES FROM FLEXBOX SNIPPETS --- */
.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; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* --- PRINT / NON-SCREEN --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
