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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FAFAFA;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
  margin-left: 0;
}

a {
  color: #14316B;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E3841A;
  text-decoration: underline;
  outline: none;
}

/* --- COLOR PALETTE as CSS variables --- */
:root {
  --color-primary: #14316B;
  --color-secondary: #EAEAEA;
  --color-accent: #E3841A;
  --color-bg: #FAFAFA;
  --color-card: #FFF;
  --color-shadow: rgba(20,49,107,0.08);
  --color-border: #E0E4EA;
  --color-contrast: #222;
  --color-header-bg: #FFF;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  color: var(--color-primary);
  font-weight: 600;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--color-header-bg);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 0 0 0 0;
  min-height: 72px;
}
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  position: relative;
  z-index: 20;
}
header > a img {
  height: 44px;
  aspect-ratio: 6/2;
  padding: 12px 0 12px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  margin-left: 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.btn-primary {
  border: none;
  outline: none;
  border-radius: 7px;
  background: var(--color-primary);
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 26px;
  font-size: 1.06rem;
  box-shadow: 0 2px 12px rgba(20,49,107,0.11);
  cursor: pointer;
  transition: background .15s, transform .16s, box-shadow .20s;
  margin-left: 14px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: #FFF;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(227,132,26,0.10);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin-left: 16px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
}


/* --- MOBILE MENU --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1002;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,250,250,0.99);
  box-shadow: 0 2px 30px rgba(20,49,107,0.16);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 22px 18px 0 auto;
  padding: 8px 16px;
  border: none;
  box-shadow: none;
  background: transparent;
  font-size: 2.3rem;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-top: 12px;
  margin-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 13px 0;
  border-radius: 7px;
  min-width: 200px;
  width: 100%;
  transition: background 0.20s, color 0.2s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}


/* --- SECTIONS & LAYOUT ---  */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}
.feature-item {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--color-shadow);
  border: 1.5px solid var(--color-border);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 268px;
  min-height: 230px;
  transition: box-shadow .19s, transform .15s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 30px 0 rgba(20,49,107,0.15);
  transform: translateY(-3px) scale(1.017);
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: var(--color-secondary);
  padding: 4px;
}
.service-price {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  margin-left: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--color-card);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .16s, transform .12s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 30px 0 rgba(20,49,107,.13);
  transform: translateY(-1.6px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 12px;
  background: var(--color-secondary);
  padding: 24px 30px;
  min-width: 250px;
  font-size: 1.05rem;
}
.location-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.articles-section ul {
  margin-bottom: 18px;
  margin-left: 24px;
  list-style: disc inside;
}
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 34px 0 0 0;
}

.steps-section ol, .steps-section ul {
  margin-left: 24px;
  margin-bottom: 18px;
}
.steps-section ol {
  list-style: decimal inside;
}
.steps-section ul {
  list-style: disc inside;
}

.legal-section ul {
  margin-left: 24px;
  margin-bottom: 18px;
  list-style: disc inside;
}

/* --- TESTIMONIALS --- */
.testimonial-section,
.testimonial-carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.testimonial-card {
  background: var(--color-secondary);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(20,49,107,0.09);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 250px;
  max-width: 420px;
  margin-bottom: 20px;
  border: 1.5px solid var(--color-border);
  transition: box-shadow .18s, transform .13s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 30px 0 rgba(20,49,107,0.13);
  transform: translateY(-2px) scale(1.013);
}
.testimonial-content {
  color: #232224;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-meta {
  color: var(--color-primary);
  font-size: 0.99rem;
}
.testimonial-meta img {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}
strong {
  color: var(--color-primary);
}

