/* BONNE CHANCE — bonnechance.art */

:root {
  --ink: #111111;
  --grey: #777777;
  --grey-light: #b5b5b5;
  --hairline: #e7e7e7;
  --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }

/* ---------- header ---------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5vw 0;
}

.wordmark {
  font-size: 20px;
  letter-spacing: 7px;
  font-weight: 500;
  white-space: nowrap;
}

.wordmark .tagline {
  display: block;
  font-size: 11px;
  letter-spacing: 5px;
  font-weight: 300;
  color: #777;
  margin-top: 4px;
}

nav.desktop { display: flex; gap: 44px; }

nav.desktop a {
  font-size: 12px;
  letter-spacing: 3px;
  color: #555;
  transition: color .2s;
}

nav.desktop a:hover, nav.desktop a.active { color: var(--ink); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px 2px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.98);
  z-index: 50;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a { font-size: 15px; letter-spacing: 5px; }

.mobile-menu .close {
  position: absolute;
  top: 26px;
  right: 6vw;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- home ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 5vw 0;
}

.hero .frame-img {
  width: min(460px, 88vw);
}

.hero .frame-img img {
  width: 100%;
  height: min(132vw, 540px);
  object-fit: cover;
}

.caption {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 3px;
  color: #555;
  text-align: center;
}

.link-line {
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 4px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity .2s;
}

.link-line:hover { opacity: .55; }

.works-grid {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 64px 5vw 30px;
  flex-wrap: wrap;
}

.work-card { width: 240px; }

.work-card .sq {
  width: 240px;
  height: 240px;
  overflow: hidden;
}

.work-card .sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.work-card:hover .sq img { transform: scale(1.04); }

.work-card .name {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--grey);
}

/* ---------- product page ---------- */

.product {
  display: flex;
  gap: 60px;
  padding: 46px 6vw 20px;
  justify-content: center;
}

.gallery { width: 480px; flex-shrink: 0; }

.gallery .main {
  width: 480px;
  height: 560px;
  overflow: hidden;
  position: relative;
}

.gallery .main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.thumbs button {
  width: 76px;
  height: 76px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .2s;
}

.thumbs button.active { outline: 1px solid var(--ink); outline-offset: 3px; }

.thumbs button.active img, .thumbs button:hover img { opacity: 1; }

/* mobile auto-carousel */
.carousel { display: none; }

.info { max-width: 430px; padding-top: 30px; }

.info h1 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
}

.rule {
  width: 44px;
  border: none;
  border-top: 1px solid var(--ink);
  margin: 20px 0;
}

.info p { font-size: 15px; color: #555; margin-bottom: 14px; }

.info p.secondary { font-size: 15px; color: #555; }

.inquire-block { margin-top: 30px; }

/* ---------- ritual note (product pages) ---------- */

.ritual-note {
  max-width: 720px;
  margin: 44px 0 0;
  padding: 0 6vw;
  text-align: left;
  direction: ltr;
}

.colors-title {
  font-size: 15px;
  color: #555;
  font-weight: 500;
  margin: 24px 0 12px;
}

.colors-row { display: flex; gap: 10px; margin-bottom: 8px; }

.colors-row img {
  width: 32%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ritual-note p {
  font-size: 15px;
  color: #555;
  margin-bottom: 14px;
  max-width: 640px;
  line-height: 1.7;
}

.ritual-note .rt-title { font-weight: 400; }

/* ---------- forms ---------- */

.form-wrap {
  max-width: 520px;
  margin: 30px auto 0;
  padding: 0 6vw 40px;
}

.form-wrap h2, .section-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 26px;
}

form .field { margin-bottom: 18px; }

form label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--grey);
  margin-bottom: 6px;
}

form input, form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  outline: none;
  transition: border-color .2s;
}

form input:focus, form textarea:focus { border-bottom-color: var(--ink); }

form textarea { resize: vertical; min-height: 90px; }

button.submit {
  margin-top: 8px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 4px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: opacity .2s;
}

button.submit:hover { opacity: .55; }

.hidden { display: none; }

