/*
Theme Name: Yuki Interiores
Description: Tema institucional para móveis sob medida, com portfólio de projetos e ambientes.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: yuki-interiores
License: GPL-2.0-or-later
*/

:root {
  --paper: #f6f3ea;
  --linen: #eae5d8;
  --green: #173c34;
  --forest: #12362e;
  --muted: #4d6258;
  --clay: #885b42;
  --line: #d7d0bf;
  --white: #fffdf7;
  --frame: min(81rem, 84vw);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--green); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b17d58; outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 .75em; }
h1, h2 { font: 400 clamp(2.45rem, 5.2vw, 5.7rem)/.96 var(--serif); letter-spacing: -.018em; }
h2 { font-size: clamp(2.25rem, 4.4vw, 4.5rem); }
h3 { font-weight: 600; line-height: 1.25; }
.wrap { width: var(--frame); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.section--linen { background: var(--linen); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; }
.eyebrow { margin-bottom: 1rem; color: var(--clay); font-size: .72rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 9; top: 1rem; left: 1rem; width: auto; height: auto; padding: .7rem 1rem; clip-path: none; background: var(--white); }
.button { display: inline-flex; gap: .7rem; align-items: center; justify-content: center; min-height: 45px; padding: .65rem 1.15rem; border: 1px solid var(--clay); background: var(--clay); color: white; font-size: .87rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--forest); border-color: var(--forest); }
.text-link { font-size: .88rem; font-weight: 650; }
.site-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: .65rem 3.3vw; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.brand strong { font: 400 2.4rem/.91 var(--serif); letter-spacing: .085em; }
.brand small { margin-top: .33rem; font-size: .6rem; line-height: 1.3; letter-spacing: .17em; text-transform: uppercase; }
.brand img { width: auto; max-width: 190px; max-height: 54px; object-fit: contain; }
.menu-toggle, .menu-close { display: inline-flex; align-items: center; gap: .6rem; border: 0; background: transparent; min-height: 44px; min-width: 44px; cursor: pointer; }
.menu-toggle span { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.menu-toggle svg, .menu-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.menu-dialog { margin: 0 0 0 auto; width: min(100%, 33rem); max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: #efebde; color: var(--green); }
.menu-dialog::backdrop { background: rgb(232 225 205 / 58%); backdrop-filter: blur(7px); }
.menu-inner { display: flex; flex-direction: column; min-height: 100%; padding: clamp(1.6rem, 4.5vw, 4.5rem); }
.menu-close { align-self: flex-end; justify-content: center; }
.menu-links { display: grid; gap: .65rem; margin: 1.5rem 0 3rem; padding: 0; list-style: none; }
.menu-links a { display: inline-block; font: 400 clamp(2.6rem, 5vw, 4rem)/1 var(--serif); text-decoration: none; }
.menu-links a:hover { color: var(--clay); }
.menu-meta { margin-top: auto; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .9rem; }
.home-hero { position: relative; margin-left: 9vw; color: white; background: var(--forest); overflow: hidden; }
.home-hero__visual { position: absolute; inset: 0; }
.home-hero__slide { position: absolute; inset: 0; margin: 0; }
.home-hero__slide img, .page-hero img { width: 100%; height: 100%; object-fit: cover; }
.home-hero::before, .page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(15 25 19 / 76%), rgb(15 25 19 / 27%) 68%, transparent), linear-gradient(0deg, rgb(15 25 19 / 36%), transparent 50%); pointer-events: none; }
.home-hero__inner { position: relative; z-index: 2; min-height: clamp(33rem, 72svh, 51rem); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(2rem, 7vw, 7rem) clamp(1.4rem, 6vw, 6rem) clamp(4.8rem, 8vw, 7rem); }
.home-hero h1 { max-width: 11ch; margin-bottom: .3em; }
.home-hero p { max-width: 35ch; }
.home-hero .eyebrow { color: #f0dbc4; }
.slide-controls { position: absolute; right: clamp(1rem, 3vw, 3rem); bottom: 1.1rem; z-index: 3; display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.slide-controls button { width: 44px; height: 44px; border-radius: 100%; border: 1px solid rgb(255 255 255 / 75%); background: rgb(20 31 23 / 50%); color: white; cursor: pointer; }
.slide-controls button:hover { background: var(--forest); }
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 16rem; padding-block: 3.2rem; background: var(--linen); }
.page-hero--photo { min-height: clamp(19rem, 36vw, 32rem); color: white; }
.page-hero img { position: absolute; inset: 0; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: .12em; }
.page-hero p { margin: 0; max-width: 46ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 1.7vw, 1.7rem); }
.project-card { min-width: 0; background: var(--white); }
.project-card a { display: block; height: 100%; text-decoration: none; }
.project-card a:hover h3 { text-decoration: underline; }
.project-card__image { background: var(--linen); overflow: hidden; aspect-ratio: 4/3; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-card a:hover img { transform: scale(1.035); }
.project-card__body { padding: .85rem 1.05rem 1rem; }
.project-card__body h3, .project-card__body p { margin: 0; }
.project-card__body p { margin-top: .2rem; color: var(--muted); font-size: .88rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.split img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split p, .reading p { max-width: 60ch; }
.reading { width: min(48rem, 84vw); margin-inline: auto; }
.reading > :last-child, .split > div > :last-child { margin-bottom: 0; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 0 0 2.1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); }
.filters a { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .85rem; text-decoration: none; }
.filters a[aria-current], .filters a:hover { border-color: var(--clay); background: var(--clay); color: white; }
.filters small { margin-left: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption { padding-top: .45rem; font-size: .87rem; }
.pagination { margin-top: 2rem; }
.pagination .page-numbers { margin-right: .55rem; }
.site-footer { padding: clamp(3rem, 7vw, 6rem) 0 1.6rem; color: #f1eee2; background: var(--forest); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.site-footer .brand { margin-bottom: 1.1rem; }
.site-footer .menu-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin: 0 0 1rem; }
.site-footer .menu-links a { font: inherit; font-size: .87rem; }
.footer-end { padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 22%); font-size: .77rem; }
.whatsapp { position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 5; padding: .6rem 1rem; border-radius: 2rem; background: var(--forest); border: 1px solid #9fb7a9; color: white; font-size: .85rem; font-weight: 650; text-decoration: none; box-shadow: 0 3px 18px #122c2655; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.9rem; }
.form label { display: grid; align-content: start; gap: .45rem; font-size: .85rem; font-weight: 600; }
.form input, .form textarea { display: block; width: 100%; padding: .5rem .15rem; background: transparent; border: 0; border-bottom: 1px solid #8b9287; color: var(--green); }
.form .span { grid-column: 1 / -1; }
.form .button { justify-self: start; }
.form-status { margin-top: 1rem; font-weight: 600; }
.embed-wrap iframe { max-width: 100%; }
@media (max-width: 800px) {
  :root { --frame: 89vw; }
  .home-hero { margin-left: 0; }
  .home-hero__inner { min-height: clamp(29rem, 70svh, 39rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-header { min-height: 68px; padding-inline: 5.5vw; }
  .cards, .footer-grid, .form { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: .35em; }
  .gallery-grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 3.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.menu-close-form { align-self: flex-end; }
.menu-close-form button { justify-content: center; }
.contact-details { margin-block: 1.5rem 2.5rem; }
.site-footer .button:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