.trusted-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.trusted-badges img {
  width: 28px;
  height: 28px;
  background: none;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: var(--color-header-bg);
  min-height: 80px;
  box-shadow: 0 -2px 11px rgba(20,49,107,0.07);
  padding: 40px 0 0 0;
  margin-top: 32px;
}
footer .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-nav a {
  font-size: 0.97rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
footer p {
  font-size: 0.90rem;
  color: #7d828f;
  margin-bottom: 24px;
}
footer img {
  width: 51px;
  height: auto;
  margin-bottom: 4px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF;
  color: var(--color-primary);
  box-shadow: 0 -4px 24px 0 rgba(20,49,107,0.14);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 24px 24px 24px 22px;
  font-size: 1.06rem;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s, transform .33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  flex: 1;
  margin-bottom: 0;
}
.cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-btns .btn-primary,
.cookie-btns .btn-secondary {
  font-size: 1rem;
  padding: 9px 18px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.cookie-btns .btn-primary {
  background: var(--color-primary);
  color: #FFF;
}
.cookie-btns .btn-primary:hover,
.cookie-btns .btn-primary:focus {
  background: var(--color-accent);
}
.cookie-btns .btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-btns .btn-secondary:hover,
.cookie-btns .btn-secondary:focus {
  background: #e2e2e2;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,49,107,.25);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #FFF;
  border-radius: 19px;
  box-shadow: 0 8px 32px 0 rgba(20,49,107,0.18);
  padding: 36px 32px 28px 32px;
  max-width: 390px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalPop .33s cubic-bezier(.7,0,.175,1);
}
@keyframes cookieModalPop {
  0% { opacity: 0; transform: scale(0.85); }
  85% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.38rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category-row label {
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category-row input[type="checkbox"] {
  accent-color: var(--color-accent);
  scale: 1.18;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 9px;
  padding: 2px 8px;
  line-height: 1;
  transition: background 0.11s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
}

/* --- FORMS (generic for info/poss future use) --- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid var(--color-border);
  padding: 9px 13px;
  margin-bottom: 12px;
  background: #FFF;
  outline: none;
  box-shadow: none;
  transition: border-color .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}
label {
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-block;
  color: var(--color-primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .container { max-width: 99vw; }
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .testimonial-carousel, .testimonial-section {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item, .testimonial-card { max-width: 100%; min-width: 180px; }
  header { gap: 10px; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }

  header { flex-wrap: wrap; min-height: 54px; padding-bottom: 0; gap: 0; }
  .main-nav { display: none; }
  .btn-primary { margin-left: 0; }
  .mobile-menu-toggle { display: inline-block; margin-left: auto; margin-right: 6px; }
  .container { padding: 0 6vw; }
  section { padding: 32px 5vw; margin-bottom: 45px; }
  .content-wrapper, .feature-grid, .card-container, .content-grid, .testimonial-section, .testimonial-carousel {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section, .contact-section { flex-direction: column; gap: 20px; }
  .map-embed { flex-direction: row; min-width: 0; width: 100%; padding: 14px 14px; gap: 12px; }
  .cta-section { margin-top: 26px; }
  .trusted-badges { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.27rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 8vw 18px 4vw; }
  .cookie-btns { width: 100%; justify-content: flex-start; gap: 10px; }
}
@media (max-width: 440px) {
  .cookie-modal { padding: 15vw 2vw; }
  section { padding: 22px 2vw; }
}

/* --- MISC and UTILITY --- */
::-webkit-input-placeholder { color: #b7b9c7; }
::-moz-placeholder { color: #b7b9c7; }
:-ms-input-placeholder { color: #b7b9c7; }
::placeholder { color: #b7b9c7; }

::-webkit-scrollbar {
  width: 8px; background: #EEE;
}
::-webkit-scrollbar-thumb {
  background: #d7dbe5; border-radius: 7px;
}

/* Selection */
::selection { background: #E3841A22; }


/* --- ANIMATIONS & INTERACTIONS --- */
.btn-primary, .card, .feature-item, .testimonial-card {
  transition: background .18s, color .15s, box-shadow .20s, transform .18s;
}
.btn-primary:active, .feature-item:active, .testimonial-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px var(--color-shadow);
}

/* --- VISIBILITY HELPERS (for cookie modal etc) --- */
.hide { display: none !important; }

/* --- Custom: Feint logo background for hero section (optional, decorative only) --- */
.hero-bg {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 340px;
  background: url('../assets/logo-mark.svg') no-repeat top right;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  background-size: 270px auto;
  display: none;
}
@media (min-width: 900px) {
  .hero-bg { display: block; }
}

/* --- FOCUS VISIBLE ENHANCEMENTS --- */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 1.5px;
}

/* --- END OF STYLE.CSS --- */
