/* --- CSS RESET & BASE STYLES --- */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: linear-gradient(135deg, #E3E9F2 0%, #fff 100%);
  font-family: 'Open Sans', Arial, sans-serif;
  color: #24436C;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
a {
  color: #24436C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #A2B12B;
}
p + ul, p + ol { margin-top: 12px; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #24436C;
  letter-spacing: -0.5px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, li, blockquote, .legal-text {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #24436C;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: bold;
  color: #24436C;
}
small {
  font-size: 0.9rem;
  color: #5e7898;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 6px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(36,67,108,0.09);
  position: relative;
  transition: box-shadow 0.3s;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 100%;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(36,67,108,0.16);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f9fafc;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(36,67,108,0.08);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 400px;
}
.testimonial-card p {
  color: #24436C;
  font-size: 1.09rem;
}
.testimonial-card span {
  font-size: 1em;
  color: #364865;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: linear-gradient(90deg, #24436C 60%, #A2B12B 100%);
  padding: 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 24px 0 rgba(36,67,108,0.09);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 18px;
  position: relative;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  padding: 4px 16px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: rgba(162,177,43,0.16);
  color: #A2B12B;
}

.cta-button {
  background: linear-gradient(90deg,#A2B12B 0%,#E3E9F2 100%);
  color: #24436C;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  border: none;
  border-radius: 36px;
  padding: 12px 32px;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(36,67,108,0.04);
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  display: inline-block;
  text-align: center;
}
.cta-button:hover,
.cta-button:focus {
  background: linear-gradient(90deg,#24436C 0%,#A2B12B 100%);
  color: #fff;
  box-shadow: 0 8px 18px 0 rgba(36,67,108,0.11);
}
.cta-link {
  color: #A2B12B;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}
.cta-link:hover,
.cta-link:focus {
  color: #24436C;
  text-decoration: none;
}

/* --- MOBILE NAVIGATION STYLES --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #A2B12B;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 16px;
  z-index: 300;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(100deg, #24436C 95%, #A2B12B 127%);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.61,0.01,0.4,1);
  z-index: 800;
  display: flex;
  flex-direction: column;
  padding: 0 0 48px 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #A2B12B;
  font-size: 2.05rem;
  padding: 22px 34px 8px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 38px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  padding: 12px 6px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(162,177,43,0.23);
  color: #A2B12B;
}
@media (max-width: 1024px) {
  .main-nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none!important; }
}

/* --- HERO SECTIONS --- */
.hero, .contact-hero {
  background: linear-gradient(100deg, #E3E9F2 69%, #A2B12B 140%);
  padding: 60px 0 48px 0;
  margin-bottom: 48px;
}
.hero h1, .contact-hero h1 {
  font-size: 2.7rem;
  color: #24436C;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 18px;
}
.hero p, .contact-hero p {
  font-size: 1.16rem;
  color: #24436C;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .hero, .contact-hero { padding: 36px 0 30px 0; }
  .hero h1, .contact-hero h1 { font-size: 2rem; }
}

/* --- FEATURES GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 11px rgba(36,67,108,0.06);
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 218px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.3s;
}
.feature:hover {
  box-shadow: 0 4px 24px rgba(36,67,108,0.16);
}
.feature img {
  height: 46px;
  width: auto;
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 1.17rem;
  color: #24436C;
}
.feature p {
  font-size: 1rem;
  color: #364865;
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature {
    min-width: 90%;
    max-width: 100%;
  }
}

/* --- BLOG STYLES --- */
.blog-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.blog-snippet {
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 1px 5px rgba(36,67,108,0.08);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
}

.blog-list .content-wrapper {
  gap: 32px;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0 14px 0;
  justify-content: space-between;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,67,108,0.07);
  padding: 25px 18px;
  min-width: 220px;
  max-width: 380px;
}
.blog-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.blog-filter li {
  background: #E3E9F2;
  border-radius: 7px;
  color: #24436C;
  padding: 7px 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(36,67,108,0.08);
  padding: 22px 18px;
}
.faq-item h2 {
  font-size: 1.09rem;
  color: #24436C;
}
.faq-search {
  background: #E3E9F2;
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: 0 1px 7px rgba(36,67,108,0.06);
  margin-top: 16px;
}

/* --- SERVICES --- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 9px rgba(36,67,108,0.07);
  padding: 26px 18px;
  min-width: 220px;
  max-width: 380px;
  flex: 1 1 218px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.service-item:hover {
  box-shadow: 0 4px 20px rgba(36,67,108,0.15);
}
.services-list img {
  height: 40px;
  margin-bottom: 8px;
}

.process-stepper {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin: 20px 0 28px 0;
  font-size: 1.05rem;
}
.process-stepper li strong {
  color: #24436C;
}

/* --- TRUST & CERTS --- */
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.certification {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(36,67,108,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  min-width: 180px;
  max-width: 270px;
}
.certification img { height: 28px; width: auto; }

/* --- TEAM --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 9px rgba(36,67,108,0.07);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.team-member h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

/* --- CONTACT PAGE --- */
.contact-info, .contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  margin-bottom: 12px;
}
.contact-info > div, .contact-info-grid > div {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E3E9F2;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
}
.contact-info a, .contact-info-grid a {
  color: #24436C;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}
.contact-info a:hover, .contact-info-grid a:hover { color: #A2B12B; }

.privacy-disclaimer {
  background: #E3E9F2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.appointment-cta ul {
  margin-top: 16px;
  margin-left: 14px;
  margin-bottom: 0;
}
.appointment-cta li a {
  color: #A2B12B;
  text-decoration: underline;
  font-weight: 700;
}

/* --- FOOTER --- */
footer {
  background: #24436C;
  color: #fff;
  padding: 42px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.logo-mark {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #A2B12B;
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  color: #E3E9F2;
  line-height: 1.6;
}

/* --- LEGAL TEXT --- */
.legal-text {
  font-size: 1rem;
  color: #24436C;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 9px rgba(36,67,108,0.07);
  padding: 18px 16px;
  margin: 9px 0;
}
.legal-text h2 {
  font-size: 1.15rem;
  margin-top: 18px;
  margin-bottom: 12px;
}
.legal-text ul {
  margin-left: 20px;
}
.legal-text a {
  color: #A2B12B;
  text-decoration: underline;
}

/* --- BUTTONS --- */
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* --- Z-INDEX STUFF --- */
header,
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 2000;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg,#E3E9F2 60%,#A2B12B 130%);
  box-shadow: 0 -2px 24px rgba(36,67,108,0.17), 0 1px 0px #dbe3ef;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 18px 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.04rem;
  color: #24436C;
  z-index: 9999;
  animation: cookieBannerIn 0.4s 0.2s both;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  margin-right: 28px;
  flex: 1 1 260px;
  color: #24436C;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  border-radius: 24px;
  border: none;
  padding: 9px 22px;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  background: #24436C;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner button.cookie-settings-btn {
  background: #A2B12B;
  color: #24436C;
}
.cookie-banner button.cookie-reject-btn {
  background: #fff;
  color: #24436C;
  border: 1px solid #A2B12B;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #A2B12B;
  color: #24436C;
}
.cookie-banner button.cookie-settings-btn:hover { background: #24436C; color: #fff; border: none; }
.cookie-banner button.cookie-reject-btn:hover { background: #E3E9F2; color: #24436C; border: 1px solid #24436C; }

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 14px 8px 16px 8px; }
  .cookie-banner .cookie-text { margin-right: 0; margin-bottom: 6px; max-width: 100%; }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10001;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,67,108,0.21);
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.2s both;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeInBg 0.2s both;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 40px rgba(36,67,108,0.21);
  padding: 35px 28px;
  min-width: 320px;
  max-width: 96vw;
  color: #24436C;
  animation: cookieModalIn 0.37s cubic-bezier(0.61,0.01,0.4,1) both;
}
@keyframes cookieModalIn {
  from { transform: translateY(80px) scale(0.97); opacity: 0.4; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #24436C;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: #24436C;
}
.cookie-modal .cookie-category input[type=checkbox],
.cookie-modal .cookie-category input[type=radio]{
  accent-color: #A2B12B;
  width: 17px;
  height: 17px;
}
.cookie-modal .cookie-category .locked {
  color: #A2B12B;
  font-size: 0.93em;
  font-weight: 700;
}
.cookie-modal .cookie-category-desc {
  margin-left: 24px;
  margin-bottom: 7px;
  color: #6f86a6;
  font-size: 0.97em;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 24px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  transition: background 0.23s, color 0.16s;
}
.cookie-modal button.accept {
  background: #A2B12B;
  color: #24436C;
}
.cookie-modal button.reject {
  background: #fff;
  border: 1px solid #A2B12B;
  color: #24436C;
}
.cookie-modal button.save {
  background: #24436C;
  color: #fff;
}
.cookie-modal button.close {
  background: #E3E9F2;
  color: #24436C;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  opacity: 0.93;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 16px 8px;
    min-width: 0;
  }
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .footer-contact { font-size: 0.93rem; }
}
@media (max-width: 700px) {
  .feature-grid, .team-list, .card-container, .content-grid, .blog-highlights, .services-list, .trust-grid, .blog-grid, .contact-info, .contact-info-grid {
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    align-items: stretch;
  }
  .feature, .blog-snippet, .team-member, .card, .service-item, .blog-card,
  .certification {
    max-width: 100vw;
    min-width: 0;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }
  .content-wrapper { gap: 12px; }
  header .container { padding: 0 6px; }
  .contact-info > div, .contact-info-grid > div {
    min-width: unset;
    width: 100%;
  }
  .footer-nav,
  .footer-contact { margin-top: 18px; }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* Smooth transitions for interactive elements */
a, .cta-button, .main-nav a, .feature, .service-item, .blog-card, .blog-snippet, .card, .testimonial-card, .faq-item, .team-member, .certification {
  transition: box-shadow 0.22s cubic-bezier(0.61,0.01,0.4,1), color 0.18s, background 0.21s, transform 0.22s;
}

/* Hide outline for mouse, show on keyboard */
*:focus:not(:focus-visible) { outline: none; }
*:focus-visible { outline: 2px solid #A2B12B; outline-offset: 1px; }

::selection {
  background: #A2B12B;
  color: #fff;
}

/* --- SCROLLBAR MODERNIZATION --- */
body::-webkit-scrollbar {
  width: 8px;
  background: #E3E9F2;
}
body::-webkit-scrollbar-thumb {
  background: #A2B12B;
  border-radius: 16px;
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main, .container { max-width: 100%; padding: 0; }
}
