/* ----------------------
   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;
}

/* 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;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Focus: Accessibility */
:focus {
  outline: 2px solid #FFC833;
  outline-offset: 2px;
}

html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Times New Roman', Times, serif;
  color: #222;
  background: #FCFCFC;
  min-height: 100vh;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

/* -----------------------
      BRAND STYLES
------------------------- */
:root {
  --primary: #164875;
  --secondary: #FFC833;
  --accent: #F5F7FA;
  --body: #222;
  --heading: #18334D;
  --muted: #8E96A3;
  --background: #FCFCFC;
  --danger: #CB2B1E;
  --success: #288C53;
  --shadow: 0 2px 12px rgba(22, 72, 117, 0.07);
  --radius: 12px;
  --font-display: 'Montserrat', 'Times New Roman', Times, serif;
  --font-body: 'Roboto', 'Times New Roman', Times, serif;
}

/* Elegant classic font sizes & scale */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 20px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--body);
  margin-bottom: 14px;
  font-family: var(--font-body);
}
strong {
  font-weight: 600;
}
section ul, section ol {
  margin-bottom: 16px;
  margin-top: 0;
  padding-left: 20px;
}
section ul li,
section ol li {
  line-height: 1.6;
  margin-bottom: 6px;
}

/* Container and Section Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 760px;
  margin-bottom: 16px;
}

/* ---------------------
  BRAND SPACING SYSTEM
---------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 28px 24px;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 250px;
  flex: 1 1 280px;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(22, 72, 117, 0.13);
  z-index: 2;
}
.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: 20px;
  padding: 20px 28px 20px 20px;
  background: #F3F4F7;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px rgba(22, 72, 117, 0.06);
  min-width: 260px;
  margin-bottom: 20px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 28px 18px 20px 18px;
  box-shadow: 0 2px 8px rgba(22, 72, 117, 0.06);
  flex: 1 1 220px;
  min-width: 200px;
  transition: box-shadow 0.22s, background 0.25s;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 6px 18px rgba(22, 72, 117, 0.13);
  background: #EEEFF2;
}

/* Category badges */
.category-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.category {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 24px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  transition: background 0.2s, border 0.2s;
  margin-bottom: 4px;
  cursor: pointer;
}
.category:hover,
.category.active {
  background: var(--primary);
  color: #fff;
}

/* -----------------
    NAVIGATION
------------------- */
header {
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid #e8eef5;
  box-shadow: 0 1px 8px rgba(22, 72, 117, 0.032);
  z-index: 50;
  position: relative;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  padding: 16px 0px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.main-nav a {
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.main-nav a.cta-btn {
  background: var(--secondary);
  color: #222;
  font-weight: 700;
  border-radius: 24px;
  padding: 10px 24px;
  margin-left: auto;
  margin-right: 0;
  font-size: 1.1rem;
  box-shadow: 0 1px 8px rgba(22,72,117,0.06);
  letter-spacing: 0.02em;
  border: 0;
  text-shadow: none;
  display: inline-block;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: #F9D972;
  color: var(--primary);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--primary);
  color: #fff;
}

/* Main logo sizing */
.main-nav img {
  height: 42px;
  margin-right: 16px;
}

/* BURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 102;
  background: var(--secondary);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(22,72,117,0.15);
  transition: filter 0.13s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  filter: brightness(0.94);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 2000;
  padding: 24px 24px 32px 24px;
  box-shadow: 0 0 40px rgba(0,0,0,0.17);
  transform: translateX(100vw);
  transition: transform 0.33s cubic-bezier(.83,.01,.47,1), opacity 0.2s;
  opacity: 0.98;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--primary);
  background: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e7eef8;
}
.mobile-nav {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--primary);
  padding: 13px 8px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.19s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--primary);
  color: #fff;
}

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 20px 0;
  font-family: var(--font-body);
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  max-height: 38px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.footer-nav a {
  color: #e2e8f0;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 4px 0;
  font-family: var(--font-display);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact img {
  margin-right: 8px;
  vertical-align: middle;
  height: 20px;
  width: 20px;
  display: inline-block;
}
.footer-hours {
  color: #dbe5ef;
  font-size: 0.97rem;
  margin-top: 12px;
}

/* -----------------
BUTTONS & INTERACTIONS
------------------- */
.cta-btn {
  background: var(--secondary);
  color: #241E09;
  font-family: var(--font-display);
  border: none;
  border-radius: 24px;
  padding: 13px 32px;
  font-size: 1.18rem;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(255,200,51,0.10), var(--shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
  cursor: pointer;
  margin-top: 16px;
  letter-spacing: 0.01em;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #ffe28e;
  color: var(--primary);
  box-shadow: 0 2px 22px rgba(255,200,51,0.16), 0 2px 13px rgba(22,72,117,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* Links in content */
.content-wrapper a:not(.cta-btn):not(.main-nav a):not(.footer-nav a),
.text-section a {
  color: var(--primary);
  border-bottom: 1px solid var(--secondary);
  transition: border 0.18s, color 0.18s;
  font-weight: 500;
  font-family: var(--font-body);
}
.content-wrapper a:not(.cta-btn):not(.main-nav a):not(.footer-nav a):hover,
.text-section a:hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--primary);
}

/* Stars in testimonials */
.stars {
  display: flex;
  gap: 4px;
  align-items: center;
}
.stars img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(22,72,117,0.09));
}
.testimonial-author {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.01rem;
  font-weight: 600;
  margin-top: 8px;
}

