
:root{
  --gold:#c8a24d;
  --black:#000;
  --dark:#111;
}

*{margin:0;padding:0;box-sizing:border-box;}

body{
  background:url('images/bg.webp') center top repeat-y;
  background-color:#000;
  color:#fff;
  font-family:'Montserrat',sans-serif;
  overflow-x:hidden;
}

/* ===== NAV ===== */

nav{
  position:sticky;
  top:0;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,0.7);
  padding:15px 10%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
  border-bottom:1px solid rgba(200,162,77,0.2);
  transition:0.3s;
}

nav img{
  height:80px;
}

nav a{
  color:var(--gold);
  text-decoration:none;
  margin-left:30px;
  transition:0.3s;
  font-weight:500;
}

nav a:hover{
  opacity:0.7;
}

/* ===== TOP LOGO (FIXED COMPACT) ===== */

.top-logo{
  background:url('images/bg.webp') center top repeat-y;
  text-align:center;
  padding:10px 0 10px;   /* było 80px 0 40px */
}

.top-logo img{
  width:600px;           /* było 1000px */
  max-width:90%;
  animation:luxuryGlow 3s infinite alternate;
}

.top-logo::after{
  content:"";
  display:block;
  width:60%;
  height:1px;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
  margin:15px auto 0;
}
/* ===== HERO ===== */

.hero{
  background:#000;
  padding:80px 10%;
}

.hero-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
}

.hero-text{
  flex:1;
}

.hero-text h1{
  font-family:'Playfair Display',serif;
  font-size:48px;
  margin-bottom:20px;
  color:#ddd;
}

.subtitle{
  color:var(--gold);
  margin-bottom:20px;
  font-size:18px;
}

.desc{
  margin-bottom:30px;
  color:#ddd;
}

/* ===== PREMIUM GOLD BUTTON ===== */

.btn-gold{
  display:inline-block;
  padding:16px 45px;
  font-weight:600;
  text-decoration:none;
  color:#000;
  border:none;
  border-radius:6px;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:0.4s ease;

  background:linear-gradient(
    135deg,
    #f5d77a 0%,
    #d4af37 40%,
    #c8a24d 60%,
    #b8860b 100%
  );

  box-shadow:
    0 5px 15px rgba(200,162,77,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-gold::before{
  content:"";
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform:skewX(-25deg);
  transition:0.8s;
}

.btn-gold:hover::before{
  left:130%;
}

.btn-gold::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid var(--gold);
  opacity:0;
  transition:0.4s;
}

.btn-gold:hover::after{
  opacity:1;
}

.btn-gold:hover{
  transform:translateY(-4px);
  box-shadow:
    0 8px 25px rgba(200,162,77,0.6),
    0 0 30px rgba(200,162,77,0.4);
}

/* ===== HERO DESKTOP OVERLAY ===== */

@media(min-width:901px){

  .hero{
    position:relative;
    overflow:hidden;
    padding:120px 10%;
  }

  .hero-container{
    position:relative;
    min-height:650px;
  }

  .hero-text{
    position:relative;
    z-index:2;
    max-width:600px;
  }
  /* ===== HERO GOLD LINE ===== */

.hero-text h1{
  position:relative;
  padding-bottom:25px;
}

.hero-text h1::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:220px; /* długość linii */
  height:2px;
  background:linear-gradient(to right, var(--gold), transparent);
}

  .hero-image{
    position:absolute;
    right:-5%;
    bottom:0;
    width:65%;
    z-index:1;
  }

  .hero-image img{
    width:100%;
    height:auto;
  }

}

/* ===== SECTIONS ===== */

section{
  padding:100px 10%;
}

.section-title{
  position: relative;
  display: inline-block;
}

.section-title::before,
.section-title::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: translateY(-50%);
}

/* lewa */
.section-title::before{
  right: 100%;
  margin-right: 25px;
}

/* prawa */
.section-title::after{
  left: 100%;
  margin-left: 25px;
}
.section-title.active{
  opacity:1;
  transform:translateY(0);
  text-shadow: 0 0 15px rgba(200,162,77,0.4);
}


/* ===== FLEET ===== */

.fleet{
  display:flex;
  gap:40px;
  justify-content:center;
  flex-wrap:wrap;
}

