/* The public site's additions since styles.css was frozen: the opening banner, homepage
   slides, and the visit-us block. styles.css is never edited (tests/homepage.test.mjs), so
   anything new on a public page is styled here, using its variables. */

/* --- Opening banner --------------------------------------------------------------------- */

.opening-bar {
  background: var(--ink-soft);
  color: var(--surface);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.opening-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.opening-message {
  color: var(--accent-soft);
}

.opening-message::before {
  content: "·";
  margin-right: 1rem;
  color: var(--accent);
}

.opening-week {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.opening-week li {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid #ffffff33;
}

.opening-week li.closed {
  opacity: 0.45;
  text-decoration: line-through;
}

.opening-week li.today {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-soft);
}

.opening-book {
  color: var(--surface);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .opening-week {
    display: none;
  }

  .opening-book {
    margin-left: auto;
  }
}

/* --- Homepage slides ---------------------------------------------------------------------- */

.hero-copy,
.hero-card img {
  transition: opacity 0.45s ease;
}

.hero-fading .hero-copy,
.hero-fading .hero-card img {
  opacity: 0;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.hero-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hero-dots button[aria-current="true"] {
  background: var(--accent-deep);
}

.hero-dots button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-card img {
    transition: none;
  }
}

/* --- Team ------------------------------------------------------------------------------- */

.team-head {
  flex-wrap: wrap;
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-filter {
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid #b9a898;
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.team-filter[aria-pressed="true"] {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: var(--surface);
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 0 #00000010, 0 18px 40px -28px #3a353266;
}

.team-card[hidden] {
  display: none;
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.team-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem 1.5rem 1.6rem;
}

.team-body h3,
.profile-copy h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 400;
}

.team-title {
  margin: -0.4rem 0 0;
  font-size: 0.9rem;
  color: #5f5853;
}

.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-chips li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #efe6dd;
  font-size: 0.8rem;
  color: #4f4033;
}

.team-bio {
  margin: 0;
  line-height: 1.65;
  color: #5f5853;
  /* A card holds a few lines; the full story is in the profile. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.team-more {
  min-height: 44px;
  padding: 0 0.4rem;
  border: 0;
  background: none;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.team-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #d8cabd;
  color: var(--text-dark);
}

/* --- Profile panel ------------------------------------------------------------------------ */

.profile-panel {
  width: min(960px, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text-dark);
  box-shadow: 0 30px 80px -40px #3a353299;
}

.profile-panel::backdrop {
  background: #2f2a2799;
}

.profile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d8cabd;
  background: var(--surface);
  color: var(--text-dark);
  cursor: pointer;
}

.profile-body {
  display: flex;
  flex-wrap: wrap;
}

.profile-photo {
  flex: 1 1 280px;
  min-height: 320px;
  background: var(--accent-soft);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-copy {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 2.75rem 2.75rem;
}

.profile-copy p {
  margin: 0;
  line-height: 1.75;
}

/* --- About / founder ---------------------------------------------------------------------- */

.about-founder {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
}

.about-photo-wrap {
  position: relative;
  flex: 1 1 340px;
  min-height: 460px;
}

.about-photo {
  position: absolute;
  inset: 0 3rem 3rem 0;
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  object-fit: cover;
  border-radius: 28px;
  z-index: 1;
}

.about-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 42%;
  border-radius: 24px;
  background: var(--accent-deep);
}

.about-copy {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.12;
}

.about-copy h2 .italic {
  font-style: italic;
  color: var(--accent-deep);
}

.about-quote {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.45;
}

.about-story p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b4541;
}

.about-signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.about-signoff div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-signoff span {
  font-size: 0.9rem;
  color: #5f5853;
}

.about-signoff .btn {
  margin-left: auto;
}

/* --- Portfolio ---------------------------------------------------------------------------- */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 0 #00000010, 0 18px 40px -28px #3a353266;
}

.portfolio-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--accent-soft);
}

.portfolio-pair figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
}

.portfolio-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-pair figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-words {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.2rem 1.2rem;
}

.portfolio-words p {
  margin: 0;
  line-height: 1.55;
}

.portfolio-words span {
  font-size: 0.85rem;
  color: #5f5853;
}

/* --- Visit us --------------------------------------------------------------------------- */

.visit-us {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
}

.visit-us p {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.visit-us a {
  color: var(--accent-deep);
  font-weight: 600;
}
