/* =====================================================================
   CSS RESET AND BASE (normalize, box-sizing, font smoothing)
   ===================================================================== */
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, section, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF8EF;
  color: #222F44;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
*:focus {
  outline: 2px dashed #F7C873;
  outline-offset: 2px;
}

/* =====================================================================
   BRAND AND DESIGN SYSTEM COLORS & FONTS
   ===================================================================== */
:root {
  --color-primary: #222F44;
  --color-secondary: #F7C873;
  --color-accent: #FFFFFF;
  --color-bg-light: #FFF8EF;
  --color-bg-section: #FFF9EC;
  --color-success: #7ED957;
  --color-warning: #FFD96C;
  --color-danger: #FF7373;
  --color-neutral-100: #F8F9FB;
  --color-neutral-200: #ECECEC;
  --color-neutral-800: #313131;

  --shadow-main: 0 3px 18px 0 rgba(34,47,68, 0.075),0 2px 8px 0 rgba(247,200,115, 0.08);
  --shadow-card: 0 3px 14px 0 rgba(34,47,68, 0.10);
  --shadow-btn: 0 1px 4px 0 rgba(34,47,68, 0.10);
  --shadow-dialog: 0 10px 28px 0 rgba(34,47,68,0.2);

  --radius-main: 22px;
  --radius-btn: 14px;
  --radius-card: 20px;

  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* =====================================================================
   TYPOGRAPHY SCALE (fun, modern, energetic)
   ===================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 18px;
}
@media (min-width: 600px) {
  h1, .h1 { font-size: 3rem; }
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
h4, .h4 {
  font-size: 1.125rem;
  font-weight: 700;
}
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-neutral-800);
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}
em, i {
  font-style: italic;
  color: var(--color-secondary);
}
blockquote {
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 22px 26px;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  font-size: 1.2rem;
  margin: 24px 0;
  position: relative;
}
blockquote::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--color-primary);
  position: absolute;
  left: 18px;
  top: 14px;
  opacity: 0.20;
}

/* ==========================
   CONTAINER AND SPACING SYSTEM
   ========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  transition: background 0.4s;
}
@media (min-width: 900px) {
  section, .section { padding: 54px 48px; }
}

/* ==========================
   HEADER, NAVIGATION, CTA
   ========================== */
header {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  box-shadow: var(--shadow-main);
  z-index: 1000;
  position: sticky;
  top: 0;
}
header .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img[alt="Światowy Szlak"] {
  height: 36px;
  width: auto;
  margin-right: 18px;
  border-radius: 8px;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
nav a {
  color: var(--color-accent);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.28s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px 0 rgba(34,47,68, 0.12);
}
.cta-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 34px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background 0.25s, transform 0.16s, box-shadow 0.22s;
  margin-left: 12px;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFE5A0;
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.05) rotate(-1.5deg);
  box-shadow: 0 2px 12px 0 rgba(247,200,115, 0.20);
}

/* ==========================
   FLEX PATTERNS (CARD, GRID, SECTIONS)
   ========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  transition: transform 0.22s, box-shadow 0.22s;
  min-width: 260px;
  flex: 1 1 260px;
}
.card:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 8px 28px 0 rgba(247,200,115, 0.18);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  font-size: 1.1rem;
  transition: transform 0.18s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: scale(1.018) rotate(-1deg);
  box-shadow: 0 6px 18px 0 rgba(34,47,68,0.21);
}
.testimonial-card p {
  color: var(--color-primary);
  flex: 2;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 26px 24px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.16s, background 0.10s;
  min-width: 220px;
  flex: 1 1 220px;
  cursor: pointer;
}
.feature-item:hover {
  background: #FEF4E2;
  transform: scale(1.03) rotate(1.5deg);
  box-shadow: 0 8px 22px 0 rgba(34,47,68,0.14);
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

/* ================
  HERO SECTION
  ================ */
