/* ============================================================
   FIXU homepage — R2 + R13A.1–R13A.3 (full-width hero polish)
   Scoped to body.fixu-home. Uses tokens from fixu-ui.css.
   INSPIRATION_SECTION=NO
   ============================================================ */

body.fixu-home {
  background: var(--fixu-bg);
}

.fixu-home-main {
  overflow-x: clip;
  background: var(--fixu-bg);
}

/* ---------- Shared ---------- */
.fixu-section-head {
  text-align: center;
  margin-bottom: var(--fixu-sp-6);
}

/* Legacy ThemeForest `header { background; sticky }` bleeds onto section heads */
.fixu-steps .fixu-section-head {
  background: transparent;
  position: static;
  z-index: auto;
  left: auto;
  right: auto;
}

.fixu-section-title {
  margin: 0;
  font-family: var(--fixu-sans);
  font-size: var(--fixu-fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fixu-navy);
}

.fixu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--fixu-btn-h);
  padding: 0 22px;
  border-radius: var(--fixu-r-md);
  font-family: var(--fixu-sans);
  font-size: var(--fixu-fs-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.fixu-btn-primary {
  background: var(--fixu-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.18);
}

.fixu-btn-primary:hover {
  background: var(--fixu-red-hover);
  color: #fff;
}

.fixu-btn-secondary {
  background: #fff;
  color: var(--fixu-navy);
  border-color: var(--fixu-border-strong);
}

.fixu-btn-secondary:hover {
  border-color: var(--fixu-navy);
  color: var(--fixu-navy);
}

.fixu-btn-on-dark {
  background: #fff;
  color: var(--fixu-navy);
  min-height: 52px;
  padding: 0 26px;
}

.fixu-btn-on-dark:hover {
  background: var(--fixu-bg-soft);
  color: var(--fixu-navy);
}

/* Shared PNG icon wrappers (optical size normalization) */
.fixu-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.fixu-icon-wrap img,
.fixu-service-icon img,
.fixu-step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fixu-icon-wrap--sm {
  width: 28px;
  height: 28px;
}

.fixu-icon-wrap--hero {
  width: 36px;
  height: 36px;
}

/* ---------- Hero ---------- */
.fixu-hero {
  padding: 0;
  background: #f7f2ec;
}

.fixu-hero-stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 54vw, 700px);
  overflow: hidden;
}

.fixu-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fixu-hero-bg picture,
.fixu-hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
}

.fixu-hero-bg img {
  object-fit: cover;
  object-position: 70% 12%;
}

.fixu-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(36px, 4.5vw, 64px);
}

.fixu-hero-copy {
  max-width: min(460px, 44%);
  width: 100%;
}

.fixu-hero-title {
  margin: 0 0 var(--fixu-sp-4);
  font-family: var(--fixu-sans);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fixu-navy);
}

.fixu-hero-title-line,
.fixu-hero-title-accent {
  display: block;
}

.fixu-hero-title-accent {
  color: var(--fixu-red);
}

.fixu-hero-lead {
  margin: 0 0 var(--fixu-sp-5);
  max-width: 28em;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--fixu-text-soft);
}

.fixu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--fixu-sp-5);
}

.fixu-hero-usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  max-width: 420px;
}

.fixu-hero-usps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fixu-text-soft);
  font-size: var(--fixu-fs-sm);
  font-weight: 550;
  line-height: 1.25;
  min-width: 0;
}

.fixu-hero-usps .fixu-icon-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
}

/* Legacy visual card (unused after R13A.3 full-width hero) */
.fixu-hero-visual {
  display: none;
}

/* ---------- Services ---------- */
.fixu-services {
  padding: clamp(40px, 5.5vw, 72px) 0;
  background: var(--fixu-bg);
}

.fixu-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

.fixu-service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fixu-border);
  border-radius: var(--fixu-r-xl);
  box-shadow:
    0 10px 28px rgba(11, 31, 58, 0.06),
    0 2px 8px rgba(11, 31, 58, 0.04);
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.fixu-service-card-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 18px;
  flex: 1 1 auto;
}

.fixu-service-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fixu-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

.fixu-service-title {
  margin: 0;
  font-family: var(--fixu-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fixu-navy);
  line-height: 1.2;
  min-width: 0;
}

.fixu-service-text {
  margin: 0;
  font-size: var(--fixu-fs-md);
  line-height: 1.55;
  color: var(--fixu-text-soft);
  flex: 1 1 auto;
}

.fixu-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
  color: var(--fixu-red);
  font-weight: 650;
  font-size: var(--fixu-fs-md);
  text-decoration: none;
}

