/* --------------------------------------------------------------
 CSS RESET & BASELINE NORMALIZATION  (MOBILE FIRST)
-------------------------------------------------------------- */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body { min-height: 100vh; background: #FAFAFA; color: #232323; font-size: 1rem; line-height: 1.7; font-family: 'Roboto', 'Arial', sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style-position: outside; margin-left: 1.4em; margin-bottom: 1em; }
a { color: #174075; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #EAB04C; outline: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}
button { cursor: pointer; }

/* --------------------------------------------------------------
 TYPOGRAPHY
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-family: 'Merriweather', serif; color: #174075; margin-bottom: 0.6em; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; line-height: 1.22; }
h3 { font-size: 1.15rem; margin-bottom: 12px; line-height: 1.25; }
h4, h5, h6 { font-size: 1rem; }
p, li { color: #353535; font-family: 'Roboto', 'Arial', sans-serif; margin-bottom: 1em; max-width: 60em; }
strong { font-weight: 700; }

/* --------------------------------------------------------------
 CONTAINERS & LAYOUT
-------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.section,
.hero-section,
.features-section,
.about-preview-section,
.services-preview-section,
.testimonials-section,
.cta-section,
.about-section,
.team-preview-section,
.credentials-section,
.services-section,
.services-cta-section,
.team-section,
.team-values-section,
.faq-section,
.faq-contact-section,
.blog-section,
.contact-section,
.contact-cta-section,
.privacy-section,
.gdpr-section,
.cookie-policy-section,
.terms-section,
.thankyou-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(23,64,117,0.07);
}

/* --------------------------------------------------------------
 HEADER & NAVIGATION
-------------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 1px 20px 0 rgba(23,64,117,0.04);
  position: sticky;
  top: 0;
  z-index: 120;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  margin-right: 32px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  padding: 5px 0;
  color: #174075;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #EAB04C;
  border-bottom: 2px solid #EAB04C;
}
.button-primary {
  padding: 10px 30px;
  border-radius: 28px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #fff !important;
  background: #174075;
  border: none;
  margin-left: 10px;
  box-shadow: 0 2px 16px 0 rgba(23,64,117,0.08);
  transition: background 0.22s, box-shadow 0.22s, transform 0.14s;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.button-primary:hover, .button-primary:focus {
  background: #EAB04C;
  color: #174075 !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px 0 rgba(23,64,117,0.12);
}
.button-secondary {
  padding: 8px 26px;
  border-radius: 28px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #174075;
  border: 2px solid #174075;
  background: transparent;
  transition: border 0.18s, background 0.18s, color 0.18s, transform 0.12s;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.button-secondary:hover, .button-secondary:focus {
  background: #174075;
  color: #fff;
  border: 2px solid #174075;
  transform: scale(1.03);
}

/* Hide mobile menu by default */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 2rem;
  width: 42px;
  height: 42px;
  color: #174075;
  border-radius: 50%;
  border: 2px solid #174075;
  transition: background 0.18s, color 0.18s;
  z-index: 151;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #EAB04C;
  color: #fff;
  border-color: #EAB04C;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,64,117, 0.97);
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.5,.77,.29,1.14);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  margin: 28px 0 28px 24px;
  outline: none;
  border: none;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #EAB04C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 36px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: 'Merriweather', serif;
  letter-spacing: 0.01em;
  padding: 10px 4px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAB04C;
  color: #174075;
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex; }
}

/* --------------------------------------------------------------
 HERO SECTION & PAGE INTROS
-------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(90deg, #fff 50%, #EAF0F6 100%);
  box-shadow: 0 4px 40px 0 rgba(23,64,117,0.04);
  border-radius: 0 0 28px 28px;
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  max-width: 820px;
  margin-left: 0;
}
.hero-section h1 {
  font-size: 2.3rem;
  color: #174075;
  margin-bottom: 14px;
}
.hero-section p {
  font-size: 1.2rem;
  color: #353535;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------
 FEATURES GRID & CARD CONTAINERS
-------------------------------------------------------------- */
.feature-grid,
.team-preview,
.service-category-grid,
.staff-list,
.card-container,
.content-grid,
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .team-preview > div, .service-category-grid > div, .staff-list > div, .post-list > article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23,64,117,0.05);
  padding: 24px 26px;
  flex: 1 1 250px;
  min-width: 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.21s, transform 0.19s;
  border: 1px solid #EAF0F6;
}
.feature-grid > div:hover, .team-preview > div:hover, .service-category-grid > div:hover, .staff-list > div:hover, .post-list > article:hover {
  box-shadow: 0 10px 28px 0 rgba(23,64,117,0.14);
  transform: translateY(-4px) scale(1.025);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}
.feature-grid h3 {
  margin-bottom: 8px;
  color: #174075;
}