.hero {
  background: linear-gradient(102deg, #F7C873 0%, #FFECB3 35%, #FFF8EF 100%);
  background-blend-mode: lighten;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  padding-bottom: 44px;
  text-align: center;
  margin-bottom: 60px;
  transition: background 0.38s;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 19px;
  font-size: 2.2rem;
  line-height: 1.16;
  font-family: var(--font-display);
}
.hero p {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 26px;
  font-family: var(--font-body);
  line-height: 1.9;
}

/* ========================
   FLEX LAYOUTS FOR GRIDS
   ======================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
.adventure-teasers, .popular-routes-grid, .post-previews, .authors-grid, .story-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.adventure-teasers > div, .popular-routes-grid > div, .post-previews > div, .authors-grid > div, .story-snippets > div {
  background: var(--color-accent);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  flex: 1 1 250px;
  min-width: 230px;
  padding: 22px 18px 20px 22px;
  transition: transform 0.18s, box-shadow 0.18s;
  margin-bottom: 20px;
  position: relative;
}
.adventure-teasers > div:hover, .popular-routes-grid > div:hover, .post-previews > div:hover, .authors-grid > div:hover, .story-snippets > div:hover {
  transform: scale(1.03) rotate(-2deg);
  box-shadow: 0 4px 16px 0 rgba(247,200,115, 0.13);
}

/* ===========================
   NAVIGATION: ROUTE CATEGORIES
   =========================== */
.route-categories, .guides-categories, .categories-menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 0 0 0;
  margin-bottom: 12px;
}
.route-categories a, .guides-categories a, .categories-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-secondary);
  padding: 8px 18px;
  border-radius: 13px;
  transition: background 0.15s, color 0.12s, transform 0.12s;
  font-size: 1rem;
}
.route-categories a:hover, .guides-categories a:hover, .categories-menu a:hover, .route-categories a:focus, .guides-categories a:focus, .categories-menu a:focus {
  background: #FFD96C;
  color: var(--color-primary);
  transform: scale(1.09) rotate(-2.5deg);
}

/* ================================
   UNIQUE COMPONENTS: BUCKET LIST, STORY, MILESTONES, CTA
   ================================ */
