/*
Theme Name: Hongxiang Apparel
Theme URI: https://hongxiangapparel.com/
Author: Hongxiang Apparel
Description: Custom WordPress theme for Hongxiang Apparel B2B clothing manufacturing website.
Version: 31.0.0
Text Domain: hongxiang-apparel
*/

:root {
  --ink: #17211f;
  --muted: #5d6965;
  --line: #d9e0dd;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --green: #1d5c4a;
  --green-2: #2f8069;
  --gold: #b88a3b;
  --red: #9b3f34;
  --blue: #2f5f88;
  --shadow: 0 20px 58px rgba(23, 33, 31, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.88rem;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.93rem;
  font-weight: 650;
}

.nav a:hover {
  color: var(--green);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.button:hover,
.nav-cta:hover {
  background: var(--green-2);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
}

.button.light {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  color: #fff;
  background: #17211f;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 26, 24, 0.93), rgba(15, 26, 24, 0.68) 45%, rgba(15, 26, 24, 0.2)),
    url("assets/home-hero-factory.jpg") center / cover no-repeat;
}

.hero .container {
  position: relative;
  display: grid;
  min-height: 690px;
  align-items: end;
  padding: 86px 0 72px;
}

.hero-content {
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #d8a65a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.green-section .eyebrow {
  color: #f4d69c;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 820px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.13rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 860px;
  margin-top: 22px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 750;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.proof div {
  padding: 26px 28px;
  background: #fff;
}

.proof strong {
  display: block;
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
}

.proof span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 82px 0;
}

.section.white {
  background: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head > div:only-child {
  max-width: 780px;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.list li::before {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.card p {
  color: var(--muted);
}

.card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 850;
}

.solution-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

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

.media-card div {
  padding: 22px;
}

.factory-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 46px;
  align-items: center;
}

.factory-feature-copy {
  max-width: 520px;
}

.factory-feature-media {
  display: grid;
  gap: 14px;
}

.factory-feature-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.factory-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.factory-feature-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.factory-flow-gallery {
  display: grid;
  gap: 24px;
}

.factory-flow-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: center;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 221, 0.86);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 33, 31, 0.08);
}

.factory-flow-item:nth-child(even) {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
}

.factory-flow-item:nth-child(even) .factory-flow-image {
  order: 2;
}

.factory-flow-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(29, 92, 74, 0.1), rgba(184, 138, 59, 0.09));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.factory-flow-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow: inset 0 0 34px 14px rgba(255, 255, 255, 0.46);
}

.factory-flow-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.015);
}

.factory-flow-item > div {
  display: grid;
  align-content: center;
  padding: 18px 22px;
}

.factory-flow-item span {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 850;
}

.factory-flow-item h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.factory-flow-item p {
  color: var(--muted);
}

.factory-tour-note {
  display: grid;
  gap: 28px;
}

.entry-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}

.entry-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.ai-entry-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f7f4;
  box-shadow: var(--shadow);
}

.ai-entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ai-entry-header span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
}

.ai-entry-chat {
  display: grid;
  gap: 12px;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.94rem;
  line-height: 1.45;
}

