/*------------------------------*
  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-size: 100%;
  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 {
  line-height: 1.5;
  background-color: #F5F7FA;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  outline: none;
}

/*------------------------------*
  ROOT & FONT SETTINGS
*-------------------------------*/
:root {
  --primary: #263238;
  --secondary: #197278;
  --accent: #F5F7FA;
  --text-main: #263238;
  --text-dark: #1A2328;
  --text-light: #6B747C;
  --muted: #ECEFF1;
  --border: #D2D5D9;
  --surface: #fff;
  --brand-shadow: 0 2px 12px rgba(38,50,56,0.06);
  --radius: 12px;
  --transition: 0.22s cubic-bezier(.9,.04,.11,1);
}

body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: var(--text-main);
  background: var(--accent);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', Times, serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.2; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 14px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/*------------------------------*
  GENERAL LAYOUT
*-------------------------------*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  margin-top: 36px;
  margin-bottom: 40px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 30px 8px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 10px;
}

.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .service-list > div {
  background: var(--surface);
  box-shadow: var(--brand-shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 22px 24px;
  flex: 1 1 295px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow var(--transition), border var(--transition);
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 32px rgba(25,114,120,0.10);
  border: 1.5px solid var(--secondary);
}

@media (max-width: 880px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-list > div {
    max-width: 100%;
    width: 100%;
  }
}

/*------------------------------*
  TYPOGRAPHY & LINKS
*-------------------------------*/
p, ul, ol, li, span, label {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.75;
}
strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}
ul, ol {
  margin-left: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
  list-style: disc inside;
}
li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
li img {
  width: 22px;
  height: 22px;
  margin-right: 5px;
}
a {
  color: var(--secondary);
  text-decoration-thickness: 1.5px;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/*------------------------------*
  HEADER & LOGO
*-------------------------------*/
header {
  width: 100%;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(38,50,56,0.06);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  min-height: 80px;
  padding: 18px 20px;
  justify-content: space-between;
  gap: 20px;
}
.logo img {
  display: block;
  max-height: 48px;
}

/*------------------------------*
  NAVIGATION
*-------------------------------*/
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 4px 0;
  color: var(--primary);
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-btn {
  background: var(--secondary);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 24px;
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(25,114,120,0.08);
  margin-left: 8px;
  transition: background var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(38,50,56,0.10);
}

@media (max-width: 950px) {
  .main-nav {
    gap: 12px;
  }
  .header .container {
    flex-wrap: wrap;
  }
}

/*------------------------------*
  MOBILE NAVIGATION
*-------------------------------*/
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: var(--secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  line-height: 1;
  z-index: 210;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--primary);
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 100vh;
  background: var(--surface);
  box-shadow: -4px 0 24px rgba(38,50,56,0.06);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: width 0.37s cubic-bezier(.7,0,.3,1), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  width: 90vw;
  max-width: 350px;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  margin: 26px 0 20px 22px;
  font-size: 2.4rem;
  background: none;
  color: var(--secondary);
  border: none;
  cursor: pointer;
  align-self: flex-start;
  z-index: 10000;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
  margin-left: 22px;
}
.mobile-nav a {
  padding: 16px 0 12px 6px;
  font-size: 1.09rem;
  font-family: 'Montserrat', serif;
  color: var(--primary);
  border-bottom: 1px solid var(--muted);
  transition: background 0.14s;
  margin-right: 12px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  border-radius: 6px;
}

/*------------------------------*
  SECTIONS & FLEX UTILITIES
*-------------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  box-shadow: var(--brand-shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 20px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border var(--transition);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(25,114,120,0.10);
  border: 1.5px solid var(--secondary);
}
.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: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(25,114,120,0.09);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(25,114,120,0.14);
  border: 1.5px solid var(--secondary);
}
.testimonial-card p {
  font-size: 1.11rem;
  color: var(--primary);
  font-style: italic;
  margin-right: 18px;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--text-light);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/*------------------------------*
  BUTTONS & INTERACTIONS
*-------------------------------*/
button, .btn {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  padding: 10px 26px;
  background: var(--secondary);
  color: #fff;
  border-radius: 24px;
  border: none;
  box-shadow: 0 2px 12px rgba(25,114,120,0.08);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  outline: none;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--primary);
  box-shadow: 0 4px 24px rgba(38,50,56,0.13);
  color: #fff;
}