.fixu-service-cta:hover {
  color: var(--fixu-red-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fixu-service-media {
  position: relative;
  margin: 0 12px 14px;
  border-radius: var(--fixu-r-lg);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.fixu-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 3D product shots on white card — larger, no grey box */
.fixu-service-media--product {
  background: #fff;
  margin: 0 0 4px;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixu-service-media--product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  box-sizing: border-box;
  transform: scale(1.0);
  transform-origin: center center;
}

.fixu-service-media--restore {
  background: #fff;
  margin: 0 0 4px;
  border-radius: 0;
  aspect-ratio: 5 / 4;
}

.fixu-service-media--restore img {
  object-fit: cover;
  object-position: center;
}

/* Legacy restore split helpers (kept for compatibility; unused on R13A.2 homepage card) */
.fixu-restore-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fixu-restore-half {
  position: relative;
  overflow: hidden;
}

.fixu-restore-half img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.fixu-restore-half--before img {
  filter: grayscale(1) contrast(0.92) brightness(0.92);
  object-position: left center;
}

.fixu-restore-half--after img {
  margin-left: -100%;
  object-position: right center;
}

.fixu-restore-half span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fixu-restore-half--after span {
  left: auto;
  right: 10px;
  background: rgba(227, 6, 19, 0.85);
}

.fixu-restore-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.fixu-restore-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--fixu-border);
  transform: translate(-50%, -50%);
  box-shadow: var(--fixu-sh-sm);
}

/* Custom size measurement guides */
.fixu-service-media--custom .fixu-dim-guide {
  position: absolute;
  pointer-events: none;
  border: 0 dashed rgba(227, 6, 19, 0.85);
}

.fixu-dim-guide--h {
  left: 10%;
  right: 10%;
  top: 14%;
  border-top-width: 2px;
}

.fixu-dim-guide--h::before,
.fixu-dim-guide--h::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 2px;
  height: 10px;
  background: var(--fixu-red);
}

.fixu-dim-guide--h::before { left: 0; }
.fixu-dim-guide--h::after { right: 0; }

.fixu-dim-guide--v {
  top: 18%;
  bottom: 12%;
  right: 12%;
  border-right-width: 2px;
}

.fixu-dim-guide--v::before,
.fixu-dim-guide--v::after {
  content: "";
  position: absolute;
  right: -5px;
  height: 2px;
  width: 10px;
  background: var(--fixu-red);
}

.fixu-dim-guide--v::before { top: 0; }
.fixu-dim-guide--v::after { bottom: 0; }

/* ---------- Steps ---------- */
.fixu-steps {
  padding: clamp(36px, 5vw, 68px) 0;
  background: var(--fixu-bg-soft);
}

.fixu-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: none;
}

.fixu-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-align: center;
}

.fixu-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(50% + 42px);
  right: calc(-50% + 42px);
  border-top: 2px dotted var(--fixu-border-strong);
  pointer-events: none;
}

.fixu-step-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--fixu-border-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--fixu-sh-sm);
}

.fixu-step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fixu-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(227, 6, 19, 0.28);
}

.fixu-step-body {
  min-width: 0;
}

.fixu-step-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fixu-navy);
  letter-spacing: -0.01em;
}

.fixu-step-text {
  margin: 0;
  font-size: var(--fixu-fs-sm);
  line-height: 1.5;
  color: var(--fixu-text-soft);
}

.fixu-steps-cta {
  margin-top: var(--fixu-sp-6);
  text-align: center;
}

/* ---------- Quality band ---------- */
.fixu-quality {
  padding: clamp(36px, 4.5vw, 64px) 0;
  background: var(--fixu-navy);
  color: #fff;
}

.fixu-quality-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}

.fixu-quality-title {
  margin: 0 0 var(--fixu-sp-5);
  font-family: var(--fixu-sans);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 12.5em;
}

.fixu-quality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fixu-quality-list li {
  position: relative;
  padding-left: 34px;
  font-size: var(--fixu-fs-lg);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.fixu-quality-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.fixu-quality-visual {
  border-radius: var(--fixu-r-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--fixu-sh-lg);
  aspect-ratio: 1 / 1;
  width: min(100%, 420px);
  justify-self: end;
}

.fixu-quality-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

/* ---------- Contact CTA ---------- */
.fixu-contact-cta {
  padding: clamp(28px, 4vw, 44px) 0;
  background: var(--fixu-navy-soft);
}

.fixu-contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fixu-contact-cta-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.fixu-contact-cta-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fixu-contact-cta-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.fixu-contact-cta-title {
  margin: 0 0 6px;
  font-family: var(--fixu-sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.25;
}

.fixu-contact-cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fixu-fs-md);
  line-height: 1.45;
}