.card{
  width:520px;
  background:#111;
  border:1px solid #222;
  overflow:hidden;
  transition:0.4s;
  opacity:0;
  transform:translateY(50px);
}

.card.active{
  opacity:1;
  transform:translateY(0);
}

.card:hover{
  border-color:var(--gold);
  box-shadow:0 0 40px rgba(200,162,77,0.4);
  transform:translateY(-8px) scale(1.02);
}

.card img{
  width:100%;
}

.card-content{
  padding:30px;
  text-align:center;
}

.card-content h3{
  color:var(--gold);
  margin-bottom:15px;
}

/* ===== PREMIUM GHOST BUTTON ===== */

.btn{
  display:inline-block;
  margin-top:20px;
  padding:14px 35px;
  text-decoration:none;
  font-weight:600;
  border-radius:6px;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:0.4s ease;

  color:var(--gold);
  border:1px solid var(--gold);
  background:transparent;
}

/* gradient pojawia się dopiero przy hover */
.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    135deg,
    #f5d77a 0%,
    #d4af37 40%,
    #c8a24d 60%,
    #b8860b 100%
  );
  opacity:0;
  transition:0.4s ease;
  z-index:-1;
}

/* połysk */
.btn::after{
  content:"";
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform:skewX(-25deg);
  transition:0.8s;
}

/* hover */
.btn:hover{
  color:#000;
  transform:translateY(-4px);
  box-shadow:
    0 8px 25px rgba(200,162,77,0.6),
    0 0 30px rgba(200,162,77,0.4);
}

.btn:hover::before{
  opacity:1;
}

.btn:hover::after{
  left:130%;
}

/* ===== WHY ===== */
/* ===== FIX DLACZEGO MK7 ===== */

.why-section{
  background:linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.95));
}

.why-grid{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:30px;
  flex-wrap:wrap;
}

.why-card{
  width:250px;
  padding:40px 20px;
  text-align:center;
  border:1px solid rgba(200,162,77,0.2);
  background:rgba(0,0,0,0.6);
  transition:0.3s;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.why-card:hover{
  border-color:var(--gold);
  box-shadow:0 0 25px rgba(200,162,77,0.3);
  transform:translateY(-6px);
}

.why-icon{
  width:155px;
  height:155px;
  object-fit:contain;
  margin:0 auto 18px;
  display:block;
  transition:0.3s;
}

.why-card:hover .why-icon{
  transform:scale(1.08);
  filter:drop-shadow(0 0 20px rgba(200,162,77,0.8));
}

.why-card h3{
  color:var(--gold);
  margin-bottom:12px;
  font-size:18px;
}

.why-card p{
  font-size:14px;
  color:#ccc;
}

/* ===== OFERTA WYNAJMU CLEAN ===== */

.offer-section{
  padding:100px 10%;
  background:linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.95));
  text-align:center;
}

.offer-wrapper{
  margin-top:60px;
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:30px;
  flex-wrap:wrap;
}

