/* 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, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, 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 {
  scroll-behavior: smooth;
  font-size: 16px;
  min-height: 100%;
  background: #F8FAFC;
}
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #234765;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #234765;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7C5AA1;
  outline: none;
}
ul, ol {
  list-style: none;
  margin-left: 0;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #234765;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
}
.subheadline {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #486485;
  font-size: 1.125rem;
  margin-bottom: 18px;
  font-weight: 400;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(35,71,101,0.09);
}
.section:last-child {
  margin-bottom: 0;
}
.text-section {
  background: #F5F7FA;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(35,71,101,0.04);
  padding: 32px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(35,71,101,0.08);
  padding: 32px 24px;
  flex: 1 1 340px;
  min-width: 280px;
  transition: box-shadow 0.2s;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 4px 18px 6px rgba(124,90,161,0.09);
}
.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;
  justify-content: space-between;
}

/* Feature & Services List */
.features-list,
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
}
.features-list li,
.services-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8fafd;
  border-radius: 14px;
  padding: 28px 22px 24px 22px;
  box-shadow: 0 1px 5px 0 rgba(35,71,101,0.06);
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.features-list li:hover,
.services-list li:hover {
  box-shadow: 0 4px 16px 2px rgba(35,71,101,0.08), 0 2px 8px 0 rgba(124,90,161,0.06);
}
.features-list img,
.services-list img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

/* Step Timeline for Process Page */
.step-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin: 30px 0 18px 0;
  padding-left: 0;
  counter-reset: step;
}
.step-timeline li {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 180px;
  background: #f5f7fa;
  border-radius: 13px;
  padding: 20px 16px;
  box-shadow: 0 2px 6px 0 rgba(35,71,101,0.05);
  position: relative;
  min-width: 160px;
  font-size: 1rem;
}
.step-timeline img {
  width: 28px;
  height: 28px;
}