/* FAQ Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #f8fafc;
  border-left: 3px solid var(--secondary);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 1px 5px rgba(22,72,117,0.067);
  margin-bottom: 12px;
}
.faq-item h2 {
  margin-bottom: 7px;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--primary);
}
.helpful-links {
  margin-top: 24px;
}
.helpful-links h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 10px;
}
.helpful-links ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.helpful-links a {
  color: var(--primary);
  padding-left: 2px;
  border-bottom: 1px solid var(--secondary);
  transition: color 0.17s;
  font-size: 1.01rem;
  font-family: var(--font-body);
}
.helpful-links a:hover {
  color: var(--secondary);
}

/* Contact Details & Map */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 8px 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.map-section {
  margin-top: 16px;
}
.map-section img {
  vertical-align: middle;
  margin-right: 8px;
  height: 22px;
  width: 22px;
}

/* Next steps / lists in thank you page */
.next-steps ul {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 18px;
}

/* --------------------
 COOKIE CONSENT BANNER
---------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #252F3D;
  color: #fff;
  padding: 20px 14px;
  box-shadow: 0 -4px 18px rgba(22,72,117,0.12), 0 -1.5px 0 #e5e9ef;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 1.01rem;
  transition: transform 0.32s, opacity 0.37s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  max-width: 600px;
  margin-right: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button,
.cookie-banner .cookie-action-btn {
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: background 0.18s, color 0.13s;
}
.cookie-banner button.accept {
  background: var(--secondary);
  color: #000;
}
.cookie-banner button.reject {
  background: #E37040;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--secondary);
}
.cookie-banner button.accept:hover {
  background: #ffe28e;
  color: var(--primary);
}
.cookie-banner button.reject:hover {
  background: #b23e1e;
}
.cookie-banner button.settings:hover {
  background: #16395a;
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(3px);
  background: rgba(31, 41, 55, 0.24);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.cookie-modal .modal-content {
  background: #fff;
  padding: 38px 30px 28px 30px;
  border-radius: 20px;
  box-shadow: 0 2px 36px rgba(22,72,117,0.12);
  width: 94vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #232325;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 26px;
  right: 32px;
  font-size: 1.7rem;
  color: var(--primary);
  background: #F5F7FA;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .close-cookie-modal:hover {
  background: #e2ebf8;
  color: var(--secondary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
  font-size: 1.01rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  font-weight: 600;
  color: var(--primary);
  margin-left: 2px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .accept-all {
  background: var(--secondary);
  color: #000;
  border-radius: 21px;
  padding: 9px 20px;
}
.cookie-modal .reject-all {
  background: #ef4a22;
  color: #fff;
  border-radius: 21px;
  padding: 9px 20px;
}
.cookie-modal .save {
  background: var(--primary);
  color: #fff;
  border-radius: 21px;
  padding: 9px 20px;
  border: 1px solid var(--secondary);
}
.cookie-modal .accept-all:hover {
  background: #ffe28e;
  color: var(--primary);
}
.cookie-modal .reject-all:hover {
  background: #ae2c16;
}
.cookie-modal .save:hover {
  background: #182f48;
}

/* Hide cookie modal by default */
.cookie-modal.closed {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* --------------
RESPONSIVE DESIGN
-------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .container {padding-left: 10px; padding-right: 10px;}
  .section { padding: 28px 10px; }
  .main-nav { gap: 10px; font-size: 0.99rem; }
  .footer-nav { gap: 14px; }
}
@media (max-width: 768px) {
  h1 {font-size: 2.1rem;}
  h2 {font-size: 1.38rem;}
  h3 {font-size: 1.13rem;}
  .container {
    max-width: 99vw;
    padding-left: 5px;
    padding-right: 5px;
  }

  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
  }

  .content-wrapper,
  .section .content-wrapper {
    gap: 18px;
    padding: 0;
  }
  .footer-contact, .footer-hours {
    font-size: 0.92rem;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 19px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .card {
    min-width: 165px;
    padding: 20px 12px;
  }
  .testimonial-card { padding: 18px 8px 14px 10px; }
  .feature-item { padding: 18px 10px 12px 12px; min-width: unset; }

  .section { margin-bottom: 36px; padding: 18px 7px; }

  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .faq-list {
    gap: 14px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 435px) {
  .cookie-banner {
    padding: 13px 2px;
    gap: 11px;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* General visual hierarchy and micro-interaction enhancements */
section {
  transition: background 0.25s, box-shadow 0.35s;
}
section:hover {
  background: #f8fbff;
}
h1, h2, h3, h4, h5, h6 {
  transition: color 0.18s;
}

::-webkit-scrollbar {
  width: 10px;
  background: #ECECEC;
}
::-webkit-scrollbar-thumb {
  background: #d2dae6;
  border-radius: 8px;
}

/* Hide visually unnecessary outlines on mouse (keeps for keyboard) */
body:not(.user-is-tabbing) :focus {
  outline: none;
}