.bubble.user {
  justify-self: end;
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.output-grid strong {
  grid-column: 1 / -1;
}

.output-grid span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.step {
  min-height: 230px;
  padding: 24px;
  background: #fff;
}

.step strong {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.24;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.green-section {
  background: var(--green);
  color: #fff;
}

.green-section p {
  color: rgba(255, 255, 255, 0.82);
}

.compact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.compact-cta > div:first-child {
  max-width: 760px;
}

.page-hero {
  padding: 86px 0 54px;
  color: #fff;
  background: linear-gradient(120deg, #17211f, #1d5c4a);
}

.page-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.page-content {
  padding: 58px 0 86px;
}

.page-content .entry-content {
  max-width: 860px;
  margin: 0 auto;
}

.entry-content h2,
.entry-content h3,
.entry-content p,
.entry-content ul {
  margin: 0;
}

.entry-content h2 {
  margin-top: 32px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.entry-content h2:first-child {
  margin-top: 0;
}

.entry-content h3 {
  margin-top: 26px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.entry-content p {
  margin-top: 14px;
  color: var(--muted);
}

.entry-content ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-left: 22px;
  color: var(--muted);
}

.entry-content .button {
  margin-top: 12px;
}

.quote-form,
.settings-form,
.review-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
}

.field label span {
  color: var(--red);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.quote-page-section {
  padding-top: 86px;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.05fr);
  gap: 70px;
  align-items: start;
}

.quote-intro {
  padding-top: 4px;
}

.quote-intro .section-title {
  max-width: 560px;
}

.quote-intro .section-copy {
  max-width: 620px;
  margin-top: 6px;
}

.quote-page-section .quote-form {
  padding: 28px;
  border-radius: 8px;
  box-shadow: none;
}

.quote-page-section .field input,
.quote-page-section .field textarea,
.quote-page-section .field select {
  min-height: 46px;
  border-radius: 7px;
}

.quote-page-section .field textarea {
  min-height: 132px;
}

.fluent-quote-form .fluentform,
.fluent-quote-form .ff-el-group {
  margin: 0;
}

.fluent-quote-form .ff-el-group + .ff-el-group {
  margin-top: 16px;
}

.fluent-quote-form label,
.fluent-quote-form .ff-el-input--label label {
  color: var(--ink);
  font-weight: 800;
}

.fluent-quote-form input,
.fluent-quote-form textarea,
.fluent-quote-form select,
.fluent-quote-form .ff-el-form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.fluent-quote-form textarea,
.fluent-quote-form textarea.ff-el-form-control {
  min-height: 132px;
  resize: vertical;
}

.fluent-quote-form button,
.fluent-quote-form .ff-btn-submit,
.fluent-quote-form input[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.fluent-quote-form button:hover,
.fluent-quote-form .ff-btn-submit:hover,
.fluent-quote-form input[type="submit"]:hover {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
}

.quote-submit {
  justify-self: start;
}

.factory-tour-head {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.factory-tour-head .section-title {
  max-width: 720px;
}

.factory-tour-head .section-copy {
  max-width: 720px;
  margin-top: 12px;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-zone {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed #b9c5c0;
  border-radius: 8px;
  background: #fbfcfb;
}

.preview-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-images img {
  width: 94px;
  height: 94px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.result-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 780;
}

.faq-list p {
  margin-top: 12px;
  color: var(--muted);
}

.answer-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e7ece9;
  border-radius: 8px;
  background: #fbfcfb;
}

.answer-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ec;
  color: var(--green);
  font-weight: 850;
}

.answer-body strong {
  display: block;
  margin-bottom: 5px;
}

.answer-body p {
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 12px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin-top: 8px;
}

.ai-widget {
  position: fixed;
  right: 18px;
  bottom: 104px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-nudge {
  display: grid;
  gap: 2px;
  max-width: 210px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(23, 33, 31, 0.14);
}

.ai-nudge strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.ai-nudge span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

.ai-widget.nudge-hidden .ai-nudge {
  display: none;
}

body[data-route="contact"] .ai-nudge {
  display: none;
}

.ai-float {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(23, 33, 31, 0.2);
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: none;
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(23, 33, 31, 0.22);
}

.ai-widget.open .ai-panel {
  display: block;
}

.ai-widget.open .ai-nudge {
  display: none;
}

.ai-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--green);
  color: #fff;
}

.ai-panel header strong,
.ai-panel header span {
  display: block;
}

.ai-panel header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.ai-messages {
  display: grid;
  max-height: min(430px, calc(100vh - 310px));
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: #f6f7f4;
}

.ai-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ai-message.assistant {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
}

.ai-message.user {
  justify-self: end;
  background: #e7f0ec;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 4px;
  background: #fff;
}

.ai-chips button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.ai-file-input {
  display: none;
}

.ai-drop-hint {
  display: none;
  margin: 10px 16px 0;
  padding: 14px;
  border: 1px dashed var(--green);
  border-radius: 8px;
  background: #e7f0ec;
  color: var(--green);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 760;
}

.ai-widget.is-dragging .ai-drop-hint {
  display: block;
}

.ai-image-previews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 0;
  background: #fff;
}

.ai-image-previews:empty {
  display: none;
}

.ai-preview-item {
  position: relative;
  display: inline-flex;
}

.ai-preview-item img,
.ai-message.image-message img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-preview-item button {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 20px;
  height: 20px;
  min-height: 20px;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #272c2a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

.ai-preview-item:hover button,
.ai-preview-item:focus-within button {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none) {
  .ai-preview-item button {
    opacity: 1;
    transform: scale(1);
  }
}

.ai-message.image-message {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 78%;
  padding: 8px;
}

.ai-form {
  display: grid;
  grid-template-columns: 38px 1fr 46px;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 14px;
  background: #fff;
}

.ai-form input {
  min-height: 44px;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  outline: 0;
  background: transparent;
}

.ai-form {
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 12px 16px 14px;
  padding: 6px;
}

.ai-attach-button,
.ai-send-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ai-attach-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 1.55rem;
  font-weight: 420;
  line-height: 1;
}

.ai-send-button {
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  transform: rotate(-18deg);
}

.ai-attach-button:hover {
  background: #f6f7f4;
}

.ai-send-button:hover {
  background: var(--green-2);
}

.ai-panel footer {
  padding: 0 16px 14px;
  color: var(--muted);
  background: #fff;
  font-size: 0.78rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px 0 13px;
  color: #fff;
  background: #1faa59;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(19, 70, 46, 0.24);
}

.whatsapp-float:hover {
  color: #fff;
  background: #168c47;
}

.whatsapp-float span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 850;
}

.whatsapp-float strong {
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  right: 24px;
  top: 92px;
  z-index: 120;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .header-inner,
  .section-head,
  .split,
  .quote-layout,
  .factory-feature,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    min-width: 0;
  }

  .ai-nudge {
    display: none;
  }

  .proof,
  .cols-2,
  .cols-3,
  .cols-4,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .compact-cta {
    display: grid;
    align-items: start;
  }

  .factory-feature-copy {
    max-width: none;
  }

  .factory-flow-item,
  .factory-flow-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .factory-flow-item:nth-child(even) .factory-flow-image {
    order: 0;
  }

  .quote-layout {
    gap: 34px;
  }

  .quote-page-section {
    padding-top: 58px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 36px, var(--max));
  }

  .hero,
  .hero .container {
    min-height: auto;
  }

  .hero .container {
    padding: 52px 0 48px;
  }

  .hero-content,
  .hero p {
    max-width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 12.5ch;
    font-size: 1.78rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero p {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .hero-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .hero-tags span {
    min-width: 0;
    justify-content: center;
    max-width: 100%;
    min-height: 30px;
    padding: 4px 8px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .actions {
    display: grid;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .quote-page-section .quote-form {
    padding: 22px;
  }

  .proof,
  .cols-2,
  .cols-3,
  .cols-4,
  .factory-feature-strip,
  .entry-image-grid,
  .timeline,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .ai-widget {
    right: 14px;
    bottom: 88px;
  }

  .ai-nudge {
    display: none;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 20px;
  }
}
