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

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #FAF8F6;
  color: #232326;
  font-family: 'Merriweather', Georgia, Times New Roman, serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #457B9D;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
input, button, textarea, select {
  font: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, Times New Roman, serif;
  color: #1D3557;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 18px; line-height: 1.25; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 10px; }

p, li, .btn-primary {
  font-family: 'Open Sans', Arial, 'Liberation Sans', sans-serif;
}

p { margin-bottom: 18px; }
strong, b {
  font-weight: 700;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Elegant Classic Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(29,53,87,0.06);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(29,53,87,0.03);
  padding: 24px 18px;
  min-width: 250px;
  min-height: 140px;
}
.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: #F7F4F1;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(29,53,87,0.05);
  border-left: 5px solid #457B9D;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8F6F3;
  border-radius: 12px;
  padding: 20px 18px;
  min-width: 220px;
  box-shadow: 0 1px 4px rgba(29,53,87,0.04);
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 4px 18px rgba(69,123,157,0.07);
  transform: translateY(-3px);
}

.trust-badges { display: flex; flex-direction: row; gap: 18px; align-items: center; margin-top: 10px; }
.trust-badges img { height: 34px; width: auto; opacity: 0.9; transition: transform 0.18s; }
.trust-badges img:hover { transform: scale(1.05) rotate(-3deg); }

/* HERO Section / Call to Action */
.hero {
  background: #F1FAEE url('../assets/hero-bg.svg') bottom right no-repeat;
  min-height: 380px;
  padding: 64px 0 36px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container { align-items: center; }
.hero .content-wrapper {
  align-items: center;
  max-width: 680px;
  text-align: center;
  gap: 20px;
}
.call-to-action, .cta-contact, .cta-services, .cta-process {
  background: #1D3557;
  color: #F1FAEE;
  border-radius: 20px;
  padding: 60px 20px;
  margin-bottom: 44px;
  box-shadow: 0 2px 20px rgba(29,53,87,0.09);
}
.call-to-action h2, .cta-contact h2, .cta-services h2, .cta-process h2 {
  color: #F1FAEE;
}
.call-to-action p, .cta-contact p, .cta-services p, .cta-process p {
  color: #e5f2fd;
}

/* MAIN NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0 12px 0;
  background: #fff;
  z-index: 25;
  position: relative;
}
.main-nav a {
  font-family: 'Open Sans', Arial, 'Liberation Sans', sans-serif;
  font-size: 17px;
  color: #1D3557;
  padding: 8px 14px;
  border-radius: 22px;
  transition: background 0.19s, color 0.19s;
}
.main-nav a.btn-primary {
  background: #457B9D;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(29,53,87,0.09);
  border-radius: 25px;
  padding: 9px 26px;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin-left: 10px;
  transition: background 0.17s, box-shadow 0.13s, transform 0.09s;
}
.main-nav a.btn-primary:hover, .main-nav a.btn-primary:focus {
  background: #1D3557;
  color: #F1FAEE;
  box-shadow: 0 4px 18px rgba(29,53,87,0.18);
  transform: translateY(-2px);
}
.main-nav a:hover:not(.btn-primary), .main-nav a:focus:not(.btn-primary) {
  background: #F1FAEE;
  color: #457B9D;
}
.main-nav img {
  height: 44px;
  margin-right: 24px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 2rem; color: #1D3557;
  position: absolute; right: 20px; top: 16px;
  z-index: 41;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F1FAEE;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; height: 100%; width: 100vw;
  background: rgba(29,53,87, 0.97);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.68,-0.6,.32,1.6);
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F1FAEE;
  font-size: 2rem;
  position: absolute;
  right: 24px; top: 22px;
  cursor: pointer;
  z-index: 101;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #457B9D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 74px;
  padding: 28px 34px 28px 34px;
}
.mobile-nav a {
  color: #F1FAEE;
  font-size: 1.3rem;
  padding: 12px 0;
  border-bottom: 1px solid #457B9D;
  width: 100%;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.13s;
  border-radius: 6px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1FAEE;
  color: #1D3557;
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: #1D3557;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 18px 28px;
  box-shadow: 0 -2px 18px rgba(29,53,87,0.13);
  justify-content: center;
  gap: 24px;
  font-size: 1rem;
  animation: cookie-slidein 0.7s cubic-bezier(.8,.2,.19,1.03);
}
@keyframes cookie-slidein {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin: 0 5px;
  padding: 8px 22px;
  border-radius: 19px;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: #457B9D;
  color: #fff;
  margin-right: 6px;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #F1FAEE;
  color: #1D3557;
}
.cookie-banner .reject {
  background: #fff;
  color: #1D3557;
  border: 1px solid #457B9D;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #457B9D;
  color: #fff;
}
.cookie-banner .settings {
  background: transparent;
  color: #F1FAEE;
  text-decoration: underline;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  color: #b3cee5;
  background: transparent;
}

.cookie-modal-backdrop {
  position: fixed; z-index: 2500;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(34,40,49,0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.3s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: #1D3557;
  border-radius: 18px;
  box-shadow: 0 8px 45px rgba(29,53,87,0.22);
  max-width: 400px;
  width: 92vw;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadein 0.25s;
  z-index: 2501;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #1D3557;
}
.cookie-modal .cookie-modal-group {
  display: flex; flex-direction: column; gap: 10px; margin: 12px 0;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F1FAEE;
}
.cookie-modal .cookie-switch {
  position: relative; width: 40px; height: 22px;
}
.cookie-modal .cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #CFD8DC;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-modal .cookie-switch input:checked + .cookie-slider {
  background: #457B9D;
}
.cookie-modal .cookie-slider:before {
  position: absolute; content: "";
  height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(.68,-0.6,.32,1.6);
}
.cookie-modal .cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(17px);
}
.cookie-modal .cookie-close {
  position: absolute; top: 18px; right: 16px;
  background: none; border: none;
  color: #457B9D; font-size: 1.5rem; cursor: pointer;
  padding: 3px 8px;
  border-radius: 8px;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: #F1FAEE;
}
.cookie-modal .cookie-actions {
  display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end;
}
.cookie-modal .cookie-actions button {
  border-radius: 6px; padding: 8px 18px; font-size: 1rem; font-weight: 600;
  border: none;
  transition: background 0.15s, color 0.13s;
  background: #457B9D; color: #fff;
}
.cookie-modal .cookie-actions .reject {
  background: #CFD8DC; color: #1D3557;
}
.cookie-modal .cookie-actions .accept:hover, .cookie-modal .cookie-actions .accept:focus {
  background: #1D3557; color: #F1FAEE;
}
.cookie-modal .cookie-actions .reject:hover, .cookie-modal .cookie-actions .reject:focus {
  background: #F1FAEE; color: #1D3557;
}

/* Features section grid (flex!) */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 20px;
  justify-content: flex-start;
  margin-top: 24px;
}

