/* DKX Home: linho calmo. Creme e branco-linho, índigo, azul-acinzentado; trama sutil no fundo, costura tracejada como detalhe. */
:root {
  --ink: #1E2430;            /* texto: 14,9:1 sobre paper; 12,9:1 sobre linho; 6,0:1 sobre bruma */
  --indigo: #34406A;         /* títulos, links e botões: 9,6:1 sobre paper; 8,3:1 sobre linho; paper sobre indigo 9,6:1 */
  --bruma: #8FA3BF;          /* só fundo (texto ink, 6,0:1) ou detalhe de costura; nunca texto sobre claro */
  --linho: #EFE9E1;
  --paper: #FBFAF7;
  --muted: #4F586B;          /* texto secundário: 6,8:1 sobre paper; 5,9:1 sobre linho */
  --on-indigo: #D5DCEA;      /* texto corrido sobre indigo: 7,3:1 */
  --on-ink: #C9D0DD;         /* texto sobre ink no rodapé: 10,0:1; links bruma sobre ink 6,0:1 */
  --erro: #9B2C2C;           /* mensagens de erro: 7,2:1 sobre paper; 6,2:1 sobre linho */
  --stitch: rgba(52, 64, 106, .42);
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* trama de tecido: fios horizontais e verticais quase invisíveis */
  background-image:
    repeating-linear-gradient(0deg, rgba(52, 64, 106, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(52, 64, 106, .03) 0 1px, transparent 1px 5px);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.rodape :focus-visible { outline-color: var(--bruma); } /* bruma sobre ink: 6,0:1 */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--indigo); text-wrap: balance; overflow-wrap: break-word; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--indigo); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.obs { font-size: .875rem; color: var(--muted); margin-top: 24px; }

.page { display: none; }
.page.active { display: block; }
html:not(.js) .page:target { display: block; }
html:not(.js) main:has(.page:target) [data-page="home"] { display: none; }

/* etiqueta costurada (rótulo de seção) */
.etq {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px;
  font: 700 .75rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo); background: var(--linho); border-radius: 4px;
  outline: 1px dashed var(--stitch); outline-offset: -4px;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 2px solid var(--indigo); border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; text-wrap: balance;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-cheio { background: var(--indigo); color: var(--paper); }
.btn-cheio:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-cheio:disabled { background: var(--linho); border-color: var(--bruma); color: var(--muted); cursor: not-allowed; }
.btn-linha { background: transparent; color: var(--indigo); }
.btn-linha:hover { background: var(--linho); color: var(--ink); }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .96); border-bottom: 2px dashed var(--bruma); }
.topo-in { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.marca { display: inline-flex; align-items: center; gap: 12px; color: var(--indigo); text-decoration: none; font: 400 1.25rem var(--serif); letter-spacing: .08em; }
.marca img { border-radius: 10px; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px; background: var(--linho); border: 0; border-radius: 12px; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--indigo); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px 16px 20px;
  list-style: none; flex-direction: column; background: var(--paper); border-bottom: 2px dashed var(--bruma);
}
.nav-links.open { display: flex; }
.nav-links a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px dashed #D9D2C7; }
.nav-links .nav-cta a { margin-top: 14px; justify-content: center; border: 0; border-radius: 999px; background: var(--indigo); color: var(--paper); font-weight: 700; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; background: none; border: 0; }
  .nav-links a { border: 0; padding: 0 13px; font-size: .97rem; }
  .nav-links a:hover { color: var(--indigo); text-decoration: underline dashed; text-decoration-thickness: 1.5px; }
  .nav-links .nav-cta a { margin: 0 0 0 10px; padding: 0 22px; min-height: 44px; }
  .nav-links .nav-cta a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.08; max-width: 14ch; }
.lead { font-size: 1.15rem; max-width: 34rem; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-nota { font-size: .95rem; color: var(--muted); }
.hero-foto { position: relative; margin: 0 0 28px; }
.hero-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 48px -28px rgba(30, 36, 48, .45); }
.selo {
  position: absolute; left: 18px; bottom: -26px; display: grid; gap: 2px;
  padding: 14px 20px; max-width: calc(100% - 36px);
  background: var(--indigo); color: var(--on-indigo); border-radius: 10px;
  outline: 1.5px dashed rgba(239, 233, 225, .7); outline-offset: -7px;
  font-size: .85rem; line-height: 1.4;
}
.selo strong { color: var(--paper); font: 400 1.05rem var(--serif); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .selo { left: -28px; bottom: 36px; }
}

