/* TrafiInter Style - Vibrant & Energetic Flexbox CSS */
/* RESET & BASELINE ----------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F9FA;
  color: #23435C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  line-height: 1.6;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #23435C;
  text-decoration: none;
  transition: color 0.25s, box-shadow 0.25s;
}
a:focus, a:hover {
  color: #FFD166;
  outline: none;
  box-shadow: 0 2px 0 #FFD166;
}
ul, ol {
  padding-left: 1.15em;
  margin-bottom: 1.5em;
}
li + li {
  margin-top: 8px;
}
hr {
  border: none;
  border-top: 1.5px solid #E2E7EA;
  margin: 28px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
th, td {
  padding: 12px 8px;
  border: 1.5px solid #dedede;
  text-align: left;
}
th {
  background: #23435C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
}

/* TYPOGRAPHY HIERARCHY ------------------------------------------------------- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1.14;
  font-weight: 900;
  margin-bottom: 24px;
  color: #23435C;
  letter-spacing: -2px;
}
@media (min-width: 600px) { h1, .h1 { font-size: 3rem; } }
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  color: #183757;
  letter-spacing: -1px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 12px;
  color: #23435C;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #23435C;
}
p, .text-section p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: #23435C;
}
.b, b, strong {
  font-weight: 700;
  color: #23435C;
}

/* LAYOUT CONTAINERS ---------------------------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(35,67,92,0.08);
}
@media (max-width: 768px) {
  section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
  align-items: flex-start;
}

/* FLEXBOX UTILITY BLOCKS ----------------------------------------------------- */
.card-container,
.card-grid,
.features,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 28px 0 rgba(35,67,92,0.10);
  padding: 22px 20px 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 230px;
}
.card:hover {
  box-shadow: 0 10px 36px 3px #FFD16644;
  transform: translateY(-6px) scale(1.018);
}
.service-card,
.tip-card {
  margin-bottom: 20px;
  background: #F6F9FA;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(35,67,92,0.09);
  padding: 22px 20px 18px 20px;
  border-left: 6px solid #FFD166;
  position: relative;
  transition: background 0.24s, box-shadow 0.21s;
}
.service-card:hover, .tip-card:hover {
  background: #fffbe6;
  box-shadow: 0 4px 16px 1px #FFD16635;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}
.card-content > *:not(:last-child) {
  margin-bottom: 8px;
}
.content-grid {
  gap: 20px;
}
.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;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 1px #12324b1A;
  border-left: 6px solid #23435C;
  min-width: 220px;
  max-width: 700px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px 6px #FFD16633;
}
.testimonial-card p {
  color: #183757;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.4;
}
.testimonial-card div {
  color: #23435C;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* NAVIGATION HEADER ---------------------------------------------------------- */
header {
  width: 100%;
  background: #23435C;
  box-shadow: 0 4px 24px -5px rgba(35,67,92,0.1);
  position: relative;
  z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 16px;
  max-width: 1140px;
  margin: 0 auto;
  height: 74px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.19s, background 0.22s, box-shadow 0.12s;
  position: relative;
  padding: 8px 8px;
  border-radius: 6px;
}
header nav a.cta {
  background: #FFD166;
  color: #23435C !important;
  border-radius: 16px;
  box-shadow: 0 2px 10px #FFD16655;
  font-weight: 900;
  padding: 10px 22px;
  margin-left: auto;
  margin-right: 0;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  transition: background 0.13s, color 0.16s, box-shadow 0.17s, transform 0.19s;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #23435C;
  color: #FFD166 !important;
  box-shadow: 0 2px 22px #FFD16699;
  transform: scale(1.08);
}
header nav a:hover, header nav a:focus:not(.cta) {
  color: #FFD166;
  background: #183757;
}
header nav img {
  height: 44px;
  width: auto;
  margin-right: 16px;
  display: block;
}
@media (max-width: 1024px) {
  header nav {
    gap: 14px;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 9px;
  }
  header nav a.cta {
    margin-left: 0;
    padding: 8px 10px;
    font-size: 1rem;
  }
}

/* MOBILE HAMBURGER MENU ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  width: 40px;
  height: 40px;
  background: #FFD166;
  color: #23435C;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px #FFD16655;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.21s, color 0.1s;
}
.mobile-menu-toggle:active {
  background: #fbc500;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav {
    display: none;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #23435C;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.8,0.1,0.3,1.1);
  box-shadow: 0 2px 24px #18375799;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: #FFD166;
  color: #23435C;
  border: none;
  border-radius: 10px;
  font-size: 1.9rem;
  font-weight: bold;
  align-self: flex-end;
  margin: 20px 18px 10px 0;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 8px #FFD16680;
  cursor: pointer;
  transition: background 0.17s, color 0.19s;
  z-index: 10000;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #23435C;
  color: #FFD166;
  outline: 2px solid #FFD166;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  align-items: center;
  margin-top: 16px;
}
.mobile-nav a {
  color: #FFD166;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: bold;
  padding: 18px 0;
  width: 100vw;
  text-align: center;
  border-bottom: 1.5px solid #254c6b;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: background 0.13s, color 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #23435C;
  background: #FFD166;
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* BUTTONS -------------------------------------------------------------------- */
.cta, .cookie-accept, .cookie-reject, .cookie-settings {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  background: #FFD166;
  color: #23435C;
  padding: 12px 28px;
  border: none;
  border-radius: 60px;
  box-shadow: 0 4px 18px #FFD16680;
  transition: background 0.18s, color 0.16s, box-shadow 0.14s, transform 0.16s;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}
.cta:hover, .cta:focus, .cookie-accept:hover, .cookie-accept:focus {
  background: #23435C;
  color: #FFD166;
  box-shadow: 0 6px 24px #FFD166BB;
  transform: scale(1.07);
}
.cookie-reject {
  background: #fff;
  color: #23435C;
  border: 2px solid #FFD166;
  box-shadow: none;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #FFD166;
  color: #23435C;
}
.cookie-settings {
  background: #23435C;
  color: #FFD166;
  border: 2px solid #FFD166;
  box-shadow: none;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #FFD166;
  color: #23435C;
}

/* BLOG AND SEARCH ------------------------------------------------------------ */
.blog-highlighted-posts {
  background: #ffe1772a;
  border-left: 6px solid #FFD166;
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 1px 8px 0 #FFD16622;
}
.blog-highlighted-posts h2 {
  margin-bottom: 11px;
  font-size: 1.25rem;
  color: #23435C;
}
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.categories-list h2 {
  font-size: 1.1rem;
  color: #23435C;
}
.search-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.search-bar input {
  padding: 8px 13px;
  border: 2px solid #FFD166;
  border-radius: 9px;
  font-size: 1rem;
  outline: none;
  transition: border 0.17s;
  color: #23435C;
  background: #F6F9FA;
}
.search-bar input:focus {
  border: 2.5px solid #23435C;
  background: #fffcb7;
}

/* FOOTER --------------------------------------------------------------------- */
footer {
  background: #23435C;
  color: #fff;
  padding: 34px 0 28px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #FFD166;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: color 0.13s, background 0.16s;
  padding: 3px 7px;
}
footer nav a:hover, footer nav a:focus {
  color: #23435C;
  background: #FFD166;
}
footer img {
  width: 48px;
  height: auto;
  border-radius: 12px;
}
footer .text-section p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
}
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  background: #FFD166;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #FFD16630;
  transition: background 0.2s, transform 0.22s;
}
.social-links a:hover, .social-links a:focus {
  background: #23435C;
  transform: scale(1.11);
}
.social-links img {
  width: 19px;
  height: 19px;
  display: block;
  filter: brightness(0) saturate(100%) invert(15%) sepia(81%) saturate(1000%) hue-rotate(173deg) brightness(86%) contrast(93%);
}
.social-links a:hover img {
  filter: none;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
}
footer .text-section {
  gap: 6px;
}

