/* 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;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1F4959;
  background: #F7F7F2;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1F4959;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E2C044;
}
button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1F4959;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 12px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1rem; }

p, li, blockquote { font-size: 1rem; }
strong { font-weight: 700; }
em, i { font-style: italic; }
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Layout Containers ------------------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
}
.hero {
  background: #ffffff;
  padding: 60px 0 40px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 32px rgba(31, 73, 89, 0.06);
  margin-bottom: 50px;
}

/* Flexbox Grids & Patterns ------------- */
.features-grid, .services-grid, .team-grid, .blog-posts, .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
}
.features-grid, .services-grid, .team-grid {
  justify-content: space-between;
}
.testimonial-cards {
  gap: 24px;
  justify-content: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.05);
  padding: 26px 20px;
  transition: box-shadow 0.22s;
}
.card:hover, .feature:hover, .service:hover, .team-member:hover {
  box-shadow: 0 4px 18px rgba(31, 73, 89, 0.11);
}
.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: 16px;
  padding: 20px;
  background: #F7F7F2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.08);
  min-width: 275px;
  max-width: 370px;
  flex: 1 1 280px;
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
}
.testimonial-card blockquote {
  margin: 0;
  color: #1F4959;
  font-size: 1rem;
  line-height: 1.5;
  font-style: italic;
  font-family: 'Roboto', sans-serif;
}
.feature-item, .feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px 24px 20px;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.05);
  flex: 1 1 250px;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.feature img {
  width: 46px;
  height: 46px;
  background: #F7F7F2;
  border-radius: 9px;
  object-fit: contain;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px 24px 20px;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.05);
  flex: 1 1 250px;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.service img {
  width: 44px;
  height: 44px;
  background: #F7F7F2;
  border-radius: 9px;
}
.team-grid {
  gap: 24px;
  justify-content: flex-start;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(31,73,89,0.05);
  min-width: 180px;
  max-width: 240px;
  flex: 1 1 160px;
}
.team-member img {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
}

.blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(31,73,89,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.blog-post:hover {
  box-shadow: 0 4px 18px rgba(31,73,89,0.13);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(31,73,89,0.03);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

/* Call to Action Section --------------- */
.cta-section {
  width: 100%;
  background: #F7F7F2;
  border-radius: 18px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 50px;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.06);
}
.cta-section h2 {
  text-align: center;
  font-size: 1.3rem;
}

/* Buttons & Links ---------------------- */
.cta-primary, .cta-primary[href], form button[type="submit"] {
  background: #1F4959;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.22s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.05);
  border: none;
}
.cta-primary:hover, .cta-primary:focus, form button[type="submit"]:hover, form button[type="submit"]:focus {
  background: #E2C044;
  color: #1F4959;
  box-shadow: 0 4px 26px rgba(31, 73, 89, 0.15);
}
button.cta-primary:active {
  background: #cda136;
}
/* Buttons inside forms and banners */
form button[type="submit"], .cookie-banner .cookie-btn {
  background: #1F4959;
  color: #fff;
  border-radius: 30px;
  padding: 11px 28px;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
}
form button[type="submit"]:hover, .cookie-banner .cookie-btn:hover {
  background: #E2C044;
  color: #1F4959;
}

/* Navigation Bar ----------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31,73,89,0.04);
  padding: 0;
  z-index: 100;
  position: relative;
}
.main-nav {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 10px 20px 0 20px;
  min-height: 60px;
  font-family: 'Montserrat', sans-serif;
}
.main-nav a {
  font-size: 1rem;
  color: #1F4959;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.cta-primary {
  margin-left: auto;
  margin-right: 0;
  padding: 8px 26px;
}
.main-nav a:not(.cta-primary):hover, .main-nav a:not(.cta-primary):focus {
  background: #F7F7F2;
  color: #E2C044;
}
/* Hide regular nav on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
}

/* Mobile Menu -------------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 21px;
  right: 26px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #1F4959;
  z-index: 210;
  cursor: pointer;
  transition: color 0.16s;
}
@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,247,242,0.98);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.9,.01,.36,.99);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 44px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1F4959;
  position: absolute;
  top: 18px;
  right: 26px;
  z-index: 2001;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover { color: #E2C044; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
  width: 100%;
  align-items: flex-start;
  padding: 0 38px;
  font-family: 'Montserrat', sans-serif;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #1F4959;
  font-weight: 500;
  padding: 12px 0;
  transition: color 0.17s;
  border-radius: 6px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E2C044;
  color: #1F4959;
}

/* Footer ------------------------------- */
footer {
  background: #fff;
  box-shadow: 0 -2px 12px rgba(31,73,89,0.03);
  width: 100%;
  padding: 28px 0 24px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}
.footer-nav a {
  color: #1F4959;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.85;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E2C044;
}
.brand-info {
  font-size: 1rem;
  color: #1F4959;
  margin-bottom: 10px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  opacity: 0.89;
  transition: opacity 0.16s, filter 0.15s;
  border-radius: 6px;
}
.footer-social a:hover img {
  opacity: 1;
  filter: brightness(0.93) saturate(1.7);
}

/* Forms ------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 470px;
}
label {
  font-weight: 500;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  color: #1F4959;
}
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  padding: 9px 15px;
  border-radius: 6px;
  border: 1.5px solid #E2C044;
  background: #fff;
  font-size: 1rem;
  color: #1F4959;
  transition: border 0.21s, box-shadow 0.18s;
  width: 100%;
  font-family: 'Roboto', Arial, sans-serif;
}
input[type="search"] {
  border-radius: 30px;
  border-width: 1px;
  margin-bottom: 12px;
  background: #F7F7F2;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
  border-color: #1F4959;
  box-shadow: 0 2px 6px rgba(31,73,89,0.08);
}
textarea {
  min-height: 90px;
  resize: vertical;
}

/* Miscellaneous Lists ------------------ */
.team-grid, .features-grid, .services-grid, .blog-posts {
  margin-top: 8px;
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .container { max-width: 96%; }
  .features-grid, .services-grid, .team-grid, .blog-posts {
    gap: 14px;
  }
}

@media (max-width: 820px) {
  .features-grid, .services-grid, .team-grid, .blog-posts, .testimonial-cards {
    gap: 13px;
  }
}

/* Mobile Responsiveness ---------------- */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.15rem; }
  .container { padding: 0 8px; }
  .content-wrapper { gap: 19px; }
  .hero { padding: 38px 0 26px 0; margin-bottom: 34px; }
  .main-nav { display: none !important; }
  .features-grid, .services-grid, .team-grid, .blog-posts, .testimonial-cards {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature, .service, .team-member, .blog-post, .testimonial-card {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer-nav, .footer-social { flex-direction: column; gap: 7px; }
  .cta-section {
    padding: 18px 7px;
    margin-bottom: 24px;
  }
  form { max-width: 100%; }
}
@media (max-width: 500px) {
  .container { padding: 0 2px; }
}

/* Animations & Microinteractions ------- */
.cta-primary, form button[type="submit"], .cookie-banner .cookie-btn {
  transition: background 0.21s, color 0.14s, box-shadow 0.18s, transform 0.11s;
}
.cta-primary:active, form button[type="submit"]:active {
  transform: scale(0.97);
}
.feature:hover,
.service:hover,
.team-member:hover {
  box-shadow: 0 8px 36px rgba(31,73,89,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* Cookie Consent Banner & Modal -------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #1F4959;
  z-index: 2100;
  padding: 20px 14px 16px 14px;
  box-shadow: 0 -2px 22px rgba(31,73,89,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #1F4959;
}
.cookie-banner .cookie-banner-desc {
  font-size: 1rem;
  color: #1F4959;
}
.cookie-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.cookie-banner .cookie-btn {
  background: #E2C044;
  color: #1F4959;
  border-radius: 26px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.15s;
}
.cookie-banner .cookie-btn.accept {
  background: #1F4959;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #E2C044;
  color: #1F4959;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  border: 1.2px solid #E2C044;
  color: #1F4959;
  padding: 8px 18px;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #F7F7F2;
}
/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2150;
  background: rgba(31,73,89,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(31,73,89,0.18);
  padding: 30px 28px 24px 28px;
  max-width: 420px;
  width: 95vw;
  color: #1F4959;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal 0.28s;
}
@keyframes fadeInModal {
  from { transform: translateY(55px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.19rem;
  margin-bottom: 0.4em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #E2C044;
  width: 24px; height: 24px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  color: #1F4959;
  font-weight: 500;
}
.cookie-category .category-desc {
  font-size: 0.95rem;
  font-weight: 400;
  margin-left: 34px;
  color: #5C747F;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cookie-modal .modal-btns button {
  padding: 8px 22px;
  border-radius: 26px;
  font-size: 1rem;
  background: #E2C044;
  color: #1F4959;
  border: none;
  font-weight: 600;
}
.cookie-modal .modal-btns button.accept {
  background: #1F4959;
  color: #fff;
}
.cookie-modal .modal-btns button.accept:hover {
  background: #E2C044;
  color: #1F4959;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #1F4959;
  position: absolute;
  font-size: 1.5rem;
  right: 16px;
  top: 13px;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover { color: #E2C044; }

/* Utility Spacing & Shadows ------------ */
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.rounded { border-radius: 18px; }
.shadow {
  box-shadow: 0 2px 8px rgba(31, 73, 89, 0.08);
}

/* Accessible Focus Styles -------------- */
a, button, input, textarea, .cta-primary, .cookie-btn {
  outline: none;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .cta-primary:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #E2C044;
  outline-offset: 1.5px;
  background: #F7F7F2;
  color: #1F4959; /* Ensure text is readable */
}

/* High Contrast for Testimonials -------- */
.testimonial-card, .testimonial-header, .testimonial-card blockquote {
  background: #F7F7F2 !important;
  color: #1F4959 !important;
}

/******************************************
Mobile-First
******************************************/
@media (max-width: 480px) {
  .testimonial-card, .feature, .service, .team-member, .blog-post, .faq-item {
    padding: 15px 10px;
  }
  .cta-primary, .cookie-banner .cookie-btn, form button[type="submit"] {
    padding: 10px 10px;
    width: 100%;
    text-align: center;
  }
}
