/* 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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4F6F8;
  color: #163550;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* GEOMETRIC/STRUCTURED BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Roboto:400,500,700&display=swap');

body, html {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F4F6F8;
  color: #163550;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #163550;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 16px; }
h3 { font-size: 1.2rem; line-height: 1.22; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }
p, ul li, ol li { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; }
strong { font-weight: 600; }

/* COLORS */
:root {
  --primary: #163550;
  --secondary: #F4F6F8;
  --accent: #E4A937;
  --gray-100: #e4ebf1;
  --gray-200: #c5d0db;
  --gray-300: #9aa9ba;
  --shadow: rgba(22,53,80,0.07);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/****************************/ 
/* HEADER & NAVIGATION */
/****************************/
header {
  background: #fff;
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 6px 18px -12px var(--shadow);
  position: relative;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover:not(.btn-primary) {
  background: var(--gray-100);
  color: var(--primary);
}
.btn-primary {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  padding: 10px 26px;
  margin-left: 12px;
  box-shadow: 0 0 0 2px var(--primary) inset;
  letter-spacing: 0.07em;
  border: none;
  outline: none;
  transition: background 0.20s, box-shadow 0.18s, color 0.18s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 16px -4px var(--shadow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: #fff;
  border-radius: 10px;
  padding: 10px 26px;
  margin-top: 18px;
  border: 2px solid var(--primary);
  letter-spacing: 0.06em;
  outline: none;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: #fff;
}

/****************************/ 
/* MOBILE NAV */
/****************************/
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  border-radius: 8px;
  color: #fff;
  font-size: 2rem;
  padding: 7px 12px;
  margin-left: 12px;
  z-index: 1001;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.8,.03,.32,1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 20px 28px;
  box-shadow: 0 0 40px 0 var(--shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  margin-bottom: 20px;
  border: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px 0;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  transition: background 0.17s, color 0.16s, border-color 0.18s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--gray-100);
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/****************************/ 
/* HERO / HEADERS */
/****************************/
.hero {
  background: linear-gradient(120deg, #f7fafc 60%, var(--gray-100) 100%);
  border-bottom: 3.5px solid var(--primary);
  min-height: 340px;
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 8px;
}
.subheadline {
  font-weight: 500;
  color: var(--primary);
  opacity: 0.82;
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 16px;
}

/****************************/ 
/* SECTION/LAYOUT SPACING */
/****************************/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 22px;
}
.features, .services, .process, .faq, .cta, .contact, .about, .legal, .thank-you, .testimonials {
  background: #fff;
  box-shadow: 0 4px 24px -6px var(--shadow);
}
.features { margin-bottom: 60px; }
.services { margin-bottom: 60px; }
.process { margin-bottom: 60px; }
.faq { margin-bottom: 60px; }
.cta { margin-bottom: 60px; }
.testimonials { margin-bottom: 60px; }
.contact { margin-bottom: 60px; }
.thank-you { margin-bottom: 60px; }
.legal { margin-bottom: 60px; }

/****************************/ 
/* FLEXBOX AND GRID PARTS   */
/****************************/
.card-container,
.feature-grid,
.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0 0;
  justify-content: flex-start;
}
.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;
  }
}

/****************************/ 
/* STRUCTURED CARDS/ELEMENTS */
/****************************/
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px -4px var(--shadow);
  padding: 30px 28px 28px 28px;
  min-width: 250px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  border: 2.5px solid var(--gray-100);
  transition: box-shadow 0.17s, border-color 0.21s;
}
.card:hover {
  box-shadow: 0 8px 32px -6px var(--shadow);
  border-color: var(--accent);
}

