/*
Theme Name: Espaço Casual
Description: Tema próprio da loja de móveis e decoração Espaço Casual, em Ilhabela.
Author: Espaço Casual
Version: 2.2.7
Text Domain: espaco-casual
*/

:root {
  color-scheme: light;
  --paper: #f9f6ef;
  --ink: #292b22;
  --olive: #354537;
  --coast: #263d43;
  --clay: #884432;
  --sand: #eee6d8;
  --muted: #58594e;
  --line: #ded9cc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #9c551f; outline-offset: 4px; }
h1,h2,h3,.brand { font-family: Georgia, serif; font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5vw, 5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: .75rem; top: .75rem; z-index: 5; background: white; padding: .75rem; }
.site-header { border-top: 4px solid var(--clay); border-bottom: 1px solid var(--line); }
.header-inner,.site-nav,.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.35rem; }
.header-inner { padding-block: 1rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: clamp(1.55rem,2.6vw,2.15rem); letter-spacing: -.045em; color: var(--coast); }
.brand img { width: 28px; height: 28px; flex: none; }
.site-nav { font-size: .95rem; }
.button { display: inline-block; padding: .65rem 1rem; color: white; background: var(--olive); text-decoration: none; border-radius: .25rem; }
.hero {
  --hero-gutter: clamp(1.25rem,3.5vw,3.25rem);
  display: grid;
  grid-template-columns: minmax(0,42fr) minmax(0,58fr);
  grid-template-rows: 1fr 1fr;
  margin-block: clamp(1rem,3vw,2.75rem);
  background: var(--sand);
  color: var(--coast);
}
.hero-heading { grid-area: 1 / 1; align-self: end; padding: var(--hero-gutter) var(--hero-gutter) 0; }
.hero-heading .eyebrow { margin: 0 0 .65rem; color: var(--clay); font-weight: 650; }
.hero h1 { margin: 0; font-size: clamp(2rem,4.15vw,3.8rem); text-wrap: balance; }
.hero-photo { grid-area: 1 / 2 / 3; min-width: 0; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; }
.hero-photo figcaption { padding: .65rem var(--hero-gutter) .75rem; border-top: 2px solid var(--coast); background: var(--sand); color: var(--coast); font: clamp(.94rem, 1.35vw, 1.05rem)/1.5 Georgia, serif; text-wrap: pretty; }
.hero-details { grid-area: 2 / 1; padding: 1rem var(--hero-gutter) var(--hero-gutter); }
.hero-description { margin: 0 0 1rem; max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .8rem; font-size: .93rem; }
.hero-actions .button-outline { color: var(--olive); background: transparent; border: 1px solid var(--olive); }
.hero-actions .button:hover { background: #303725; color: white; }
.eyebrow { color: var(--muted); font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; }
.section { padding-block: clamp(1.75rem,4.5vw,3.75rem); border-top: 1px solid var(--line); }
.section > h2:first-child { margin: 0 0 1.25rem; color: var(--coast); }
.collections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.collections a { display: block; border-bottom: 1px solid var(--line); text-decoration: none; }
.collections a:hover > span { color: var(--clay); }
.collections img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 38%; }
.collections a:nth-child(1) img { object-position: 50% 45%; filter: brightness(1.02) saturate(.94); }
.collections a:nth-child(2) img { object-position: 50% 50%; filter: brightness(1.04) saturate(.94); }
.collections a:nth-child(3) img { object-position: 50% 65%; filter: saturate(.88); }
.collections a > span { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; padding: .95rem .15rem 1rem; color: var(--coast); font: clamp(1.2rem, 2vw, 1.45rem)/1.25 Georgia, serif; }
.collection-arrow { flex-shrink: 0; color: var(--olive); }
.pieces,.visit { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,4vw,2.8rem); }
.piece { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); background: #fdfaf4; }
.piece figure { margin: 0; background: #eee9df; }
.piece figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pieces--externos .piece:first-child { grid-column: 1 / -1; }
.pieces--externos .piece:first-child figure img { aspect-ratio: 16 / 9; object-position: 50% 60%; }
.pieces--interiores .piece:first-child figure img { object-position: 50% 40%; }
.pieces--decoracao .piece figure img { aspect-ratio: 1; }
.piece-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.4vw, 1.75rem); }
.piece-text h3 { margin-bottom: .65rem; text-wrap: balance; line-height: 1.18; }
.piece-text p { margin: 0 0 1.1rem; max-width: 58ch; color: var(--muted); }
.piece h3,.hours h3 { margin-top: .45rem; font-size: 1.55rem; color: var(--coast); }
.hours { padding: 1.25rem; background: #eee9df; align-self: start; }
.hours dl { margin-bottom: 0; }
.hours dl div { display: flex; gap: .4rem 1rem; justify-content: space-between; flex-wrap: wrap; padding-block: .55rem; border-top: 1px solid var(--line); }
.hours dd { margin: 0; white-space: nowrap; font-weight: 600; }
.contact-intro { max-width: 38rem; }
.hero-note { display: grid; gap: .2rem; margin: 1.25rem 0 0; color: var(--muted); font-size: .92rem; }
.showroom { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.25rem,5vw,4rem); align-items: center; }
.showroom img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 56%; border-radius: .35rem; }
.social-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.social-card { display: flex; flex-direction: column; padding: .8rem; border: 1px solid var(--line); }
.social-card h3 { margin: .85rem 0; font-size: 1.28rem; }
.social-card .actions { margin-top: auto; }
.embed-toggle { background: transparent; color: var(--olive); border: 1px solid var(--olive); border-radius: .25rem; padding: .5rem; font: inherit; cursor: pointer; }
.social-card iframe { width: 100%; height: 510px; border: 0; margin-top: .75rem; background: white; }
.piece figure a { display: block; }
.piece figure a:hover img { filter: brightness(.96); }
.piece-text a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--olive); font-size: .95rem; font-weight: 600; text-decoration-color: var(--clay); }
.collection-nav { margin-block: .5rem 1.25rem; }
.collection-nav a[aria-current] { font-weight: 700; }
.entry { max-width: 860px; margin-inline: auto; padding: 2.5rem 0; }
.entry h1 { font-size: clamp(2.35rem, 4.5vw, 4rem); }
.site-footer { border-top: 1px solid var(--line); background: #eee9df; }
.site-footer .wrap { padding-block: 1.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
@media (max-width: 740px) {
  .collections,.pieces,.visit,.showroom,.social-grid { grid-template-columns: 1fr; }
  .site-nav { gap: .55rem .85rem; }
  .site-header .site-nav { gap: .1rem .8rem; }
  .pieces--externos .piece:first-child figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; }
  .hero-heading,.hero-photo,.hero-details { grid-area: auto; }
  .hero-heading { padding-block: .8rem .7rem; }
  .hero-heading .eyebrow { margin-bottom: .45rem; }
  .hero h1 { font-size: clamp(1.85rem,6vw,2.75rem); }
  .hero-photo img { aspect-ratio: 3 / 2; height: auto; object-position: 50% 56%; }
  .hero-details { padding-top: .9rem; }
  .hero-description { max-width: none; }
}

.furniture-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,3vw,2rem); }
.furniture-card { display: block; background: #ece6da; text-decoration: none; }
.furniture-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.furniture-card > span { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; font: 1.4rem/1.2 Georgia, serif; }
.furniture-card:hover > span { text-decoration: underline; }
@media (max-width: 740px) { .furniture-grid { grid-template-columns: minmax(0,1fr); } }

@media (min-width: 741px) {
  .pieces--externos .piece:first-child { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .pieces--externos .piece:first-child figure a { height: 100%; }
  .pieces--externos .piece:first-child figure img { height: 100%; min-height: 300px; object-position: 50% 60%; }
  .pieces--externos .piece:first-child .piece-text { justify-content: center; padding: clamp(1.25rem, 3.1vw, 2.75rem); }
  .pieces--externos .piece:first-child .piece-text a { margin-top: 0; }
}

.material-story {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(1.5rem,5vw,4rem);
  background: var(--coast);
  color: var(--paper);
  padding: clamp(1.25rem,4vw,3.5rem);
}
.material-story h2 { margin: 0 0 .85rem; text-wrap: balance; }
.material-story p { max-width: 43ch; }
.material-story a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 600; }
.material-story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; display: block; }
.piece:target { outline: 2px solid var(--olive); outline-offset: 4px; }
@media (max-width: 740px) {
  .material-story { grid-template-columns: minmax(0,1fr); }
  .material-story img { grid-row: 1; }
}

