/* =============================================================
   CSS RESET & NORMALIZATION - ELEGANT_CLASSIC STYLE
   ============================================================= */
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;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F8F9FA;
  color: #2D363E;
  font-family: 'Open Sans', Georgia, serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: #31576D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #226155;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  letter-spacing: 0.01em;
  color: #31576D;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem;
  margin-top: 0;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  color: #2D363E;
  font-size: 1.13rem;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-family: 'Georgia', serif;
  font-style: italic;
  border-left: 4px solid #218C76;
  background: #E8F5FB;
  color: #31576D;
  margin: 24px 0;
  padding: 18px 24px;
  border-radius: 6px;
}


/* =============================================================
   GLOBAL CONTAINERS & SECTIONS
   ============================================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(49,87,109,0.03), 0 1.5px 6px rgba(49,87,109,0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

/* =============================================================
   FLEXBOX LAYOUTS (MANDATORY CLASSES & PATTERNS)
   ============================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(49,87,109,0.06);
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 20px rgba(49,87,109,0.16);
  z-index: 2;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F4F7FA;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(49,87,109,0.08);
  color: #2D363E;
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  transition: box-shadow 0.23s;
}
.testimonial-card strong {
  color: #226155;
  font-size: 1rem;
  font-family: 'Montserrat', 'Georgia', serif;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(33,140,118,0.10), 0 2px 8px rgba(49,87,109,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

/* ==============
   HEADER NAVBAR
   ============== */
header {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #E8F5FB;
  padding: 0 0 0 0;
  position: relative;
  z-index: 99;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 18px 16px 18px;
}
header nav a {
  color: #31576D;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #E8F5FB;
  color: #218C76;
}
header nav a.cta-btn {
  background: #31576D;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 18px;
  margin-left: 8px;
  box-shadow: 0 2px 8px 0 rgba(49,87,109,0.10);
  transition: background 0.20s, box-shadow 0.2s;
}
header nav a.cta-btn:hover, header nav a.cta-btn:focus {
  background: #226155;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(33,140,118,0.13);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #31576D;
  margin-left: auto;
  cursor: pointer;
  padding: 10px 16px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #226155;
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(49,87,109,0.98);
  z-index: 2000;
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  padding: 16px 18px 8px 18px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
  overflow: visible !important;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #E8F5FB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 24px 30px 30px 42px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.32rem;
  font-weight: 600;
  padding: 11px 10px;
  border-radius: 5px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #218C76;
  color: #fff;
}

/* ===============
   HERO & CTA BUTTONS
   =============== */
.cta-btn {
  background: #218C76;
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 32px;
  padding: 14px 34px;
  transition: background 0.18s, box-shadow 0.22s, transform 0.08s;
  box-shadow: 0 2px 16px 0 rgba(33,140,118,0.06);
  border: none;
  margin-top: 12px;
  display: inline-block;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #226155;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 28px 0 rgba(33,140,118,0.12);
}

/* ===============
   CARD LISTS / UL
   =============== */
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.07rem;
  font-family: 'Open Sans', serif;
}
.content-wrapper ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.07rem;
  color: #2D363E;
  line-height: 1.5;
}
.content-wrapper ul li img {
  width: 24px;
  min-width: 24px;
  margin-right: 4px;
}

/* Cards for features/services if .feature-item is used */
.feature-item img {
  width: 32px;
  margin-bottom: 2px;
}

/* ================
   FOOTER
   ================ */