/* FAQ */
.faq-section {
  background: #fff;
  border-radius: 16px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 1px 8px rgba(29,53,87,0.04);
}
.faq-list {
  display: flex; flex-direction: column; gap: 24px;
}
.faq-item h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
  color: #457B9D;
}
.faq-item p {
  color: #33506a;
}
.faq-contact-prompt {
  margin-top: 28px;
  font-style: italic;
  font-size: 1.08rem;
  color: #44607B;
}
.faq-contact-prompt a {
  color: #1D3557;
  text-decoration: underline;
}

/* Card Utility */
.card-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start;
}

/* Policy and Legal Sections */
.policy, .gdpr-policy, .cookie-policy, .terms-of-use {
  background: #fff;
  border-radius: 16px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 1px 8px rgba(29,53,87,0.04);
}

/* Footer */
footer {
  width: 100%;
  background: #232326;
  color: #F1FAEE;
  margin-top: 60px;
  letter-spacing: 0.01em;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 38px 20px 22px 20px;
}
.footer-wrapper img[src*="logo-mark"] {
  width: 54px;
  height: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex; flex-direction: column; gap: 9px;
}
.footer-nav a {
  color: #F1FAEE;
  opacity: 0.87;
  font-size: 1.06rem;
  transition: color 0.16s, opacity 0.13s, text-decoration 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #457B9D; opacity: 1;
  text-decoration: underline;
}

.footer-contact, .footer-hours { font-size: 1rem; line-height: 1.5; }
.footer-contact p, .footer-hours p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d8e2eb;
  margin-bottom: 5px;
}
.footer-contact img, .footer-hours img {
  width: 20px; height: 20px; opacity: 0.85;
}

/* THANK YOU PAGE */
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 60px 0;
}

/* Utility Classes */
.text-section { margin-bottom: 40px; }
.text-section ul { list-style: disc inside; margin-left: 1rem; }
.text-section li { margin-bottom: 12px; }

/* Animations */
.btn-primary, .main-nav a.btn-primary {
  transition: background 0.16s, box-shadow 0.18s, color 0.13s, transform 0.15s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1D3557 !important;
  color: #F1FAEE !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px rgba(29,53,87,0.14);
}

/* Reusable Button */
.btn-primary {
  display: inline-block;
  background: #457B9D;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 11px 36px;
  font-size: 1.16rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 9px;
  box-shadow: 0 2px 8px rgba(29,53,87,0.06);
}
.btn-primary:active {
  transform: scale(0.96);
}

/* Inputs & forms (if any) */
input, textarea, select {
  border: 1px solid #CFD8DC;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #457B9D;
}

/* Responsive Design */
@media (max-width: 1150px) {
  .container, .footer-wrapper {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .footer-wrapper { gap: 22px; padding: 32px 10px 16px 10px; }
  .section, .policy, .gdpr-policy, .cookie-policy, .terms-of-use, .faq-section {
    padding: 32px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 0; padding-right: 0;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 4vw;
  }
  .testimonial-card, .feature-item {
    min-width: 0;
    width: 100%;
  }
  .feature-grid, .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .call-to-action, .cta-contact, .cta-services, .cta-process {
    padding: 30px 2vw;
  }
  .hero .content-wrapper {
    padding: 0 4vw;
  }
  .hero {
    min-height: 220px;
    padding-top: 32px; padding-bottom: 16px;
    background-size: 56vw auto;
  }
  .cookie-banner { flex-direction: column; padding: 16px 5vw; gap: 12px; font-size: 0.95rem; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1rem; }
  .btn-primary, .main-nav a.btn-primary, .cookie-banner button, .cookie-modal .cookie-actions button {
    font-size: 1rem;
    padding: 8px 10vw;
  }
  .container, .footer-wrapper { padding-left: 0; padding-right: 0; }
}

/* Hide mobile menu when not open */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
}

/* Z-index stacking for popups and header */
header, .main-nav, .mobile-menu-toggle { z-index: 50; }
.mobile-menu { z-index: 100; }
.cookie-banner { z-index: 1000; }

/* Ensure no element overlap */
section, .section, .policy, .gdpr-policy, .cookie-policy, .footer-wrapper {
  margin-bottom: 60px;
}

/* Decorative: prevent selection on nav/btns */
.main-nav a, .btn-primary, .mobile-menu-toggle, .mobile-menu-close {
  user-select: none;
}
/* Misc Fixes for Extra Spacing */
.card:not(:last-child), .testimonial-card:not(:last-child), .feature-item:not(:last-child), .faq-item:not(:last-child) {
  margin-bottom: 20px;
}

/*--- END ---*/