/* Responsive adjustment for card lists on small screens */
@media (max-width: 900px) {
  .feature-grid, .team-preview, .service-category-grid, .staff-list, .card-container, .content-grid, .post-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* --------------------------------------------------------------
 TESTIMONIALS
-------------------------------------------------------------- */
.testimonials-section .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 28px;
  margin-bottom: 24px;
  background: #FAFBFC;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(23,64,117,0.04);
  color: #1A2433;
  border: 1px solid #EAF0F6;
  max-width: 500px;
}
.testimonials-section .testimonial-card p {
  color: #232323;
  font-size: 1.07rem;
  font-style: italic;
}
.testimonials-section .testimonial-card span {
  color: #174075;
  font-family: 'Merriweather', serif;
  font-size: 0.99rem;
  font-style: normal;
}

/* --------------------------------------------------------------
 CTA SECTION
-------------------------------------------------------------- */
.cta-section {
  background: #174075;
  color: #fff;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 4px 26px 0 rgba(23,64,117,0.09);
}
.cta-section h2,
.services-cta-section h2,
.contact-cta-section h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.cta-section p, .services-cta-section p, .contact-cta-section p {
  color: #fff;
  margin-bottom: 24px;
}
.cta-section .button-primary,
.services-cta-section .button-primary,
.contact-cta-section .button-primary {
  background: #EAB04C;
  color: #174075 !important;
}
.cta-section .button-primary:hover, 
.services-cta-section .button-primary:hover,
.contact-cta-section .button-primary:hover {
  background: #fff;
  color: #174075 !important;
  box-shadow: 0 6px 32px 0 rgba(23,64,117,0.16);
}

/* --------------------------------------------------------------
 BLOG TAGS & INPUTS
-------------------------------------------------------------- */
.blog-section input[type="text"] {
  border: 1px solid #B6C3D1;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 24px;
  width: 100%;
  max-width: 360px;
  transition: border-color 0.16s;
}
.blog-section input[type="text"]:focus {
  border-color: #174075;
  background: #F0F4FA;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.tag {
  background: #EAF0F6;
  color: #174075;
  font-family: 'Merriweather', serif;
  font-size: 0.98rem;
  padding: 5px 16px;
  border-radius: 18px;
  border: 1px solid #B6C3D1;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, border 0.16s;
}
.tag:hover, .tag:focus {
  background: #174075;
  color: #fff;
  border: 1px solid #EAB04C;
}

/* --------------------------------------------------------------
 ACCORDIONS & FAQ
-------------------------------------------------------------- */
.faq-accordion > div, .service-details-accordion > h3 {
  margin-bottom: 18px;
  border-radius: 11px;
  background: #FAFBFC;
  border-left: 4px solid #174075;
  padding: 18px 22px;
  box-shadow: 0 1px 10px 0 rgba(23,64,117,0.035);
}
.faq-accordion h2, .service-details-accordion h3 {
  font-size: 1.09rem;
  color: #174075;
  margin-bottom: 10px;
  font-family: 'Merriweather', serif;
}
.service-details-accordion p, .faq-accordion p { margin-bottom: 0; }

