/* ----------- CSS RESET & NORMALIZATION ----------- */
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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #19314A;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #319989;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #19314A;
}
ul, ol {
  padding-left: 1.4em;
  margin-top: 12px;
  margin-bottom: 16px;
}
li + li { margin-top: 6px; }

::-webkit-input-placeholder { color: #b0b8be; }
::-moz-placeholder { color: #b0b8be; }
:-ms-input-placeholder { color: #b0b8be; }
::placeholder { color: #b0b8be; }

/* ----------- TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: #19314A;
  margin-bottom: 14px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
.subheadline {
  color: #319989;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

p, address, em, span, ul, ol, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #233B53;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
}
address {
  font-style: normal;
  color: #19314A;
  margin-bottom: 12px;
}
em {
  font-style: italic;
  color: #319989;
}

/* ----------- LAYOUT CONTAINERS ----------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: none;
}
.text-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section,
.hero,
.features,
.services,
.contact,
.thankyou,
.legal,
.about,
.testimonial {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}

@media (max-width: 768px) {
  .section,
  .hero,
  .features,
  .services,
  .contact,
  .thankyou,
  .legal,
  .about,
  .testimonial {
    padding: 28px 0 28px 0;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ----------- MAIN NAVIGATION ----------- */
header {
  background: #fff;
  border-bottom: 1px solid #ECEFF2;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  background: none;
  font-size: 1rem;
}
.main-nav img {
  height: 45px;
  width: auto;
  margin-right: 18px;
}
.main-nav a {
  color: #19314A;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background 0.16s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F7F7F2;
  color: #319989;
}
.main-nav .cta-primary {
  margin-left: auto;
  color: #fff;
  background: #319989;
  border-radius: 24px;
  font-weight: 600;
  padding: 9px 26px;
  box-shadow: 0 1px 10px 0 rgba(25,49,74,0.07);
  letter-spacing: 0.02rem;
  transition: background 0.2s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: #19314A;
  color: #fff;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
    font-size: 0.98rem;
  }
  .main-nav img {
    height: 38px;
    margin-right: 10px;
  }
}

@media (max-width: 780px) {
  .main-nav { display: none; }
  .main-nav .cta-primary { display: none; }
  header { padding-right: 0; }
}

/* ----------- MOBILE BURGER MENU ----------- */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 2.1rem;
  color: #319989;
  cursor: pointer;
  outline: none;
  position: absolute;
  right: 10px;
  top: 12px;
  z-index: 101;
  padding: 2px 10px;
}
@media (max-width: 780px) {
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 94vw;
  max-width: 370px;
  box-shadow: -8px 0 32px rgba(25,49,74,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.57,0,0.42,1);
  z-index: 200;
  overflow-y: auto;
  padding-top: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  color: #319989;
  background: none;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  margin-bottom: 5px;
  margin-right: 18px;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #19314A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px 24px 32px;
}
.mobile-nav a {
  color: #19314A;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 0.17s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #31998912;
  color: #319989;
}

@media (max-width: 480px) {
  .mobile-menu {
    max-width: none;
    width: 100vw;
    padding-top: 18px;
  }
  .mobile-nav {
    padding: 24px 12px 16px 20px;
    gap: 5px;
  }
  .mobile-nav a {
    font-size: 1.09rem;
    padding: 8px 4px;
  }
}

/* --- Overlay when mobile menu is open --- */
body.mobile-menu-open {
  overflow: hidden;
}

/* ----------- HERO SECTIONS ----------- */
.hero {
  background: #F7F7F2;
  border-radius: 0 0 32px 32px;
  min-height: 240px;
  display: flex;
  align-items: center;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.hero h1 {
  color: #19314A;
  font-size: 2.5rem;
  margin-bottom: 6px;
  line-height: 1.1;
}
.hero .subheadline {
  margin-bottom: 18px;
  margin-top: 4px;
  color: #319989;
  font-size: 1.02rem;
}
.hero .cta-primary {
  margin-top: 14px;
}

@media (max-width: 600px) {
  .hero {
    min-height: unset;
    border-radius: 0 0 14px 14px;
    margin-bottom: 30px;
  }
  .hero h1 {
    font-size: 1.57rem;
  }
}

/* ----------- BUTTONS ----------- */
.cta-primary,
.cta-secondary {
  display: inline-block;
  cursor: pointer;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  outline: none;
  border-radius: 24px;
  padding: 9px 25px;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cta-primary {
  background: #319989;
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(25,49,74,0.07);
}
.cta-primary:hover, .cta-primary:focus {
  background: #19314A;
  color: #fff;
}
.cta-secondary {
  background: #fff;
  color: #319989;
  border: 1.5px solid #319989;
  margin-top: 10px;
  margin-bottom: 6px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #319989;
  color: #fff;
  border-color: #19314A;
}

/* ---------- FEATURE GRID with FLEXBOX ---------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 20px;
}
.feature-column {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 9px 0 rgba(25,49,74,0.08);
  padding: 27px 20px 21px 20px;
  flex: 1 1 210px; /* grow, shrink, min width */
  min-width: 210px;
  max-width: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-column img {
  height: 38px;
  width: 38px;
  margin-bottom: 5px;
  margin-top: 0;
}
.feature-column h3 {
  font-size: 1.2rem;
  margin-bottom: 7px;
  color: #19314A;
}
.feature-column p {
  color: #233B53;
  font-size: 1rem;
}
.feature-column:hover, .feature-column:focus-within {
  box-shadow: 0 7px 28px 0 rgba(49,153,137,0.14);
  transform: translateY(-5px) scale(1.025);
}

@media (max-width: 980px) {
  .feature-grid {
    gap: 20px;
  }
  .feature-column { min-width: 180px; max-width: 98vw; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-column {
    width: 100%;
    min-width: unset;
    margin-right: 0;
    align-items: flex-start;
  }
}

/* ----------- SECTION LAYOUTS ----------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(25,49,74,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 22px 0 rgba(49,153,137,0.14);
}
.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;
}

@media (max-width: 990px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section { padding: 28px 8px; margin-bottom: 30px; }
}

/* ----------- TESTIMONIALS & SLIDER ----------- */
.testimonial {
  background: #F7F7F2;
  border-radius: 24px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  justify-content: flex-start;
}
.testimonial-card {
  flex: 1 1 260px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 22px 0 rgba(25,49,74,.07);
  min-width: 240px;
  max-width: 350px;
  padding: 24px 22px 20px 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
  color: #19314A;
}
.testimonial-card p {
  color: #19314A;
  font-size: 1.03rem;
  font-weight: 400;
  margin-bottom: 5px;
}
.testimonial-card span {
  color: #319989;
  font-size: 0.97rem;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(49,153,137,0.12);
  transform: translateY(-3px) scale(1.012);
}
@media (max-width: 900px) {
  .testimonial-slider { flex-direction: column; gap: 16px; }
  .testimonial-card { min-width: unset; max-width: 95vw; }
}

/* ----------- ADDRESS / CONTACT ----------- */
.contact address,
.contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.contact img {
  height: 18px;
  width: 18px;
}

/* ----------- LEGAL & ABOUT ----------- */
.legal, .about, .thankyou {
  background: #F7F7F2;
  border-radius: 20px;
}
.legal h1, .thankyou h1 { color: #319989; font-size: 2rem; }
.legal h2, .thankyou h2 { color: #19314A; font-size: 1.25rem; }
.legal h3 { color: #319989; font-size: 1rem; }

/* ----------- FOOTER ----------- */
footer {
  background: #fff;
  border-top: 1px solid #ECEFF2;
  padding: 28px 16px 24px 16px;
  margin-top: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #19314A;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 3px 7px;
  border-radius: 7px;
  transition: background 0.16s, color 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #31998912;
  color: #319989;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  color: #B0B8BE;
  font-size: 0.98rem;
}
@media (max-width: 480px) {
  .footer-nav, .footer-info { gap: 10px; font-size: 0.93rem; }
  footer { padding: 22px 3px 18px 3px; }
}

/* ----------- COOKIE BANNER ----------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid #ECEFF2;
  box-shadow: 0 -2px 14px 0 rgba(25,49,74,0.08);
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: cookieBannerSlideUp 0.7s cubic-bezier(0.44,0,0.56,1) 1;
}
@keyframes cookieBannerSlideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #19314A;
  font-size: 1rem;
  line-height: 1.5;
  margin-right: 12px;
  max-width: 480px;
}
.cookie-banner__btn {
  padding: 9px 22px;
  font-size: 1rem;
  border: none;
  border-radius: 19px;
  background: #F7F7F2;
  color: #319989;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-left: 7px;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.18s;
  box-shadow: 0 2px 8px 0 rgba(25,49,74,0.06);
}
.cookie-banner__btn.accept {
  background: #319989;
  color: #fff;
  margin-left: 0;
  margin-right: 7px;
}
.cookie-banner__btn.reject {
  background: #F7F7F2;
  color: #19314A;
  border: 1.2px solid #19314A;
}
.cookie-banner__btn.settings {
  background: #fff;
  color: #319989;
  border: 1.2px solid #319989;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: #19314A;
  color: #fff;
}
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px 18px 8px;
  }
  .cookie-banner__text { max-width: 94vw; min-width: 0; margin-right: 0; }
}

/* -------- COOKIE SETTINGS MODAL -------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 800;
  background: rgba(25,49,74,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.3s;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 38px rgba(25,49,74,0.14);
  padding: 34px 28px 28px 28px;
  max-width: 420px;
  width: 100%;
  z-index: 801;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalSlideUp 0.2s cubic-bezier(0.44,0,0.56,1);
}
@keyframes cookieModalSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #319989;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #19314A;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #19314A;
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #319989;
  background: #F7F7F2;
  border-radius: 8px;
}
.cookie-category .always-enabled {
  color: #319989;
  font-size: 0.95rem;
  font-weight: bold;
  background: #e0f5f3;
  border-radius: 5px;
  padding: 3px 7px;
  margin-left: 7px;
}
.cookie-modal__footer {
  display: flex;
  gap: 17px;
  margin-top: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal__btn {
  padding: 9px 22px;
  border: none;
  border-radius: 19px;
  background: #319989;
  color: #fff;
  font-weight: 600;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.21s;
}
.cookie-modal__btn.cancel {
  background: #fff;
  color: #319989;
  border: 1.4px solid #319989;
}
.cookie-modal__btn:hover,
.cookie-modal__btn:focus {
  background: #19314A;
  color: #fff;
}

@media (max-width: 540px) {
  .cookie-modal { padding: 23px 7px 20px 12px; max-width: 97vw; }
  .cookie-category label { font-size: 0.98rem; }
}

/* ----------- FORMS (future-proof) ----------- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  border-radius: 8px;
}
input, textarea, select {
  padding: 9px 14px;
  border: 1px solid #ECEFF2;
  background: #fff;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: #319989;
  outline: none;
  background: #F7F7F2;
}

button {
  cursor: pointer;
}

/* ----------- UTILITIES ----------- */
.hide { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ----------- SPACING RULES ----------- */
main > section,
.main > .section {
  margin-bottom: 60px !important;
}
section .container + .container {
  margin-top: 24px;
}

/* ----------- FLEXBOX ALIGNMENTS ----------- */
.features, .services, .testimonial, .about, .contact, .legal, .thankyou {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}
@media (max-width: 690px){
  .features, .services, .testimonial, .about, .contact, .legal, .thankyou {
    padding-right: 0;
    padding-left: 0;
  }
}

/* ------- MICRO-INTERACTIONS / ANIMATION ------- */
.cta-primary,
.cta-secondary,
.cookie-banner__btn,
.cookie-modal__btn,
.main-nav a,
.footer-nav a,
.feature-column,
.card,
.testimonial-card {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}
@media (hover: none) {
  .feature-column:active, .card:active, .testimonial-card:active {
    transform: scale(0.98);
  }
}

/* ------- SCROLLBAR (minimal) ------- */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: #ECEFF2;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #fff;
}

/* ------- END OF CSS ------- */