/* COOKIES CONSENT BANNER ----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #23435C;
  color: #FFD166;
  padding: 24px 18px 24px 16px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -3px 32px 4px #18375785;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 34px;
  justify-content: space-between;
  z-index: 22000;
  transition: transform 0.29s cubic-bezier(.73,-0.02,.76,1.06), opacity 0.19s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(180px);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  font-family: 'Roboto', Arial, sans-serif;
  color: #FFD166;
  font-size: 1.05rem;
  flex: 2 1 60%;
  margin-right: 18px;
}
.cookie-banner .actions {
  display: flex;
  flex-direction: row;
  gap: 9px;
  align-items: center;
}
.cookie-banner button {
  margin: 0 0 0 0;
  min-width: 105px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 7px 20px 7px;
  }
  .cookie-banner .actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* COOKIES CONSENT MODAL ------------------------------------------------------ */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #23435Ccc;
  z-index: 22010;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  animation: fadeInOverlay 0.25s linear;
}
@keyframes fadeInOverlay { 0% { opacity:0;} 100% { opacity:1;} }
.cookie-modal {
  background: #F6F9FA;
  color: #23435C;
  border-radius: 20px;
  max-width: 430px;
  width: 99vw;
  padding: 36px 26px 22px 26px;
  box-shadow: 0 8px 70px 10px #23435C40;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.42rem;
  color: #23435C;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
  font-weight: 800;
}
.cookie-modal ul {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  font-size: 1.07rem;
  color: #23435C;
  gap: 7px;
}
.cookie-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #FFD166;
  cursor: pointer;
  margin-right: 7px;
}
.cookie-modal input[type="checkbox"]:disabled {
  opacity: .66;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 17px; top: 17px;
  background: #FFD166;
  color: #23435C;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.28rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.14s;
  z-index: 22100;
}
.cookie-modal-close:hover, .cookie-modal-close:focus{
  background: #23435C;
  color: #FFD166;
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 19px 7px 14px 7px;
    max-width: 97vw;
  }
  .cookie-modal .modal-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}

/* MISC UTILITIES AND EFFECTS ------------------------------------------------- */
.shadow-pop {
  animation: shadowPop 0.38s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes shadowPop {
  0% { box-shadow: 0 2px 16px #FFD16644; transform: scale(0.97); }
  55% { box-shadow: 0 12px 64px #FFD16650; transform: scale(1.13); }
  100% { box-shadow: 0 4px 28px #FFD16638; transform: scale(1); }
}

/* RESPONSIVE SPACING AND TYPOGRAPHY ------------------------------------------ */
@media (max-width: 760px) {
  .container {
    padding: 0 6px;
  }
  .card, .service-card, .tip-card, .testimonial-card {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.29rem; }
  h3, .h3 { font-size: 1.07rem; }
  .cta, .cookie-accept, .cookie-reject, .cookie-settings {
    font-size: 1rem;
    padding: 10px 15px;
  }
}

/* FOCUS STATES FOR ACCESSIBILITY --------------------------------------------- */
a, button, .cta, input, .mobile-menu-close {
  outline: none;
}
a:focus, button:focus, .cta:focus, .mobile-menu-close:focus, .cookie-modal-close:focus, .cookie-settings:focus, .cookie-accept:focus, .cookie-reject:focus {
  box-shadow: 0 0 0 3px #FFD16655;
  outline: none;
}

/* BRAND COLORS (REFERENCE for devs: #23435C primary, #FFD166 accent, #F6F9FA bg ) */