/* --------------------------------------------------------------
 CONTACT & MAP ADDRESS
-------------------------------------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  margin-top: 14px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.contact-details a {
  text-decoration: underline;
}
.map-address {
  margin-top: 16px;
  font-style: italic;
  color: #174075;
}

/* --------------------------------------------------------------
 FOOTER
-------------------------------------------------------------- */
footer {
  background: #174075;
  color: #fff;
  padding: 32px 0 24px 0;
  border-radius: 28px 28px 0 0;
  margin-top: 80px;
  box-shadow: 0 -2px 26px 0 rgba(23,64,117,0.06);
  font-size: 1rem;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
}
.footer-nav a {
  color: #fff;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #EAB04C; }
.footer-contact {
  text-align: center;
  color: #EAF0F6;
  font-size: 1rem;
}
.footer-logo img {
  width: 54px;
  margin: 8px auto 0 auto;
  display: block;
}

/* --------------------------------------------------------------
 THANK YOU / CONFIRMATION PAGE
-------------------------------------------------------------- */
.thankyou-section {
  text-align: center;
}
.thankyou-section .button-primary {
  margin-top: 36px;
  padding-left: 38px;
  padding-right: 38px;
}

/* --------------------------------------------------------------
 COOKIE CONSENT BANNER & MODAL
-------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: #174075;
  box-shadow: 0 -4px 22px 0 rgba(23,64,117,0.09);
  padding: 20px 16px 16px 16px;
  z-index: 1002;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.34s;
}
.cookie-banner.hide { transform: translateY(110%); pointer-events: none; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-banner .cookie-btn {
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 3px;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.cookie-btn-accept { background: #174075; color: #fff; }
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #EAB04C;
  color: #174075;
}
.cookie-btn-reject {
  background: #B6C3D1;
  color: #174075;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #EAB04C;
  color: #174075;
}
.cookie-btn-settings {
  background: transparent;
  color: #174075;
  border: 1px solid #174075;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #EAF0F6;
  color: #174075;
}

/* Cookie Preference Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1010;
  background: rgba(30, 39, 56, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: background 0.3s, opacity 0.25s;
}
.cookie-modal {
  background: #fff;
  padding: 38px 30px 30px 30px;
  border-radius: 18px;
  box-shadow: 0 4px 40px 0 rgba(23,64,117,0.13);
  width: 90vw;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #174075;
  font-size: 1rem;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 17px;
  background: transparent;
  color: #174075;
  font-size: 1.65rem;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #EAB04C;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 11px 0 14px 0;
}
.cookie-category label {
  font-weight: 700;
  color: #174075;
  font-family: 'Merriweather', serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #174075;
  width: 20px;
  height: 20px;
}
.cookie-category .essential {
  font-style: italic;
  color: #B6C3D1;
}

/* --------------------------------------------------------------
 UTILITIES, GAPS, FLEX HELPERS
-------------------------------------------------------------- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: 14px; background: #fff; box-shadow: 0 1px 12px 0 rgba(23,64,117,0.04); padding: 20px; transition: box-shadow 0.18s; }
.card:hover { box-shadow: 0 4px 24px 0 rgba(23,64,117,0.13); }
.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; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* --------------------------------------------------------------
 RESPONSIVE DESIGN
-------------------------------------------------------------- */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 6px;
    height: 66px;
  }
  .section,
  .hero-section,
  .features-section,
  .about-preview-section,
  .services-preview-section,
  .testimonials-section,
  .cta-section,
  .about-section,
  .team-preview-section,
  .credentials-section,
  .services-section,
  .services-cta-section,
  .team-section,
  .team-values-section,
  .faq-section,
  .faq-contact-section,
  .blog-section,
  .contact-section,
  .contact-cta-section,
  .privacy-section,
  .gdpr-section,
  .cookie-policy-section,
  .terms-section,
  .thankyou-section {
    padding: 28px 7.5vw;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .hero-section {
    padding-top: 40px;
    padding-bottom: 40px;
    border-radius: 0 0 18px 18px;
  }
  .cta-section {
    border-radius: 16px;
    padding: 28px 13px;
    text-align: left;
  }
  footer .container { gap: 12px; }
  .content-wrapper { gap: 14px; }
}
@media (max-width: 768px) {
  .container { padding: 0 6vw; }
  .content-wrapper, .footer-nav, .feature-grid, .staff-list, .team-preview, .service-category-grid, .card-container, .content-grid, .post-list {
    flex-direction: column;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .text-image-section { flex-direction: column; gap: 14px; }
  .hero-section h1 { font-size: 1.55rem; }
  .cta-section h2 { font-size: 1.18rem; }
  .main-nav { display: none !important; }
  .logo { height: 39px; }
}
@media (max-width: 470px) {
  .section, .hero-section, .features-section, .about-preview-section,
  .services-preview-section, .testimonials-section, .cta-section, .about-section,
  .team-preview-section, .credentials-section, .services-section, .services-cta-section, .team-section,
  .team-values-section, .faq-section, .faq-contact-section, .blog-section,
  .contact-section, .contact-cta-section, .privacy-section, .gdpr-section, .cookie-policy-section,
  .terms-section, .thankyou-section {
    padding: 16px 1.7vw;
    margin-bottom: 26px;
  }
  .card, .testimonial-card, .feature-grid > div { padding: 13px; }
}

/* --------------------------------------------------------------
 MISCELLANEOUS ELEMENTS
-------------------------------------------------------------- */
.text-section, .blog-section .post-list article, .terms-section .text-section, .privacy-section .text-section {
  margin-bottom: 22px;
}
ul li, ol li { margin-bottom: 8px; }
ul { margin-bottom: 14px; }

/* --------------------------------------------------------------
 FORM ELEMENTS (if any)
-------------------------------------------------------------- */
input[type="text"]:not(.blog-section input), input[type="email"], textarea {
  border: 1px solid #B6C3D1;
  padding: 8px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
  font-size: 1rem;
  background: #FFF;
  transition: border 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid #174075;
  background: #F4F7FA;
}

/* --------------------------------------------------------------
 FINE-DETAIL MICRO-INTERACTIONS & SHADOWS
-------------------------------------------------------------- */
.button-primary, .button-secondary, .cookie-btn {
  transition: background 0.18s, color 0.16s, box-shadow 0.14s, transform 0.12s;
}
.card, .feature-grid > div, .testimonial-card, .post-list > article {
  transition: box-shadow 0.18s, transform 0.18s;
}

/* --------------------------------------------------------------
 PRINT (for better output)
-------------------------------------------------------------- */
@media print {
  header, nav, .main-nav, .mobile-menu, .cookie-banner, footer { display: none !important; }
  section, .section, main { background: none !important; box-shadow: none !important; }
  body { color: #000 !important; background: #fff !important; }
}

/* --------------------------------------------------------------
 FONTS (LOAD VIA GOOGLE FONTS in HTML HEAD for production)
-------------------------------------------------------------- */
/* font-family: 'Merriweather', serif; for all headings & special labels */
/* font-family: 'Roboto', 'Arial', sans-serif; for body base text           */
