/* 
 * Custom Visual Enhancements for Biuro Rachunkowe AS
 * Optymalizacja wizualna i UX
 */

/* === TYPOGRAFIA === */
body {
  line-height: 1.7;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #1c1c1c;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* === SEKCJE === */
section {
  padding: 60px 20px;
  scroll-margin-top: 80px; /* Dla smooth scroll */
}

/* === TEKST NA CIEMNYCH OBRAZKACH - POPRAWA CZYTELNOŚCI === */
.u-layout-cell-1 h2,
.u-section-1 h1,
.u-section-3 .u-layout-cell-1 h2,
.u-section-4 .u-layout-cell-1 h2,
.u-section-5 .u-layout-cell-1 h2 {
  color: white !important;
  text-shadow: 
    2px 2px 8px rgba(0,0,0,0.9),
    0 0 20px rgba(0,0,0,0.7),
    0 0 40px rgba(0,0,0,0.5) !important;
  background: rgba(0,0,0,0.4);
  padding: 20px 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

/* Dodatkowe overlay dla lepszej czytelności */
.u-layout-cell-1 .u-container-layout::before,
.u-section-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 0;
}

.u-layout-cell-1 .u-container-layout > *,
.u-section-1 > * {
  position: relative;
  z-index: 2;
}

/* === PRZYCISKI === */
.u-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.u-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.u-btn-1 {
  background: linear-gradient(135deg, #478ac9 0%, #357abd 100%) !important;
}

/* === HEADER === */
.u-header {
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%) !important;
  border-bottom: 3px solid #478ac9;
  transition: all 0.3s ease;
}

.u-header:hover {
  box-shadow: 0 4px 20px rgba(71, 138, 201, 0.3);
}

/* Logo z efektem */
.u-logo-image {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.u-logo:hover .u-logo-image {
  transform: scale(1.05);
}

.u-nav-link {
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  padding: 8px 18px !important;
  border-radius: 6px;
}

.u-nav-link:hover {
  background: rgba(71, 138, 201, 0.15);
  transform: translateY(-2px);
}

.u-nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #478ac9 0%, #5fa3db 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

/* === HERO SECTION === */
#carousel_e1de {
  min-height: 500px;
  position: relative;
}

#carousel_e1de::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(71,138,201,0.3) 0%, rgba(28,28,28,0.4) 100%);
  z-index: 1;
}

#carousel_e1de > * {
  position: relative;
  z-index: 2;
}

/* === SEKCJA Z LOGO I USŁUGAMI === */
#sec-f421 .service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#sec-f421 .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(71, 138, 201, 0.3) !important;
}

/* === KARTY/BOXY === */
.u-layout-cell {
  transition: all 0.4s ease;
}

.u-effect-hover-zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* === SEKCJA O NAS === */
#sec-017f .u-text-3 {
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
}

/* === IKONY/WYRÓŻNIENIA === */
.highlight-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
  border-left: 4px solid #478ac9;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 991px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 40px 15px;
  }
  
  p {
    font-size: 1rem;
  }
}

/* === ANIMACJE === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #478ac9;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #357abd;
}

/* === FOCUS ACCESSIBILITY === */
*:focus {
  outline: 2px solid #478ac9;
  outline-offset: 2px;
}

/* === LOADING OPTIMIZATION === */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* === KONTAKT SEKCJA === */
#sec-1495 {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.u-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* === NOWA STOPKA (FOOTER) === */
.u-footer {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%) !important;
  padding: 40px 20px 25px !important;
  border-top: 4px solid #478ac9;
  position: relative;
  overflow: hidden;
}

.u-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #478ac9 50%, transparent 100%);
}

.u-footer .u-text-1 {
  font-size: 0.95rem !important;
  color: rgba(255,255,255,0.8) !important;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.u-footer a {
  color: #5fa3db !important;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: rgba(71, 138, 201, 0.1);
}

.u-footer a:hover {
  background: rgba(71, 138, 201, 0.25);
  transform: translateY(-2px);
  color: #78b9ed !important;
}

/* Dodatkowe informacje w stopce */
.footer-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === TABELA CENNIK - DODATKOWE STYLE === */
table tr:hover {
  background-color: #f0f8ff !important;
  transition: background-color 0.3s ease;
}

/* === SEKCJA OPINIE === */
#opinie-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 70px 20px;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #478ac9;
  margin-bottom: 20px;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(71, 138, 201, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #478ac9 0%, #5fa3db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}

.review-author-info {
  flex: 1;
}

.review-author {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1c1c1c;
  margin: 0;
}

.review-date {
  font-size: 0.85rem;
  color: #666;
}

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin: 15px 0;
  font-style: italic;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.google-logo {
  width: 20px;
  height: 20px;
}

/* Grid dla opinii na desktop */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-card {
    padding: 20px;
  }
}

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* === PERFORMANCE HINTS === */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
