/* -------------------------------------------------------------
   Sklep Papierniczy KROPKA - Custom Styling System & CSS variables
   Warm, friendly, family-oriented, colorful local business vibe
   ------------------------------------------------------------- */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Color Variables & Style Tokens */
:root {
  /* Brand Colors */
  --color-orange: #ff7f22;       /* Sunny Orange - Main Accent */
  --color-orange-hover: #e06512; /* Darker Orange */
  --color-yellow: #ffcb05;       /* Warm Yellow */
  --color-yellow-light: #fff9e6; /* Soft pastel yellow for card highlights */
  --color-navy: #1a2f54;         /* Friendly Navy Blue - Primary Base */
  --color-navy-light: #284478;   /* Navy hover/secondary */
  
  /* Accent Greens & Pinks for colorful toys/creative supplies */
  --color-green: #38b000;
  --color-green-light: #eafbe3;
  --color-pink: #ff5d8f;
  --color-pink-light: #ffeef2;

  /* Neutral tones */
  --color-bg-base: #fbfbfc;      /* Soft off-white */
  --color-bg-paper: #ffffff;     /* Card/Paper white */
  --color-text-main: #2b3541;    /* Charcoal text */
  --color-text-muted: #5e6b7c;   /* Soft slate text */
  --color-border: #e2e8f0;       /* Divider borders */
  --color-border-focus: #ff7f22;

  /* Typography */
  --font-header: 'Nunito', 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout and shapes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(26, 47, 84, 0.05);
  --shadow-md: 0 8px 24px rgba(26, 47, 84, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 47, 84, 0.12);
  --shadow-orange: 0 8px 20px rgba(255, 127, 34, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset & Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle dot grid pattern to fit the "Kropka" dot theme */
.kropka-dot-pattern {
  background-image: radial-gradient(rgba(26, 47, 84, 0.05) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-round);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-orange);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px rgba(255, 127, 34, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-navy);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 47, 84, 0.2);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline:hover {
  background-color: rgba(26, 47, 84, 0.05);
  transform: translateY(-3px);
}

/* Badges & Trust Elements */
.badge-rating {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-yellow-light);
  border: 1px solid var(--color-yellow);
  color: var(--color-navy);
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-round);
  gap: 0.5rem;
}

.star-icon {
  color: var(--color-orange);
  font-size: 1.1rem;
}

/* Playful Sticky Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-normal);
}

.header.sticky {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-normal);
}

.header.sticky .header-container {
  height: 64px;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-navy);
  gap: 0.5rem;
}

.logo-dot-group {
  display: flex;
  gap: 3px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.logo-dot:nth-child(1) { background-color: var(--color-orange); }
.logo-dot:nth-child(2) { background-color: var(--color-yellow); }
.logo-dot:nth-child(3) { background-color: var(--color-green); }

/* Navigation links */
.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--color-navy);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-orange);
  border-radius: var(--radius-round);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-orange);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-navy);
  cursor: pointer;
}

/* Mobile Nav Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--color-bg-paper);
  z-index: 1100;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-menu.open {
  right: 0;
}

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

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.25rem;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(26, 47, 84, 0.4);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-header);
  color: var(--color-orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.hero-title span {
  color: var(--color-orange);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.hero-trust-box {
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid #ffffff;
  transform: rotate(1deg);
  transition: var(--transition-normal);
}

.hero-image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-decoration-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.8;
}

.hero-dec-dot-1 {
  width: 80px;
  height: 80px;
  background-color: var(--color-yellow-light);
  top: -20px;
  right: -20px;
}

.hero-dec-dot-2 {
  width: 120px;
  height: 120px;
  background-color: var(--color-green-light);
  bottom: -40px;
  left: -20px;
}

/* About Us Section */
.about-section {
  background-color: var(--color-yellow-light);
  position: relative;
}

.about-card {
  background-color: var(--color-bg-paper);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid #fff5d1;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
}

