/* ==========================================================
   METABEL ZARA — HOME PAGE STYLES
   ========================================================== */

body.home-page {
  height: 100vh;
  overflow: hidden;
}

.home-hero {
  position: relative;
  height: calc(100vh - var(--logo-strip-h));
  margin-top: var(--nav-h);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 10%; right: -10%;
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.home-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.home-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.home-media img,
.home-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-right {
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.75rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  overflow-y: auto; /* rare overflow on short viewports scrolls INSIDE the column, not the page */
  scrollbar-width: thin;
}

.home-brand-title {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}

.home-tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  max-width: 40ch;
}

.home-divider {
  width: 100%;
  max-width: 460px;
  height: 2px;
  background: var(--red);
  border: 0;
  margin: 0.25rem 0 0.5rem;
}

.home-whatwedo {
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.wwd-label { color: var(--ink); margin-right: 0.35rem; }

.wwd-text { color: var(--red-bright); font-weight: 600; }

.btn-checkus {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem 0.75rem 1.55rem;
  background: var(--red);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 100px;
  align-self: flex-start;
  transition: all 0.35s var(--ease);
  box-shadow: 0 10px 26px -10px rgba(237, 28, 36, 0.55);
  margin-top: 0.25rem;
}

.btn-checkus:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(237, 28, 36, 0.75);
}

.btn-arrow-circle {
  width: 32px; height: 32px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: transform 0.35s var(--ease);
}

.btn-checkus:hover .btn-arrow-circle { transform: translateX(4px); }

.btn-arrow-circle svg { width: 15px; height: 15px; }

.home-regions {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0;
}

.home-clients {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  height: var(--logo-strip-h);
  display: flex;
  align-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.home-clients .logo-slider { width: 100%; }

.home-clients {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  padding: 1.2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* ============================================================
   HOME — MOBILE OVERRIDES (must be in this file to win cascade)
   ============================================================ */

@media (max-width: 1024px) {
  body.home-page {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .home-hero {
    height: auto;
    min-height: auto;
    margin-top: var(--nav-h);
    display: block;
  }
  .home-inner {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    height: auto;
  }
  .home-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    max-height: 60vh;
  }
  .home-right {
    width: 100%;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
    gap: 1rem;
    justify-content: flex-start;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  body.home-page { height: auto !important; overflow: visible !important; }
  .home-hero { display: block; height: auto; }
  .home-inner {
    display: block !important;
    width: 100%;
  }
  .home-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 240px;
    max-height: 65vh;
  }
  .home-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2rem 1.25rem 2.5rem;
    gap: 1rem;
  }
  .home-brand-title {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    line-height: 1;
  }
  .home-tagline {
    font-size: 0.96rem;
    line-height: 1.5;
    max-width: none;
  }
  .home-whatwedo {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .wwd-text { display: block; margin-top: 0.25rem; }
  .home-divider { max-width: 100%; }
  .btn-checkus {
    padding: 0.85rem 0.85rem 0.85rem 1.4rem;
    font-size: 0.95rem;
    align-self: flex-start;
  }
  .home-regions { font-size: 0.92rem; }

  /* Logo strip stacks below as full-width section */
  .home-clients {
    position: relative !important;
    width: 100%;
    bottom: auto;
    padding: 0.7rem 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .logo { height: 50px; padding: 0 0.4rem; }
  .logo img { max-height: 38px; max-width: 110px; }
  .logo-track { gap: 1.75rem; animation-duration: 28s; }
}

@media (max-width: 480px) {
  .home-media {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
  .home-brand-title { font-size: 2.2rem; }
  .home-tagline { font-size: 0.92rem; }
}