/* FAQ Accordion */
.faq-accordion {
  width: 100%;
  margin: 0 0 20px 0;
}
.faq-accordion dt {
  font-weight: bold;
  margin-top: 20px;
  font-size: 1.125rem;
  color: #234765;
  cursor: pointer;
  transition: color 0.18s;
}
.faq-accordion dt:hover {
  color: #7C5AA1;
}
.faq-accordion dd {
  font-size: 1rem;
  color: #46556A;
  margin: 6px 0 12px 18px;
  padding-left: 6px;
  border-left: 3px solid #E2D1C3;
}
.help-cta {
  margin-top: 16px;
  font-size: 1rem;
  color: #234765;
}
.help-cta a {
  color: #7C5AA1;
  font-weight: 600;
  margin-left: 5px;
  text-decoration: underline;
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7FAFC;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(35,71,101,0.06);
  margin-bottom: 20px;
  margin-top: 12px;
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 14px 0 rgba(124,90,161,0.1);
  background: #fff;
}
.testimonial-card blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: #234765;
  quotes: "\201C" "\201D";
  margin: 0 0 6px 0;
  line-height: 1.5;
}
.testimonial-meta {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #486485;
  font-size: 0.95rem;
}
.testimonial-meta strong {
  color: #234765;
  font-weight: bold;
}
.testimonial-meta span {
  color: #7C5AA1;
  margin-left: 12px;
  letter-spacing: 1px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* CTA Buttons */
.cta-button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #234765;
  color: #fff;
  border-radius: 35px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.13s;
  box-shadow: 0 2px 6px 0 rgba(35,71,101,0.09);
  margin-top: 8px;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.cta-button:hover,
.cta-button:focus,
.nav-cta:hover,
.nav-cta:focus {
  background: #7C5AA1;
  color: #fff;
  box-shadow: 0 4px 13px 3px rgba(124,90,161,0.13);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

/* Header & Navigation */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 6px 0 rgba(35,71,101,0.06);
  position: relative;
  z-index: 20;
}
header .container {
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #234765;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #E2D1C3;
  color: #7C5AA1;
}
.nav-cta {
  background: #7C5AA1;
  color: #fff;
  font-weight: 700;
  padding: 8px 22px;
  margin-left: 14px;
  box-shadow: 0 2px 8px 0 rgba(124,90,161,0.09);
}

/* Footer */
footer {
  background: #234765;
  color: #fff;
  padding: 46px 0 22px 0;
  margin-top: 70px;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
footer img {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 7px;
}
footer nav a {
  color: #E2D1C3;
  font-size: 1rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #7C5AA1;
}
.footer-contact {
  color: #eaeaea;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  vertical-align: sub;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 8px;
}
.footer-social a img {
  filter: brightness(2) grayscale(70%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
  height: 23px;
  width: 23px;
}
.footer-social a:hover img {
  filter: brightness(1.5) sepia(0.4) hue-rotate(220deg);
  opacity: 1;
}

/* Lists, Blockquotes, Misc */
ul, ol {
  margin: 0 0 18px 22px;
  padding: 0;
  color: #46556A;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
blockquote {
  border-left: 4px solid #E2D1C3;
  padding-left: 16px;
  font-style: italic;
  margin-bottom: 8px;
}
strong {
  color: #234765;
  font-weight: 700;
}

/* Contact Details on Contact Page */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-details li {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  color: #234765;
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 9px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 100vw;
  padding: 22px 18px 18px 18px;
  background: #234765;
  color: #fff;
  box-shadow: 0 -2px 16px 0 rgba(35,71,101, 0.12);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(.73,.03,.43,.89);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(110%);
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-banner button {
  background: #E2D1C3;
  color: #234765;
  border: none;
  padding: 8px 22px;
  border-radius: 7px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.18s, color 0.15s, box-shadow 0.2s;
}
.cookie-banner button.accept {
  background: #7C5AA1;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #B09AC7;
  color: #234765;
  outline: none;
}
.cookie-banner button.accept:hover {
  background: #5a3e7a;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 240;
  background: rgba(35,71,101,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #234765;
  border-radius: 16px;
  max-width: 400px;
  width: 96vw;
  padding: 34px 28px 24px 28px;
  box-shadow: 0 4px 24px 0 rgba(35,71,101,0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  animation: fadeInPopup 0.38s cubic-bezier(.73,.03,.43,.89);
}
@keyframes fadeInPopup {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal-content h3 { font-size: 1.25rem; margin-bottom: 10px; }
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 10px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #486485;
}
.cookie-category input[type=checkbox] {
  accent-color: #7C5AA1;
  width: 20px;
  height: 20px;
}
.cookie-category.essential label {
  color: #B09AC7;
  font-weight: bold;
}
.cookie-modal-content .cookie-btn-group {
  gap: 10px;
  margin: 12px 0 0 0;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #B09AC7;
  cursor: pointer;
  padding: 0 7px;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: #7C5AA1;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: #234765;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 13px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.23s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #7C5AA1;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  z-index: 150;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #234765;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(.73,.03,.43,.89);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px 0 rgba(35,71,101,0.21);
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #B09AC7;
  margin: 20px 25px 0 0;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E2D1C3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 45px 0 0 0;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.19rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s;
  width: 100%;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7C5AA1;
  color: #fff;
}

/* Confirmation Message in thanks.php */
.confirmation-message {
  background: #F5F7FA;
  border-radius: 10px;
  padding: 24px 14px 18px 18px;
  margin-bottom: 24px;
  font-size: 1.04rem;
  color: #234765;
  line-height: 1.6;
  box-shadow: 0 1px 5px 0 rgba(35,71,101,0.04);
}

/* Responsive Design & Flexbox Rules */
@media (max-width: 992px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 860px) {
  .features-list,
  .services-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .section {
    padding: 22px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-contact {
    font-size: 0.99rem;
  }
  .features-list, .services-list {
    flex-direction: column;
    gap: 16px;
  }
  .features-list li, .services-list li {
    min-width: 0;
    width: 100%;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 22px 10px;
  }
  .content-grid {
    gap: 14px;
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 13px;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    height: auto;
    padding: 13px 0;
    gap: 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  footer .content-wrapper {
    align-items: flex-start;
  }
  .section {
    margin-bottom: 22px;
    border-radius: 9px;
  }
  .testimonial-card {
    border-radius: 7px;
    padding: 13px 4px;
  }
  .text-section {
    padding: 18px 4px;
    border-radius: 8px;
  }
}

/* Animations, Transitions & Micro-Interactions */
.cta-button, .nav-cta, button, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.16s, box-shadow 0.14s, transform 0.18s;
}
.card, .features-list li, .services-list li, .testimonial-card {
  transition: box-shadow 0.18s, background 0.18s;
}
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
}

/* Accessibility focus styles */
a:focus, button:focus, .cta-button:focus, .nav-cta:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #B09AC7;
  outline-offset: 2px;
}

/* Z-Index for overlays */
.mobile-menu, .mobile-menu.open { z-index: 150; }
.cookie-modal.active { z-index: 240; }
.cookie-banner { z-index: 200; }

/* General Utility */
::-webkit-scrollbar {
  width: 9px;
  background: #f8fafd;
}
::-webkit-scrollbar-thumb {
  background: #E2D1C3;
  border-radius: 7px;
}

/* Hide visually but accessible to screen readers */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
  z-index: -99;
}
