/* Krawczak Consulting - Custom Styles */

/* CSS Variables - Color Palette */
:root {
  --primary: #001F5C;        /* Granatowy - kolor główny */
  --accent: #E91E8C;         /* Różowy - kolor akcentowy */
  --accent-dark: #C51773;    /* Różowy ciemniejszy - hover */
  --dark-gray: #4A4A4A;      /* Szary ciemny */
  --light-gray: #F5F5F5;     /* Szary jasny */
  --white: #FFFFFF;
  --black: #000000;
}

/* Tailwind Custom Classes */
@layer utilities {
  .text-primary {
    color: var(--primary);
  }
  
  .bg-primary {
    background-color: var(--primary);
  }
  
  .text-accent {
    color: var(--accent);
  }
  
  .bg-accent {
    background-color: var(--accent);
  }
  
  .bg-accent-dark {
    background-color: var(--accent-dark);
  }
  
  .bg-light-gray {
    background-color: var(--light-gray);
  }
  
  .border-primary {
    border-color: var(--primary);
  }
  
  .border-accent {
    border-color: var(--accent);
  }
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--white);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Links */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Navigation */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 70px;
}

#navbar.scrolled .h-20 {
  height: 70px;
}

#navbar.scrolled .h-12 {
  height: 40px;
}

.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(233, 30, 140, 0.2);
}

.cta-button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(233, 30, 140, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* Bullet Points */
ul li::marker {
  color: var(--accent);
}

/* Square Bullet Points (Red/Accent) */
.square-bullet {
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: 2px solid #E5E7EB;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Section Animations on Scroll */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
table {
  border-collapse: collapse;
}

table thead tr {
  background-color: var(--primary);
}

table tbody tr {
  transition: background-color 0.3s ease;
}

table tbody tr:hover {
  background-color: rgba(0, 31, 92, 0.05);
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.active {
  max-height: 500px;
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(233, 30, 140, 0.3);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background-color: var(--accent-dark);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error Messages */
.success-message {
  background-color: #10B981;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: none;
}

.error-message {
  background-color: #EF4444;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: none;
}

.success-message.show,
.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Print Styles */
@media print {
  #navbar,
  #scroll-to-top,
  .cta-button {
    display: none;
  }
}
