/* Michałowice Auto & Bus Serwis — landing */

:root {
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --bg-soft: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #e85a14;
  --accent-hot: #ff6a1a;
  --accent-dim: rgba(232, 90, 20, 0.2);
  --line: rgba(255, 255, 255, 0.08);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 1100px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hot);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.header-brand img {
  height: 2.6rem;
  width: auto;
}

.header-brand:hover {
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  color: var(--text) !important;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 15%, rgba(232, 90, 20, 0.16), transparent 55%),
    linear-gradient(180deg, #121212 0%, var(--bg) 55%, #0a0a0a 100%);
}

.hero-glow {
  position: absolute;
  inset: 20% 10% auto;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(232, 90, 20, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: glow-breathe 6s ease-in-out infinite;
}

.hero-honeycomb {
  position: absolute;
  width: min(48vw, 460px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  background-color: transparent;
  background-image: url("assets/honeycomb.svg");
  background-size: 66px 76.21px;
  background-repeat: repeat;
  animation: honeycomb-drift 22s linear infinite;
}

.hero-honeycomb--tl {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hero-honeycomb--tl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none;
}

.hero-honeycomb--br {
  right: 0;
  bottom: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  animation-direction: reverse;
}

.hero-honeycomb--br::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 42rem;
}

.logo-hero,
.hero-logo {
  margin: 0 auto 1.5rem;
  max-width: min(100%, 340px);
}

.hero-logo img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.btn:hover {
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 0 28px var(--accent-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-pulse {
  animation: cta-pulse 2.8s ease-in-out infinite;
}

/* Sections */

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
}

/* Services — no heavy cards */

.services {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s var(--ease), padding 0.3s var(--ease);
}

.service:last-child {
  border-bottom: none;
}

.service:hover {
  transform: translateX(6px);
}

.service-icon {
  grid-row: 1 / span 2;
  align-self: start;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-top: 0.15rem;
  transition: transform 0.3s var(--ease), filter 0.3s;
}

.service:hover .service-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(232, 90, 20, 0.45));
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service p {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

/* About */

.about {
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg) 0%, #111 100%);
}

.about-honeycomb {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(45vw, 360px);
  aspect-ratio: 1;
  opacity: 0.45;
  background-image: url("assets/honeycomb.svg");
  background-size: 66px 76.21px;
  background-repeat: repeat;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.about-inner {
  position: relative;
  max-width: 40rem;
}

.about-copy {
  display: grid;
  gap: 1.1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact */

.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-list {
  display: grid;
  gap: 1.5rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--accent);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-list h3 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-list a {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent-hot);
}

.contact-map {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  overflow: hidden;
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 90, 20, 0.25);
  pointer-events: none;
  z-index: 1;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(0.85) contrast(1.05) brightness(0.85);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: #080808;
}

.footer-inner {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.footer-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: 0.2rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  color: var(--text-muted);
}

.footer-meta a {
  text-decoration: none;
}

.footer-copy {
  font-size: 0.85rem;
  color: #666;
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.04s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.28s; }
.services-grid .reveal:nth-child(9) { transition-delay: 0.32s; }
.services-grid .reveal:nth-child(10) { transition-delay: 0.36s; }

/* Keyframes */

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 90, 20, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(232, 90, 20, 0);
  }
}

@keyframes honeycomb-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 66px 76.21px;
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Responsive */

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }

  .service {
    padding-block: 1.5rem;
  }
}

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

  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
    gap: 3rem;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 100%;
    height: 100%;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border: 1px solid var(--accent);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-pulse,
  .hero-honeycomb,
  .hero-glow {
    animation: none;
  }

  .service:hover {
    transform: none;
  }
}
