/* =========================================================
 * CRISP ADVENTURES - STYLE.CSS
 * Elegant Classic, Mobile-First, Flex-Only, No Grid/Columns
 * Brand Colors: #1a2734 (primary), #f1b448 (secondary), #e6e9ed (accent), #fff (white)
 * Fonts: "Lora", "Times New Roman", Times, serif (headings), "Roboto", Arial, sans-serif (body)
 * Author: Senior UI/CSS
 * ========================================================= */

/* ========== RESET / NORMALIZE ========== */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture { max-width: 100%; display: block; height: auto; }
button, input, textarea, select { font-family: inherit; font-size: 100%; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
html, body { height: 100%; background: #faf9f6; }
:focus { outline: 2px solid #f1b448; outline-offset: 2px; }

/* ========== TYPOGRAPHY ========== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1a2734;
  background: #faf9f6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Times New Roman', Times, serif;
  color: #1a2734;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; line-height: 1.25; margin-bottom: 10px; }
p, ul, ol, li, blockquote { font-size: 1rem; margin-bottom: 14px; color: #27374d; }
blockquote {
  font-family: 'Lora', Times, serif;
  font-style: italic;
  color: #1a2734;
  border-left: 3px solid #f1b448;
  padding-left: 18px;
  margin: 12px 0 12px 0;
  background: #f9f6f0;
}
strong { color: #1a2734; font-weight: 700; }
em { color: #84755e; font-style: italic; }

/* ========== GENERAL SPACING & CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  margin-bottom: 24px;
  max-width: 700px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(26, 39, 52, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
header img { height: 44px; transition: transform 0.3s; }
header img:hover { transform: scale(1.03); }
nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav a {
  font-family: 'Lora', serif;
  color: #1a2734;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom 0.23s;
}
nav a:hover,
nav a:focus {
  color: #f1b448;
  border-bottom: 2px solid #f1b448;
}
.cta-btn.primary {
  background: #f1b448;
  color: #1a2734;
  font-family: 'Lora', serif;
  font-size: 1.03rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 32px;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(233, 196, 106, 0.09);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s;
  display: inline-block;
  letter-spacing: 0.04em;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: #1a2734;
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,39,52,.11);
}

/* Hide burger on desktop, show on mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #1a2734;
  background: transparent;
  cursor: pointer;
  margin-left: 16px;
  border-radius: 8px;
  padding: 8px 12px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #e6e9ed;
}

/* ---- MOBILE NAV ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 39, 52, 0.96);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77, 0, .18, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 24px 24px 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  color: #fff;
  font-size: 2rem;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 4px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #f1b448;
  color: #1a2734;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: 'Lora', serif;
  padding: 12px 0;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(241,180,72,0.16);
  transition: color 0.19s, background 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #f1b448;
  background: rgba(241, 180, 72, 0.08);
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: #e6e9ed;
  border-radius: 0 0 38px 38px;
  min-height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  box-shadow: 0 6px 16px rgba(26, 39, 52, 0.06);
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 260px;
}
.hero-section h1 {
  color: #1a2734;
  font-size: 2.2rem;
}
.hero-section p {
  font-size: 1.22rem;
  margin: 16px 0 22px 0;
  max-width: 600px;
  color: #515c6c;
}

/* ========== FEATURE GRID & CARDS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(26,39,52,0.07);
  padding: 28px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  flex: 1 1 210px;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 6px 30px 0 rgba(241,180,72,0.10);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 10px;
  filter: grayscale(22%);
}
.feature-grid h3 { font-size: 1.17rem; color: #1a2734; }
.feature-grid p {
  color: #515c6c;
  margin-bottom: 0;
  font-size: 1rem;
}

/* ========== CARDS & FLEX CONTAINERS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(26,39,52,0.06);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.23s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(241,180,72,.09);
  transform: translateY(-3px);
}
.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;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(26,39,52,0.09);
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: box-shadow 0.19s, transform 0.18s;
  min-width: 0;
}
.testimonial-card blockquote {
  margin: 0 0 0 0;
  font-size: 1.12rem;
  color: #1a2734;
  background: transparent;
  border-left: 2px solid #f1b448;
  padding-left: 16px;
}
.testimonial-card strong {
  color: #1a2734;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 7px 32px 0 rgba(241,180,72,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* ========== FEATURE ITEMS ========== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* ========== BUTTON & CTA ========== */
.cta-btn {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 1rem;
  padding: 9px 28px;
  border-radius: 10px;
  background: #fff;
  color: #1a2734;
  border: 2px solid #f1b448;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(26,39,52,0.07);
  transition: background 0.19s, color 0.14s, border-color 0.19s, box-shadow 0.22s;
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 12px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #f1b448;
  color: #fff;
  border-color: #e6e9ed;
  box-shadow: 0 6px 12px 0 rgba(233, 196, 106, 0.17);
}

/* ========== LISTS, UL/OL ========== */
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #27374d;
  position: relative;
}
ul li::before {
  content: '–';
  color: #f1b448;
  font-weight: bold;
  margin-right: 8px;
}
ol li::before {
  content: none;
}

/* ========== FOOTER ========== */
footer {
  background: #1a2734;
  color: #fff;
  border-top: 2px solid #e6e9ed;
  font-family: 'Roboto', sans-serif;
  margin-top: 46px;
  padding: 36px 0 24px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 1rem;
  opacity: 0.95;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.18s, border-bottom 0.17s;
}
footer nav a:hover,
footer nav a:focus {
  color: #f1b448;
  border-bottom: 1px solid #f1b448;
}
footer img { height: 34px; margin-bottom: 10px; }
footer .text-section p {
  color: #e6e9ed;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ========== CUSTOM UTILITIES ========== */
.team-snapshot,
.certificate-info,
.faq-snapshot,
.support-info,
.map-embed,
.community-engagement-info,
.upload-guide-text,
.community-guidelines,
.comments-info,
.newsletter-signup {
  background: #f9f6f0;
  border-radius: 14px;
  padding: 18px 18px 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(26,39,52,0.03);
}

/* ========== FORMS (Newsletter, Contact) ========== */
input[type="text"],
input[type="email"],
textarea {
  padding: 8px 12px;
  border: 1.5px solid #e6e9ed;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  margin-top: 4px;
  width: 100%;
  color: #222;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 42px;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #f1b448;
}
label { font-family: 'Lora', serif; font-size: 1.03rem; color: #1a2734; }

/* ========== ANIMATION CLASSES ========== */
.fade-in { animation: fadeIn 1s ease-in; }
@keyframes fadeIn { from { opacity:0; } to { opacity: 1; } }
.slide-in-right { animation: slideInRight 0.5s cubic-bezier(.77, 0, .18, 1); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
/* Used for mobile menu and modals */

/* ========== COOKIE BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: #fff8e3;
  border-top: 2px solid #f1b448;
  box-shadow: 0 -5px 16px rgba(26,39,52,0.07);
  color: #1a2734;
  padding: 25px 20px 18px 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 68px;
  animation: fadeIn 0.8s;
}
.cookie-banner__text {
  font-size: 1rem;
  max-width: 580px;
  color: #1a2734;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  border: 2px solid #f1b448;
  background: #fff;
  color: #1a2734;
  cursor: pointer;
  transition: background 0.16s, color 0.15s, box-shadow 0.2s;
}
.cookie-btn--primary {
  background: #f1b448;
  color: #1a2734;
}
.cookie-btn--primary:hover,
.cookie-btn--primary:focus {
  background: #1a2734;
  color: #fff;
}
.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus {
  background: #e6e9ed;
  color: #1a2734;
}
.cookie-btn--settings {
  border-color: #b6b0a7;
  background: #fff;
  color: #1a2734;
}
.cookie-btn--settings:hover,
.cookie-btn--settings:focus {
  background: #f1b448;
  color: #1a2734;
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom:0;
  background: rgba(26, 39, 52, 0.69);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s, visibility 0.1s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 92%;
  padding: 38px 28px 26px 28px;
  box-shadow: 0 10px 34px 0 rgba(26,39,52,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInRight 0.43s cubic-bezier(.77, 0, .18, 1);
}
.cookie-modal__title {
  font-family: 'Lora', serif;
  font-size: 1.18rem;
  color: #1a2734;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-modal__category label { font-family: 'Lora', serif; }
.cookie-modal .cookie-btn { margin-right: 10px; }
.cookie-modal__close {
  position: absolute;
  top: 22px; right: 22px;
  background: transparent;
  color: #1a2734;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 3px 9px;
  transition: background 0.19s;
}
.cookie-modal__close:hover { background: #e6e9ed; }

.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: #f1b448;
  width: 18px; height: 18px;
}

/* --- Essential cookies: always enabled style --- */
.cookie-modal__category--essential label::after {
  content: " (zawsze włączone)";
  color: #666;
  font-size: 0.95em;
  font-style: italic;
  font-weight: 400;
}
.cookie-modal__category--essential input {
  visibility: hidden;
  position: absolute;
}

/* ========== RESPONSIVE LAYOUTS ========== */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .hero-section .container { min-height: 180px; }
  .hero-section {
    border-radius: 0 0 22px 22px;
    min-height: 170px;
    margin-bottom: 30px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .feature-grid { flex-direction: column; gap: 15px; }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    padding: 20px 10px 16px 12px;
  }
  .testimonial-card { flex-direction: column; gap: 8px; padding: 13px; }
  .content-grid, .card-container { gap: 10px; }
  .card { padding: 12px 8px; }
  .section { margin-bottom: 34px; padding: 18px 3px 22px 4px; }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  header .container { min-height: 60px; padding-top: 3px; padding-bottom: 3px; gap: 8px; }
  nav, header .cta-btn.primary { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 11px;
  }
  .content-wrapper { gap: 12px; }
  .text-section, .team-snapshot, .certificate-info, .faq-snapshot, .support-info, .map-embed, .community-engagement-info,
  .upload-guide-text, .community-guidelines, .comments-info, .newsletter-signup {
    padding: 9px 8px 11px 12px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; gap: 16px; padding: 16px 7px 12px 7px; }
  .cookie-banner__actions { gap: 8px; }
  .cookie-modal__content { padding: 18px 8px 13px 9px; border-radius: 10px; }
}

/* ========== Z-INDEX RULES FOR INTERACTIVITY ========== */
.mobile-menu, .cookie-banner, .cookie-modal { z-index: 9999; }
header { z-index: 100; }

/* ========== MICRO-INTERACTIONS ========== */
/* Button tap: shrink for feedback */
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
}
.feature-grid > div:active { transform: scale(0.98); }

/* ========== PRINT STYLES (optional) ========== */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ================= END STYLE.CSS ================= */
