/* -------------------------------------------------
   Reset & Base Styles
--------------------------------------------------- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #181818;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; height: auto; border: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
strong, b { font-weight: bold; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  color: #101010;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol, .text-section {
  font-size: 1rem;
  color: #242424;
  margin-bottom: 16px;
}
ul, ol { padding-left: 1.5em; }
ul li, ol li { margin-bottom: 8px; }

a:hover, nav a:hover, .mobile-nav a:hover {
  color: #181818;
  text-decoration: underline;
  transition: color 0.15s;
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(15,15,15,0.10);
}

/* Section Spacing */
section {
  margin-bottom: 60px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* -------------------------------
   Header & Navi
------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img { width: 138px; height: auto; }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #181818;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav a.cta.primary {
  background: #181818;
  color: #fff;
  border-radius: 10px;
  padding: 8px 25px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #181818 inset;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
nav a.cta.primary:hover {
  background: #fff;
  color: #181818;
  box-shadow: 0 0 0 2px #181818 inset, 0 2px 8px rgba(15, 15, 15, 0.13);
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  background: #181818;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 14px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #222;
  color: #fff;
}

/* ---------------------------
   Mobile Menu Slide-in
--------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; right: 0;
  width: 335px;
  max-width: 90vw;
  height: 100vh;
  background: #101010;
  box-shadow: -2px 0 24px rgba(0,0,0,0.13);
  z-index: 1001;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.55, 0.06, 0.68, 0.19);
  padding: 38px 30px 24px 30px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: transparent;
  color: #fff;
  border: none;
  margin-bottom: 28px;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F9F9F9;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  padding: 13px 0 13px 6px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a.cta.primary {
  background: #fff;
  color: #181818;
  border-radius: 12px;
  padding: 13px 20px;
  margin-top: 14px;
  font-weight: 800;
  box-shadow: 0 0 0 2px #fff inset;
}
.mobile-nav a:hover {
  background: #2d2d2d;
  color: #fff;
}
.mobile-nav a.cta.primary:hover {
  background: #181818;
  color: #fff;
}

/* Hide nav and show hamburger on mobile */
@media (max-width: 950px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ------------------------------------
   Main Buttons, Links & CTA's
-------------------------------------*/
.cta.primary {
  display: inline-block;
  background: #181818;
  color: #fff;
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  padding: 12px 34px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 0 2px #181818 inset, 0 8px 24px rgba(40,40,40,0.10);
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.08s;
  letter-spacing: 0.01em;
  text-align: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: #fff;
  color: #181818;
  box-shadow: 0 0 0 2px #181818 inset, 0 4px 24px rgba(15,15,15,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* ------------------------------------
   Feature Cards / Category Cards
-------------------------------------*/
.feature-grid, .category-cards, .article-previews, .featured-article-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 30px;
}
.feature-grid > div, .category-cards > a > div, .article-previews > div, .featured-article-cards > div {
  background: #fafafb;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(20,20,20,0.07);
  padding: 28px 22px 18px 22px;
  min-width: 225px;
  flex: 1 1 225px;
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.13s, transform 0.13s, background 0.13s;
  border: 1px solid #ececec;
}
.feature-grid > div:hover, .category-cards > a > div:hover, .article-previews > div:hover, .featured-article-cards > div:hover {
  background: #f8f8f8;
  box-shadow: 0 7px 28px rgba(20,20,20,0.14);
  transform: translateY(-2px) scale(1.015);
}
.category-cards > a { flex: 1 1 225px; min-width: 225px; transition: filter 0.1s; }
.category-cards > a:focus-visible > div,
.category-cards > a:hover > div {
  background: #fff;
  border-color: #bbb;
  box-shadow: 0 8px 32px rgba(30,30,30,0.13);
}

/* Icon in cards */
.feature-grid img, .category-cards img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: grayscale(1) contrast(1.13);
}

/* ------------------------------------
   Service List
-------------------------------------*/
.service-list {
  margin-top: 14px;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-list li {
  background: #f6f6f6;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(20,20,20,0.06);
  padding: 22px 24px 16px 24px;
  font-size: 1.08rem;
  margin-bottom: 0;
  color: #222;
  font-weight: 500;
  border-left: 4px solid #222;
}
.service-list li strong {
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-size: 1.07em;
  color: #111;
  font-weight: 700;
}
.service-list li span { display: block; font-size: 0.98em; color: #555; margin-top: 7px; font-weight: 400; }

/* ------------------------------------
   Topic Tags
-------------------------------------*/
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 12px 0;
}
.topic-tags span {
  display: inline-block;
  background: #181818;
  color: #fff;
  border-radius: 7px;
  padding: 5px 16px;
  font-size: 0.97rem;
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(15,15,15,0.12);
}

/* ------------------------------------
   Testimonials & Slider
-------------------------------------*/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 15px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 18px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(33,33,33,0.13);
  min-width: 250px;
  max-width: 420px;
  border: 1px solid #e2e2e2;
  transition: box-shadow 0.15s, transform 0.11s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(45,45,45,0.20);
  transform: scale(1.030);
}
.testimonial-card p {
  color: #131313;
  font-size: 1.15rem;
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  margin-bottom: 6px;
}
.testimonial-card span,
.testimonial-card strong {
  color: #5a5a5a;
  font-size: 0.98em;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}

/* Ensure testimonial readability on monochrome bg */
.testimonial-card {
  background: #fafafa;
  color: #131313;
}

/* ------------------------------------
   Footer
-------------------------------------*/
footer {
  background: #111;
  color: #f2f2f2;
  padding: 44px 0 24px 0;
  margin-top: 50px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  margin-bottom: 30px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav nav a {
  color: #eee;
  font-size: 1.04rem;
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  border-radius: 7px;
  transition: background 0.14s, color 0.16s;
  padding: 0px 2px 2px 2px;
}
.footer-nav nav a.cta.primary {
  background: #fff;
  color: #101010;
  padding: 7px 22px;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: bold;
}
.footer-nav nav a:hover {
  background: #2a2a2a;
  color: #fff;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 15px;
}
.footer-brand img { width: 120px; margin-bottom: 7px; }
.footer-brand span {
  color: #c0c0c0;
  font-size: 1.02rem;
  font-style: italic;
}
.footer-brand p { color: #ababab; font-size: 0.95rem; font-weight: 400; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-top: 14px;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ededed;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-contact img { width: 22px; height: 22px; opacity: 0.70; filter: grayscale(1); }

/* ------------------------------------
   Utility Classes & Responsive Grids
-------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 20px rgba(30,30,30,.10);
  padding: 20px 24px 17px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.13s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 9px 26px rgba(20,20,20,.13);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  margin-bottom: 20px;
  font-size: 1.07rem;
}
.text-section img {
  width: 22px;
  height: 22px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}

/* ------------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 2000;
  background: #191919;
  color: #fff;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.18);
  padding: 24px 16px 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: center;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(.5,.13,.55,.88), opacity 0.32s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.04em;
  color: #f9f9f9;
  font-family: 'Roboto', Arial, sans-serif;
  margin-right: 12px;
  flex: 0 1 390px;
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 9px;
  padding: 9px 22px;
  font-size: 1.05em;
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-right: 7px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.cookie-banner .cookie-btn.accept {
  background: #fff;
  color: #181818;
  box-shadow: 0 0 0 2px #fff inset;
}
.cookie-banner .cookie-btn.accept:hover {
  background: #ececec;
}
.cookie-banner .cookie-btn.reject {
  background: #191919;
  color: #fff;
  box-shadow: 0 0 0 2px #fff inset;
  border: 1px solid #fff;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #2d2d2d;
}
.cookie-banner .cookie-btn.settings {
  background: none;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: none;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #101010;
  color: #fff;
  border-color: #ddd;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(16,16,16,0.78);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  max-width: 400px;
  min-width: 290px;
  border-radius: 14px;
  padding: 35px 22px 28px 22px;
  box-shadow: 0 16px 40px rgba(15,15,15,0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  font-size: 1.4em;
  font-family: 'Nunito', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: #101010;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-modal label {
  font-size: 1em;
  color: #161616;
  cursor: pointer;
}
.cookie-modal .switch {
  width: 40px;
  height: 20px;
  background: #ececec;
  border-radius: 12px;
  position: relative;
  margin-right: 4px;
  transition: background 0.15s;
  outline: none;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #101010;
  transition: transform 0.17s, background 0.16s;
}
.cookie-modal .switch input:checked + .slider {
  transform: translateX(18px);
  background: #191919;
}
.cookie-modal .switch input:disabled + .slider {
  background: #b5b5b5;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  font-size: 1.04em;
}
.cookie-modal .cookie-btn.accept { background: #191919; color: #fff; }
.cookie-modal .cookie-btn.reject { background: #fff; color: #191919; border: 1px solid #191919; }
.cookie-modal .cookie-btn.close {
  background: none;
  color: #646464;
  position: absolute;
  right: 17px;
  top: 13px;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-btn.close:hover { color: #181818; }

/* ------------------------------------
   Responsive Styles (Mobile-first)
-------------------------------------*/
@media (max-width: 1050px) {
  .container { padding: 0 13px; }
  .content-wrapper { padding: 32px 8px; }
  .service-list li, .testimonial-card, .feature-grid > div, .category-cards > a > div, .article-previews > div, .featured-article-cards > div { padding: 18px 10px 12px 13px; }
}
@media (max-width: 850px) {
  .feature-grid, .category-cards, .article-previews, .featured-article-cards, .testimonial-slider, .card-container { gap: 12px; }
  .service-list { gap: 16px; }
}
@media (max-width: 768px) {
  .container { max-width: 99vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.07rem; }
  .content-wrapper {
    padding: 38px 6px;
    margin-bottom: 38px;
    border-radius: 13px;
  }
  .section { margin-bottom: 38px; padding: 28px 8px; }
  .feature-grid, .category-cards, .article-previews, .featured-article-cards, .testimonial-slider, .card-container { flex-direction: column; gap: 13px; }
  .footer-nav { flex-direction: column; gap: 20px; margin-bottom: 16px; }
  .footer-contact { flex-direction: column; gap: 11px; align-items: flex-start; }
  .testimonial-card, .service-list li, .feature-grid > div, .category-cards > a > div, .article-previews > div, .featured-article-cards > div { min-width: unset; max-width: 100%; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .content-grid { flex-direction: column; gap: 13px; }
  .cookie-banner { flex-direction: column; gap: 13px; padding: 19px 6px; }
  .cookie-banner .cookie-text { font-size: 0.99em; margin-right: 0; }
}

@media (max-width: 520px) {
  header .container {
    flex-direction: row;
    gap: 7px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .logo img { width: 91px; }
  .content-wrapper { border-radius: 7px; }
  .testimonial-card, .service-list li {
    padding: 10px 5px 10px 8px;
    border-radius: 7px;
  }
}

/* ------------------------------------
   Subtle Animations
-------------------------------------*/
.cta.primary, button, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.10s;
}
nav a, .footer-nav nav a, .mobile-nav a { transition: color 0.16s, background 0.18s; }
.card, .feature-grid > div, .category-cards > a > div, .testimonial-card, .service-list li {
  transition: box-shadow 0.21s, transform 0.14s, background 0.14s;
}

/* ------------------------------------
   Misc Utility Tweaks
-------------------------------------*/
::-webkit-input-placeholder { color: #757575; opacity: 1; }
::-moz-placeholder { color: #757575; opacity: 1; }
:-ms-input-placeholder { color: #757575; opacity: 1; }
::placeholder { color: #757575; opacity: 1; }

/* remove blue tap highlight on mobile */
* { -webkit-tap-highlight-color: rgba(0,0,0,0.04); }

/* highlight focus */
a:focus, button:focus, .cookie-btn:focus, input:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* prevent overlapping and preserve spacing */
section, .content-wrapper, .card, .feature-grid > div, .category-cards > a > div, .testimonial-card, .service-list li, .footer-nav nav a, .footer-contact > div {
  margin-bottom: 20px;
}

/* ONLY FLEXBOX layouts applied. NO grid/columns. */
/* End of CSS */