/* --- CSS RESET & NORMALIZATION --- */
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F4F6F6;
  color: #283747;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  margin: 8px 0 8px 24px;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #156191;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2980B9;
  text-decoration: underline;
  outline: none;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  color: #1a2636;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a2636;
}
h3, .h3 {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #283747;
}
h4, .h4 {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
}
p, li {
  font-size: 1rem;
  color: #283747;
}
.subheadline {
  font-size: 1.18rem;
  color: #2980B9;
  margin-bottom: 18px;
}
strong, b {
  font-weight: bold;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  margin-bottom: 40px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #ffffff;
  box-shadow: 0 2px 8px 0 rgba(40,55,71,.07);
  padding: 0;
  border-bottom: 1px solid #f1f1f1;
  position: relative;
  z-index: 101;
}
.logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}
.header .container, .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #284462;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #f6e8e6;
  color: #156191;
}
.main-nav .btn-primary {
  min-width: 46px;
  padding: 8px 22px;
}

/* --- BUTTONS --- */
.btn-primary, .btn-cta {
  display: inline-block;
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #ffb073;
  color: #1a2636;
  border: none;
  border-radius: 26px;
  padding: 12px 32px;
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(40,55,71,.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  outline: none;
}
.btn-primary:hover, .btn-cta:hover, .btn-primary:focus, .btn-cta:focus {
  background: #ffc98d;
  color: #0d2837;
  box-shadow: 0 4px 20px 0 rgba(255,176,115,.18);
  transform: translateY(-2px) scale(1.02);
}
.btn-primary:active, .btn-cta:active {
  background: #faab62;
  color: #1a2636;
}

/* --- HERO SECTION --- */
.hero {
  background: #fff6f0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 24px 0 rgba(255,140,45,.05);
  min-height: 260px;
  margin-bottom: 44px;
}
@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 28px 28px;
    min-height: 140px;
    margin-bottom: 20px;
    padding-top: 14px;
  }
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* --- FEATURES GRID --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 0 0;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(40,55,71,.07);
  padding: 24px 22px 18px 22px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.18s;
}
.features-grid > div:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 28px 0 rgba(255,176,115,.16);
}
.features-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}

/* --- SERVICE CARDS --- */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(40,55,71,.08);
  flex: 1 1 249px;
  min-width: 210px;
  max-width: 320px;
  margin-bottom: 20px;
  position: relative;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 22px 0 rgba(255,176,115,.17);
}
.service-price {
  color: #ff8300;
  font-weight: 700;
  margin-top: 12px;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 26px;
  background: #fff8ee;
  border-radius: 20px;
  font-style: italic;
  color: #283747;
  box-shadow: 0 3px 18px 0 rgba(255,176,115,.19);
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 260px;
  position: relative;
  margin-bottom: 20px; /* for safety, in addition to gap */
}
.testimonial-meta {
  font-style: normal;
  color: #2980B9;
  font-weight: 600;
  font-size: 0.99rem;
}

/* --- NEWSLETTER FORM --- */
.newsletter-form, .footer-newsletter form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.newsletter-form label, .footer-newsletter label {
  font-weight: 500;
  font-size: 1rem;
  margin-right: 6px;
  color: #1a2636;
}
.newsletter-form input[type="email"],
.footer-newsletter input[type="email"] {
  border: 1px solid #ffd2aa;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 1rem;
  width: 200px;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fdf6f0;
  transition: border-color 0.18s, box-shadow 0.21s;
  outline: none;
  color: #283747;
}
.newsletter-form input[type="email"]:focus,
.footer-newsletter input[type="email"]:focus {
  border-color: #ffb073;
  box-shadow: 0 2px 8px 0 rgba(255,176,115,.12);
}

/* --- TAGS & CATEGORIES --- */
.category-tags, .featured-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 10px 0;
  align-items: center;
}
.category-tags span {
  background: #ffefd9;
  color: #ff8300;
  font-weight: 600;
  border-radius: 14px;
  padding: 7px 18px;
  font-size: 0.96rem;
  box-shadow: 0 2px 10px 0 rgba(255,191,115,.06);
  margin-bottom: 8px;
  transition: background 0.16s, color 0.16s;
}
.category-tags span:hover {
  background: #ffd2aa;
  color: #1a2636;
}

/* --- ARTICLES & LISTS --- */
.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}
.article-preview, .report-preview, .guide-preview {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(40,55,71,.07);
  padding: 18px 22px;
  flex: 1 1 249px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-preview:hover, .report-preview:hover, .guide-preview:hover {
  box-shadow: 0 6px 22px 0 rgba(255,176,115,.19);
  transform: translateY(-4px) scale(1.02);
}

/* --- REPORTS & GUIDES LISTS --- */
.reports-list, .guides-list, .innovation-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}

/* --- FOOTER / SOCIAL / CONTACT --- */
footer {
  background: #283747;
  color: #fff;
  padding: 38px 0 28px 0;
  border-radius: 40px 40px 0 0;
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  width: 60px;
  height: auto;
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #ffc98d;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.17s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-newsletter input[type="email"] {
  width: 160px;
}

