/* DCS Confecção — tema claro, tokens em identidade/design-guide.md */
:root {
  --bg: #fbf7f3;
  --bg-soft: #f3e9e2;
  --card: #ffffff;
  --ink: #2b1b12;
  --muted: rgba(43, 27, 18, 0.64);
  --muted-2: rgba(43, 27, 18, 0.48);
  --terracota: #cb724e;
  --terracota-dark: #a85b3b;
  --terracota-soft: rgba(203, 114, 78, 0.12);
  --tan: #e7b696;
  --espresso: #4f342c;
  --chocolate: #3a2a22;
  --border: rgba(43, 27, 18, 0.1);
  --shadow: 0 20px 45px rgba(43, 27, 18, 0.12);
  --shadow-sm: 0 10px 24px rgba(43, 27, 18, 0.08);
  --shadow-lg: 0 28px 64px rgba(43, 27, 18, 0.18);

  --font-display: "Inter", sans-serif;
  --font-sans: "Inter", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --hex: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);

  --mobile-cta-h: 0px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--espresso);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--terracota-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Reveal & entrance animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-enter {
  animation: fadeUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.25s; }
.delay-4 { animation-delay: 0.35s; }
.delay-5 { animation-delay: 0.45s; }
.delay-6 { animation-delay: 0.9s; }
.delay-7 { animation-delay: 1.05s; }
.delay-8 { animation-delay: 1.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -16px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero__blob {
    animation: none !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1rem;
}

.btn--primary {
  background: var(--terracota);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--terracota-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--light {
  background: #fff;
  color: var(--terracota-dark);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 243, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__name em {
  font-style: normal;
  color: var(--terracota);
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0 8px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, var(--terracota-soft), transparent),
    var(--bg);
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero__title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}

.hero__badges-mobile {
  display: none;
}

.hero__blob {
  position: absolute;
  inset: 6% 10%;
  background: linear-gradient(160deg, var(--tan), var(--terracota));
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  opacity: 0.55;
  filter: blur(2px);
  animation: floatBlob 8s ease-in-out infinite;
}

.hero__shirt {
  position: relative;
  z-index: 2;
  width: 78%;
  max-width: 360px;
  filter: drop-shadow(0 30px 40px rgba(43, 27, 18, 0.28));
}

.pin {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
}

.pin__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.pin__line {
  height: 1px;
  width: 34px;
  background: var(--ink);
  opacity: 0.55;
  flex-shrink: 0;
}

.pin__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.pin__label--accent {
  background: var(--terracota);
  color: #fff;
}

.pin--logo {
  left: -2%;
  top: 68%;
}

.pin--color {
  right: -4%;
  top: 30%;
  flex-direction: row-reverse;
}

.pin--quality {
  right: -6%;
  top: 54%;
  flex-direction: row-reverse;
}

/* ---------- Marquee de técnicas ---------- */

.marquee {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.marquee__group span i {
  color: var(--terracota);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Sobre ---------- */

.sobre {
  padding: 100px 0;
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}

.sobre__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 22px;
}

.sobre__text p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 58ch;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.chip-list i {
  color: var(--terracota);
}

.sobre__tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.sobre__tag-label {
  font-family: var(--font-display);
  color: var(--terracota-dark);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.sobre__tag > div + div {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.sobre__tag dt {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.sobre__tag dd {
  margin: 0;
  font-weight: 700;
}

/* ---------- Serviços ---------- */

.servicos {
  padding: 100px 0;
  background: var(--bg-soft);
}

.servicos h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.servicos__intro {
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 40px;
  max-width: 60ch;
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: linear-gradient(155deg, var(--tan), var(--terracota));
  color: #fff;
  clip-path: var(--hex);
  font-size: 1.15rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

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

/* ---------- Diferenciais ---------- */

.diferenciais {
  padding: 0 0 100px;
  background: var(--bg-soft);
}

.diferenciais h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.diferenciais__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.diferenciais__card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.diferenciais__card--accent {
  background: linear-gradient(155deg, var(--terracota), var(--terracota-dark));
  border-color: transparent;
}

.diferenciais__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--terracota-soft);
  color: var(--terracota-dark);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.diferenciais__card--accent .diferenciais__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.diferenciais__card--accent .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.diferenciais__card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.diferenciais__card--accent h3 {
  color: #fff;
}

.diferenciais__card p {
  color: var(--muted);
  max-width: 46ch;
}

.diferenciais__card--accent p {
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Processo ---------- */

.processo {
  padding: 100px 0;
}

.processo h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.processo .servicos__intro {
  margin-bottom: 56px;
}

/* Timeline / jornada do cliente */

.timeline {
  position: relative;
  display: flex;
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 27px;
  right: 27px;
  height: 0;
  border-top: 2px dashed var(--border);
  z-index: 0;
}

.timeline__step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline__marker {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--tan), var(--terracota));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.timeline__num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
  font-family: var(--font-display);
  display: grid;
  place-items: center;
}

.timeline__body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.timeline__body p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Portfólio ---------- */

.portfolio {
  padding: 100px 0;
  background: var(--bg-soft);
}

.portfolio h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.portfolio .servicos__intro {
  margin-bottom: 40px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%);
  box-shadow: var(--shadow);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 85%;
}

.portfolio__item figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.portfolio__item figcaption i {
  color: var(--terracota);
}

/* ---------- CTA final ---------- */

.cta-final {
  position: relative;
  background: linear-gradient(155deg, var(--terracota), var(--terracota-dark));
  color: #fff;
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.cta-final .hero__actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--chocolate);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .brand,
.site-footer .brand__name {
  color: #fff;
}

.site-footer .brand__name {
  font-size: 1rem;
}

.site-footer__endereco {
  font-size: 0.88rem;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__copy {
  width: 100%;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.75;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__copy a {
  color: var(--tan);
}

/* ---------- Mobile CTA ---------- */

.mobile-cta {
  display: none;
}

/* ---------- Responsivo ---------- */

@media (max-width: 980px) {
  .hero__inner,
  .sobre__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    order: 1;
  }

  .hero__showcase {
    order: 2;
    max-width: 340px;
    margin: 32px auto 0;
  }

  .hero__frame {
    aspect-ratio: 1 / 1;
  }

  .pin__label {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .pin__line {
    width: 20px;
  }

  .pin--logo { left: 2%; top: 74%; }
  .pin--color { right: 0%; top: 22%; }
  .pin--quality { right: -2%; top: 48%; }

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

  .diferenciais__grid,
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 8px 24px 18px;
    gap: 4px;
    display: none;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__actions .btn--primary {
    display: none;
  }

  .timeline {
    flex-direction: column;
    gap: 32px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 0;
    height: auto;
    border-top: none;
    border-left: 2px dashed var(--border);
  }

  .timeline__step {
    flex-direction: row;
    align-items: flex-start;
  }

  :root {
    --mobile-cta-h: 74px;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  body {
    padding-bottom: var(--mobile-cta-h);
  }

  .hero {
    padding: 40px 0 32px;
  }

  .sobre,
  .servicos,
  .processo,
  .portfolio {
    padding: 64px 0;
  }

  .diferenciais {
    padding: 0 0 64px;
  }

  .cta-final {
    padding: 64px 0;
  }

  .sobre__tag {
    margin-top: 8px;
  }

  .diferenciais__grid {
    margin-top: 28px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .diferenciais__card {
    padding: 20px 16px;
  }

  .diferenciais__icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .diferenciais__card .eyebrow {
    font-size: 0.7rem;
  }

  .diferenciais__card h3 {
    font-size: 1.15rem;
  }

  .diferenciais__card p {
    font-size: 0.86rem;
  }

  .portfolio .servicos__intro,
  .servicos__intro {
    margin-bottom: 28px;
  }

  .servicos__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -24px;
    padding: 4px 24px 12px;
    scrollbar-width: none;
  }

  .servicos__grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  .pin {
    display: none;
  }

  .hero__badges-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .hero__badges-mobile li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
  }

  .hero__badges-mobile li i {
    color: var(--terracota);
  }

  .hero__badges-mobile__accent {
    background: var(--terracota) !important;
    color: #fff !important;
    border-color: transparent !important;
  }

  .hero__badges-mobile__accent i {
    color: #fff !important;
  }

  .timeline__marker {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .hero__showcase {
    max-width: 280px;
  }
}
