/* =========================================
   ŻÓRAWSKI AUTOMECHANIKA – Global Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --black:    #0d0d0d;
  --dark:     #141414;
  --darkgray: #1e1e1e;
  --midgray:  #2c2c2c;
  --gray:     #888;
  --light:    #f2f0eb;
  --white:    #ffffff;
  --red:      #066bd2;
  --red-dark: #0558b0;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Lato', sans-serif;

  --max: 1200px;
  --radius: 2px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.2rem; letter-spacing: 0.08em; }

p { color: var(--gray); max-width: 60ch; }

/* ── LAYOUT ── */
.container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

section { padding: 100px 0; }

/* ── LABEL ── */
.label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

.nav__logo img { height: 48px; width: auto; }
.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.nav__logo-text span { color: var(--red); }

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }

.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
}
.nav__cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }

/* phone in nav */
.nav__phone {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--red) !important;
  white-space: nowrap;
  transition: var(--transition);
}
.nav__phone:hover { color: var(--white) !important; }

@media (max-width: 768px) {
  .nav__phone { font-size: 1rem; }
}

/* footer map */
.footer__map {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  filter: grayscale(50%) contrast(1.1);
}

/* hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--light);
  transition: var(--transition);
}

/* mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--black);
  border-top: 1px solid var(--midgray);
}
.nav__mobile a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 16px 5%;
  border-bottom: 1px solid var(--midgray);
  transition: var(--transition);
}
.nav__mobile a:hover { color: var(--white); padding-left: 7%; }
.nav__mobile.open { display: flex; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/background.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero__bg1 {
  position: absolute;
  inset: 0;
  background-image: url('../images/background1.webp');
  background-size: width;
  background-position: center;
  opacity: 0.18;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--midgray);
  flex-wrap: wrap;
}

.hero__stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hero__stat-num span { color: var(--red); }

.hero__stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
}

/* ── INTRO BAND ── */
.band {
  background: var(--red);
  padding: 28px 0;
}
.band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}
.band__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.band__item svg { opacity: 0.8; flex-shrink: 0; }

/* ── SERVICES TILES (homepage) ── */
.services-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--midgray);
  border: 1px solid var(--midgray);
}
@media (max-width: 700px) { .services-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .services-tiles { grid-template-columns: 1fr; } }

.stile {
  background: var(--dark);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 22px 24px;
  transition: background var(--transition);
  text-decoration: none;
}
.stile:hover { background: var(--darkgray); }
.stile:hover .stile__arrow { color: var(--red); transform: translateX(4px); }

.stile__icon { font-size: 1.4rem; flex-shrink: 0; }

.stile__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  flex: 1;
  line-height: 1.2;
}

.stile__arrow {
  font-size: 1rem;
  color: var(--gray);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--midgray);
  border: 1px solid var(--midgray);
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--darkgray);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}
.service-card:hover { background: var(--midgray); }
.service-card:hover::before { transform: scaleY(1); }

.service-card__icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: block;
}
.service-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: none;
}
.service-card__link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  transition: var(--transition);
}
.service-card__link:hover { letter-spacing: 0.22em; }

/* ── ABOUT SECTION ── */
.about {
  background: var(--black);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

.about__img-wrap {
  position: relative;
}
.about__img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(30%);
}
.about__img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--red);
  z-index: -1;
}

.about__text h2 { color: var(--white); margin-bottom: 1.5rem; }
.about__text p { margin-bottom: 1.2rem; }

.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.about__fact {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}
.about__fact-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.about__fact-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── WHY US ── */
.why {
  background: var(--darkgray);
}
.why__header { text-align: center; margin-bottom: 60px; }
.why__header h2 { color: var(--white); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .why__grid { grid-template-columns: 1fr; } }

.why__item { text-align: center; }
.why__num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--midgray);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.why__desc { font-size: 0.88rem; max-width: none; }

/* ── CTA BAND ── */
.cta-section {
  background: var(--red);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,0.75);
  margin: 0 auto 2rem;
  max-width: 50ch;
}
.btn-white {
  background: var(--white);
  color: var(--red);
}
.btn-white:hover { background: var(--light); }

.btn-phone {
  font-size: 1.2rem;
  padding: 16px 48px;
  letter-spacing: 0.08em;
}

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--midgray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  color: var(--red);
  font-size: 1.2rem;
}
.contact-item__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}
.contact-item__value {
  color: var(--white);
  font-size: 1rem;
}
.contact-item__value a { color: var(--white); transition: var(--transition); }
.contact-item__value a:hover { color: var(--red); }

.map-wrap {
  background: var(--midgray);
  height: 350px;
  overflow: hidden;
  border-radius: var(--radius);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(50%) contrast(1.1);
}

/* ── FOOTER ── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--midgray);
  padding: 60px 0 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }

.footer__brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer__brand-name span { color: var(--red); }
.footer__brand-desc { font-size: 0.88rem; max-width: 100%; }

.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: var(--transition);
}
.footer__col ul a:hover { color: var(--red); }

.footer__bottom {
  border-top: 1px solid var(--midgray);
  padding-top: 1.5rem;
  text-align: center;
}
.footer__copy { font-size: 0.8rem; color: var(--gray); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background-image: url('../images/background1.webp');
  background-size: cover;
  background-position: center;
  opacity: 1;

  padding: 140px 0 70px;
  border-bottom: 1px solid var(--midgray);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; max-width: 60ch; }

/* ── SERVICE PAGE ── */
.service-detail {
  background: var(--dark);
}
.service-detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 768px) { .service-detail__grid { grid-template-columns: 1fr; } }

.service-detail__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 2.5rem;
}
.service-detail__body h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.5rem; }
.service-detail__body p { margin-bottom: 1.2rem; }

.service-detail__list {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-detail__list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray);
  align-items: flex-start;
}
.service-detail__list li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar__box {
  background: var(--darkgray);
  padding: 32px;
  border-top: 3px solid var(--red);
  margin-bottom: 1.5rem;
}
.sidebar__box h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.sidebar__box ul { display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar__box ul a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: var(--transition);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--midgray);
}
.sidebar__box ul a:hover { color: var(--red); }
.sidebar__box ul a.current { color: var(--red); font-weight: 700; }

.sidebar__tel {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray); transition: var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); }

/* ── USLUGI LIST PAGE ── */
.uslugi-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--midgray);
}
@media (max-width: 900px) { .uslugi-list { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .uslugi-list { grid-template-columns: 1fr; } }

/* ── CONTACT PAGE FORM ── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--darkgray);
  border: 1px solid var(--midgray);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ── PHONE CARD ── */
.phone-card {
  background: var(--darkgray);
  border: 1px solid var(--midgray);
  border-top: 3px solid var(--red);
  padding: 28px 32px;
  border-radius: var(--radius);
}
.phone-card__num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.phone-card__actions {
  display: flex;
  gap: 0.75rem;
}

.phone-hint {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.phone-hint__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray);
}
.phone-hint__item::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── UTILS ── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
