/* ============================================
   UTEP - Usługi Transportowe Emil Pluta
   Style Sheet - Mobile First Responsive
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #374151; line-height: 1.6; overflow-x: hidden; background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px){ .container { padding: 0 1.5rem; } }
@media(min-width:1024px){ .container { padding: 0 2rem; } }
.section-padding { padding: 4rem 0; }
@media(min-width:768px){ .section-padding { padding: 5rem 0; } }
@media(min-width:1024px){ .section-padding { padding: 6rem 0; } }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes bounce { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(10px); } }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:.5; } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.from-left { transform: translateX(-30px); }
.animate-on-scroll.from-left.visible { transform: translateX(0); }
.animate-on-scroll.from-right { transform: translateX(30px); }
.animate-on-scroll.from-right.visible { transform: translateX(0); }

/* stagger children */
.stagger-children .animate-on-scroll:nth-child(1){ transition-delay:.05s; }
.stagger-children .animate-on-scroll:nth-child(2){ transition-delay:.1s; }
.stagger-children .animate-on-scroll:nth-child(3){ transition-delay:.15s; }
.stagger-children .animate-on-scroll:nth-child(4){ transition-delay:.2s; }
.stagger-children .animate-on-scroll:nth-child(5){ transition-delay:.25s; }
.stagger-children .animate-on-scroll:nth-child(6){ transition-delay:.3s; }
.stagger-children .animate-on-scroll:nth-child(7){ transition-delay:.35s; }
.stagger-children .animate-on-scroll:nth-child(8){ transition-delay:.4s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(127, 29, 29, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(127, 29, 29, 0.9); box-shadow: 0 4px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.navbar-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.navbar-logo { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; font-size: 1rem; }
.navbar-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.navbar-logo span { white-space: nowrap; }
@media(max-width:400px){ .navbar-logo span { font-size: .85rem; } }

.nav-links { display: none; align-items: center; gap: 1.5rem; }
@media(min-width:768px){ .nav-links { display: flex; } }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; transition: color .2s; font-size: .95rem; }
.nav-links a:hover { color: #fff; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .4rem .7rem; border-radius: .5rem; cursor: pointer; font-size: .85rem; font-weight: 500; transition: background .2s; }
.lang-btn:hover { background: rgba(255,255,255,.25); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + .5rem); right: 0; background: #fff;
  border-radius: .75rem; box-shadow: 0 10px 40px rgba(0,0,0,.2); overflow: hidden; min-width: 160px; z-index: 100;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem 1rem;
  background: none; border: none; cursor: pointer; font-size: .9rem; color: #374151; transition: background .15s;
}
.lang-dropdown button:hover { background: #f3f4f6; }
.lang-dropdown button.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.lang-dropdown button .flag { font-size: 1.2rem; }

/* Mobile menu */
.mobile-menu-btn { display: flex; background: none; border: none; color: #fff; cursor: pointer; padding: .25rem; }
.mobile-menu-btn svg { width: 28px; height: 28px; }
@media(min-width:768px){ .mobile-menu-btn { display: none; } }

.mobile-menu {
  display: none; padding: 1rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,.15);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: rgba(255,255,255,.9); font-weight: 500; padding: .6rem 0; font-size: 1.05rem; }
.mobile-menu a:hover { color: #fff; }
.mobile-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.mobile-lang-grid button {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem; border-radius: .5rem; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; font-size: .85rem; transition: background .2s;
}
.mobile-lang-grid button:hover, .mobile-lang-grid button.active { background: rgba(255,255,255,.25); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 40%, #172554 100%);
}
.hero-bg {
  position: absolute; inset: 0; background-image: url('../images/hero-background-daf-truck.png');
  background-size: cover; background-position: center; opacity: .99;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,95,.7) 0%, rgba(30,64,175,.5) 40%, rgba(23,37,84,.7) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 6rem 1rem 4rem; max-width: 900px; margin: 0 auto; }
.hero-content h1 { color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin-bottom: .5rem;
  animation: fadeInUp .8s ease both; }
.hero-content h1 .line2 { display: block; color: #fb923c; }
@media(min-width:640px){ .hero-content h1 { font-size: 3.2rem; } }
@media(min-width:1024px){ .hero-content h1 { font-size: 4rem; } }

.hero-subtitle { color: #bfdbfe; font-size: 1.1rem; margin-bottom: 2rem; animation: fadeInUp .8s ease .2s both; }
@media(min-width:640px){ .hero-subtitle { font-size: 1.3rem; } }
@media(min-width:1024px){ .hero-subtitle { font-size: 1.5rem; } }

.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.5rem; margin-bottom: 2.5rem;
  animation: fadeInUp .8s ease .4s both; }
.hero-check { display: flex; align-items: center; gap: .4rem; color: #fff; font-size: .95rem; }
.hero-check svg { width: 20px; height: 20px; color: #4ade80; flex-shrink: 0; }

.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #f97316; color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 1rem 2rem; border-radius: .75rem; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(249,115,22,.4); animation: fadeInUp .8s ease .6s both;
}
.hero-cta:hover { background: #ea580c; transform: scale(1.05); }
.hero-cta:active { transform: scale(.97); }
.hero-cta svg { width: 20px; height: 20px; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 1.5rem; animation: bounce 2s infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { background: #fff; }
.about-section .alt-bg { background: #f9fafb; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; color: #111827; margin-bottom: 1rem; }
@media(min-width:768px){ .section-header h2 { font-size: 2.2rem; } }
@media(min-width:1024px){ .section-header h2 { font-size: 2.5rem; } }
.section-header p { color: #6b7280; font-size: 1rem; line-height: 1.7; }
@media(min-width:768px){ .section-header p { font-size: 1.1rem; } }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem;
}
@media(min-width:640px){ .features-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.feature-icon {
  width: 3.5rem; height: 3.5rem; background: #2563eb; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; color: #fff; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.feature-card p { font-size: .88rem; color: #6b7280; line-height: 1.6; }

/* Tradition box */
.tradition-box {
  background: linear-gradient(135deg, #1e3a8a, #1e40af); border-radius: 1.5rem; padding: 2.5rem 1.5rem;
  color: #fff; margin-top: 2rem;
}
@media(min-width:768px){ .tradition-box { padding: 3rem 2.5rem; } }
.tradition-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:1024px){ .tradition-inner { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.tradition-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
@media(min-width:768px){ .tradition-text h3 { font-size: 1.8rem; } }
.tradition-text p { color: #bfdbfe; line-height: 1.7; margin-bottom: 1rem; font-size: .95rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border-radius: 1rem;
  padding: 1.5rem; text-align: center; border: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.stat-card:hover { background: rgba(255,255,255,.18); }
.stat-number { font-size: 2rem; font-weight: 800; color: #fb923c; margin-bottom: .25rem; }
@media(min-width:768px){ .stat-number { font-size: 2.5rem; } }
.stat-label { font-size: .85rem; color: #bfdbfe; }

/* ============================================
   ROUTES SECTION
   ============================================ */
.routes-section { background: #f9fafb; }
.routes-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media(min-width:1024px){ .routes-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.map-container {
  background: #fff; border-radius: 1rem; padding: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
}
.map-container img { border-radius: .75rem; width: 100%; }
.map-caption { text-align: center; padding: .75rem 0 .25rem; font-size: .9rem; color: #6b7280; font-weight: 500; }

.country-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.country-card {
  background: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  border-left: 4px solid; transition: transform .2s;
}
.country-card:hover { transform: translateX(5px); }
.country-card.poland { border-left-color: #f97316; }
.country-card.sweden { border-left-color: #3b82f6; }
.country-card.denmark { border-left-color: #2563eb; }
.country-card h3 { font-size: 1.15rem; font-weight: 700; color: #111827; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.country-card p { font-size: .9rem; color: #6b7280; line-height: 1.6; margin-bottom: .5rem; }

/* Route feature cards */
.route-features { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media(min-width:768px){ .route-features { grid-template-columns: repeat(3, 1fr); } }
.route-feature {
  border-radius: 1rem; padding: 1.5rem; color: #fff; transition: transform .2s;
}
.route-feature:hover { transform: translateY(-3px); }
.route-feature.blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.route-feature.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.route-feature.green { background: linear-gradient(135deg, #16a34a, #15803d); }
.route-feature .rf-icon { width: 2.5rem; height: 2.5rem; background: rgba(255,255,255,.2); border-radius: .5rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.route-feature .rf-icon svg { width: 20px; height: 20px; }
.route-feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.route-feature p { font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.5; }

.corridors-box {
  background: #fff; border-radius: 1rem; padding: 2rem; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.corridors-box .globe-icon { width: 3rem; height: 3rem; background: #2563eb; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.corridors-box .globe-icon svg { width: 24px; height: 24px; color: #fff; }
.corridors-box h3 { font-size: 1.2rem; font-weight: 700; color: #111827; margin-bottom: .75rem; }
.corridors-box p { color: #6b7280; max-width: 700px; margin: 0 auto; font-size: .95rem; line-height: 1.7; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section { background: #fff; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media(min-width:1024px){ .contact-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem;
  background: #f9fafb; border-radius: .75rem; transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateX(5px); box-shadow: 0 4px 15px rgba(0,0,0,.08); }
.contact-card-icon {
  width: 2.75rem; height: 2.75rem; background: #2563eb; border-radius: .6rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; color: #fff; }
.contact-card-label { font-size: .8rem; color: #9ca3af; font-weight: 500; }
.contact-card-value { font-size: .95rem; color: #111827; font-weight: 600; }
.contact-card-value a { color: #2563eb; }
.contact-card-value a:hover { text-decoration: underline; }

.hours-box {
  background: linear-gradient(135deg, #1e3a8a, #1e40af); border-radius: 1rem; padding: 1.5rem; color: #fff; margin-top: .5rem;
}
.hours-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.hours-box h3 svg { width: 20px; height: 20px; }
.hours-box p { color: #bfdbfe; font-size: .9rem; margin-bottom: .3rem; }

.contact-image { margin-top: 1rem; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* Form */
.contact-form-wrapper {
  background: #f9fafb; border-radius: 1.25rem; padding: 2rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
@media(min-width:768px){ .contact-form-wrapper { padding: 2.5rem; } }
.contact-form-wrapper h3 { font-size: 1.3rem; font-weight: 700; color: #111827; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.form-group label .req { color: #ef4444; }
.form-group input, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid #d1d5db; border-radius: .6rem;
  font-size: .95rem; transition: border-color .2s, box-shadow .2s; background: #fff; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .error-msg { font-size: .8rem; color: #ef4444; margin-top: .3rem; display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: #ef4444; }
.form-group.has-error .error-msg { display: block; }

.submit-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #2563eb; color: #fff; font-weight: 700; font-size: 1rem; padding: .9rem;
  border: none; border-radius: .75rem; cursor: pointer; transition: background .2s, transform .2s;
}
.submit-btn:hover { background: #1d4ed8; transform: scale(1.02); }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.submit-btn svg { width: 20px; height: 20px; }

.form-success {
  display: none; text-align: center; padding: 2rem;
}
.form-success.show { display: block; }
.form-success .success-icon { width: 4rem; height: 4rem; background: #dcfce7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.form-success .success-icon svg { width: 32px; height: 32px; color: #16a34a; }
.form-success h4 { font-size: 1.2rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.form-success p { color: #6b7280; }

.form-error {
  display: none; background: #fef2f2; border: 1px solid #fecaca; border-radius: .75rem;
  padding: 1rem; margin-bottom: 1rem; color: #991b1b; font-size: .9rem;
}
.form-error.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #111827; color: #d1d5db; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media(min-width:768px){ .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer h4 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; }
.footer-logo svg { width: 28px; height: 28px; }
.footer p { font-size: .9rem; line-height: 1.6; color: #9ca3af; }
.footer-contact-item { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: .9rem; }
.footer-contact-item svg { width: 18px; height: 18px; color: #3b82f6; flex-shrink: 0; }
.footer-contact-item a { color: #d1d5db; transition: color .2s; }
.footer-contact-item a:hover { color: #fff; }
.footer-area-item { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; }
.footer-area-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.footer-area-item .dot.orange { background: #f97316; }
.footer-area-item .dot.blue { background: #3b82f6; }
.footer-area-item .dot.dkblue { background: #2563eb; }

.footer-bottom {
  border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; font-size: .85rem; color: #6b7280;
}