.feature-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-icon-circle.orange { background-color: #fff0e6; color: var(--color-orange); }
.feature-icon-circle.yellow { background-color: var(--color-yellow-light); color: var(--color-orange); }
.feature-icon-circle.green { background-color: var(--color-green-light); color: var(--color-green); }

.about-feature-title {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
}

/* Offer Section */
.offer-section {
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-subtitle {
  color: var(--color-orange);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-family: var(--font-header);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Offer Cards */
.offer-card {
  background-color: var(--color-bg-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 127, 34, 0.3);
}

.offer-card-image-box {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.offer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.offer-card:hover .offer-card-img {
  transform: scale(1.08);
}

.offer-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-round);
  text-transform: uppercase;
  color: var(--color-navy);
}

.offer-card-badge.orange { background-color: #fff0e6; }
.offer-card-badge.yellow { background-color: var(--color-yellow-light); }
.offer-card-badge.green { background-color: var(--color-green-light); }
.offer-card-badge.pink { background-color: var(--color-pink-light); }

.offer-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.offer-card-title {
  color: var(--color-navy);
}

.offer-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offer-card-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offer-card-list li::before {
  content: '•';
  color: var(--color-orange);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Godziny Otwarcia Section */
.hours-section {
  background-color: #fafafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hours-container-box {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}

.hours-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hours-table-card {
  background-color: var(--color-bg-paper);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 1rem 0;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--color-navy);
}

.hours-table td.day-name {
  color: var(--color-text-main);
  font-weight: 600;
}

.hours-table td.hours-val {
  text-align: right;
}

.hours-table td.hours-val.highlight {
  color: var(--color-orange);
}

.hours-table td.hours-val.placeholder-hours {
  color: var(--color-text-muted);
  font-style: italic;
  font-weight: 400;
}

.hours-notice {
  margin-top: 1.5rem;
  background-color: #f1f5f9;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Contact & Map Section */
.contact-section {
  background-color: var(--color-bg-paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card-box {
  background-color: var(--color-bg-base);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #fff0e6;
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item-details p, .contact-item-details a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-item-details a:hover {
  color: var(--color-orange);
}

.contact-buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Map Display Container */
.map-container {
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 8px solid #ffffff;
  background-color: #e2e8f0;
  position: relative;
}

.map-placeholder-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem;
  background-image: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.map-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow-orange);
  animation: mapPinBounce 2s infinite ease-in-out;
}

@keyframes mapPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.map-address-label {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
}

/* Footer styling */
.footer {
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 4rem 0 2rem 0;
  border-top: 8px solid var(--color-yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  color: #ffffff;
}

.footer-description {
  color: #a5b4fc;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #a5b4fc;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-yellow);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #a5b4fc;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(165, 180, 252, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a5b4fc;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

/* Design System specific layouts */
.ds-body {
  padding-top: 6rem;
}

.ds-section {
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
}

.ds-section:last-child {
  border-bottom: none;
}

.ds-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ds-swatch-card {
  background-color: var(--color-bg-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.ds-swatch-color {
  height: 120px;
}

.ds-swatch-info {
  padding: 1rem;
}

.ds-swatch-hex {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  background-color: var(--color-bg-base);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.5rem;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.ds-swatch-hex:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.ds-element-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.ds-typography-card {
  background-color: var(--color-bg-paper);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ds-type-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.ds-type-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ds-type-label {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Toast Notification for click-to-copy */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-round);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-header);
  font-weight: 700;
  transition: var(--transition-normal);
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .hours-container-box { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .header-container { height: 70px; }
  .nav-list { display: none; }
  .mobile-nav-toggle { display: block; }
  
  .grid-2 { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-trust-box { align-self: stretch; text-align: center; }
  
  .about-features { grid-template-columns: 1fr; gap: 1rem; }
  .about-card { padding: 2rem 1.5rem; }
  
  .offer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .map-container { height: 320px; }
  .ds-type-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
