/* ==========================================================================
   SommBot Search — sommbot.ai/search
   The free consumer sommelier. Extends style.css (chat, chips, buttons).
   ========================================================================== */

/* ---------- Hero ---------- */
.sw-hero {
  padding: 150px 0 28px;  /* nav is position:fixed — clear it like .hero does */
  text-align: center;
  background:
    radial-gradient(1200px 500px at 50% -220px, rgba(122, 30, 51, 0.09), transparent 70%),
    var(--white);
}
.sw-hero h1 { max-width: 820px; margin: 0 auto; font-size: clamp(36px, 5vw, 60px); }
.sw-hero .lead { max-width: 640px; margin: 18px auto 0; }
.sw-hero .sw-stores-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--gray);
}
.sw-hero .sw-stores-note b { color: var(--ink); font-weight: 600; }

/* ---------- The frame ---------- */
.sw-frame-wrap { padding: 26px 0 8px; }
.sw-frame {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sw-frame .chat { width: 100%; max-width: none; border-radius: 0; box-shadow: none; border: 0; }
.sw-frame .chat-body {
  flex: 0 0 auto;   /* style.css sets flex:1, which lets content stretch it */
  height: min(58vh, 560px);
  min-height: 380px;
}
.sw-frame .chat-input input { font-size: 16px; } /* prevents iOS zoom */
.sw-disclaim {
  max-width: 760px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--gray);
  padding: 0 16px;
}

/* ---------- Wine result cards ---------- */
.sw-card {
  align-items: flex-start;
  max-width: 100%;
}
.sw-card .sw-thumb {
  flex: 0 0 34px;
  width: 34px; height: 86px;
  display: flex; align-items: center; justify-content: center;
}
.sw-card .sw-thumb svg { width: 30px; height: 86px; }
.sw-card .sw-info { flex: 1; min-width: 0; line-height: 1.45; }
.sw-card .sw-info b { display: block; font-size: 14px; font-weight: 650; white-space: normal; }
.sw-card .sw-meta { display: block; font-size: 12px; color: var(--wine); font-weight: 600; margin-top: 1px; }
.sw-card .sw-notes { display: block; font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.sw-card .sw-stores {
  display: block;
  font-size: 11.5px;
  color: var(--gray);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.sw-card .sw-price { font-size: 14px; font-weight: 700; color: var(--wine); white-space: nowrap; }

/* ---------- Content sections ---------- */
.sw-section { padding: 84px 0; }
.sw-section-blush { background: var(--blush); }
.sw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.sw-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.sw-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--wine); color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.sw-step h3 { font-size: 18px; margin-bottom: 8px; }
.sw-step p { font-size: 15px; color: var(--gray); }

/* pairing guides */
.sw-pairings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.sw-pairing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.sw-pairing h3 { font-size: 18.5px; margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; }
.sw-pairing p { font-size: 15px; color: var(--gray); }
.sw-pairing .sw-bottles { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.sw-pairing .sw-bottles li { padding: 3px 0 3px 22px; position: relative; }
.sw-pairing .sw-bottles li::before {
  content: '🍷'; position: absolute; left: 0; top: 3px; font-size: 12px;
}
.sw-pairing .sw-ask {
  display: inline-block; margin-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--wine); cursor: pointer;
}
.sw-pairing .sw-ask:hover { text-decoration: underline; }

/* stores grid */
.sw-storegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.sw-store {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.sw-store h3 { font-size: 17px; margin-bottom: 8px; }
.sw-store p { font-size: 14.5px; color: var(--gray); }

/* FAQ (reuses site look) */
.sw-faq { max-width: 780px; margin: 48px auto 0; }
.sw-faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.sw-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 17px;
}
.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary::after {
  content: '+'; font-size: 22px; color: var(--wine); font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.sw-faq details[open] summary::after { transform: rotate(45deg); }
.sw-faq details p { padding: 0 0 18px; color: var(--gray); font-size: 15.5px; max-width: 92%; }

/* B2B cross-link band */
.sw-b2b {
  background: linear-gradient(135deg, var(--wine-deep), var(--wine));
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--shadow-md);
}
.sw-b2b h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.sw-b2b p { margin-top: 8px; font-size: 15.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sw-steps, .sw-storegrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .sw-hero { padding: 118px 0 18px; }
  .sw-frame .chat-body { height: min(62vh, 520px); min-height: 340px; }
  .sw-steps, .sw-pairings, .sw-storegrid { grid-template-columns: 1fr; }
  .sw-section { padding: 64px 0; }
  .sw-b2b { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}
