/*
Theme Name: Haratym 10.0
Author: Haratym
Description: Profesjonalna strona dla Usługi Transportowe i Handel Zbigniew Haratym.
Version: 12.5
Text Domain: haratym
*/

:root {
  --yellow: #ffc400;
  --black: #080b0c;
  --dark: #111718;
  --dark2: #182022;
  --text: #171b1c;
  --muted: #687174;
  --line: #dfe3e4;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* Header */
.top {
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid #292e30;
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: 118px;
  max-width: 350px;
  object-fit: contain;
}
.phone {
  background: var(--yellow);
  color: #111;
  padding: 13px 18px;
  font-weight: 900;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 610px;
  color: #fff;
  background: #0b1011;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,8,9,.9) 0%, rgba(5,8,9,.65) 48%, rgba(5,8,9,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 700px;
}
.eyebrow,
.kicker {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}
/* Accessibility: strong contrast for kickers on light backgrounds */
.section:not(.dark) .kicker,
.service-area .kicker { color: #7a5a00; }
.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: .93;
  text-transform: uppercase;
  margin: 13px 0 20px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--yellow); }
.hero-slogan {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: -6px 0 20px;
}
.hero-slogan span { color: var(--yellow); }
.hero p { font-size: 18px; max-width: 620px; margin: 0; }

/* Buttons */
.buttons,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.buttons { margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 15px 23px;
  background: var(--yellow);
  color: #111;
  font-weight: 900;
  border: 2px solid var(--yellow);
}
.btn.alt { background: transparent; color: #fff; }
.btn:hover { transform: translateY(-1px); }
.facebook-btn { background: #0b63ce; border-color: #0b63ce; color: #fff; }

/* Trust strip */
.trust {
  background: var(--yellow);
  padding: 19px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust strong { display: block; font-size: 14px; }
.trust span { font-size: 12px; }

/* Sections */
.section { padding: 82px 0; content-visibility: auto; contain-intrinsic-size: 700px; }
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin: 10px 0 20px;
}
.muted { color: var(--muted); }
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 25px;
}
.checks div::before {
  content: '✓';
  background: var(--yellow);
  color: #111;
  border-radius: 50%;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 9px;
}

/* Services */
.dark { background: var(--dark); color: #fff; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--dark2);
  border: 1px solid #30383a;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.card-body { padding: 24px; }
.card h3 { margin: 0 0 9px; font-size: 22px; }
.card p { margin: 0; color: #c8cdce; }
.equipment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.equipment-card {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.equipment-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.equipment-card .body { padding: 22px; }

/* Gallery */
.gallery-hint { color: var(--muted); margin: -8px 0 18px; font-size: 14px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery img {
  width: 100%;
  min-width: 0;
  height: 250px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.gallery img:first-child {
  grid-column: 1 / -1;
  height: 350px;
  object-position: center center;
}

/* Service area */
.service-area {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  background: #f2f4f4;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-area h2 { margin: 10px 0 12px; }
.service-area p { margin: 0 0 20px; color: var(--muted); }
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.city-list span {
  background: #fff;
  border: 1px solid #d7dddd;
  padding: 9px 13px;
  font-weight: 800;
  font-size: 14px;
}

/* Contact / banner */
.banner {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
  background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.5)), url('assets/gallery-3.webp') center / cover;
  color: #fff;
  padding: 75px 0;
}
.banner h2 { margin: 10px 0 22px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-box { background: #f3f5f5; padding: 28px; }
.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  margin: 0 0 12px;
  border: 1px solid #ccd2d4;
  font: inherit;
}
.form textarea { min-height: 150px; }

/* Generic inner-page hero */
.page-hero {
  position: relative;
  color: #fff;
  padding: 95px 0;
  background: #101516;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.25)), url('assets/truck-hero.webp') center / cover;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(40px, 6vw, 65px); margin: 8px 0; }
.notice {
  padding: 18px 22px;
  border-left: 5px solid var(--yellow);
  background: #f5f5f5;
  margin-top: 25px;
}

/* Footer */
.footer {
  background: #070909;
  color: #c9cdce;
  padding: 52px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer h3 { color: #fff; margin-top: 0; }
.footer-social {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.facebook-link {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #0b63ce;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}
.footer-social a:not(.facebook-link) { color: #fff; font-weight: 800; }
.copyright {
  border-top: 1px solid #222;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 12px;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 45px rgba(0,0,0,.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: #fff;
  color: #111;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close { right: 22px; top: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* Mobile quick actions */
.mobile-actions { display: none; }

@media (max-width: 800px) {
  .container { width: min(94%, 680px); }
  .nav { min-height: 76px; }
  .brand-logo { height: 104px; max-width: 280px; }
  .phone { padding: 10px 12px; font-size: 12px; }

  .hero { min-height: 570px; }
  .hero-content { min-height: 570px; padding: 55px 0; }
  .hero-media img { object-position: center; }
  .hero h1 { font-size: 45px; }
  .hero-slogan { font-size: 24px; }
  .hero p { font-size: 16px; }

  .trust-grid,
  .cards,
  .grid2,
  .equipment,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 12px; }
  .trust-grid > div { padding: 2px 0; }

  .section { padding: 60px 0; }
  .photo { height: 300px; }
  .checks { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gallery img:first-child { grid-column: 1 / -1; height: 350px; }
  .gallery img:not(:first-child) { height: 180px; }

  .card img { height: 210px; }
  .equipment-card img { height: 290px; }

  .service-area { padding: 55px 0; }
  .city-list { gap: 7px; }
  .city-list span { font-size: 13px; padding: 8px 10px; }
  .contact-actions { gap: 9px; }
  .contact-actions .btn { flex: 1 1 100%; text-align: center; }

  .lightbox { padding: 15px; }
  .lightbox img { max-width: 96vw; max-height: 78vh; }
  .lightbox-close { right: 12px; top: 12px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  body { padding-bottom: 74px; }
  .mobile-actions {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 9998;
    background: rgba(7,9,9,.96);
    padding: 7px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
  }
  .mobile-actions a {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--yellow);
    color: #111;
    font-weight: 900;
    font-size: 12px;
    border-radius: 7px;
  }
  .mobile-actions a.email { background: #fff; }
  .mobile-actions a.facebook { background: #0b63ce; color: #fff; }
}
