/* =========================================================
   Studio Gláucia Furghestti — Arquitetura e Interiores
   ========================================================= */

:root {
  --petrol: #1E4A5B;
  --petrol-deep: #173A48;
  --petrol-ink: #12303B;
  --ink: #1D2C32;
  --muted: #5D6D72;
  --paper: #F7F4EF;
  --sand: #EDE5DA;
  --wood: #A9876A;
  --line: rgba(30, 74, 91, .16);
  --line-light: rgba(255, 255, 255, .22);

  --f-brand: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
strong { font-weight: 500; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--petrol); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------- Logo (SVG) ---------- */
.logo { display: block; color: currentColor; overflow: visible; }
#logo text { fill: currentColor; font-family: var(--f-brand); }
.lg-studio { font-size: 94px; font-weight: 200; }
.lg-name { font-size: 114px; font-weight: 300; }
.lg-tag { font-size: 64px; font-weight: 300; }

/* ---------- Tipografia comum ---------- */
.eyebrow {
  font-family: var(--f-brand);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow--light { color: rgba(255,255,255,.82); }
.eyebrow .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid currentColor;
  font-size: 11px; letter-spacing: .08em;
  padding-top: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 300; }

h2 {
  font-family: var(--f-brand);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--petrol-ink);
}
h2 em { font-size: 1.12em; color: var(--petrol); letter-spacing: 0; }