.pieces--interiores .piece:first-child { grid-column: 1 / -1; }
.pieces--interiores .piece:first-child img { aspect-ratio: 16 / 9; object-position: center 62%; }
.pieces--externos .piece:nth-child(2) img { object-position: center 70%; }
.pieces--decoracao .piece:first-child img { object-position: center 60%; }

@media (min-width: 1024px) {
  .pieces--interiores,.pieces--decoracao { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.material-story a:focus-visible { outline-color: #e9bf9e; }
.collection-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.collection-nav a[aria-current="page"] { color: var(--clay); text-decoration-thickness: 2px; }
.pieces--interiores .piece:nth-child(2) img { object-position: center 72%; }
.pieces--interiores .piece:nth-child(4) img { object-position: center 63%; }
.pieces--decoracao .piece:nth-child(3) img { object-position: center 40%; }
@media (min-width: 1024px) {
  .collections { grid-template-columns: minmax(0,1.08fr) minmax(0,1.22fr) minmax(0,.96fr); align-items: stretch; }
  .collections a { display: grid; grid-template-rows: auto 1fr; }
  .collections img { aspect-ratio: auto; height: clamp(185px,18vw,250px); }
}

.hero-heading .hero-actions { margin-top: clamp(.65rem,2vw,1.5rem); gap: .25rem 1rem; }
.hero-heading .hero-actions a { font-size: .93rem; }
.hero-note { margin-top: .65rem; }
.collection-intro { max-width: 65ch; color: var(--muted); }
.photo-dialog { max-width: min(94vw, 1080px); max-height: 94vh; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.photo-dialog::backdrop { background: rgb(19 28 26 / 80%); }
.photo-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; }
.photo-dialog-bar h2 { margin: 0; font-size: clamp(1rem,3vw,1.55rem); }
.photo-dialog img { display: block; max-height: 77vh; max-width: 100%; object-fit: contain; margin-inline: auto; }
.photo-dialog-close { padding: .5rem .75rem; min-height: 44px; background: var(--paper); color: var(--coast); border: 1px solid var(--coast); font: inherit; cursor: pointer; }
.photo-dialog-close:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
@media (max-width: 900px) {
  .hero-photo img { aspect-ratio: 16 / 10; object-position: 54% 57%; }
}

.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav a:hover,.site-nav a[aria-current] { color: var(--clay); text-decoration: underline; }
.header-contact { display: inline-flex; align-items: center; min-height: 44px; }
.footer-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem 2rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.footer-main p { margin: 0 0 .35rem; }
.footer-main a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-main .footer-links { justify-content: flex-end; }
.furniture-card:nth-child(2) img { object-position: center 68%; }
@media (max-width: 620px) {
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .15rem .75rem; padding-block: .55rem; }
  .site-header .site-nav { grid-column: 1; grid-row: 2; }
  .header-contact { grid-column: 2; grid-row: 2; justify-self: end; padding: .45rem .65rem; font-size: .87rem; }
  .footer-main { grid-template-columns: minmax(0,1fr); }
  .footer-main .footer-links { justify-content: flex-start; }
}

.contact-form-section { margin-top: 2rem; max-width: 36rem; }
.contact-form:not([hidden]) { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .25rem; }
.contact-form input:not([type=checkbox]),.contact-form textarea { width: 100%; padding: .65rem; border: 1px solid var(--muted); background: #fff; color: var(--ink); font: inherit; }
.contact-form label.contact-human { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.contact-human input { width: 1.15rem; height: 1.15rem; }
.contact-form button { justify-self: start; min-height: 44px; border: 0; font: inherit; cursor: pointer; }
.contact-result { margin: 0; }

.privacy-settings { display: block; margin: 0 0 .75rem; border: 0; background: none; padding: 0; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }
.privacy-settings[hidden],.analytics-preferences[hidden] { display: none; }
.analytics-preferences { position: fixed; z-index: 4; inset: auto 1rem 1rem auto; width: min(24rem, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 5px 24px #263d4330; }
.analytics-preferences p { margin: 0 0 .65rem; }
.analytics-preferences button { min-height: 44px; border: 1px solid var(--coast); padding: .4rem .8rem; color: var(--coast); background: var(--paper); font: inherit; cursor: pointer; }

.responsive-photo { display: contents; }

.social-preview { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
