/* ================================================================
   VELRIO – custom.css
   Tylko to, czego nie da się osiągnąć samymi klasami Tailwind:
   • złoty gradient przycisku
   • pseudo-elementy (nav underline)
   • animacja hamburgera
   • mobile menu transition (opacity + pointer-events)
   • scroll-reveal ([data-animate])
   • reduced-motion override
================================================================ */

/* ── Gold gradient button ─────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,
    #efdd9e 0%,
    #976d23 33%,
    #fff0b3 67%,
    #a37613 100%);
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding-inline: 40px;
  height: 67px;
  min-width: 295px;
  border-radius: 9999px;
  transition: opacity 0.2s cubic-bezier(0.22,1,0.36,1),
              transform 0.2s cubic-bezier(0.22,1,0.36,1);
}
.btn-gold:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-gold:active { opacity: 1;    transform: translateY(0); }
.btn-gold:focus-visible { outline: 2px solid #a47e35; outline-offset: 3px; }

@media (max-width: 640px) {
  .btn-gold { width: 100%; min-width: unset; font-size: 17px; height: 56px; }
}

/* ── Nav link — gold underline on hover / active ──────────── */
.nav-link {
  position: relative;
  padding-bottom: 3px;
  transition: opacity 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #efdd9e 0%, #976d23 33%, #fff0b3 67%, #a37613 100%);
  transition: width 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-link:hover::after,
.nav-link--active::after { width: 100%; }
.nav-link:hover { opacity: 0.85; }
.nav-link:focus-visible { outline: 2px solid #a47e35; outline-offset: 4px; }

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger:focus-visible { outline: 2px solid #a47e35; outline-offset: 4px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu — fade + slide transition ────────────────── */
.mobile-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.22,1,0.36,1),
              transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Scroll-reveal ────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate]:nth-child(2) { transition-delay: 0.08s; }
[data-animate]:nth-child(3) { transition-delay: 0.16s; }
[data-animate]:nth-child(4) { transition-delay: 0.24s; }
[data-animate]:nth-child(5) { transition-delay: 0.32s; }
[data-animate]:nth-child(6) { transition-delay: 0.40s; }

/* ── Logo w nagłówku — 100px wysokości, zmniejszenie po scrollu ── */
#site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
#site-header .custom-logo-link { display: inline-block; }
#site-header .custom-logo,
#site-header .custom-logo-link img,
#site-header a[aria-label*="strona główna"] img {
  height: 100px !important;
  width: auto !important;
  max-width: none;
  transition: height 0.25s ease;
}
#site-header > div > div { transition: height 0.25s ease; }
#site-header.is-scrolled > div > div { height: 72px; }
#site-header.is-scrolled .custom-logo,
#site-header.is-scrolled .custom-logo-link img,
#site-header.is-scrolled a[aria-label*="strona główna"] img {
  height: 56px !important;
}

/* ── Contact Form 7 — styl inputów Velrio ─────────────────── */
.wpcf7 form.wpcf7-form p { margin: 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  font-size: 16px;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
  outline: none;
  border-radius: 0;
  font-family: inherit;
}
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23976d23' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  padding-right: 44px;
}
.wpcf7 textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  font-size: 16px;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
  outline: none;
  resize: none;
  border-radius: 0;
  font-family: inherit;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-color: #976d23; }

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: rgba(0,0,0,0.4); }

/* Checkbox (acceptance) */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; display: inline; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label { display: none; }
.wpcf7 input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 4px 0 0 0;
  flex-shrink: 0;
  accent-color: #a47e35;
  cursor: pointer;
}

/* Submit — override styl CF7 na btn-gold */
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #efdd9e 0%, #976d23 33%, #fff0b3 67%, #a37613 100%);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-family: inherit;
}
.wpcf7 input[type="submit"]:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(151,109,35,0.25); }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Walidacja i komunikaty */
.wpcf7 .wpcf7-not-valid { border-color: #c0392b !important; }
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  display: block;
}
.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  line-height: 1.5;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; background: #eef7ee; color: #1b5e20; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #c0392b; background: #fdecea; color: #8b1e1e; }

/* Spinner */
.wpcf7 .wpcf7-spinner { background-color: #976d23; margin: 0 0 0 16px; }

/* ── Home hero — mobile sizing ────────────────────────────── */
@media (max-width: 1023px) {
  .hero-home { min-height: 0 !important; }
  .hero-home__dark { height: 260px !important; }
  .hero-home__title-wrap { height: 260px !important; padding-bottom: 16px !important; }
}
@media (max-width: 640px) {
  .hero-home__dark { height: 220px !important; }
  .hero-home__title-wrap { height: 220px !important; padding-bottom: 14px !important; }
  .hero-home__pretitle { font-size: 18px !important; }
  .hero-home__main { font-size: 44px !important; }
  .hero-home__desc { padding-top: 20px !important; padding-bottom: 32px !important; }
}
@media (max-width: 1023px) {
  .hero-home__img { display: none !important; }
  .hero-home__dark img {
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ── Oferta — kategorie mobile ────────────────────────────── */
@media (max-width: 640px) {
  .cat-pretitle { font-size: 18px !important; }
  .cat-title { font-size: 34px !important; }
}

/* ── Strona główna — h2 mobile ────────────────────────────── */
@media (max-width: 640px) {
  .home-pretitle { font-size: 22px !important; }
  .home-title { font-size: 30px !important; }
  .home-title-xl { font-size: 40px !important; }
}

/* ── Brands — mobile grid ─────────────────────────────────── */
@media (max-width: 768px) {
  .brands-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px !important;
    padding: 28px 0 !important;
    align-items: center;
    justify-items: center;
  }
  .brands-row img {
    height: 32px !important;
    max-width: 100%;
  }
}
@media (max-width: 420px) {
  .brands-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Podstrony — nagłówki sekcji mobile ───────────────────── */
@media (max-width: 640px) {
  .sec-pretitle { font-size: 18px !important; }
  .sec-title { font-size: 32px !important; }
}

/* ── Podstrony — hero h1 mobile ───────────────────────────── */
@media (max-width: 640px) {
  .subhero-pretitle { font-size: 18px !important; }
  .subhero-title { font-size: 44px !important; }
  .subhero-pretitle,
  .subhero-title {}
}
@media (max-width: 1023px) {
  section.bg-gradient-to-br.from-black > .max-w-container {
    padding-top: 24px !important;
    padding-bottom: 28px !important;
  }
}
@media (max-width: 640px) {
  section.bg-gradient-to-br.from-black > .max-w-container {
    padding-top: 16px !important;
    padding-bottom: 20px !important;
  }
  section.bg-gradient-to-br.from-black > .max-w-container > nav { margin-bottom: 12px !important; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
}
