/*
  Page-specific overrides.

  Rules are scoped with body[data-page="..."] so they stay easy to find
  and don't leak into shared components. Home page values transcribed
  from Figma file CkFpoWvEBh0qngqYBpUhow, node 2465:147, mobile 430px.
*/

/* ============ Home ============ */

body[data-page="home"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

/* ---- Hero ---- */
body[data-page="home"] .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 400px;
  padding: 40px 0;
}

body[data-page="home"] .hero__image {
  position: relative;
  z-index: 2;
  width: 246px;
  height: 246px;
  border-radius: 12px;
  object-fit: cover;
  object-position: bottom;
}

body[data-page="home"] .hero__letters {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}

body[data-page="home"] .hero__ticker {
  display: flex;
  width: max-content;
  animation: hero-ticker-scroll 32s linear infinite;
}

body[data-page="home"] .hero__ticker--offset {
  /* Reverse direction (row 2 scrolls right instead of left) plus a
     negative delay so the two rows are never in the same position at
     the same time, on top of moving opposite ways. */
  animation-direction: reverse;
  animation-delay: -12s;
}

body[data-page="home"] .hero__ticker-item {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 220px;
  line-height: 0.7182em;
  letter-spacing: -0.05em;
  color: var(--color-cream);
  white-space: nowrap;
}

@keyframes hero-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---- About (Bargio Info card) ---- */
body[data-page="home"] .about {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0 24px;
}

body[data-page="home"] .about__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

body[data-page="home"] .about__card .cta-button {
  padding: 0 52px;
  white-space: nowrap;
}

body[data-page="home"] .about__intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-page="home"] .about__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: 44px;
  letter-spacing: -2.7px;
  margin: 0;
}

body[data-page="home"] .about__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: normal;
  margin: 0;
}

body[data-page="home"] .about__photos {
  display: flex;
  gap: 12px;
  width: 100%;
}

body[data-page="home"] .about__photo {
  flex: 1 0 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

/* Larger screens: card + photos side by side, photos stacked in a column
   at a fixed height, CTA hugs its text instead of stretching. */
@media (min-width: 768px) {
  body[data-page="home"] .about {
    flex-direction: row;
    align-items: stretch;
  }

  body[data-page="home"] .about__card {
    flex: 1;
    justify-content: flex-start;
  }

  body[data-page="home"] .about__card .cta-button {
    align-self: flex-start;
    width: auto;
    margin-top: auto;
  }

  body[data-page="home"] .about__photos {
    flex: 1;
    flex-direction: column;
    height: auto;
  }

  body[data-page="home"] .about__photo {
    flex: none;
    width: 100%;
    height: 168px;
    min-height: 0;
    aspect-ratio: auto;
  }
}

/* ---- Works ---- */
body[data-page="home"] .works__see-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 246px;
  height: 246px;
  padding: 10px;
  border-radius: 12px;
  background: var(--color-lime);
  color: var(--color-ink);
  text-decoration: none;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1.2px;
  text-align: center;
}

/* ============ Ypiresies (Services) ============ */

body[data-page="ypiresies"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

body[data-page="ypiresies"] .services-hero {
  width: 100%;
  max-width: calc(100% - 48px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 768px) {
  body[data-page="ypiresies"] .services-hero {
    height: 400px;
    aspect-ratio: auto;
  }
}

body[data-page="ypiresies"] .text-card {
  width: 382px;
  max-width: calc(100% - 48px);
}

body[data-page="ypiresies"] .barbers-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

/* ============ To Koureio Mas (Our Shop) ============ */

body[data-page="to-koureio-mas"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

body[data-page="to-koureio-mas"] .text-card {
  width: 100%;
  max-width: calc(100% - 48px);
}

/* ============ I Omada Mas (Bargio Barbers) ============ */

body[data-page="i-omada-mas"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

body[data-page="i-omada-mas"] .barbers-hero {
  width: 100%;
  max-width: calc(100% - 48px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 768px) {
  body[data-page="i-omada-mas"] .barbers-hero {
    height: 400px;
    aspect-ratio: auto;
  }
}

body[data-page="i-omada-mas"] .team-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: calc(100% - 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-page="i-omada-mas"] .team-list .barber-card {
  width: 100%;
}

/* ============ Gallery ============ */

body[data-page="gallery"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

/* ============ FAQ ============ */

body[data-page="faq"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

/* ============ Epikoinonia (Contact) ============ */

body[data-page="epikoinonia"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

body[data-page="epikoinonia"] .contact-map {
  width: 100%;
  max-width: calc(100% - 48px);
  border: 0;
  border-radius: 12px;
  filter: grayscale(1);
}

/* ============ Merch ============ */

body[data-page="merch"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

/* ============ Book ============ */

body[data-page="book"] {
  /* No floating "BOOK NOW" bar on this page — the global bottom padding
     that reserves space for it (see global.css) isn't needed here. */
  padding-bottom: 0;
}

body[data-page="book"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

body[data-page="book"] .book-widget {
  width: 100%;
  max-width: calc(100% - 48px);
  border: 0;
  border-radius: 12px;
}

/* ============ 404 ============ */

body[data-page="404"] {
  /* No floating "BOOK NOW" bar on this page (not included below) — the
     global bottom padding that reserves space for it isn't needed here. */
  padding-bottom: 0;
}

body[data-page="404"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  overflow-x: hidden;
}

body[data-page="404"] .not-found-hero {
  width: 100%;
  max-width: calc(100% - 48px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 768px) {
  body[data-page="404"] .not-found-hero {
    height: 400px;
    aspect-ratio: auto;
  }
}

body[data-page="404"] .not-found-cta {
  width: calc(100% - 48px);
  max-width: 912px;
}

/* ============ Cookies Policy ============ */

body[data-page="cookies-policy"] main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 24px;
  overflow-x: hidden;
}

body[data-page="cookies-policy"] .legal-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: calc(100% - 48px);
}

body[data-page="cookies-policy"] .legal-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -2px;
  margin: 0;
}

body[data-page="cookies-policy"] .legal-card p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

body[data-page="cookies-policy"] .legal-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
}

body[data-page="cookies-policy"] .legal-card__subsection {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-page="cookies-policy"] .legal-card__copyright {
  font-size: 14px;
  opacity: 0.8;
}