/****************************/ 
/* FEATURE BLOCKS */
/****************************/
.feature-grid, .topic-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .topic-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px -6px var(--shadow);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 320px;
  min-height: 215px;
  padding: 30px 22px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2px solid var(--gray-100);
  position: relative;
  transition: box-shadow 0.16s, border-color 0.21s;
}
.feature-grid > div:hover, .topic-grid > div:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px -6px var(--shadow);
}
.feature-grid img, .topic-grid img {
  width: 42px; height: 42px;
  margin-bottom: 12px;
}
.feature-grid h3, .topic-grid h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.feature-grid p, .topic-grid p {
  font-size: 0.98rem;
  color: #4e5d69;
  margin-bottom: 0;
}

/****************************/ 
/* TESTIMONIALS */
/****************************/
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 24px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 24px -6px var(--shadow);
  border: 2.5px solid var(--gray-100);
  font-size: 1.08rem;
  width: 340px;
  max-width: 100%;
  min-height: 170px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.testimonial-card p {
  color: #2B405A;
  font-size: 1.06rem;
}
.testimonial-card span {
  font-size: 0.94rem;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 36px -8px var(--shadow);
}

/****************************/ 
/* CONTACT DETAILS */
/****************************/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-details img {
  width: 26px; height: 26px;
}
.map-snippet {
  background: var(--gray-100);
  border-radius: 11px;
  padding: 13px 16px;
  margin: 20px 0 0 0;
  font-size: 0.98rem;
  color: #14324a;
  font-style: italic;
}

/****************************/ 
/* FAQ ACCORDION (STATIC) */
/****************************/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 18px 0;
}
.faq-accordion > div {
  background: var(--gray-100);
  border-radius: 13px;
  padding: 18px 24px;
  border-left: 6px solid var(--primary);
}
.faq-accordion strong {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.faq-accordion p {
  color: #263951;
  font-size: 0.98rem;
}

/****************************/ 
/* TIMELINE (PROCESS PAGE) */
/****************************/
.timeline ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-start;
}
.timeline li {
  background: var(--accent);
  color: var(--primary);
  border-radius: 11px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 3px 16px -8px var(--shadow);
  letter-spacing: 0.03em;
}

/****************************/ 
/* CTA SECTION */
/****************************/
.cta {
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 22px;
  position: relative;
}
.cta h2, .cta p {
  color: #fff;
}
.cta a.btn-primary {
  background: #fff;
  color: var(--primary);
  margin-top: 20px;
  box-shadow: 0 2px 8px -4px var(--shadow);
}
.cta a.btn-primary:hover {
  background: var(--accent);
  color: var(--primary);
}

/****************************/ 
/* FOOTER */
/****************************/
footer {
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -2px 16px -8px var(--shadow);
  margin-top: 60px;
  padding: 32px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 17px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover {
  background: var(--gray-100);
  color: var(--accent);
}
.brand-statement {
  font-size: 0.96rem;
  color: #646a7a;
  margin-top: 12px;
}
.brand-statement p {
  font-family: 'Roboto', Arial, sans-serif;
}

/****************************/ 
/* LEGAL/ABOUT/ARTICLE PAGES */
/****************************/
.legal, .about {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 28px -10px var(--shadow);
}
.legal h1, .about h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}
.legal h2, .about h2 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal ul, .about ul {
  margin: 12px 0 18px 18px;
  padding-left: 15px;
}
.legal ul li, .about ul li {
  list-style: disc;
  font-size: 0.98rem;
  margin-bottom: 5px;
}

/****************************/ 
/* THANK YOU PAGE */
/****************************/
.thank-you {
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px -8px var(--shadow);
  padding-top: 60px;
  padding-bottom: 60px;
}
.thank-you h1 {
  color: var(--primary);
  margin-bottom: 18px;
}

