/* Angela Soko - PC / laptop / tablet layout. Switches on at 768px and wider.
   The phone layout lives in styles.css and is not touched. */

/* Photo arrows are for mouse users, so they stay hidden on phones. */
.car-btn, .lb-btn { display: none; }

@media (min-width: 768px) {
  :root { --nav-h: 0px; --max: 1280px; --gutter: 32px; }
  body { padding-bottom: 0; }
  #app { padding-bottom: 64px; }

  /* ----- Top bar and top menu ----- */
  .topbar {
    display: flex; align-items: center; height: 72px;
    padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  }
  .brand { min-height: 0; }
  .brand-logo { height: 44px; max-width: 120px; }
  .brand-name { font-size: 1.4rem; }

  .main-nav {
    top: 0; bottom: auto; left: 0; right: 0; height: 72px;
    display: flex; justify-content: flex-end; align-items: center; gap: 4px;
    background: transparent; border-top: 0; pointer-events: none;
    padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  }
  .nav-link {
    pointer-events: auto; flex-direction: row; min-height: 44px; padding: 0 14px;
    border-radius: 22px; font-size: .95rem; transition: background .15s ease, color .15s ease;
  }
  .nav-link svg { display: none; }
  .nav-link:hover { background: var(--paper-dim); color: var(--ink); }
  .nav-link.active { background: var(--copper-tint); color: var(--copper-dark); }

  /* ----- Buttons ----- */
  .btn { width: auto; min-height: 50px; padding: 12px 28px; transition: background .15s ease, transform .1s ease; }
  .btn:active { transform: scale(.98); }
  .btn-primary:hover { background: var(--copper-dark); }
  .btn-whatsapp:hover { background: #257e46; }
  .btn-ghost:hover { background: var(--paper-dim); }
  .actions .btn { width: 100%; }
  .empty .btn { display: inline-flex; }
  .link-more:hover, .back:hover { text-decoration: underline; }

  /* ----- Home hero ----- */
  .hero { min-height: min(78vh, 760px); }
  .hero-text { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 64px; }
  .hero-text h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
  .hero-text p { font-size: 1.1rem; max-width: 46ch; }
  .hero-text .eyebrow { font-size: .8rem; }

  /* ----- Page widths ----- */
  .page-head, .section {
    max-width: var(--max); margin: 0 auto;
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .page-head { padding-top: 48px; padding-bottom: 8px; }
  .page-head h1 { font-size: 2.6rem; }
  .section { padding-top: 48px; padding-bottom: 8px; }
  .page-head + .section { padding-top: 20px; }
  .section-head h2 { font-size: 1.9rem; }

  /* ----- Gallery grid and hover effects ----- */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .piece-card { transition: transform .25s ease, box-shadow .25s ease; }
  .piece-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(30,37,48,.08), 0 16px 36px rgba(30,37,48,.16);
  }
  .piece-media { overflow: hidden; }
  .piece-media img { transition: transform .5s ease; }
  .piece-card:hover .piece-media img { transform: scale(1.04); }
  .piece-info { padding: 18px 20px 20px; }
  .piece-info h3 { font-size: 1.25rem; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .chip { transition: background .15s ease; }
  .chip:hover:not(.active) { background: var(--paper-dim); }

  /* ----- Custom work box: text on the left, button on the right ----- */
  .cta {
    width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
    margin: 56px auto 0; padding: 40px 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
  }
  .cta h2 { font-size: 1.7rem; }
  .cta p { margin-bottom: 0; max-width: 52ch; }
  .cta .btn { flex-shrink: 0; }

  /* ----- Piece page: photo on the left, details on the right ----- */
  #app:has(.carousel) {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 64px); align-items: start;
    max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 64px;
  }
  #app:has(.carousel) .back { grid-column: 1 / -1; justify-self: start; padding: 0; margin-bottom: 12px; }
  .carousel { position: sticky; top: 96px; border-radius: var(--radius); overflow: hidden; }
  .slide { height: clamp(380px, calc(100vh - 220px), 680px); max-height: none; }
  .detail { padding: 0 0 8px; }
  .detail h1 { font-size: 2.5rem; margin-top: 14px; }
  .detail-price { font-size: 1.6rem; }
  .story { font-size: 1.02rem; max-width: 62ch; }

  /* ----- Photo arrows (mouse users) ----- */
  .car-btn, .lb-btn {
    display: flex; align-items: center; justify-content: center; position: absolute; top: 50%;
    transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink);
    font-size: 1.8rem; line-height: 1; padding: 0 0 4px; cursor: pointer; z-index: 2;
    transition: background .15s ease, transform .15s ease;
  }
  .car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
  .car-prev { left: 14px; }
  .car-next { right: 14px; }
  .lb-btn { width: 56px; height: 56px; border-color: transparent; background: rgba(255,255,255,.16); color: #fff; z-index: 3; }
  .lb-btn:hover { background: rgba(255,255,255,.3); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }

  .toast { bottom: 28px; }
}

/* Laptops and bigger: 3 columns */
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .piece-card, .piece-media img, .btn, .nav-link, .car-btn { transition: none; }
  .piece-card:hover, .piece-card:hover .piece-media img { transform: none; }
}