/* ---------- seções ---------- */
.secao { padding: 72px 0; }
.sec-head { max-width: 44rem; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.sec-head > p:last-child { color: var(--muted); font-size: 1.08rem; }
@media (min-width: 900px) { .secao { padding: 96px 0; } }

/* linhas */
.linhas-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .linhas-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .linhas-grid { grid-template-columns: repeat(4, 1fr); } }
.peca {
  display: block; padding: 30px 26px 26px; background: var(--linho); color: var(--ink); border-radius: var(--r);
  outline: 1.5px dashed var(--stitch); outline-offset: -9px; text-decoration: none;
}
.peca p { margin: 0; font-size: .98rem; }
.ico { width: 44px; height: 44px; margin-bottom: 16px; fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.peca-b2b { background: var(--indigo); color: var(--on-indigo); outline-color: rgba(239, 233, 225, .55); transition: background-color .2s; }
.peca-b2b h3 { color: var(--paper); }
.peca-b2b .ico { stroke: var(--linho); }
.peca-b2b:hover { background: var(--ink); color: var(--on-indigo); }
.peca-b2b:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.peca-link { display: inline-block; margin-top: 16px; color: var(--paper); font-weight: 700; text-decoration: underline dashed; text-underline-offset: 4px; }

/* confecção */
.confeccao { background: var(--linho); }
.conf-grid { display: grid; gap: 40px; align-items: center; }
.conf-foto { margin: 0; }
.conf-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.bancadas { list-style: none; margin: 0; padding: 0; counter-reset: b; display: grid; gap: 0; }
.bancadas li { counter-increment: b; position: relative; padding: 0 0 26px 40px; border-left: 2px dashed var(--bruma); margin-left: 20px; }
.bancadas li:last-child { border-left-color: transparent; padding-bottom: 0; }
.bancadas li::before {
  content: counter(b); position: absolute; left: -21px; top: -4px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--indigo);
  font: 400 1.15rem var(--serif); box-shadow: 0 0 0 2px var(--indigo) inset;
}
.bancadas h3 { margin-bottom: .25em; }
.bancadas p { margin: 0; }
@media (min-width: 900px) { .conf-grid { grid-template-columns: .95fr 1.05fr; gap: 72px; } }

/* medida do lençol (componente) */
.med {
  display: grid; gap: 28px; padding: 24px; background: var(--paper); border-radius: 24px;
  box-shadow: 0 0 0 1px #E3DCD1, 0 30px 60px -40px rgba(30, 36, 48, .5);
  outline: 1.5px dashed var(--stitch); outline-offset: -10px;
}
@media (min-width: 900px) { .med { grid-template-columns: 1fr 1fr; gap: 44px; padding: 44px; } }
.campo { display: grid; gap: 6px; min-width: 0; }
fieldset.campo { border: 0; margin: 0 0 22px; padding: 0; }
.campo legend, .campo label { font-weight: 700; margin-bottom: 4px; padding: 0; }
.campo small { color: var(--muted); font-size: .85rem; }
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcoes label { position: relative; font-weight: 400; margin: 0; }
.opcoes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcoes span {
  display: grid; gap: 2px; min-height: 64px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: var(--linho); border: 2px solid transparent; font-size: .9rem; color: var(--muted);
  transition: background-color .15s, border-color .15s;
}
.opcoes b { font: 400 1.1rem var(--serif); color: var(--indigo); }
.opcoes input:checked + span { background: var(--indigo); color: var(--on-indigo); }
.opcoes input:checked + span b { color: var(--paper); }
.opcoes input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 3px; }
.opcoes label:hover span { border-color: var(--bruma); }
input[type=text], input[type=email], input[type=number], textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #B9B0A3; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem var(--sans);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
#med-altura { max-width: 12rem; font-size: 1.2rem; }
.med-saida { display: grid; gap: 20px; align-content: space-between; padding: 22px; border-radius: 18px; background: var(--linho); }
#svc-resultado { min-height: 13rem; }
.med-vazio, .med-aviso { margin: 0; color: var(--muted); }
.med-aviso { padding-left: 14px; border-left: 3px dashed var(--indigo); color: var(--ink); }
.med-el { margin: 0 0 4px; font: 400 clamp(1.25rem, 2.6vw, 1.55rem)/1.3 var(--serif); color: var(--indigo); }
.med-sup { margin: 0 0 12px; font-weight: 700; }
.med-alto { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 8px; background: var(--bruma); color: var(--ink); font-weight: 500; font-size: .95rem; }
.med-nota { margin: 0; font-size: .875rem; color: var(--muted); }
/* planta do colchão em escala: largura × comprimento, costura do elástico por dentro */
.med-planta { display: grid; place-items: center; padding: 26px 56px 14px 16px; }
.med-planta div {
  position: relative; height: calc(var(--c) / 203 * 8.5rem); aspect-ratio: var(--l) / var(--c);
  background: var(--paper); border: 2px solid var(--indigo); border-radius: 10px;
  outline: 1.5px dashed var(--bruma); outline-offset: -8px;
}
.med-planta i, .med-planta b, .med-planta s { position: absolute; font: 700 .8rem var(--sans); font-style: normal; text-decoration: none; color: var(--ink); white-space: nowrap; }
.med-planta i { top: -24px; left: 0; right: 0; text-align: center; }
.med-planta b { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.med-planta s { left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-weight: 500; }
.med-planta i::after, .med-planta b::after { content: ' cm'; font-weight: 500; }
.med-planta s::before { content: 'lateral '; }
.med-planta s::after { content: ' cm'; }

/* hospedagem */
.hospedagem { background: var(--indigo); color: var(--on-indigo); }
.hospedagem h2, .hospedagem h3 { color: var(--paper); }
.hospedagem .sec-head > p:last-child { color: var(--on-indigo); }
.hospedagem .etq { background: var(--bruma); color: var(--ink); outline-color: rgba(30, 36, 48, .45); }
.hosp-grid { display: grid; gap: 44px; align-items: start; }
.hosp-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: p; }
.hosp-passos li { counter-increment: p; padding: 18px 20px 18px 64px; position: relative; border-radius: 14px; border: 1.5px dashed rgba(239, 233, 225, .45); }
.hosp-passos li::before { content: counter(p); position: absolute; left: 20px; top: 16px; font: 400 1.6rem var(--serif); color: var(--bruma); }
.hosp-passos h3 { font-size: 1.15rem; margin-bottom: .2em; }
.hosp-passos p { margin: 0; }
.hosp-foto { margin: 0; }
.hosp-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.hosp-foto figcaption { margin-top: 16px; font-size: .95rem; padding: 14px 16px; border-radius: 12px; background: rgba(30, 36, 48, .35); }
.hosp-foto strong { color: var(--paper); }
@media (min-width: 900px) { .hosp-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } .hosp-foto { margin-top: 120px; } }