/****************************/ 
/* COOKIE CONSENT BANNER */
/****************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1500;
  background: #fff;
  box-shadow: 0 -2px 40px -12px var(--shadow), 0 -1px 12px 0 var(--gray-200);
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 26px 18px 18px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.34s cubic-bezier(.83,-0.01,.46,1.09);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-content {
  flex: 1 1 0;
  color: var(--primary);
  font-size: 0.99rem;
  max-width: 700px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.93rem;
  padding: 8px 17px;
  border-radius: 9px;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.16s, color 0.17s, border 0.17s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.reject:hover {
  color: #fff;
  background: var(--primary);
}
.cookie-btn.settings {
  background: var(--gray-100);
  color: var(--primary);
  border: 1.5px solid var(--gray-200);
}
.cookie-btn.settings:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/***********************************************************
  Cookie Preferences Modal
***********************************************************/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,53,80,.70);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 44px -8px var(--shadow);
  min-width: 320px;
  max-width: 96vw;
  width: 410px;
  padding: 36px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: cookieModalIn 0.36s cubic-bezier(.83,-0.01,.46,1.09);
}
@keyframes cookieModalIn {
  from { transform: scale(0.96) translateY(60px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.8rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.18s;
}
.cookie-modal-close:hover {
  background: var(--gray-200);
}
.cookie-category {
  background: var(--gray-100);
  border-radius: 9px;
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cookie-category strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  color: var(--primary);
}
.cookie-toggle {
  appearance: none;
  width: 40px; height: 22px;
  border-radius: 13px;
  background: var(--gray-200);
  position: relative;
  outline: none;
  margin: 0 6px;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px; left: 4px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 1px 3px 0 var(--shadow);
}
.cookie-toggle:checked:before {
  left: 21px;
}
.cookie-category.disabled {
  opacity: 0.58;
}
.cookie-category [disabled], .cookie-category.disabled label {
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 15px;
  justify-content: flex-end;
}

/****************************/ 
/* RESPONSIVENESS */
/****************************/
@media (max-width: 900px) {
  .container, .content-wrapper {
    max-width: 96vw;
    padding: 0 10px;
  }
  section {
    padding: 32px 8px;
  }
  .hero {
    padding: 32px 0;
  }
}
@media (max-width: 768px) {
  h1    { font-size: 2.1rem; }
  h2    { font-size: 1.45rem; }
  .main-nav { display: none; }
  .hero .content-wrapper { gap: 10px; }
  .feature-grid, .topic-grid, .testimonial-slider, .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .topic-grid > div, .testimonial-card {
    min-width: 90vw;
    max-width: 96vw;
  }
  .card-container { flex-direction: column; gap: 16px; }
  .content-grid { flex-direction: column; gap: 14px; }
  .testimonials .testimonial-slider { gap: 14px; }
}
@media (max-width: 540px) {
  header .container {
    padding: 8px 6px;
    gap: 9px;
  }
  .footer-nav {
    font-size: 0.95rem;
    padding-left: 2px;
  }
}

/****************************/ 
/* UTILITY */
/****************************/
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-1 { margin-top: 8px!important; }
.mb-1 { margin-bottom: 8px!important; }
.mt-2 { margin-top: 16px!important; }
.mb-2 { margin-bottom: 16px!important; }
.gap-1 { gap: 8px!important; }
.gap-2 { gap: 20px!important; }

/****************************/ 
/* ANIMATION MICROINTERACTIONS */
/****************************/
.btn-primary,
.btn-secondary,
.cookie-btn {
  transition: background 0.19s, color 0.18s, border 0.18s, box-shadow 0.16s;
}
.feature-grid > div,
.topic-grid > div,
.card,
.testimonial-card {
  transition: transform 0.26s, box-shadow 0.19s, border-color 0.21s;
}
.feature-grid > div:hover, .topic-grid > div:hover,
.card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.02);
}

/* FOCUS STATES FOR ACCESSIBILITY */
a:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus, button:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/****************************/ 
/* MISC BRANDING ACCENTS */
/****************************/
section::before {
  content: '';
  display: none;
}

/****************************/
/* OVERWRITE AUTOFILL STYLES */
****************************/
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--primary);
}

/****************************/
/* PRINT */
****************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none!important; }
  body { background: #fff!important; }
  section, .content-wrapper, .container { box-shadow: none!important; background: #fff!important; }
}
