/* =================================================================
   WŁASNE RĘCE - WARM & FRIENDLY DESIGN SYSTEM
   Complete CSS Styles for DIY Workshop Website
   ================================================================= */

/* =================================================================
   CSS RESET & BASE STYLES
   ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #FFFBF0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =================================================================
   TYPOGRAPHY - WARM & FRIENDLY
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #92530A;
  margin-bottom: 16px;
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #4A4A4A;
}

strong {
  font-weight: 600;
  color: #333333;
}

/* =================================================================
   CONTAINER & LAYOUT
   ================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =================================================================
   HEADER - WARM WOOD TONES
   ================================================================= */
header {
  background: linear-gradient(135deg, #92530A 0%, #B45309 100%);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(146, 83, 10, 0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header img {
  height: 50px;
  width: auto;
}

header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

header nav a {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

header nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* =================================================================
   MOBILE MENU - FRIENDLY SLIDE-IN
   ================================================================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #FEF3C7 0%, #FFFBF0 100%);
  z-index: 999;
  padding: 80px 30px 30px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #D97706;
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background-color: #B45309;
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  color: #92530A;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 20px;
  border-radius: 10px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(146, 83, 10, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background-color: #FEF3C7;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(146, 83, 10, 0.2);
}

/* =================================================================
   HERO SECTION - WARM & INVITING
   ================================================================= */
.hero {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-radius: 24px;
  padding: 80px 40px;
  margin-bottom: 60px;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
  text-align: center;
}

.hero h1 {
  color: #92530A;
  font-size: 48px;
  margin-bottom: 24px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero p {
  font-size: 20px;
  color: #4A4A4A;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =================================================================
   BUTTONS - FRIENDLY & APPROACHABLE
   ================================================================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #D97706;
  border: 2px solid #D97706;
}

.btn-secondary:hover {
  background-color: #FEF3C7;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* =================================================================
   CARDS - WARM & WELCOMING
   ================================================================= */
.service-card,
.project-card,
.guide-card,
.category-card,
.testimonial-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(146, 83, 10, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover,
.project-card:hover,
.guide-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
}

.service-card h3,
.project-card h3,
.guide-card h3,
.category-card h3 {
  color: #92530A;
  margin-bottom: 16px;
}

.service-card p,
.project-card p,
.guide-card p,
.category-card p {
  color: #4A4A4A;
  line-height: 1.7;
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: #D97706;
  margin-top: 16px;
}

.meta {
  font-size: 14px;
  color: #0F766E;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count {
  font-size: 14px;
  color: #92530A;
  font-weight: 600;
  margin-top: 8px;
}

/* =================================================================
   GRIDS - FLEXBOX LAYOUTS
   ================================================================= */
.services-grid,
.projects-grid,
.categories-grid,
.guides-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 32px;
}

.service-card,
.project-card,
.category-card,
.guide-card {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
}

.benefits,
.values,
.approach,
.stats-grid,
.process-steps,
.categories,
.contact-methods,
.opening-hours,
.partnerships {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.benefit,
.value,
.stat,
.step,
.category,
.method,
.partnership {
  flex: 1 1 calc(25% - 24px);
  min-width: 220px;
  background-color: #FFFFFF;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(146, 83, 10, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit:hover,
.value:hover,
.stat:hover,
.step:hover,
.category:hover,
.method:hover,
.partnership:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.15);
}

.benefit h3,
.value h3,
.stat h3,
.step h3,
.category h3,
.method h3,
.partnership h3 {
  color: #D97706;
  font-size: 20px;
  margin-bottom: 12px;
}

/* =================================================================
   TESTIMONIALS - READABLE & WARM
   ================================================================= */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  flex: 1 1 calc(50% - 24px);
  min-width: 300px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 100%);
  border-left: 4px solid #D97706;
  padding: 32px;
}

.testimonial-card p {
  color: #333333;
  font-style: italic;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.testimonial-card strong {
  color: #92530A;
  font-weight: 600;
  font-style: normal;
}

/* =================================================================
   STATS & BADGES - FRIENDLY EMPHASIS
   ================================================================= */
.trust-badge,
.rating,
.stats,
.offer {
  background-color: #0F766E;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  display: inline-block;
  margin-top: 24px;
  box-shadow: 0 3px 12px rgba(15, 118, 110, 0.2);
}

/* =================================================================
   CTA BANNER - WARM INVITATION
   ================================================================= */
.cta-banner {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
}

.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.cta-banner p {
  color: #FEF3C7;
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  background-color: #FFFFFF;
  color: #2d2317;
}

.cta-banner .btn-primary:hover {
  background-color: #FEF3C7;
}

.cta-banner .btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.cta-banner .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* =================================================================
   MILESTONES & PROCESS - VISUAL TIMELINE
   ================================================================= */
.milestones,
.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.milestone,
.step {
  flex: 1 1 calc(25% - 24px);
  min-width: 200px;
  text-align: center;
  padding: 24px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(146, 83, 10, 0.08);
  position: relative;
}

.milestone h3,
.step h3 {
  font-size: 32px;
  color: #D97706;
  margin-bottom: 12px;
}

/* =================================================================
   FAQ - ACCORDION STYLE
   ================================================================= */
.faq {
  margin-top: 32px;
}

.faq-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(146, 83, 10, 0.08);
  border-left: 4px solid #D97706;
}

.faq-item h3 {
  color: #92530A;
  margin-bottom: 12px;
  font-size: 18px;
}

.faq-item p {
  color: #4A4A4A;
  line-height: 1.7;
}

/* =================================================================
   CONTACT INFO - FRIENDLY LAYOUT
   ================================================================= */
.contact-info,
.location {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 4px 16px rgba(146, 83, 10, 0.1);
}

.contact-info p,
.location p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.contact-info strong,
.location strong {
  color: #D97706;
  display: block;
  margin-bottom: 8px;
}

/* =================================================================
   NEWSLETTER & TIPS
   ================================================================= */
.newsletter-benefits,
.tips,
.safety-rules,
.beginner-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.tip,
.rule,
.guide-item {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
  background-color: #FEF3C7;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}

.tip h3,
.rule p,
.guide-item h3 {
  color: #92530A;
  font-weight: 600;
}

/* =================================================================
   FEATURED PROJECTS & NEXT STEPS
   ================================================================= */
.featured-projects,
.next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.project,
.step {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
  background-color: #FFFFFF;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(146, 83, 10, 0.1);
}

.project h3 {
  color: #D97706;
  margin-bottom: 16px;
}

/* =================================================================
   FOOTER - WARM & COMPREHENSIVE
   ================================================================= */
footer {
  background: linear-gradient(135deg, #92530A 0%, #B45309 100%);
  color: #FFFFFF;
  padding: 60px 20px 30px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-content > div {
  flex: 1 1 220px;
}

.footer-content h3 {
  color: #FEF3C7;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-content nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-content nav a {
  color: #FFFFFF;
  opacity: 0.9;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-content nav a:hover {
  opacity: 1;
  transform: translateX(4px);
  color: #FEF3C7;
}

.footer-content p {
  color: #FFFFFF;
  opacity: 0.9;
  line-height: 1.8;
}

.footer-content img {
  height: 50px;
  margin-bottom: 16px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #FEF3C7;
  font-size: 14px;
}

/* =================================================================
   COOKIE CONSENT BANNER - FRIENDLY & NON-INTRUSIVE
   ================================================================= */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #92530A 0%, #B45309 100%);
  color: #FFFFFF;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  animation: slideUp 0.4s ease;
}

#cookie-consent.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 400px;
}

.cookie-text p {
  color: #FEF3C7;
  margin-bottom: 0;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#accept-cookies {
  background-color: #FFFFFF;
  color: #92530A;
}

#accept-cookies:hover {
  background-color: #FEF3C7;
  transform: translateY(-2px);
}

#reject-cookies {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

#reject-cookies:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

#cookie-settings {
  background-color: transparent;
  color: #FEF3C7;
  text-decoration: underline;
  padding: 12px 16px;
}

#cookie-settings:hover {
  color: #FFFFFF;
}