/* Smooth entrance for key blocks */
@media (prefers-reduced-motion: no-preference) {
  .fixu-hero-copy,
  .fixu-hero-stage,
  .fixu-service-card,
  .fixu-step,
  .fixu-quality-inner,
  .fixu-contact-cta-inner {
    animation: fixu-home-fade-up 0.7s ease both;
  }

  .fixu-hero-bg { animation-delay: 0.04s; }
  .fixu-service-card:nth-child(2) { animation-delay: 0.06s; }
  .fixu-service-card:nth-child(3) { animation-delay: 0.12s; }
  .fixu-step:nth-child(2) { animation-delay: 0.05s; }
  .fixu-step:nth-child(3) { animation-delay: 0.1s; }
  .fixu-step:nth-child(4) { animation-delay: 0.15s; }
}

@keyframes fixu-home-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive: 1024 ---------- */
@media (max-width: 1100px) {
  .fixu-hero-stage {
    min-height: clamp(460px, 58vw, 620px);
  }

  .fixu-hero-copy {
    max-width: min(420px, 48%);
  }

  .fixu-hero-bg img {
    object-position: 72% 14%;
  }

  .fixu-services-grid {
    gap: 16px;
  }

  .fixu-service-card-top {
    padding: 22px 18px 16px;
  }

  .fixu-step-icon {
    width: 64px;
    height: 64px;
    padding: 12px;
  }

  .fixu-step:not(:last-child)::after {
    top: 32px;
    left: calc(50% + 38px);
    right: calc(-50% + 38px);
  }
}

/* ---------- Responsive: tablet ~768–900 ---------- */
@media (max-width: 900px) {
  .fixu-hero-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .fixu-hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 220px;
  }

  .fixu-hero-bg img {
    object-fit: cover;
    object-position: 72% 32%;
  }

  .fixu-hero-inner {
    min-height: 0;
    align-items: stretch;
    padding-block: 24px 28px;
  }

  .fixu-hero-copy {
    max-width: none;
  }

  .fixu-hero-title {
    font-size: clamp(34px, 8vw, 48px);
  }

  .fixu-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fixu-hero-actions .fixu-btn {
    width: 100%;
  }

  .fixu-hero-usps {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    gap: 12px 14px;
  }

  .fixu-services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .fixu-steps-list {
    grid-template-columns: 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--fixu-border);
    border-radius: var(--fixu-r-xl);
    overflow: hidden;
  }

  .fixu-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--fixu-border);
  }

  .fixu-step:last-child {
    border-bottom: 0;
  }

  .fixu-step:not(:last-child)::after {
    display: none;
  }

  .fixu-step-icon {
    width: 52px;
    height: 52px;
    padding: 10px;
    flex: 0 0 auto;
  }

  .fixu-step-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
    top: -3px;
    right: -3px;
  }

  .fixu-step-body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .fixu-step-text {
    display: none;
  }

  .fixu-quality-inner {
    grid-template-columns: 1fr;
  }

  .fixu-quality-visual {
    order: -1;
    width: min(100%, 340px);
    max-height: none;
    min-height: 0;
    justify-self: center;
  }

  .fixu-contact-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .fixu-contact-cta-inner .fixu-btn {
    width: 100%;
  }
}

/* ---------- Responsive: mobile ~390 ---------- */
@media (max-width: 640px) {
  .fixu-hero {
    background: #fff;
  }

  .fixu-hero-bg {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }

  .fixu-hero-bg img {
    object-position: 78% 30%;
  }

  .fixu-hero-inner {
    padding-block: 20px 28px;
  }

  .fixu-hero-usps {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }

  .fixu-hero-usps li {
    font-size: 13px;
  }

  .fixu-hero-usps .fixu-icon-wrap,
  .fixu-icon-wrap--hero {
    width: 32px;
    height: 32px;
  }

  .fixu-section-head {
    margin-bottom: var(--fixu-sp-5);
  }

  .fixu-services,
  .fixu-steps,
  .fixu-quality {
    padding: 40px 0;
  }

  .fixu-service-media {
    margin: 0 12px 12px;
  }

  .fixu-service-media--product,
  .fixu-service-media--restore {
    margin: 0 2px 6px;
  }

  .fixu-service-icon {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .fixu-service-title {
    font-size: 20px;
  }

  .fixu-quality-list li {
    font-size: var(--fixu-fs-md);
  }

  .fixu-contact-cta-copy {
    flex-direction: column;
    gap: 12px;
  }
}

/* Prevent legacy ThemeForest homepage leftovers if any leak */
body.fixu-home .tf-slideshow,
body.fixu-home .flat-spacing-3,
body.fixu-home .flat-spacing-12,
body.fixu-home .flat-spacing-14,
body.fixu-home .flat-spacing-15,
body.fixu-home section.flat-spacing,
body.fixu-home .tf-section {
  display: none !important;
}