.offer-card{
  width:260px; /* taka sama proporcja jak why-card */
  padding:40px 20px;
  border:1px solid rgba(200,162,77,0.2);
  background:rgba(0,0,0,0.6);
  transition:0.3s;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.offer-card:hover{
  border-color:var(--gold);
  box-shadow:0 0 25px rgba(200,162,77,0.3);
  transform:translateY(-6px);
}

.offer-icon{
  margin-bottom:18px;
}

.offer-icon img{
  width:155px;
  height:155px;
  object-fit:contain;
}

.offer-card h3{
  color:var(--gold);
  margin-bottom:12px;
  font-size:18px;
}

.offer-card p{
  font-size:14px;
  color:#ccc;
}

.offer-divider{
  display:none; /* usuwamy pionową kreskę */
}
/* ===== FORM ===== */

form{
  max-width:600px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:15px;
}

input, textarea{
  padding:15px;
  background:#111;
  border:1px solid #333;
  color:#fff;
}

input:focus, textarea:focus{
  border-color:var(--gold);
  outline:none;
  box-shadow:0 0 15px rgba(200,162,77,0.4);
}

footer{
  text-align:center;
  padding:40px;
  border-top:1px solid rgba(200,162,77,0.3);
  background:#000;
}

/* ===== ANIMATIONS ===== */

@keyframes luxuryGlow{
  from{filter:drop-shadow(0 0 10px rgba(200,162,77,0.4));}
  to{filter:drop-shadow(0 0 40px rgba(200,162,77,0.8));}
}

/* ===== MOBILE ===== */
@media(min-width:901px){
  .hero{
    background-attachment:fixed;
  }
}
@media(max-width:1000px){
  .hero-container{
    flex-direction:column;
    text-align:center;
  }

  .hero-image{
    text-align:center;
  }

  .fleet{
    flex-direction:column;
    align-items:center;
  }

  .card{
    width:100%;
  }
}     

/* ===== PREMIUM FOOTER ===== */

.footer-premium{
  background:#000;
  padding:80px 10% 60px;
  text-align:center;
  border-top:1px solid rgba(200,162,77,0.2);
}

.footer-top-line{
  width:70%;
  height:1px;
  margin:0 auto 50px;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:30px;
}

.footer-logo{
  width:220px;
  opacity:0.9;
  filter:drop-shadow(0 0 15px rgba(200,162,77,0.4));
}

.footer-info p{
  margin:6px 0;
  color:#ccc;
  font-size:14px;
  letter-spacing:1px;
}

.footer-info a{
  color:var(--gold);
  text-decoration:none;
  transition:0.3s;
}

.footer-info a:hover{
  text-shadow:0 0 10px rgba(200,162,77,0.7);
}

/* MOBILE */

@media(max-width:768px){
  .footer-premium{
    padding:60px 8% 40px;
  }
}

/* ===== RESPONSIVE NAV ===== */

.nav-logo{
  height:45px;
}

.menu-toggle{
  display:none;
  flex-direction:column;
  cursor:pointer;
  gap:5px;
}

.menu-toggle span{
  width:25px;
  height:2px;
  background:var(--gold);
  transition:0.3s;
}

.nav-links{
  display:flex;
  gap:30px;
}

/* MOBILE */

@media(max-width:900px){

  .menu-toggle{
    display:flex;
  }

.nav-links{
  position:absolute;
  top:70px;
  left:0;
  width:100%;
  background:#000;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:30px 0;
  gap:25px;
  transform:translateY(-150%);
  transition:0.4s ease;
  border-bottom:1px solid rgba(200,162,77,0.2);
}

.nav-links a{
  display:block;
  width:auto;
  white-space:nowrap;
  font-size:18px;
}
}


/* RESPONSIVE */

@media(max-width:900px){
  .offer-wrapper{
    flex-direction:column;
    gap:50px;
  }

  .offer-divider{
    display:none;
  }

  .offer-card{
    width:100%;
  }
}

/* ===== CONTACT FORM PRO ===== */

.contact-form{
  max-width:700px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:20px;
  background:rgba(0,0,0,0.6);
  padding:40px;
  border:1px solid rgba(200,162,77,0.2);
  backdrop-filter:blur(8px);
}

.contact-form input,
.contact-form select{
  padding:15px;
  background:#111;
  border:1px solid #333;
  color:#fff;
  font-size:15px;
  transition:0.3s;
}

.contact-form input:focus,
.contact-form select:focus{
  border-color:var(--gold);
  outline:none;
  box-shadow:0 0 15px rgba(200,162,77,0.4);
}

.date-group{
  display:flex;
  gap:20px;
}

.date-group input{
  flex:1;
}

@media(max-width:700px){
  .date-group{
    flex-direction:column;
  }
}

/* ===== FLATPICKR PREMIUM ===== */

.flatpickr-calendar{
  background:#111;
  border:1px solid rgba(200,162,77,0.4);
  box-shadow:0 0 40px rgba(200,162,77,0.2);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange{
  background:var(--gold);
  color:#000;
}

.flatpickr-day:hover{
  background:rgba(200,162,77,0.3);
}

.flatpickr-months{
  background:#000;
  color:var(--gold);
}

.flatpickr-current-month input.cur-year{
  color:var(--gold);
}

.flatpickr-weekday{
  color:#aaa;
} 



.section-title{
  text-align:center;
  font-family:'Playfair Display',serif;
  font-size:36px;
  color:var(--gold);
  margin:0 auto 60px;
  position:relative;
  display:table;
}

.section-title::before,
.section-title::after{
  content:"";
  position:absolute;
  top:50%;
  width:80px;
  height:1px;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
  transform:translateY(-50%);
}

.section-title::before{
  right:100%;
  margin-right:20px;
}

.section-title::after{
  left:100%;
  margin-left:20px;
}
#kontakt {
  text-align: center;
}


/* ===== ANIMACJA SECTION TITLE ===== */

.section-title{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 0.8s ease, transform 0.8s ease;
}

/* animacja wejścia */
.section-title.active{
  opacity:1;
  transform:translateY(0);
}

/* linie startowo zwinięte */
.section-title::before,
.section-title::after{
  width:0;
  transition:width 0.8s ease 0.3s;
}

/* po aktywacji rozwijają się */
.section-title.active::before,
.section-title.active::after{
  width:80px;
}
/* ===== CAR SPECS ===== */

.car-specs{
  margin:15px 0 10px;
}

.car-specs p{
  font-size:14px;
  color:#ccc;
  margin:4px 0;
  letter-spacing:0.5px;
}

.car-price{
  color:var(--gold);
  font-weight:600;
  margin-top:8px;
}
/* ===== HERO MOBILE BACKGROUND ===== */

@media(max-width:900px){

  .hero{
    background:
      linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
      url('images/hero.webp') center center / cover no-repeat;
    padding:120px 10%;
  }

  .hero-container{
    flex-direction:column;
  }

  .hero-image{
    display:none; /* ukrywamy osobny obraz */
  }

  .hero-text{
    text-align:center;
  }

  .hero-text h1{
    font-size:36px;
  }
}
/* Showroom animation */
.card{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 0.8s ease, transform 0.8s ease;
}

.card.active{
  opacity:1;
  transform:translateY(0);
}
/* ===== FLATPICKR PREMIUM GOLD OVERRIDE ===== */

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #000 !important;
}

