/* ==========================================================================
   Izabella Spedition — stylesheet
   ========================================================================== */

:root {
  --navy: #0A2342;
  --navy-light: #123568;
  --white: #FFFFFF;
  --orange: #FF7A00;
  --gray-light: #F4F6F9;
  --gray-mid: #C9CDD3;
  --gray-text: #4B5563;
  --header-height: 128px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { text-decoration: none; color: inherit; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--navy);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 110px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop ul {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--orange);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 2px;
  line-height: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-flag-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.lang-flag-btn.active {
  opacity: 1;
  border-color: var(--orange);
}

.flag-icon {
  width: 30px;
  height: 20px;
  border-radius: 2px;
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--navy-light);
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-item {
  padding-top: 12px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 62vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--navy);
  /* Drop your hero photo in as assets/hero.jpg — this layer will pick it up
     automatically. Until then, the gradient below renders on its own. */
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  color: var(--white);
}

.hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.5em;
}

.hero-inner p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ==========================================================================
   Section fade-in
   ========================================================================== */

.section-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.about p {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--gray-text);
}

.about-image img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(10, 35, 66, 0.18);
}

@media (min-width: 861px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .about-text {
    order: 1;
  }

  .about-image {
    order: 2;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: 96px 0;
  background: var(--gray-light);
}

.services-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 10px;
}

.services h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.services-grid li {
  background: var(--white);
  border: 1px solid #E4E8EE;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.services-grid li:hover {
  box-shadow: 0 12px 28px rgba(10, 35, 66, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 122, 0, 0.35);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.services-grid h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.services-grid p {
  font-size: 0.92rem;
  color: var(--gray-text);
  margin: 0;
}

/* ==========================================================================
   Coverage / Map
   ========================================================================== */

.coverage {
  padding: 96px 0;
}

.coverage h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.coverage p {
  max-width: 700px;
  color: var(--gray-text);
}

.map-wrap {
  position: relative;
  max-width: 800px;
  margin: 32px auto 0;
}

#europeMap {
  width: 100%;
  height: auto;
  display: block;
}

.countries-neutral path {
  fill: var(--gray-mid);
  stroke: var(--white);
  stroke-width: 0.5;
  stroke-linejoin: round;
}

.countries-active .country {
  fill: var(--navy);
  opacity: 0.85;
  stroke: var(--white);
  stroke-width: 0.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.2s ease, opacity 0.2s ease;
}

.countries-active .country:hover,
.countries-active .country.tapped {
  fill: var(--orange);
  opacity: 1;
}

.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
  z-index: 10;
}

.map-tooltip.visible {
  opacity: 1;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 96px 0;
  background: var(--gray-light);
}

.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 32px;
  max-width: 800px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  font-weight: 700;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s ease;
}

a.contact-value:hover {
  color: var(--orange);
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid #E4E8EE;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 35, 66, 0.12);
}

.app-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.app-btn--whatsapp .app-btn-icon {
  color: #25D366;
}

.app-btn--whatsapp:hover {
  border-color: #25D366;
}

.app-btn--viber .app-btn-icon {
  color: #7360F2;
}

.app-btn--viber:hover {
  border-color: #7360F2;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 56px) 24px 96px;
}

.legal-main h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.3em;
}

.legal-updated {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 2.5em;
}

.legal-main h2 {
  font-size: 1.2rem;
  margin: 2em 0 0.6em;
}

.legal-main p,
.legal-main li {
  color: var(--gray-text);
  font-size: 0.98rem;
}

.legal-main ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.legal-main li {
  margin-bottom: 0.4em;
}

.legal-main strong {
  color: var(--navy);
}

.legal-back {
  display: inline-block;
  margin-top: 3em;
  color: var(--orange);
  font-weight: 600;
}

.legal-back:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .logo-img {
    height: 78px;
  }

  .about, .services, .coverage, .contact {
    padding: 64px 0;
  }

  .hero {
    min-height: 50vh;
  }

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