footer {
  background: #31576D;
  color: #fff;
  padding: 46px 0 26px 0;
  font-size: 1rem;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
footer img {
  max-width: 70px;
  margin-right: 16px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: #E8F5FB;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  transition: color 0.17s;
  border-radius: 5px;
  padding: 4px 9px;
}
footer nav a:hover,footer nav a:focus {
  color: #218C76;
  background: rgba(255,255,255,0.08);
}
.footer-contact {
  color: #E8F5FB;
  font-size: 0.97rem;
}
.footer-contact img {
  width: 18px;
  margin-right: 8px;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #31576D;
  color: #fff;
  z-index: 4000;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -2px 28px rgba(33,87,109,0.11);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  animation: fadeBannerIn 0.5s cubic-bezier(.59,.07,.36,1) both;
}

@keyframes fadeBannerIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  background: #218C76;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px 0 rgba(33,140,118,0.07);
}
.cookie-btn.settings {
  background: #E8F5FB;
  color: #31576D;
}
.cookie-btn.reject {
  background: transparent;
  color: #E8F5FB;
  border: 1.5px solid #E8F5FB;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #226155;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #31576D;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #2D363E;
  color: #fff;
  border-color: #218C76;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-55%);
  background: #fff;
  color: #31576D;
  border-radius: 18px;
  box-shadow: 0 10px 46px rgba(49,87,109,0.13);
  z-index: 4100;
  padding: 34px 30px 28px 32px;
  width: 96vw;
  max-width: 405px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal .4s cubic-bezier(.59,.07,.36,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%,40px); }
  to   { opacity: 1; transform: translate(-50%,-55%); }
}
.cookie-modal h3 {
  font-size: 1.38rem;
  margin-top: 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 9px 0;
}
.cookie-modal label {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.07rem;
  color: #31576D;
}
.cookie-modal .toggle-switch {
  width: 44px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-modal .toggle-switch input { display: none; }
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #E8F5FB;
  border-radius: 24px;
  top: 0; left: 0;
  width: 44px; height: 24px;
  transition: background 0.18s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: #218C76;
}
.cookie-modal .toggle-slider:before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .essential {
  color: #218C76;
  font-weight: 700;
  font-size: 0.93rem;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #31576D;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #218C76;
}

/* Hide modal backdrop visually but allow for screen reader detection if needed */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(49,87,109,0.30);
  z-index: 100;
  animation: fadeBackdrop .19s;
}
@keyframes fadeBackdrop {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===============
   RESPONSIVENESS
   =============== */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  header nav { gap: 14px; }
  footer .content-wrapper { gap: 18px; }
}
@media (max-width: 768px) {
  .section { padding: 30px 8px; }
  .container { padding-left: 6px; padding-right: 6px; }
  .content-wrapper, .footer-contact {
    gap: 15px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 1030;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .content-grid { flex-direction: column; gap: 14px; }
  .card-container { flex-direction: column; gap: 16px; }
  .feature-item { gap: 10px; }
}
@media (max-width: 620px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.27rem; }
  .cta-btn { font-size: 0.98rem; padding: 11px 19px; }
  .card { padding: 16px 9px; }
  .testimonial-card { font-size: 1rem; padding: 14px 10px; }
  .container { padding-left: 2px; padding-right: 2px; }
}
@media (max-width: 468px) {
  .footer-contact, .feature-item {
    gap: 7px;
    font-size: 0.96rem;
  }
  .cookie-modal { padding: 18px 6px 14px 12px; min-width: 0; }
}

/* ===============
   MICRO-INTERACTIONS (SUBTLE)
   =============== */
.cta-btn, .cookie-btn, .card, .testimonial-card {
  transition: box-shadow 0.25s, background 0.15s, color 0.15s, transform 0.10s;
}
.card:active {
  transform: scale(0.98);
  box-shadow: 0 1.2px 4px rgba(33,140,118,0.04);
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(33,140,118,0.09);
}
.testimonial-card:hover {
  box-shadow: 0 6px 34px 0 rgba(33,140,118,0.12), 0 2px 10px rgba(49,87,109,0.14);
}

/* ===============
   MISCELLANEOUS
   =============== */
::-webkit-input-placeholder { color: #9099a5; }
::-moz-placeholder { color: #9099a5; }
:-ms-input-placeholder { color: #9099a5; }
::placeholder { color: #9099a5; }

/* Remove number input arrows */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* ====================
   Z-INDEX LAYERING
   ==================== */
header, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner, .cookie-modal {
  z-index: 999 !important;
}

/* ===================
   PRINT CLEANUP
   =================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  .section, .container { box-shadow: none !important; background: #fff !important; }
}

/* ===========
   ACCESSIBILITY
   =========== */
:focus-visible {
  outline: 2px dashed #218C76 !important;
  outline-offset: 2px;
}

/* Hide browser default focus ring when using custom focus */
:focus:not(:focus-visible) {
  outline: none;
}