.flatpickr-day.inRange {
  background: rgba(200,162,77,0.25) !important;
  border-color: rgba(200,162,77,0.25) !important;
  color: #fff !important;
}

.flatpickr-day:hover {
  background: rgba(200,162,77,0.4) !important;
  border-color: var(--gold) !important;
}

.flatpickr-day.today {
  border-color: var(--gold) !important;
}

.flatpickr-months .flatpickr-month {
  color: var(--gold) !important;
}

.flatpickr-current-month input.cur-year {
  color: var(--gold) !important;
}
/* ===== SUBTLE PARALLAX ===== */

@media(min-width: 901px){
  .why-section,
  .offer-section{
    background-attachment: fixed;
  }
}
/* ===== SECTION FADE ===== */

section{
  opacity:0;
  transform:translateY(60px);
  transition:all 1s ease;
}

section.visible{
  opacity:1;
  transform:translateY(0);
}
/* ===== RENTED CAR STYLE ===== */

.card.rented{
  position:relative;
  opacity:0.8;
}

.card.rented img{
  filter:grayscale(40%) brightness(0.7);
}

.rented-badge{
  position:absolute;
  top:20px;
  left:-40px;
  background:var(--gold);
  color:#000;
  padding:8px 60px;
  transform:rotate(-45deg);
  font-weight:600;
  font-size:14px;
  box-shadow:0 0 20px rgba(200,162,77,0.5);
}

.btn.disabled{
  border-color:#555;
  color:#555;
  pointer-events:none;
  cursor:not-allowed;
}

html {
  scroll-padding-top: 110px;
}
/* ===== PREMIUM GLASS MAP ===== */

.contact-map{
  position:relative;
  margin-top:60px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(200,162,77,0.3);
  backdrop-filter:blur(6px);
  background:rgba(0,0,0,0.4);
  box-shadow:
    0 0 40px rgba(200,162,77,0.15),
    inset 0 0 30px rgba(200,162,77,0.05);
  transition:0.4s ease;
}

.contact-map iframe{
  width:100%;
  height:380px;
  border:0;
  filter:grayscale(60%) contrast(1.1) brightness(0.8);
  transition:0.6s ease;
}

/* subtelna złota nakładka */
.map-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.6)
  );
  pointer-events:none;
  z-index:1;
}

/* efekt premium przy hover */
.contact-map:hover{
  box-shadow:
    0 0 60px rgba(200,162,77,0.35),
    inset 0 0 40px rgba(200,162,77,0.1);
}

.contact-map:hover iframe{
  filter:grayscale(0%) contrast(1.1) brightness(1);
}