/**
 * Front Page Styles
 *
 * Mobile-first, FLOCSS p-*** project classes.
 * Breakpoint: 768px (matches parent theme).
 *
 * @package sushi-nigiriba
 */

/* ==========================================================================
   Full-width breakout (escape .container 1280px constraint)
   ========================================================================== */
.page-front-main {
  overflow: hidden;
}

.page-front-main > section {
  position: relative;
  width: 100%;
  left: auto;
  margin-left: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   Section headings (shared)
   ========================================================================== */
.p-our-story__heading .entry-title,
.p-our-omakase__title,
.p-join-our-team__title {
  font-family: 'Open Sans', serif;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 36px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .p-our-story__heading .entry-title,
  .p-our-omakase__title,
  .p-join-our-team__title {
    font-size: 42px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.p-hero {
  position: relative;
  background-color: #000;
}

.p-hero__splide {
  width: 100%;
  max-height: calc(100svh - 62px);
  overflow: hidden;
}

.p-hero__slide {
  height: calc(100svh - 62px);
  overflow: hidden;
}

.p-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-hero__text-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 72px 16px;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  font-size: 14px;
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .p-hero__splide {
    max-height: 100svh;
  }

  .p-hero__text-container {
    padding: 96px 24px;
    font-size: 24px;
    letter-spacing: 0.2em;
  }
}

/* ==========================================================================
   Our Story Section
   ========================================================================== */
.p-our-story {
  padding: 48px 16px;
  background-color: #fff;
  color: #1a1a1a;
  overflow: hidden;
}

.p-our-story__inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.p-our-story__heading {
  text-align: center;
  margin: 0;
}

.p-our-story__heading .entry-title {
  color: #1a1a1a;
  margin-bottom: 8px;
}

.p-our-story__sub-title {
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.p-our-story__description {
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.p-our-story__button .mtheme-button {
  background: transparent;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  padding: 10px 32px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.p-our-story__button .mtheme-button:hover {
  background-color: #1a1a1a;
  color: #fff;
}

@media (min-width: 768px) {
  .p-our-story {
    padding: 80px 24px;
  }

  .p-our-story__sub-title {
    font-size: 13px;
  }

  .p-our-story__description {
    font-size: 15px;
  }
}

/* ==========================================================================
   Our Omakase Section
   ========================================================================== */
.p-our-omakase {
  background-color: #000;
  color: #fff;
}

/* --- Images slider --- */
.p-our-omakase__images {
  padding: 0;
}

.p-our-omakase__slider {
  width: 100%;
}

.p-our-omakase__images-item {
  overflow: hidden;
  aspect-ratio: 120 / 90;
}

.p-our-omakase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Modal --- */
.p-our-omakase__modal[aria-hidden='true'] {
  display: none;
}

.p-our-omakase__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-our-omakase__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.p-our-omakase__modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.p-our-omakase__modal-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.p-our-omakase__modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* --- Main content with bg --- */
.p-our-omakase__main {
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  min-height: 600px;
  position: relative;
  display: grid;
  grid-template-rows: 40% 60%;
}

@media (min-width: 768px) {
  .p-our-omakase__main {
    min-height: 42.25vw;
  }
}

.p-our-omakase__main-inner {
  position: relative;
  z-index: 1;
  grid-row: 1;
  max-width: 600px;
  width: 100%;
  margin: 64px auto 0;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.p-our-omakase__title {
  margin-bottom: 16px;
  color: #fff;
}

.p-our-omakase__body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.p-our-omakase__button .mtheme-button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 32px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.p-our-omakase__button .mtheme-button:hover {
  background-color: #fff;
  color: #000;
}

@media (min-width: 768px) {
  .p-our-omakase__main {
    grid-template-rows: 1fr;
    grid-template-columns: 50% 50%;
  }

  .p-our-omakase__main-inner {
    grid-row: 1;
    grid-column: 1;
    margin: 0 auto;
    padding: 80px 24px;
  }

  .p-our-omakase__body {
    font-size: 15px;
  }
}

/* ==========================================================================
   Join Our Team Section
   ========================================================================== */
.p-join-our-team {
  background-color: #fff;
  color: #1a1a1a;
}

.p-join-our-team__inner {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Mobile: image behind, text overlay */
.p-join-our-team__text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-join-our-team__text-inner {
  max-width: 500px;
  text-align: center;
}

.p-join-our-team__title {
  margin-bottom: 16px;
  color: #1a1a1a;
}

.p-join-our-team__body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
}

.p-join-our-team__button .mtheme-button {
  background: transparent;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  padding: 10px 32px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.p-join-our-team__button .mtheme-button:hover {
  background: #1a1a1a;
  color: #fff;
}

.p-join-our-team__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-join-our-team__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .p-join-our-team__inner {
    flex-direction: row;
  }

  .p-join-our-team__text {
    width: 50%;
    padding: 64px 40px;
  }

  .p-join-our-team__image {
    position: relative;
    inset: auto;
    width: 50%;
    overflow: hidden;
  }

  .p-join-our-team__image .p-join-our-team__img {
    position: absolute;
    inset: 0;
  }
}

/* ==========================================================================
   Button reset (shared for all sections)
   ========================================================================== */
.page-front-main .mtheme-button {
  font-family: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.page-front-main a {
  text-decoration: none;
}