/* cuidados */
.cuid-grid { display: grid; gap: 36px; align-items: start; }
.cuid-foto { margin: 0; }
.cuid-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.cuid-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 32px; }
.cuid-lista li { padding-top: 16px; border-top: 1.5px dashed var(--bruma); }
.cuid-lista h3 { font-size: 1.12rem; margin-bottom: .3em; }
.cuid-lista p { margin: 0; font-size: .98rem; }
@media (min-width: 640px) { .cuid-lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cuid-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* depoimentos */
.depo { background: var(--linho); }
.depo-lista { display: grid; gap: 20px; }
@media (min-width: 900px) { .depo-lista { grid-template-columns: repeat(3, 1fr); } }
.depo-item { margin: 0; padding: 30px 26px 24px; background: var(--paper); border-radius: var(--r); position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.depo-item::before { content: '“'; position: absolute; top: 4px; right: 20px; font: 400 4.5rem/1 var(--serif); color: var(--bruma); }
.depo-item blockquote { margin: 0 0 18px; }
.depo-item blockquote p { margin: 0; font-size: 1.05rem; }
.depo-item figcaption { font-size: .9rem; color: var(--muted); padding-top: 14px; border-top: 1.5px dashed var(--bruma); }
.depo-item figcaption strong { display: block; color: var(--ink); }

/* faq */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq-lista details { border-bottom: 1.5px dashed var(--bruma); }
.faq-lista summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 400 1.6rem var(--serif); color: var(--indigo); }
.faq-lista details[open] summary::after { content: '−'; }
.faq-lista details p { margin: 0 0 20px; color: var(--ink); }

/* contato */
.contato { background: var(--linho); }
.contato-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contato-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.contato-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.contato-mail { font: 400 clamp(1.3rem, 3vw, 1.6rem) var(--serif); overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; padding: 26px; background: var(--paper); border-radius: 22px; outline: 1.5px dashed var(--stitch); outline-offset: -10px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 36px; } .campo-largo { grid-column: 1 / -1; } }
.req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-resumo { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--linho); border-left: 3px solid var(--indigo); font-size: .95rem; }
.form-erro { margin: 0; color: var(--erro); font-weight: 700; }
[aria-invalid="true"] { border-color: var(--erro); }

/* páginas legais */
.legal { max-width: 780px; padding: 48px 0 80px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal-data { color: var(--muted); font-size: .95rem; }
.voltar { display: inline-block; margin-bottom: 24px; font-weight: 700; }
.voltar::before { content: '← '; }

/* ---------- rodapé ---------- */
.rodape { background: var(--ink); color: var(--on-ink); padding: 56px 0 28px; border-top: 3px dashed var(--bruma); }
.rodape a { color: var(--bruma); }
.rodape a:hover { color: var(--paper); }
.rodape h2 { font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .rodape-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.rodape-logo { display: flex; align-items: center; gap: 12px; font: 400 1.25rem var(--serif); color: var(--paper); letter-spacing: .08em; }
.rodape-logo img { border-radius: 10px; }
.rodape-base { margin-top: 40px; padding-top: 20px; border-top: 1px dashed rgba(143, 163, 191, .5); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; }
.rodape-base p { margin: 0; }

/* ---------- revelação ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js [data-reveal].revealed { opacity: 1; transform: none; }
.js .linhas-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .linhas-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .linhas-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