.section { padding: clamp(80px, 11vw, 150px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-lead { color: var(--muted); margin: 22px 0 0; max-width: 560px; }
.section-head--light h2 { color: #fff; }
.section-head--light h2 em { color: #DCE7EA; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  font-family: var(--f-brand);
  font-size: 13px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  padding-top: 16px; /* compensa a linha de base da Josefin */
}
.btn--solid-light { background: #fff; color: var(--petrol-ink); border-color: #fff; }
.btn--solid-light:hover { background: transparent; color: #fff; }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--petrol-ink); border-color: #fff; }
.btn--outline { color: var(--petrol); border-color: var(--petrol); text-transform: none; letter-spacing: .06em; font-size: 15px; }
.btn--outline:hover { background: var(--petrol); color: #fff; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(247, 244, 239, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--petrol);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: block; text-decoration: none; }
.brand .logo { height: 50px; width: auto; aspect-ratio: 1040 / 355; transition: height .4s var(--ease); }
.is-scrolled .brand .logo { height: 42px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a {
  font-family: var(--f-brand);
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0 4px;
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; padding: 11px 18px 9px !important; transition: background-color .3s, color .3s; }
.nav-cta:hover { background: #fff; color: var(--petrol-ink); }
.is-scrolled .nav-cta:hover { background: var(--petrol); color: #fff; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--petrol);
}
.hero-panel {
  position: relative;
  background: var(--petrol);
  color: #fff;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) clamp(24px, 5vw, 80px) 72px var(--gutter);
  z-index: 2;
}
.hero-text { max-width: 480px; position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--f-brand);
  font-weight: 300;
  font-size: clamp(48px, 5.8vw, 86px);
  line-height: 1.04;
  letter-spacing: -.005em;
  max-width: 9em;
  margin: 8px 0 28px;
}
.hero-lead { color: rgba(255,255,255,.82); margin: 0 0 36px; max-width: 420px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-square {
  position: absolute;
  right: -90px; bottom: 15%;
  width: 180px; height: 180px;
  border: 1px solid rgba(255,255,255,.7);
  pointer-events: none;
  z-index: 3;
}

.hero-media { position: relative; overflow: hidden; background: var(--petrol-deep); }
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, rgba(18,48,59,.55), transparent);
  pointer-events: none;
}
.hero-meta {
  position: absolute; left: clamp(110px, 9vw, 140px); right: var(--gutter); bottom: 32px;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #fff;
}
.hero-caption {
  font-family: var(--f-brand);
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.hero-dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(255,255,255,.45);
  transition: background-color .3s, height .3s;
}
.hero-dots button[aria-selected="true"]::before { background: #fff; height: 2px; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(80px, 10vw, 140px) 0 0; }
.manifesto-text {
  font-family: var(--f-brand);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.38;
  color: var(--petrol-ink);
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-text em { color: var(--wood); font-size: 1.1em; }

/* ---------- Projetos ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2.2vw, 32px);
}
.p-living  { grid-column: 1 / span 7; }
.p-lavabo  { grid-column: 8 / span 5; }
.p-suite   { grid-column: 1 / span 4; }
.p-castelo { grid-column: 5 / span 4; }
.p-banheiro{ grid-column: 9 / span 4; }

.p-living .project-img,
.p-lavabo .project-img { aspect-ratio: auto; height: clamp(340px, 44vw, 600px); }
.p-suite .project-img,
.p-castelo .project-img,
.p-banheiro .project-img { aspect-ratio: 4 / 5; }

.project-open {
  display: block; width: 100%;
  padding: 0; margin: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}
.project-img {
  position: relative; display: block; overflow: hidden;
  background: var(--sand);
}
.project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.project-img::after {
  content: "Ver projeto";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  padding: 15px 22px 12px;
  border: 1px solid #fff; color: #fff;
  font-family: var(--f-brand); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  background: rgba(18, 48, 59, .38);
  opacity: 0;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.project-open:hover .project-img img,
.project-open:focus-visible .project-img img { transform: scale(1.045); }
.project-open:hover .project-img::after,
.project-open:focus-visible .project-img::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num title count" "num tag count";
  column-gap: 16px;
  padding-top: 18px;
  align-items: baseline;
}
.project-num {
  grid-area: num;
  font-family: var(--f-brand); font-size: 12px; letter-spacing: .1em;
  color: var(--wood);
  align-self: start; padding-top: 4px;
}
.project-title {
  grid-area: title;
  font-family: var(--f-brand); font-size: 20px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--petrol-ink);
}
.project-tag { grid-area: tag; color: var(--muted); font-size: 15px; }
.project-count {
  grid-area: count; align-self: start;
  font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 4px;
}

/* ---------- O Studio ---------- */
.studio { background: var(--sand); }
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.studio-media { position: relative; }
.studio-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: relative; z-index: 1; }
.studio-frame {
  position: absolute; z-index: 0;
  inset: -28px 28px 28px -28px;
  border: 1px solid var(--petrol);
}
.studio-text p { margin: 0 0 18px; max-width: 560px; }
.studio-text h2 { margin-bottom: 30px; }
.pillars {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pillars li {
  padding: 22px 16px 0 0;
  font-size: 15px; color: var(--muted); line-height: 1.5;
}
.pillars li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.pillars span {
  display: block;
  font-family: var(--f-brand); font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--petrol-ink); margin-bottom: 6px;
}

/* ---------- Serviços ---------- */
.services { background: var(--petrol); color: #fff; position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute;
  width: 420px; height: 420px; right: -140px; top: -140px;
  border: 1px solid var(--line-light);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}
.service {
  padding: 40px clamp(18px, 2.2vw, 32px) 8px 0;
}
.service + .service { padding-left: clamp(18px, 2.2vw, 32px); border-left: 1px solid var(--line-light); }
.service-icon { display: block; width: 44px; height: 44px; margin-bottom: 28px; }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.2; }
.service h3 {
  font-family: var(--f-brand); font-weight: 400;
  font-size: 18px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35;
  margin-bottom: 14px;
}
.service p { margin: 0; color: rgba(255,255,255,.78); font-size: 16px; }

/* ---------- Processo ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  counter-reset: step;
}
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; left: 0; right: calc(-1 * clamp(16px, 2vw, 28px)); top: 0;
  height: 1px; background: var(--line);
}
.step:last-child::before { right: 0; }
.step::after {
  content: ""; position: absolute; left: 0; top: -4px;
  width: 9px; height: 9px; background: var(--petrol);
}
.step-n {
  display: block;
  font-family: var(--f-serif); font-style: italic;
  font-size: 44px; line-height: 1; color: var(--wood);
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--f-brand); font-weight: 400;
  font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol-ink); margin-bottom: 10px;
}
.step p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Instagram ---------- */
.insta { padding-top: 0; }
.insta-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.insta-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
.insta-strip a { display: block; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.insta-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.insta-strip a:hover img { transform: scale(1.06); opacity: .88; }

/* ---------- Contato ---------- */
.contact {
  background: var(--petrol-deep);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute;
  width: 300px; height: 300px; left: -150px; bottom: -190px;
  border: 1px solid var(--line-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.contact h2 { color: #fff; margin-bottom: 24px; }
.contact h2 em { color: #DCE7EA; }
.contact-text > p { color: rgba(255,255,255,.8); max-width: 460px; margin: 0 0 40px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.contact-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
}
.cl-label {
  font-family: var(--f-brand); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; word-break: break-word; }
.contact-list a:hover { border-color: #fff; }

.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-light);
  padding: clamp(24px, 3.4vw, 44px);
}
.field { display: flex; flex-direction: column; margin-bottom: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  font-family: var(--f-brand); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px;
  color: #fff;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  padding: 8px 0 10px;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; }
.field ::placeholder { color: rgba(255,255,255,.4); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 12px;
}
.field select option { color: var(--ink); }
.field.has-error input { border-color: #F0B3A6; }
.contact-form .btn { margin-top: 10px; }
.form-note { font-size: 13px; color: rgba(255,255,255,.55); margin: 14px 0 0; text-align: center; }
.form-error { font-size: 14px; color: #F7C9BF; margin: 10px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-ink); color: rgba(255,255,255,.75); padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "logo nav" "copy copy";
  align-items: center; gap: 36px 40px;
}
.logo--footer { grid-area: logo; height: 64px; width: auto; aspect-ratio: 1040 / 355; color: #fff; }
.footer-nav { grid-area: nav; display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  text-decoration: none; font-family: var(--f-brand); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  grid-area: copy; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 34, 42, .97);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px clamp(12px, 3vw, 40px) 18px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 14px; }
.lb-title {
  margin: 0; font-family: var(--f-brand); font-size: 18px; letter-spacing: .14em; text-transform: uppercase;
}
.lb-desc { margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.72); max-width: 760px; line-height: 1.55; }
.lb-close, .lb-nav {
  background: none; border: 1px solid rgba(255,255,255,.35); cursor: pointer;
  width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0;
  transition: background-color .3s, border-color .3s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.4; }
.lb-stage {
  position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.lb-img {
  max-width: calc(100% - 140px); max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  opacity: 1; transition: opacity .3s var(--ease);
  user-select: none;
}
.lb-img.is-loading { opacity: 0; }
.lb-bottom { display: flex; align-items: center; gap: 20px; padding-top: 14px; }
.lb-count { font-family: var(--f-brand); font-size: 13px; letter-spacing: .2em; white-space: nowrap; min-width: 56px; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.lb-thumbs button {
  flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 1px solid transparent;
  background: none; cursor: pointer; opacity: .45; transition: opacity .3s, border-color .3s;
}
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.lb-thumbs button:hover { opacity: .85; }
body.no-scroll { overflow: hidden; }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-slide img { transition: none !important; transform: none !important; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 32px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .step::before { right: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }

  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    background: var(--petrol);
    color: #fff;
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: 17px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .brand, .menu-open .menu-btn { position: relative; z-index: 2; }
  .brand .logo, .is-scrolled .brand .logo { height: 40px; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero-media { order: -1; height: 62vh; height: 62svh; min-height: 360px; }
  .hero-panel { padding: 56px var(--gutter) 72px; }
  .hero-square { display: none; }
  .hero-meta { left: var(--gutter); bottom: 20px; }

  .projects { grid-template-columns: 1fr 1fr; }
  .p-living { grid-column: 1 / -1; }
  .p-lavabo { grid-column: 1 / span 1; }
  .p-suite { grid-column: 2 / span 1; }
  .p-castelo { grid-column: 1 / span 1; }
  .p-banheiro { grid-column: 2 / span 1; }
  .p-living .project-img { height: auto; aspect-ratio: 4 / 3; }
  .p-lavabo .project-img { height: auto; aspect-ratio: 4 / 5; }

  .studio-grid { grid-template-columns: 1fr; }
  .studio-media { max-width: 520px; margin-left: 28px; }

  .contact-grid { grid-template-columns: 1fr; }
  .insta-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .lg-tag { display: none; }
  .site-footer .lg-tag { display: inline; }

  .hero h1 { font-size: 52px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-caption { font-size: 11px; letter-spacing: .18em; }

  .projects { grid-template-columns: 1fr; }
  .p-living, .p-lavabo, .p-suite, .p-castelo, .p-banheiro { grid-column: 1 / -1; }
  .project-title { font-size: 18px; }

  .pillars { grid-template-columns: 1fr; }
  .pillars li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }

  .service-grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0 4px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line-light); margin-top: 28px; }
  .service:nth-child(n+3) { margin-top: 28px; }

  .steps { grid-template-columns: 1fr; row-gap: 36px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; grid-template-areas: "logo" "nav" "copy"; }
  .footer-nav { justify-content: flex-start; gap: 18px 24px; }

  .lb-img { max-width: 100%; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(14,34,42,.6); width: 42px; height: 42px; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .lb-thumbs button { width: 52px; height: 40px; }
}

/* sombra suave no topo da foto do hero para o menu ficar legível */
.hero-media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 1;
  background: linear-gradient(to bottom, rgba(18,48,59,.55), transparent);
  pointer-events: none;
}