/* Cookie Settings Modal */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h2 {
  color: #92530A;
  margin-bottom: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 20px;
  background-color: #FEF3C7;
  border-radius: 12px;
}

.cookie-category h3 {
  color: #D97706;
  font-size: 18px;
  margin-bottom: 12px;
}

.cookie-category p {
  color: #4A4A4A;
  margin-bottom: 12px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* =================================================================
   LEGAL CONTENT - READABLE TYPOGRAPHY
   ================================================================= */
.legal-content {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  margin-top: 32px;
  box-shadow: 0 4px 16px rgba(146, 83, 10, 0.1);
  line-height: 1.8;
}

.legal-content h2 {
  color: #92530A;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 24px;
}

.legal-content h3 {
  color: #D97706;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 20px;
}

.legal-content p {
  color: #4A4A4A;
  margin-bottom: 16px;
}

.legal-content a {
  color: #0F766E;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #D97706;
}

/* =================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================================= */

@media (max-width: 768px) {
  /* Typography adjustments */
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  p {
    font-size: 15px;
  }
  
  /* Hero section */
  .hero {
    padding: 60px 24px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide desktop navigation */
  header nav {
    display: none;
  }
  
  /* Adjust header */
  header {
    padding: 16px 0;
  }
  
  header img {
    height: 40px;
  }
  
  /* Card grids */
  .service-card,
  .project-card,
  .category-card,
  .guide-card {
    flex: 1 1 100%;
  }
  
  .benefit,
  .value,
  .stat,
  .step,
  .category,
  .method,
  .partnership {
    flex: 1 1 100%;
  }
  
  .testimonial-card {
    flex: 1 1 100%;
  }
  
  .project,
  .step {
    flex: 1 1 100%;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
  }
  
  /* CTA buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  /* Cookie banner */
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
  
  /* Modal */
  .cookie-modal-content {
    padding: 24px;
  }
  
  /* Legal content */
  .legal-content {
    padding: 24px;
  }
  
  /* Section spacing */
  section {
    margin-bottom: 40px;
    padding: 32px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet adjustments */
  .service-card,
  .project-card,
  .category-card,
  .guide-card {
    flex: 1 1 calc(50% - 24px);
  }
  
  .benefit,
  .value,
  .stat,
  .step {
    flex: 1 1 calc(50% - 24px);
  }
}

/* =================================================================
   ANIMATIONS & TRANSITIONS - SMOOTH & FRIENDLY
   ================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 3px solid #D97706;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .mobile-menu-toggle,
  .mobile-menu,
  #cookie-consent,
  #cookie-modal {
    display: none !important;
  }
}