/*------------------------------*
  BADGES, UL & ICON ARRANGEMENTS
*-------------------------------*/
.trust-badges {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
}
.trust-badges img {
  height: 40px;
  width: 40px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(38,50,56,0.12);
}

ul, ol {
  padding-left: 0;
}
ul > li, ol > li {
  margin-bottom: 8px;
  line-height: 1.6;
  align-items: flex-start;
}
@media (max-width: 600px) {
  .trust-badges {
    gap: 10px;
  }
  .trust-badges img {
    height: 32px;
    width: 32px;
  }
}

/*------------------------------*
  FOOTER
*-------------------------------*/
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 18px 0;
  font-size: 1rem;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -3px 24px rgba(38,50,56,0.10);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  color: var(--secondary);
}
.footer-contact {
  color: #e9eae7;
  font-size: 0.97rem;
  margin-top: 4px;
}
.footer-contact p {
  margin: 0;
  line-height: 1.72;
}
@media (max-width: 880px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/*------------------------------*
  MODALS, BANNERS & COOKIE CONSENT
*-------------------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 -2px 14px rgba(38,50,56,0.10);
  padding: 20px 10px 22px 10px;
  z-index: 12000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: banner-in 0.32s ease;
  font-family: 'Open Sans', serif;
}
@keyframes banner-in {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  max-width: 440px;
  font-size: 1rem;
  color: var(--text-dark);
}
.cookie-btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 22px;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(25,114,120,0.08);
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-consent-banner button:hover,
.cookie-consent-banner button:focus {
  background: var(--primary);
}
.cookie-consent-banner .cookie-settings-btn {
  background: #ECEFF1;
  color: var(--secondary);
}
.cookie-consent-banner .cookie-settings-btn:hover,
.cookie-consent-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-radius: 0;
    padding: 16px 8px 18px 8px;
  }
  .cookie-btn-group {
    gap: 7px;
  }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 35, 40, 0.50);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: modal-in 0.3s;
}
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(38,50,56,0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-width: 270px;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.35rem;
  font-family: "Montserrat", serif;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px 0;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
  margin-right: 2px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-category .always-on {
  color: var(--secondary);
  font-weight: bold;
  margin-left: 4px;
  font-size: 0.95rem;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap:12px;
  margin-top: 20px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 14px;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  border: none;
  background: none;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover {
  color: var(--secondary);
}

/*------------------------------*
  ANIMATIONS & MICRO-INTERACTIONS
*-------------------------------*/
a, button, .cta-btn {
  transition: color 0.19s, background 0.19s, box-shadow 0.21s, border 0.14s;
}
section, .testimonial-card, .card, .feature-grid > div {
  transition: box-shadow 0.22s, border 0.17s, background 0.20s;
}
.card, .testimonial-card, .feature-grid > div {
  will-change: box-shadow, border;
}

/*------------------------------*
  RESPONSIVE UTILITIES
*-------------------------------*/
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  h1, h2, h3 {
    margin-bottom: 8px;
  }
  .card, .feature-grid > div, .testimonial-card {
    padding: 14px 8px;
  }
  .section,
  section {
    padding: 16px 2px;
  }
}

/*------------------------------*
  MISC: FORMS (future-proof)
*-------------------------------*/
input, textarea, select {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 1rem;
  background: var(--surface);
  margin-bottom: 16px;
  transition: border var(--transition), box-shadow var(--transition);
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

/*------------------------------*
  PRINT CLEANUP
*-------------------------------*/
@media print {
  header, footer, .main-nav, .mobile-menu, .cookie-consent-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  section, .container {
    padding: 0 !important;
    margin: 0 !important;
  }
}

/*------------------------------*
  ACCESSIBILITY
*-------------------------------*/
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