/* --- POLICY/TEXT BLOCKS --- */
.policy-text, .rodo-text, .terms-text, .cookies-text, .text-section, .custom-guide-info {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(40,55,71,.07);
  padding: 22px 22px 18px 22px;
  margin-bottom: 24px;
}
.policy-text ul, .rodo-text ul, .terms-text ul, .cookies-text ul {
  margin: 12px 0 0 24px;
}

/* --- FORMS & INPUTS --- */
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
}
select {
  border-radius: 10px;
  border: 1px solid #ffd2aa;
  background: #fff6e1;
  font-size: 1rem;
  padding: 8px 14px;
  margin-left: 6px;
  transition: border-color 0.14s;
}
select:focus {
  border-color: #ffb073;
}

label {
  color: #1a2636;
  font-weight: 500;
  margin-bottom: 6px;
}

/* --- RESPONSIVE FLEXBOX & MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .footer-wrapper, .features-grid, .service-cards, .testimonial-grid,
  .articles-list, .reports-list, .guides-list, .innovation-articles {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .features-grid, .service-cards, .testimonial-grid,
  .articles-list, .reports-list, .guides-list, .innovation-articles {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .section, .content-wrapper, .hero {
    padding: 0 6px;
    margin-bottom: 18px;
  }
  .testimonial-grid, .features-grid, .service-cards {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form, .footer-newsletter form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .footer-newsletter input[type="email"] {
    width: 100%;
    min-width: 0;
  }
}

/* --- FLEXBOX SPACING AND ALIGNMENT PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: #ffb073;
  color: #1a2636;
  border: none;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 104;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffc98d;
  outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff5ed;
  box-shadow: 0 8px 32px 0 rgba(40,55,71,.37);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.72,1.27,.54,1.07);
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  background: #ffd2aa;
  color: #1a2636;
  border: none;
  border-radius: 40px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1210;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffb073;
  color: #283747;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 80px;
  padding-left: 44px;
  min-width: 180px;
}
.mobile-nav a {
  color: #156191;
  font-size: 1.18rem;
  padding: 10px 0;
  border-radius: 12px;
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  min-width: 110px;
  transition: background 0.14s, color 0.12s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffd2aa;
  color: #283747;
  text-decoration: underline;
}
@media (min-width:769px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none!important;
  }
}

/* --- COOKIE CONSENT BANNER & PREFERENCES MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 1600;
  background: #fff9f2;
  color: #1a2636;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 30px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -3px 16px 0 rgba(255,176,115,.25);
  font-size: 1rem;
  animation: slideUpCookie 0.42s ease-out;
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin-left: 10px;
  background: #ffb073;
  color: #1a2636;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
  box-shadow: 0 2px 10px 0 rgba(255,176,115,.08);
  outline: none;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #ffc98d;
  color: #0d2837;
}
.cookie-banner .cookie-btn.secondary {
  background: #ffe1c3;
  color: #1a2636;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #ffd2aa;
}
.cookie-banner .cookie-btn.settings {
  background: #ddddff;
  color: #156191;
  margin-left: 6px;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #e5eafc;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 8px;
    font-size: 0.98rem;
  }
}

.cookie-modal-pref {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(28,39,56,.66);
  z-index: 1700;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.35s;
}
@keyframes fadeInCookie {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-pref.active {
  display: flex;
}
.cookie-modal-window {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 rgba(40,55,71,.22);
  min-width: 310px;
  max-width: 94vw;
  padding: 32px 26px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-window h3 {
  margin-bottom: 8px;
  color: #156191;
}
.cookie-modal-window .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal-window button {
  background: #ffb073;
  color: #1a2636;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.cookie-modal-window button:hover, .cookie-modal-window button:focus {
  background: #ffc98d;
  color: #283747;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 1.65rem;
  background: none;
  border: none;
  color: #156191;
  cursor: pointer;
  z-index: 1720;
  border-radius: 22px;
  padding: 2px 10px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f2f7ff;
  outline: none;
}

/* --- ACCESSIBILITY & FOCUS --- */
a:focus, button:focus, input:focus, select:focus {
  outline: 2px dashed #156191;
  outline-offset: 2px;
}

/* --- ANIMATIONS: CARD & BUTTONS --- */
.card, .service-card, .article-preview, .report-preview, .guide-preview {
  transition: box-shadow .16s, transform .17s;
}
.card:hover, .service-card:hover, .article-preview:hover, .report-preview:hover, .guide-preview:hover {
  box-shadow: 0 8px 32px 0 rgba(255,176,115,.17);
  transform: translateY(-7px) scale(1.015);
}
button {
  transition: background 0.17s, color 0.12s, transform 0.14s;
}
button:active {
  transform: scale(0.97);
}

/* --- UTILITIES --- */
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.line {
  height: 1px;
  width: 100%;
  margin: 18px 0;
  background: #ffefd9;
}

/* --- CUSTOM SCROLLBAR FOR WARM FEEL --- */
::-webkit-scrollbar {
  width: 10px;
  background: #ffeeda;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #ffb073;
  border-radius: 8px;
}

/* --- END OF CSS --- */
