/* ===================================================
   CSS Reset & Base
=================================================== */
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;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F4F7FA;
  color: #1A3F64;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #1A3F64;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #DAA520;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  appearance: none;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
/* ===================================================
   Typography
=================================================== */
h1, .content-wrapper > h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: #1A3F64;
  margin-bottom: 18px;
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #1A3F64;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #253954;
}
h4, h5, h6 {
  font-weight: 500;
  color: #253954;
  margin-bottom: 8px;
}
p, ul, ol, dl {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #253954;
}
blockquote {
  background: #F4F7FA;
  border-left: 4px solid #1A3F64;
  padding: 16px 24px;
  font-style: italic;
  color: #253954;
  margin-bottom: 10px;
}
small {
  font-size: 0.92rem;
}
strong {
  font-weight: 600;
  color: #1A3F64;
}
/* ===================================================
   Header & Navigation
=================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,48,84,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 40px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1A3F64;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #DAA520;
  transition: width 0.35s;
  position: absolute;
  left: 0;
  bottom: -1px;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}
.cta-primary {
  background: #1A3F64;
  color: #fff !important;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 26px;
  box-shadow: 0 2px 10px rgba(26,63,100,0.08);
  transition: background 0.25s, box-shadow 0.25s, color 0.2s;
  border: 2px solid #1A3F64;
  margin-left: 16px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #253954;
  box-shadow: 0 4px 18px rgba(20,48,84,0.16);
  color: #DAA520 !important;
}
.cta-secondary {
  background: #fff;
  color: #1A3F64 !important;
  border: 2px solid #1A3F64;
  padding: 10px 28px;
  border-radius: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-top: 12px;
  margin-right: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #1A3F64;
  color: #fff !important;
  border-color: #1A3F64;
}
/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: #1A3F64;
  color: #fff;
  font-size: 2rem;
  border-radius: 9px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin-left: 12px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #253954;
  color: #DAA520;
}

/* ===================================================
   Mobile Menu Overlay
=================================================== */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(26, 63, 100, 0.93);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.85, 0, .3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 32px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 12px 0;
  background: none;
  color: #fff;
  font-size: 2.4rem;
  border: none;
  line-height: 1;
  z-index: 10001;
  transition: color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #DAA520;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  border-radius: 4px;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #DAA520;
  background: rgba(218,165,32,0.09);
}
@media (max-width: 990px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ===================================================
   Main Layout Structure
=================================================== */
main {
  min-height: 55vh;
  margin-top: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(20,63,100,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 28px 28px 28px;
  min-width: 240px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(20,63,100,0.14);
}
/* Accent backgrounds */
.accent-bg {
  background: #F4F7FA;
}
/* ================= Hero, CTA, Features, Services ================ */
.hero {
  background: #1A3F64;
  color: #fff;
  padding: 60px 0 50px 0;
  min-height: 320px;
  margin-bottom: 0;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-primary {
  background: #DAA520;
  color: #1A3F64 !important;
  border-color: #DAA520;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(218,165,32,0.14);
}
.hero .cta-primary:hover,
.hero .cta-primary:focus {
  background: #1A3F64;
  color: #fff!important;
  border-color: #1A3F64;
}
.features, .services, .about-section, .testimonials, .contact, .cta, .confirmation, .legal, .services-overview, .about-preview, .case-study-highlight {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features .feature-grid,
.feature-grid,
.service-overview-grid,
.team-profiles,
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature,
.service,
.team-member,
.case-study {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 11px rgba(26,63,100,0.07);
  padding: 28px 18px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.feature img,
.service img {
  height: 40px;
  margin-bottom: 10px;
}
.feature:hover, .service:hover, .team-member:hover, .case-study:hover {
  box-shadow: 0 5px 26px rgba(26,63,100,0.15);
}

.benefits, .expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 0;
  padding-left: 18px;
}
.benefits li,
.expertise-list li {
  background: #F4F7FA;
  border-radius: 6px;
  padding: 10px 19px;
  margin: 0 6px 6px 0;
  color: #1A3F64;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
}
.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
  padding-left: 18px;
}
.step-timeline li {
  font-weight: 500;
  color: #253954;
}
.address-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}
.address-details img {
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.mock-map {
  background: #dbe6f2;
  border-radius: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* ================= Testimonials & Cards ================ */
.testimonials {
  background: #F4F7FA;
}
.testimonials .content-wrapper {
  gap: 22px;
}
.testimonial-card {
  background: #fff;
  color: #222;
  box-shadow: 0 2px 12px rgba(26,63,100,0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 720px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(26, 63, 100, 0.18);
}
.testimonial-card blockquote {
  font-style: italic;
  color: #253954;
  margin: 0;
  background: none;
  padding: 0;
  border: none;
}
.testimonial-author {
  font-weight: 500;
  color: #1A3F64;
  margin-left: auto;
  margin-bottom: 0;
  white-space: nowrap;
}
.before-after-story {
  margin-top: 26px;
  background: #EAF0F6;
  border-radius: 10px;
  padding: 18px 22px;
  color: #1A3F64;
}

/* ================= FAQ, Case Study, Legal ================ */
.faq {
  margin-top: 36px;
  margin-bottom: 10px;
}
.faq h3 {
  margin-bottom: 16px;
}
.faq dt {
  font-weight: 600;
  margin-top: 18px;
  color: #1A3F64;
}
.faq dd {
  margin-left: 0;
  margin-bottom: 8px;
}
.case-study-highlight .case-study {
  min-width: 210px;
  flex: 1 1 260px;
}
.legal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(26,63,100,0.07);
}
/* Confirmation & Thank You */
.confirmation {
  background: #F4F7FA;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(26,63,100,0.09);
  margin-bottom: 60px;
  padding: 60px 24px;
  text-align: center;
}
/* ===================================================
   Footer
=================================================== */
footer {
  background: #1A3F64;
  color: #fff;
  margin-top: 18px;
  padding: 42px 0 24px 0;
  font-size: 1rem;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer .footer-nav a {
  color: #F4F7FA;
  transition: color 0.19s;
  font-size: 1rem;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  color: #DAA520;
}
.footer-contact {
  font-size: 0.98rem;
  color: #F4F7FA;
  max-width: 320px;
}
footer img {
  height: 36px;
  margin-bottom: 14px;
}
footer small {
  margin-top: 18px;
  color: #dbe6f2;
  width: 100%;
  display: inline-block;
}
/* ===================================================
   COOKIE CONSENT BANNER & MODAL
=================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #fff;
  color: #1A3F64;
  box-shadow: 0 -4px 18px rgba(20, 63, 100, 0.10);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-radius: 13px 13px 0 0;
  animation: cookie-slide-in 0.5s cubic-bezier(.5,1.4,.7,.98);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: #1A3F64;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 20px;
  padding: 10px 28px;
  border: 2px solid #1A3F64;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
}
.cookie-banner .accept {
  background: #1A3F64;
  color: #fff;
  border-color: #1A3F64;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #253954;
  color: #DAA520;
}
.cookie-banner .reject {
  background: #fff;
  color: #1A3F64;
  border-color: #1A3F64;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #EAF0F6;
  color: #1A3F64;
  border-color: #DAA520;
}
.cookie-banner .settings {
  background: #fff;
  color: #1A3F64;
  border-color: #1A3F64;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #EAF0F6;
  color: #DAA520;
  border-color: #DAA520;
}
/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,40,73,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
  animation: modal-fade-in 0.39s cubic-bezier(.5,1.4,.7,.98);
}
@keyframes modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #1A3F64;
  border-radius: 18px;
  box-shadow: 0 8px 38px -8px rgba(20,63,100,0.25);
  padding: 32px 26px 30px 26px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.21rem;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  font-size: 1rem;
  color: #253954;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #1A3F64;
  width: 18px;
  height: 18px;
}
.cookie-modal-content .cookie-buttons {
  display: flex;
  gap: 11px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #1A3F64;
  background: none;
  font-size: 2rem;
  border: none;
  transition: color 0.12s;
}
.cookie-modal-close:hover {
  color: #DAA520;
}

/* ===================================================
   Responsive Design: mobile-first
=================================================== */
@media (max-width: 990px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  header .container {
    gap: 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .section, .features, .services, .contact, .cta, .confirmation, .about-section, .testimonials, .process, .services-overview, .about-preview, .case-study-highlight, .legal {
    margin-bottom: 44px;
    padding: 28px 7px;
  }
  .features .feature-grid,
  .feature-grid,
  .team-profiles,
  .service-overview-grid, 
  .benefits-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .service, .team-member, .case-study {
    padding: 22px 10px;
    min-width: 90vw;
    flex: 1 1 100%;
    margin-bottom: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 13px;
    padding: 15px 10px;
    min-width: unset;
    max-width: 95vw;
  }
  .content-wrapper {
    gap: 11px;
  }
  .benefits, .expertise-list {
    gap: 10px;
    padding-left: 4px;
  }
  .mock-map {
    min-height: 56px;
    padding: 5px 0;
  }
}
@media (max-width: 540px) {
  h1, .content-wrapper > h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .cta-primary, .cta-secondary {
    font-size: 0.98rem;
    padding: 10px 18px;
  }
  .feature, .service, .team-member, .case-study {
    font-size: 0.98rem;
    padding: 12px 3px;
    min-width: 98vw;
  }
  .cookie-modal-content {
    padding: 18px 3px;
  }
}
/* ===================================================
   Utility Flexbox Layout Classes
=================================================== */
.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: 18px;
  }
}

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

/* Cards & card-content */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
/* Extra Spacing Rule for All Content Cards */
.card, .feature, .service, .team-member, .case-study, .testimonial-card, .before-after-story {
  margin-bottom: 20px;
}

/* Prevent element overlap by safe margins/padding */
.section > *, .features > *, .services > *, .about-section > *, .testimonials > *, .contact > *, .cta > *, .confirmation > *, .legal > * {
  margin-bottom: 18px;
}
/* z-index management: always put modals, cookie banner and mobile nav above all */
.mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 9999;
}

/* Misc */
::-webkit-scrollbar {
  width: 9px;
  background: #F4F7FA;
}
::-webkit-scrollbar-thumb {
  background: #dbe6f2;
  border-radius: 5px;
}

/* Focus-visible for accessibility */
:focus-visible {
  outline: 2px solid #DAA520;
  outline-offset: 2px;
}

/* Hide content visually */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden; border: 0;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