.bucket-list-ideas, .milestones, .next-steps {
  background: #FFE7B0;
  border-radius: var(--radius-card);
  color: var(--color-primary);
  font-family: var(--font-display);
  padding: 18px 22px;
  margin: 30px 0 24px 0;
  box-shadow: var(--shadow-card);
}
.bucket-list-ideas ul, .next-steps ul {
  padding-left: 0;
  margin: 0;
}
.bucket-list-ideas li, .next-steps li {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.6;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 18px 0;
  border-radius: var(--radius-main) var(--radius-main) 0 0;
  box-shadow: 0 -3px 10px 0 rgba(34, 47, 68, 0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 10px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer-menu a {
  color: var(--color-accent);
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.14s, opacity 0.16s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-contact img {
  height: 54px;
  border-radius: 50%;
  background: #FFF;
  margin-right: 12px;
}
footer address {
  font-size: 0.99rem;
  color: #fff;
  margin-bottom: 0;
  font-style: normal;
  line-height: 1.5;
}
footer address img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: sub;
}

/* ===============================
   RESPONSIVE MEDIA QUERIES
   =============================== */
@media (max-width: 900px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  section, .section {
    padding: 28px 5px;
  }
  header .container {
    gap: 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.33rem; }
  .container, .content-wrapper {
    max-width: 99vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  nav, .footer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .content-grid, .feature-grid, .adventure-teasers, .popular-routes-grid, .post-previews, .authors-grid, .story-snippets {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 10px 24px;
    margin-left: 0;
    margin-top: 10px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =====================================
   MOBILE MENU (BURGER, ANIMATION, NAV)
   ===================================== */
.mobile-menu-toggle {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.18s, box-shadow 0.18s, transform 0.06s;
  z-index: 1402;
  box-shadow: var(--shadow-btn);
  text-align: center;
  line-height: 40px;
  vertical-align: middle;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFE5A0;
  transform: scale(1.12) rotate(9deg);
}
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,47,68,0.91);
  color: #fff;
  transform: translateX(-110vw);
  transition: transform 0.42s cubic-bezier(.72,0,.33,1.30);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 28px 24px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: var(--shadow-dialog);
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 22px;
  z-index: 1500;
  transition: background 0.18s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffd96c;
  transform: scale(1.08) rotate(-11deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  background: transparent;
  font-size: 1.2rem;
  padding: 12px 4px 12px 12px;
  border-radius: 8px;
  transition: background 0.13s, color 0.16s, transform 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff5da;
  color: var(--color-primary);
  transform: scale(1.09) rotate(3deg);
}
@media (min-width: 900px) {
  .mobile-menu, .mobile-menu-close {
    display: none;
  }
}
@media (max-width: 900px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =======================================
   COOKIE CONSENT BANNER AND MODALS
   ======================================= */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 2500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 5vw 18px 5vw;
  box-shadow: 0 -3px 28px 0 rgba(34,47,68,0.16);
  font-size: 1.03rem;
  animation: cookieBannerIn 0.54s cubic-bezier(.34,1.56,.64,1) 1;
}
@keyframes cookieBannerIn {
  from {
    transform: translateY(90px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#cookie-consent-banner button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  margin-top: 6px;
  margin-bottom: 6px;
  transition: background 0.18s, color 0.16s, transform 0.11s;
}
#cookie-consent-banner .cookie-reject {
  background: var(--color-danger);
  color: var(--color-accent);
}
#cookie-consent-banner .cookie-reject:hover {
  background: #e75151;
}
#cookie-consent-banner .cookie-settings {
  background: var(--color-success);
  color: var(--color-primary);
}
#cookie-consent-banner button:hover {
  background: #FFD96C;
  color: var(--color-primary);
  transform: scale(1.06) rotate(-2deg);
}
#cookie-consent-banner .cookie-settings:hover {
  background: #b6fa89;
}

/* ===== Cookie Modal ===== */
#cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(34,47,68,0.54);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalOverlayIn .42s cubic-bezier(.34,1.56,.64,1);
}
#cookie-modal-overlay.active { display: flex; }
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 38px 30px 28px 30px;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-dialog);
  min-width: 332px;
  max-width: 90vw;
  animation: modalIn .46s cubic-bezier(.18,1.14,.31,1);
  position: relative;
}
@keyframes modalIn {
  from { transform: translateY(80px) scale(0.86); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
#cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 18px;
}
#cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  margin-bottom: 16px;
}
#cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  accent-color: var(--color-secondary);
}
#cookie-modal .cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
#cookie-modal button {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  padding: 9px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, transform 0.09s;
}
#cookie-modal button:hover { background: #ffd96c; }
#cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #ECECEC;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  color: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s, color 0.12s, transform 0.07s;
  z-index: 4001;
}
#cookie-modal .cookie-modal-close:hover {
  background: var(--color-danger);
  color: #fff;
}

/* =======================
   MISC: UTILITY, ANIMATIONS, MARQUEES
   ======================= */
@media (max-width: 480px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 26px;
  }
}

/* For Playful/Dynamic Animations */
.cta-btn, .feature-item, .card, .testimonial-card, .popular-routes-grid > div, .adventure-teasers > div, .post-previews > div, .authors-grid > div {
  will-change: transform, box-shadow;
}
.cta-btn:active, .mobile-menu-toggle:active {
  transform: scale(0.96) rotate(0deg);
}

/* ================================
   MISC UTILITY CLASSES
   ================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.no-shadow { box-shadow: none !important; }

/* ===============================
   PRINT-ONLY CLASSES (optional)
   =============================== */
@media print {
  * { box-shadow: none !important; color: #000 !important; background: #fff !important; }
  header, footer, .mobile-menu, #cookie-consent-banner, #cookie-modal-overlay { display: none !important; }
  section, .container { padding: 0 !important; }
}