/* readable by search engines and screen readers, invisible on screen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- about ---------- */

.about-hero {
  display: flex;
  gap: 60px;
  padding: 46px 6vw 20px;
  justify-content: center;
  align-items: flex-start;
}

.about-hero .img { width: 440px; flex-shrink: 0; }

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

.about-text { max-width: 470px; padding-top: 20px; }

.about-text h1 {
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 6px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.about-text p { font-size: 15px; color: #555; margin-bottom: 16px; }

.ritual {
  max-width: 560px;
  margin: 70px auto 0;
  padding: 0 6vw;
  text-align: center;
}

.ritual h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

.ritual p { font-size: 14.5px; color: #666; margin-bottom: 14px; }

.blessing { margin-top: 26px; font-size: 14.5px; color: var(--ink); line-height: 2; }

/* ---------- footer ---------- */

footer {
  margin-top: 90px;
  border-top: 1px solid var(--hairline);
  padding: 48px 6vw 40px;
  text-align: center;
}

.newsletter { max-width: 400px; margin: 0 auto; }

.newsletter .row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.newsletter .row .field { flex: 1; margin-bottom: 0; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 44px;
}

.footer-links a { font-size: 11px; letter-spacing: 3px; color: var(--grey); }

.footer-links a:hover { color: var(--ink); }

.signoff {
  margin-top: 34px;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--grey-light);
}

.copyright {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--grey-light);
}

/* ---------- thanks ---------- */

.thanks {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6vw;
}

.thanks h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 18px;
}

.thanks p { color: #666; letter-spacing: 1px; }

/* ---------- mobile ---------- */

@media (max-width: 899px) {

  header { padding: 20px 6vw 0; }

  .wordmark { font-size: 16px; letter-spacing: 4px; }

  .wordmark .tagline { font-size: 9px; letter-spacing: 3px; margin-top: 3px; }

  .form-wrap h2, .section-title { font-size: 16px; }

  nav.desktop { display: none; }

  .burger { display: flex; }

  .hero { padding-top: 34px; }

  .works-grid { gap: 16px; padding-top: 44px; }

  .work-card { width: calc(50% - 8px); }

  .work-card .sq { width: 100%; height: 44vw; }

  /* product: hide desktop gallery, show carousel */
  .product { flex-direction: column; padding: 26px 0 0; gap: 0; }

  .gallery { display: none; }

  .carousel {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .carousel .track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
  }

  .carousel .slide {
    flex: 0 0 100%;
    height: 108vw;
    max-height: 540px;
    overflow: hidden;
  }

  .carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .progress {
    width: 88%;
    height: 2px;
    background: var(--hairline);
    margin: 14px auto 0;
    position: relative;
  }

  .progress span {
    position: absolute;
    left: 0; top: 0;
    height: 2px;
    width: 0;
    background: var(--ink);
  }

  .info { max-width: none; padding: 22px 6vw 0; }

  .info h1 { font-size: 18px; }

  .ritual-note { padding: 0 6vw; }

  .about-hero { flex-direction: column; gap: 26px; padding: 26px 6vw 0; }

  .about-hero .img { width: 100%; }

  .about-text { padding-top: 0; }

  .about-text h1 { font-size: 26px; }

  .newsletter .row { flex-direction: column; align-items: stretch; }

  footer { margin-top: 64px; }
}

/* ---------- instagram feed ---------- */

.ig-feed {
  padding: 70px 5vw 10px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
}

.ig-handle {
  display: inline-block;
  margin-top: -14px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--grey);
  transition: color .2s;
}

.ig-handle:hover { color: var(--ink); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: 940px;
  margin: 30px auto 0;
}

.ig-cell {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f2ee;
}

.ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, opacity .3s ease;
}

.ig-cell:hover img { transform: scale(1.05); opacity: .82; }

/* מצב טעינה של המשיכה החיה */
.ig-grid[data-state="loading"] .ig-cell img { opacity: .55; }

@media (max-width: 860px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); max-width: 520px; }
  .ig-feed { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ig-cell img { transition: none; }
  .ig-cell:hover img { transform: none; }
}
