/* ============ DESIGN TOKENS ============ */
:root {
  --dark-blue: #0f2744;
  --light-gray: #f5f7fa;
  --safety-orange: #ff8a00;
  --white-muted: rgba(255, 255, 255, 0.8);
  --max-width: 1100px;
  --radius: 0.6rem;
  --radius-lg: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--dark-blue);
  background: #ffffff;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
}

body.nav-open {
  overflow: hidden;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.2s, transform 0.15s ease, box-shadow 0.2s;
  touch-action: manipulation;
  min-height: 44px;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn:active {
  transform: scale(0.97);
  box-shadow: none;
  opacity: 1;
}

.btn-primary {
  background: var(--safety-orange);
  color: #ffffff;
  border-color: var(--safety-orange);
}

.btn-dark {
  background: var(--dark-blue);
  color: #ffffff;
  border-color: var(--dark-blue);
}

.btn-dark:hover {
  opacity: 0.88;
}

/* ============ HEADER ============ */
header {
  background: var(--dark-blue);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
}

header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--safety-orange) 30%,
    #ffb347 50%,
    var(--safety-orange) 70%,
    transparent 100%
  );
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover {
  color: var(--safety-orange);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--safety-orange);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ============ HAMBURGER ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

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

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

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

/* ============ MOBILE NAV OVERLAY ============ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--dark-blue);
  z-index: 99;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  padding-top: max(4.75rem, env(safe-area-inset-top) + 4.75rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom) + 1.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav ul a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.875rem 0;
  transition: color 0.2s;
}

.mobile-nav ul a:hover,
.mobile-nav ul a:focus {
  color: var(--safety-orange);
}

/* ============ ANCHOR SCROLL OFFSET ============ */
section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 78px;
  }
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 15% 65%, rgba(255, 138, 0, 0.08) 0%, transparent 100%),
    linear-gradient(160deg, #1c3d6b 0%, var(--dark-blue) 55%);
  padding: 5rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--safety-orange);
  margin-bottom: 0.9rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-content h1 span {
  color: var(--safety-orange);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-content .btn {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ============ ABOUT ============ */
.about {
  padding: 5rem 1.5rem;
  background: #ffffff;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about h2 {
  font-size: 1.75rem;
  color: var(--dark-blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--safety-orange);
}

.about p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 0.75rem;
}

/* ============ SERVICES ============ */
.services {
  padding: 5rem 1.5rem;
  background: var(--light-gray);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-inner h2 {
  font-size: 1.75rem;
  color: var(--dark-blue);
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services-grid--stacked {
  grid-template-columns: 1fr;
}

.service-card {
  background: #ffffff;
  border-radius: 0;
  padding: 2rem;
  border-left: 4px solid var(--safety-orange);
  box-shadow: 0 2px 12px rgba(15, 39, 68, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: var(--radius);
}

.service-card > i {
  font-size: 2.25rem;
  color: var(--safety-orange);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.card-header i {
  font-size: 1.75rem;
  color: var(--safety-orange);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.card-header h3 {
  font-size: 1.05rem;
  color: var(--dark-blue);
  margin: 0;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
}

/* ============ SERVICES PHOTO GRID ============ */
.services-photo-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.services-photo-grid .photo-main {
  grid-column: 1 / -1;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  display: block;
}

.services-photo-grid img:not(.photo-main) {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  display: block;
}

/* ============ PAGE HERO (usluge, kontakt) ============ */
.page-hero {
  background:
    radial-gradient(ellipse 70% 60% at 15% 65%, rgba(255, 138, 0, 0.08) 0%, transparent 100%),
    linear-gradient(160deg, #1c3d6b 0%, var(--dark-blue) 55%);
  padding: 3.5rem 1.5rem;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero-inner>p>span{
  color: var(--safety-orange);
  font-weight: 800;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}

/* ============ CONTACT PAGE ============ */
.contact-page {
  padding: 5rem 1.5rem;
  background: #ffffff;
}

.contact-page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  color: var(--dark-blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.contact-info h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--safety-orange);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
}

.contact-detail i {
  font-size: 1.3rem;
  color: var(--safety-orange);
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--safety-orange);
  margin-bottom: 0.2rem;
}

.contact-detail-text a {
  color: var(--dark-blue);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-detail-text a:hover {
  color: var(--safety-orange);
}

.contact-detail-text p {
  color: #555;
  font-size: 1rem;
}

.contact-cta-box {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  
}

.contact-cta-box h2 {
  font-size: 1.5rem;
  color: var(--dark-blue);
  margin-bottom: 0.75rem;
}

.contact-cta-box p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-cta-box .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ============ CONTACT CTA ============ */
.contact-cta {
  background: var(--safety-orange);
  padding: 4rem 1.5rem;
}

.contact-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-cta-inner > div {
  text-align: left;
}

.contact-cta h2 {
  font-size: 1.6rem;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.contact-cta p {
  color: var(--dark-blue);
  font-size: 1rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.btn-icon {
  padding: 0;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}

/* ============ FOOTER ============ */
footer {
  background: #091c33;
  color: var(--white-muted);
  padding: 2.5rem 1.5rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom) + 1rem);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

footer address {
  font-style: normal;
  font-size: 0.9rem;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.maps-link:hover {
  color: var(--safety-orange);
}

.maps-link svg {
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--safety-orange);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--white-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--safety-orange);
}

/* ============ RESPONSIVE — TABLET ============ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-page-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============ RESPONSIVE — MOBILE ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .logo img {
    height: 44px;
  }

  .hero {
    padding: 3rem 1.25rem 3.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-content .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .about {
    padding: 3rem 1.25rem;
  }

  .services {
    padding: 3rem 1.25rem;
  }

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

  .page-hero {
    padding: 2.5rem 1.25rem;
  }

  .contact-page {
    padding: 3rem 1.25rem;
  }

  .contact-cta {
    padding: 3rem 1.25rem;
  }

  .contact-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .contact-cta-inner .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-nav {
    gap: 1.25rem;
  }
}

/* ============ ANIMATIONS & HOVER EFFECTS ============ */
.logo img {
  transition: transform 0.25s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(15, 39, 68, 0.13);
  }

  .service-card:hover .card-header i {
    transform: scale(1.2);
  }

  .service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(15, 39, 68, 0.12);
  }

  .service-item:hover .service-item-icon {
    transform: scale(1.15);
  }
}

.service-card:active {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes heroFadeRight {
    from {
      opacity: 0;
      transform: translateX(22px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .hero-content h1 {
    animation: heroFadeUp 0.7s 0.05s ease-out both;
  }
  .hero-content p {
    animation: heroFadeUp 0.7s 0.22s ease-out both;
  }
  .hero-content .btn {
    animation: heroFadeUp 0.7s 0.38s ease-out both;
  }
  .hero-image {
    animation: heroFadeRight 0.8s 0.18s ease-out both;
  }

  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

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

  .services-grid .reveal:nth-child(2) {
    transition-delay: 0.12s;
  }
  .services-grid .reveal:nth-child(3) {
    transition-delay: 0.24s;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
  .logo img {
    transition: none;
  }
  .logo:hover img {
    transform: none;
  }
  .nav-toggle span {
    transition: none;
  }
  .service-card {
    transition: none;
  }
  .service-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(15, 39, 68, 0.06);
  }
  html {
    scroll-behavior: auto;
  }
}
