/*
Theme Name: WoMi Transport
Theme URI: https://womi-transport.pl
Author: WoMi
Author URI: https://womi-transport.pl
Description: Motyw WordPress dla firmy transportowej WoMi – nowoczesny, przyjazny, w kolorystyce granatowo-pomarańczowej.
Version: 1.0.4b
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: womi
*/

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.hero-logo {
  width: 450px;
  max-width: 95%;
  height: auto;
}

h1, h2, h3 {
  color: #1e2a3a;
  font-weight: 600;
  line-height: 1.2;
}

.hero-header {
  color: #ff6600;
  margin-top: 0;
}

a {
  color: #ff6600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.contact-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.contact-separator {
  width: 100%;
  margin: 20px 0;
}

#phone-form {
  width: 100%;
}

.btn-primary,
.btn-phone {
  width: 80%;
}

button.btn-phone {
  width: 93.7%;
}
button.btn-phone:hover {
  cursor: pointer;
}

@media (min-width: 460px) {
  .btn-primary,
  .btn-phone {
    width: auto;
  }
  .contact-flex {
    flex-direction: row;
    align-items: baseline;
  }
  .contact-separator {
    display: block;
    width: auto;
    margin: 0;
  }
  #phone-form {
    width: auto;
  }
  button.btn-phone {
    width: auto;
  }
}

header.hero {
  background: #1e2a3a;
  position: relative;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

header.hero .content {
  position: relative;
  z-index: 1;
}

header.hero .background {
  background: center 15% / cover no-repeat url('banner.png');
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.btn-primary,
.btn-phone {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 18px;
  display: inline-block;
}

.btn-primary {
  background-color: #ff6600;
  color: #893700;
}

.btn-phone {
  background: transparent;
  border: 2px solid #ff6600;
  color: #ff6600;
}

.btn-primary:hover,
.btn-phone:hover {
  text-decoration: none;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-box {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(#f5f5f5, #FFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: -32px auto 15px;
  color: #1e2a3a;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.feature-description {
  color: #888888;
}

.contact form,
.contact .thanks {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

input[type="text"],
input[type="client-email"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.submit {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary:hover,
.submit:hover {
  background-color: #e65c00;
}

.btn-phone:hover {
  background-color: rgba(0,0,0,0.7);
}

.submit:disabled {
  background-color: #afafaf;
}

.hidden {
  display: none !important;
}

/** animation **/
.btn-phone {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-phone-loader {
  margin-left: 2px;
}

.loader {
  display: flex;
  gap: 4px;
  height: 10px; /* fixed height prevents layout shift */
  align-items: flex-end;
}

.block {
  width: 2px;
  height: 10px;
  background: #ff6600;
  transform-origin: bottom center;
  animation: waveScale 1.2s infinite ease-in-out;
}

.block:nth-child(1) {
  animation-delay: 0s;
}

.block:nth-child(2) {
  animation-delay: 0.2s;
}

.block:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waveScale {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(2);
  }
}