/* ===== CSS RESET & BASIC 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;
}
/* 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: #F6F7F9;
  color: #172147;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #21409A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #172147;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #172147;
  margin-bottom: 20px;
}
h1 { font-size: 2.25rem; margin-bottom: 28px; }
h2 { font-size: 1.5rem; margin-bottom: 24px; }
h3 { font-size: 1.125rem; margin-bottom: 16px; }

p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #444F6C;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.875rem;
  color: #7a839c;
}

/* ===== BRAND COLORS AND UTILITY CLASSES ===== */
:root {
  --primary: #21409A;
  --primary-light: #416bde;
  --secondary: #F6F7F9;
  --accent: #FFD600;
  --dark: #172147;
  --gray-100: #eaeef2;
  --gray-200: #d3dae6;
  --gray-300: #b1bbc9;
  --gray-400: #7a839c;
  --white: #fff;
}
.bg-primary { background: var(--primary); color: var(--white);} 
.bg-secondary { background: var(--secondary); }
.bg-accent { background: var(--accent); color: var(--dark); }

.text-primary { color: var(--primary)!important; }
.text-accent { color: var(--accent)!important; }
.text-dark { color: var(--dark)!important; }
.text-gray { color: var(--gray-400)!important; }

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(33,64,154,0.05);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(33,64,154,0.09);
  position: sticky;
  top: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover:not(.btn-primary) {
  background: var(--gray-100);
  color: var(--primary);
}

.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(33,64,154,0.09);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-light);
  color: var(--white) !important;
  transform: translateY(-2px) scale(1.033);
  box-shadow: 0 6px 18px rgba(33,64,154,0.13);
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 10px;
  margin-left: 8px;
  z-index: 1201;
  border-radius: 4px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray-100);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -3px 0 16px rgba(33,64,154,0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px 24px 24px 22px;
  transition: transform 0.37s cubic-bezier(0.49,0.13,0.33,1), right 0.37s;
  transform: translateX(100vw);
}
.mobile-menu.active {
  right: 0;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  padding: 8px 12px 4px 12px;
  margin-bottom: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--gray-100);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  padding: 12px 0 12px 0;
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-100);
  color: var(--dark);
}

@media (max-width: 1020px) {
  header nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  header nav a:not(.btn-primary) { font-size: .97rem; }
  .container { padding: 0 10px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(180deg, var(--secondary) 80%, var(--white) 100%);
  padding: 70px 0 46px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  min-height: 330px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 700px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.12rem;
}

/* ===== FEATURES / CARDS ===== */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}
.feature-grid > div {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(33,64,154,0.05);
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 320px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 26px rgba(33,64,154,0.12);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--primary);
  color: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(33,64,154,0.12);
  margin-bottom: 60px;
  padding: 44px 20px;
}
.cta-section h2, .cta-section p {
  color: var(--white);
}
.cta-section .btn-primary {
  background: var(--accent);
  color: var(--primary) !important;
  margin-top: 16px;
}
.cta-section .btn-primary:hover, 
.cta-section .btn-primary:focus {
  background: #ebc700;
  color: var(--primary) !important;
}


/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 40px 0;
  background: var(--secondary);
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.testimonial-card {
  background: var(--white);
  border-radius: 11px;
  padding: 28px 28px 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(33,64,154,0.11);
  min-width: 270px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  transition: box-shadow 0.2s;
  color: var(--dark);
}
.testimonial-card p {
  color: var(--dark);
  font-size: 1.07rem;
}
.testimonial-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  color: var(--primary);
}
.testimonial-info strong {
  color: var(--primary);
}

/* ===== ABOUT PAGE, WHY CHOOSE US, LOGO BAR ===== */
.text-section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trustedby-logos {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 26px 0 0 0;
}
.trustedby-logos img {
  width: 48px;
  height: 48px;
  filter: grayscale(32%);
}

