/* XZIMG Static Site — preserves original design system */

/* Design Tokens */
:root {
  --blue: #336ead;
  --blue-light: #4a8fd4;
  --blue-lighter: #a8cdef;
  --blue-dark: #29589d;
  --btn-primary: #3e85be;
  --black: #000;
  --gray-darker: #222;
  --gray-dark: #333;
  --gray: #555;
  --gray-light: #999;
  --gray-lighter: #eee;
  --white: #fff;
  --body-bg: #f9f9f9;
  --font-heading: 'Oswald', sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-size-base: 15px;
  --line-height-base: 24px;
  --container-width: 940px;
  --radius: 6px;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--gray-dark);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #08c; text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility */
.hl { color: var(--blue); }
.img-rounded { border-radius: var(--radius); }

/* ===================== NAVBAR ===================== */
.navbar-bg {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2px 24px;
}

.navbar .brand {
  display: block;
  width: 140px;
  height: 70px;
  background: url(../images/xzimg-logo.png) no-repeat center / contain;
  text-indent: -9999px;
  flex-shrink: 0;
}

.navbar .nav {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 4px;
}

.navbar .nav a {
  font-size: 15px;
  color: var(--white);
  padding: 6px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.navbar .nav a:hover {
  background: var(--blue-light);
  color: var(--white);
}


/* ===================== MAIN CONTENT ===================== */
.site-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-bottom: 40px;
}

.main-container {
  padding: 10px 20px 30px;
  max-width: var(--container-width);
  margin: 0 auto;
  background: url(../images/header-shadows.png) repeat-x top center;
}

.main-container a { color: var(--blue); }
.main-container a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ===================== HERO ===================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 30px 0;
  min-height: 460px;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
}

.hero-content {
  text-align: center;
  padding-top: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 50px;
  line-height: 64px;
  font-weight: 700;
  color: var(--black);
  margin: 30px 0;
}

.btn-play-video {
  display: block;
  width: 100px;
  height: 100px;
  margin: 30px auto 10px;
  background: url(../images/btn-tryitnow.png) no-repeat top center;
  background-size: 100px 200px;
  text-indent: -9999px;
  border: none;
  cursor: pointer;
}
.btn-play-video:hover { background-position: bottom center; }

/* Video overlay */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.video-overlay.active { display: flex; }

.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.video-close:hover { opacity: 1; }
.video-close img { width: 30px; height: 30px; }

/* ===================== SECTIONS ===================== */
.section {
  margin-top: 20px;
  padding-top: 40px;
  background: url(../images/header-shadows.png) no-repeat top center;
}

.section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  color: var(--blue);
}

.section h1.subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 50px;
  line-height: 64px;
  color: var(--black);
  text-align: center;
  margin-bottom: 24px;
}

/* ===================== CARDS GRID ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 4px;
}

.card {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card .card-image {
  margin: auto 0;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--blue);
  text-align: center;
  margin-bottom: 10px;
}

.card-image {
  position: relative;
  display: inline-block;
}

.card-image img {
  width: 295px;
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}

.card-image .overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--radius);
}

.card-image .overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.card-image:hover .overlay {
  opacity: 1;
}

/* ShopAR image is wider/shorter than its row neighbors — extend the overlay
   vertically so the hover area visually matches adjacent cards. */
.card-image--shopar .overlay {
  top: -20px;
  bottom: -20px;
}

.card-desc {
  margin-top: 0;
  text-align: center;
}

.card-desc p {
  font-size: 16px;
  line-height: 22px;
  font-weight: 300;
  padding: 0 15px;
  margin: 6px 0;
  color: var(--gray);
}

/* Wider image for Beauty 3000 */
.card-image.wide img { width: 310px; }

/* ===================== LOGOS ===================== */
.logos-bottom {
  text-align: center;
  padding: 30px 0;
  background: var(--gray-lighter);
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.logos-row img {
  width: 170px;
  height: auto;
}

.logos-row-sm {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 26px;
}

.logos-row-sm img {
  width: 120px;
  height: auto;
}

.logos-row-sm img.logo-zalando {
  width: 145px;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.contact-item h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.contact-item p { margin: 0; }
.contact-item a { color: var(--gray-dark); }
.contact-item a:hover { color: var(--blue); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.contact-form textarea { resize: vertical; }

.btn-submit {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--btn-primary);
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--blue-dark); }

.global-presence {
  text-align: center;
}

.global-presence h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.global-presence p {
  font-size: 15px;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 0;
}

.world-map {
  max-width: 750px;
  margin: -16px auto 30px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--white);
  text-align: center;
  padding: 30px 20px 17px;
  color: #666;
  font-size: 13px;
  border-top: 1px solid #ddd;
}

.site-footer p { margin: 5px 0 14px; }

.site-footer a {
  color: #666;
  margin: 0 5px;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover { color: var(--gray-light); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image { justify-content: center; }
  .hero-image img { max-width: 400px; }

  .hero h1 { font-size: 36px; line-height: 48px; }
  .section h1.subtitle { font-size: 36px; line-height: 48px; }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 4px;
    padding: 4px 16px;
  }
  .navbar .nav {
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }
  .navbar .nav a { padding: 6px 14px; font-size: 14px; }

  .cards { grid-template-columns: 1fr; gap: 30px; }
  .card-image img { width: 280px; }
  .card-image.wide img { width: 280px; }

  .hero h1 { font-size: 30px; line-height: 40px; }
  .section h1.subtitle { font-size: 30px; line-height: 40px; }
  .section h2 { font-size: 26px; }

  .logos-row img { width: 120px; }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; line-height: 34px; }
  .section h1.subtitle { font-size: 24px; line-height: 34px; }
  .card-desc p { font-size: 16px; line-height: 22px; }
  .navbar .nav a { padding: 6px 12px; font-size: 14px; }
}
