/*  
Theme Name: P_Arte
Theme URI: 
Description: Hous360
Author: Hous Mídia Interativa
Author URI: http://www.hous.com.br/
Version: 1.0.0
*/

/* ---------------------------
   Reset / base
   --------------------------- */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
figure {
  margin: 0 0 1.25rem;
}
.wp-block {
  margin-bottom: 1.25rem;
}

/* ---------------------------
   Align helpers (alignleft/alignright/aligncenter)
   --------------------------- */
.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
  max-width: 50%;
}
.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
  max-width: 50%;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Full & wide (Gutenberg blocks) */
.alignwide {
  width: calc(100% + 6rem);
  max-width: none;
  margin-left: -3rem;
  margin-right: -3rem;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

/* Clear floats where needed */
.clear {
  clear: both;
}

/* ---------------------------
   Captions (wp-caption / wp-caption-text)
   --------------------------- */
.wp-caption {
  max-width: 100%;
  padding: 0.35rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  margin: 0 0 1rem;
}
.wp-caption img {
  margin: 0;
  display: block;
}
.wp-caption .wp-caption-text {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* ---------------------------
   Galleries
   --------------------------- */
.gallery {
  list-style: none;
  padding: 0;
  margin: 0 -0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.gallery-item {
  box-sizing: border-box;
  padding: 0 0.5rem;
  width: 33.3333%; /* 3 columns default */
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive gallery columns */
@media (max-width: 900px) {
  .gallery-item {
    width: 50%;
  } /* 2 columns */
}
@media (max-width: 480px) {
  .gallery-item {
    width: 100%;
  } /* 1 column */
}

/* ---------------------------
   Entry content (posts/pages)
   --------------------------- */
.entry-content p {
  margin: 0 0 1rem;
  line-height: 1.65;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.25rem 0 0.5rem;
  line-height: 1.25;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1rem 1.25rem;
}

/* Blockquote */
blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

/* ---------------------------
   Buttons (simples)
   --------------------------- */
a.button,
button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  background: #0073aa;
  color: #fff;
}
a.button.secondary,
.button.secondary {
  background: #f3f3f3;
  color: #333;
  border-color: #ddd;
}
a.button:focus,
button:focus {
  outline: 3px solid rgba(0, 115, 170, 0.18);
  outline-offset: 2px;
}

/* ---------------------------
   Accessibility helpers
   --------------------------- */
/* Screen reader only (WP standard) */
.screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
/* When visible (for focus) */
.screen-reader-text:focus {
  position: static;
  height: auto;
  width: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ---------------------------
   Media & embeds
   --------------------------- */
.entry-content .wp-video,
.entry-content .wp-audio,
.entry-content iframe {
  max-width: 100%;
}

/* Responsive embed wrapper */
.wp-embed-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.wp-embed-responsive iframe,
.wp-embed-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------------------------
   Misc helpers
   --------------------------- */
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Simple utility spacing */
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.p-0 {
  padding: 0 !important;
}

/* ---------------------------
   Form & input basics
   --------------------------- */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* ---------------------------
   Small screens: clear floats
   --------------------------- */
@media (max-width: 600px) {
  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 0 0 1rem;
    max-width: 100%;
  }
  .alignwide {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .alignfull {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}