/* ===== FAQ ACCORDION (not fully expandable in CSS, visually formatted) ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(33,64,154,0.06);
  padding: 20px 26px 18px 26px;
}
.faq-item h2 {
  font-size: 1.10rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ===== PRICING TABLE ETC ===== */
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(33,64,154,0.08);
}
.pricing-table th, .pricing-table td {
  padding: 16px 16px;
  text-align: left;
  font-size: 1rem;
}
.pricing-table th {
  background: var(--gray-100);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.pricing-table tr:nth-child(even) td {
  background: var(--gray-100);
}
.pricing-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.service-comparison {
  margin-top: 22px;
}

/* ===== GENERIC FLEXBOX LAYOUT PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(33,64,154,0.07);
  padding: 22px 18px;
  transition: box-shadow 0.16s;
}
.card:hover { box-shadow: 0 12px 30px rgba(33,64,154,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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== CONTACT DETAILS ===== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin: 20px 0 22px 0;
}
.contact-details > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 210px;
}
.contact-details img {
  width: 22px;
  margin-bottom: 2px;
  margin-right: 9px;
  display: inline-block;
}

.google-map {
  margin-top: 20px;
  background: var(--gray-100);
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.google-map img { width: 30px; }

.contact-hours ul {
  list-style: none;
  margin-bottom: 14px;
}
.contact-hours ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.contact-hours img {
  width: 21px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--gray-100);
  padding-top: 34px;
  padding-bottom: 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 20px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-main > * { margin-bottom: 16px; }
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main nav a {
  color: var(--gray-200);
  font-size: 0.98rem;
  border-radius: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.1s, color 0.13s;
  padding: 5px 6px;
}
.footer-main nav a:hover,
.footer-main nav a:focus {
  background: var(--primary);
  color: var(--white);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.97rem;
  color: var(--gray-200);
}
.footer-contact img {
  width: 18px;
  margin-bottom: -2px;
  margin-right: 7px;
  vertical-align: middle;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.footer-social a:hover {
  background: var(--accent);
}
.footer-social img {
  width: 18px;
  height: 18px;
}
.footer-legal
{
  border-top: 1px solid var(--gray-200);
  padding: 18px 0 8px 0;
  font-size: .93rem;
  color: var(--gray-300);
  text-align: center;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 -2px 20px rgba(33,64,154,0.13);
  z-index: 4000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 26px 10px 22px 10px;
  font-size: 1rem;
  transition: transform 0.34s, opacity 0.14s;
}
.cookie-banner.hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner .cookie-text { max-width: 520px; }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary-light);
}
.cookie-btn.reject {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--gray-300);
  color: var(--dark);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ebc700;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,33,71,0.41);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active, .cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(33,64,154,0.15);
  padding: 42px 32px 30px 32px;
  max-width: 430px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--dark);
  animation: fadein 0.28s cubic-bezier(.52,0,.18,1.1);
}
.cookie-modal h2 {
  font-size: 1.25rem;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-modal label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 20px;
  appearance: none;
  background: var(--gray-200);
  border-radius: 10px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--primary);
}
.cookie-modal .cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.16s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.13);
}
.cookie-modal .cookie-toggle:checked::after {
  left: 20px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 16px;
}
.cookie-modal .modal-actions .cookie-btn {
  flex: 1 1 90px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.7rem;
  background: none;
  color: var(--primary);
  border: none;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  transition: background 0.11s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--gray-100);
}

@keyframes fadein {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== THANK YOU SECTION ===== */
.thank-you-section {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(33,64,154,0.06);
  min-height: 350px;
  margin: 60px 0 60px 0;
  padding: 44px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/***** TIMELINE (in services page) *****/
.timeline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0 4px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
}
.timeline span {
  padding: 7px 18px;
  background: var(--gray-100);
  border-radius: 32px;
  font-size: 1rem;
}

/***** SECTION & CARD BASE SPACING ENFORCEMENT *****/
section, .section, .card, .testimonial-card, .faq-item {
  margin-bottom: 24px;
}

/***** RESPONSIVE DESIGN *****/
@media (max-width: 1020px) {
  .feature-grid > div {
    flex: 1 1 180px;
    max-width: 47%;
  }
  .footer-main {flex-direction: column; gap: 28px;}
}
@media (max-width: 900px) {
  .feature-grid > div {
    min-width: 100px;
    max-width: 100%;
  }
  .testimonial-card { min-width: 220px; }
  .footer-main nav { flex-wrap: wrap; gap: 9px; }
  .footer-main {gap: 18px;}
}
@media (max-width: 768px) {
  .section, section, .thank-you-section, .cta-section {
    padding: 32px 10px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 40px 0 18px 0;
  }
  .feature-grid, .testimonials .content-wrapper,
  .card-container, .content-grid, .trustedby-logos, .contact-details {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div { max-width: 100%; }
  .footer-main { flex-direction: column; gap: 20px; }
  .testimonial-card { flex: 1 1 98%; min-width: 0; }
  .content-wrapper { gap: 15px; }
  .google-map { flex-direction: column; align-items: flex-start; gap: 8px;}
}
@media (max-width: 520px) {
  .hero h1 { font-size: 1.48rem; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .cta-section, .thank-you-section, .section { padding: 17px 4vw; }
  .cookie-banner { flex-direction: column; gap: 17px; font-size: 0.97rem; }
  .cookie-banner .cookie-buttons { flex-direction: column; gap: 9px; }
  .cookie-modal { padding: 25px 6vw 18px 6vw; }
}

/* === MICRO-INTERACTIONS === */
.btn-primary, .cookie-btn, .footer-social a, header nav a, .feature-grid > div, .card {
  transition: box-shadow 0.18s, transform 0.17s, background 0.18s, color 0.17s;
}

/* === HIDE EMPTY GRID COLUMNS FOR SAFETY (not needed but defensive) === */
[class*="column"]:empty,
[class*="col-"]:empty {
  display: none; }
