/* FRAMEWELL Studio - components */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 0;
  padding: 0.85rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--fw-orange), var(--fw-orange-mid));
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 166, 106, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(227, 166, 106, 0.38);
}

.btn-dark {
  background: var(--fw-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--fw-orange);
}

.btn-ghost {
  background: #fff;
  color: var(--fw-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover {
  outline-color: rgba(227, 166, 106, 0.5);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #57534e;
  background: rgba(245, 245, 244, 0.85);
  outline: 1px solid rgba(231, 229, 228, 0.6);
  transition: background 0.2s ease, outline-color 0.2s ease;
}

.pill:hover {
  background: #fff;
  outline-color: var(--fw-orange);
}

.promise-grid {
  display: grid;
  gap: 1.25rem;
}

.promise-card {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promise-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fw-shadow-glass);
}

.promise-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(227, 166, 106, 0.12);
  color: var(--fw-orange);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.promise-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.promise-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.promise-card p {
  color: var(--fw-muted);
  margin: 0;
  font-size: 0.95rem;
}

.work-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.work-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background: var(--fw-surface);
  cursor: pointer;
}

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

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

.work-card-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.teaser-strip {
  display: grid;
  gap: 1rem;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--fw-radius-lg);
  background: #fff;
  border: 1px solid var(--fw-border);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.teaser-card:hover {
  border-color: rgba(227, 166, 106, 0.55);
  transform: translateY(-2px);
}

.teaser-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.teaser-card p {
  color: var(--fw-muted);
  margin: 0;
  flex: 1;
}

.teaser-card .link-arrow {
  color: var(--fw-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

.price-card {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-card.featured {
  background: #1c1917;
  color: #fff;
  border-color: transparent;
  transform: scale(1.02);
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.price-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fw-orange);
  background: rgba(227, 166, 106, 0.15);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.price-card .amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-card .amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fw-gray);
}

.price-card.featured .amount span {
  color: rgba(255, 255, 255, 0.55);
}

.price-card ul {
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--fw-muted);
}

.price-card li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--fw-orange);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--fw-border);
  background: #fff;
  color: var(--fw-dark);
  width: 100%;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(227, 166, 106, 0.45);
  border-color: var(--fw-orange);
}

.form-row textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--fw-gray);
}

.form-error {
  color: #b42318;
  font-size: 0.85rem;
  margin: 0;
}

.form-success {
  background: rgba(227, 166, 106, 0.12);
  border: 1px solid rgba(227, 166, 106, 0.35);
  border-radius: var(--fw-radius);
  padding: 1rem 1.15rem;
  color: var(--fw-dark);
}

.wizard {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 1.75rem;
}

.wizard-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.wizard-step-dot {
  flex: 1;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--fw-surface);
}

.wizard-step-dot.is-active,
.wizard-step-dot.is-done {
  background: var(--fw-orange);
}

.wizard-panel[hidden] {
  display: none;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: space-between;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--fw-orange);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  color: var(--fw-muted);
  margin: 0;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.team-card-body h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--fw-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.team-card-body p {
  color: var(--fw-muted);
  font-size: 0.92rem;
  margin: 0;
}

.process-steps {
  display: grid;
  gap: 1.25rem;
}

.process-step {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr;
  background: #fff;
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-lg);
  padding: 1.35rem;
}

.process-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(227, 166, 106, 0.15);
  color: var(--fw-orange);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.case-block {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--fw-border);
}

.case-block:last-child {
  border-bottom: 0;
}

.case-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-orange);
}

.case-media {
  border-radius: var(--fw-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--fw-surface);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chat theater */
.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  border: 0;
  background: var(--fw-dark);
  color: #fff;
  box-shadow: var(--fw-shadow-chat);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-fab:hover {
  background: var(--fw-orange);
  transform: translateY(-2px);
}

.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 55;
  width: min(22rem, calc(100vw - 2rem));
  height: 28rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--fw-shadow-chat);
  border: 1px solid var(--fw-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: var(--fw-dark);
  color: #fff;
}

.chat-header strong {
  display: block;
  font-size: 0.95rem;
}

.chat-header span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--fw-surface-3);
}

.chat-bubble {
  max-width: 85%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--fw-border);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--fw-orange);
  color: #fff;
}

.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0;
  background: var(--fw-surface-3);
}

.chat-prompts button {
  border: 1px solid var(--fw-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
}

.chat-prompts button:hover {
  border-color: var(--fw-orange);
  color: var(--fw-orange);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--fw-border);
  background: #fff;
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--fw-border);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.chat-form button {
  border: 0;
  border-radius: 999px;
  background: var(--fw-dark);
  color: #fff;
  padding: 0.55rem 0.95rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.chat-form button:hover {
  background: var(--fw-orange);
}

.promo-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  background: var(--fw-surface);
  border-radius: var(--fw-radius);
  padding: 1.15rem;
  margin-top: 1.5rem;
}

.promo-box .form-row {
  flex: 1;
  min-width: 12rem;
}

@media (min-width: 640px) {
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .teaser-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.photo-strip-item {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--fw-surface);
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-strip-item:hover img {
  transform: scale(1.04);
}

.case-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.case-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
}

.promise-card-photo {
  overflow: hidden;
  padding: 0;
}

.promise-card-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.promise-card-photo h3,
.promise-card-photo p {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.promise-card-photo h3 {
  margin-top: 1.1rem;
}

.promise-card-photo p {
  padding-bottom: 1.35rem;
}

.process-step-photo {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}

.process-step-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.process-step-photo .process-num {
  margin: 1rem 1.15rem 0;
}

.process-step-photo h3,
.process-step-photo p {
  padding: 0 1.15rem;
}

.process-step-photo p {
  padding-bottom: 1.15rem;
}

.about-visual-second {
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .work-grid-dense {
    grid-template-columns: repeat(4, 1fr);
  }

  .photo-strip {
    grid-template-columns: repeat(6, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .case-block {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .case-block.reverse {
    direction: rtl;
  }

  .case-block.reverse > * {
    direction: ltr;
  }
}

@media (min-width: 1024px) {
  .teaser-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}
