/*
Theme Name: Amom Portfolio
Theme URI: https://github.com/amom/amom-portfolio
Author: Amom Souza
Author URI: https://amomsouza.com
Description: Tema de portfólio responsivo convertido de HTML5. Header e footer editáveis pelo Personalizador. Projetos em modal, página Sobre e Contato (Contact Form 7), blog com cards e comentários.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amom-portfolio
*/

/* Fonte Montserrat em todo o site (herda para conteúdo do tema; Elementor pode sobrescrever por widget) */
body {
  font-family: 'Montserrat', sans-serif;
}

/* Header & Footer logos */
.amom-header-logo {
  max-height: 3rem;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}
.amom-footer-logo {
  max-height: 4rem;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Custom utilities (animations and overrides) */
.tap-highlight-transparent {
  -webkit-tap-highlight-color: transparent;
}

.smooth-edges {
  -webkit-backface-visibility: hidden;
}

.animate-wave {
  animation-name: amom-wave;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes amom-wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.animate-fade-in {
  animation: amom-fade-in 0.5s ease-out forwards;
}

@keyframes amom-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Project modal */
.amom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.amom-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.amom-modal-box {
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  background: var(--amom-bg, #fff);
  color: var(--amom-text, #111);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.amom-modal-overlay.is-open .amom-modal-box {
  transform: scale(1);
}

.amom-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Form 7 - same design as site */
.wpcf7-form-control-wrap { display: block; margin-bottom: 0.5rem; }
.wpcf7 input[type="email"],
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 textarea { min-height: 150px; resize: vertical; }

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.wpcf7 input[type="submit"] {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wpcf7 input[type="submit"]:hover { opacity: 0.9; }

.dark .wpcf7 input[type="email"],
.dark .wpcf7 input[type="text"],
.dark .wpcf7 textarea {
  background: #262626;
  border-color: #404040;
  color: #fff;
}

.dark .wpcf7 input[type="submit"] {
  background: #fff;
  color: #000;
}

/* Blog cards */
.amom-card {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s, transform 0.3s;
}

.amom-card:hover {
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.dark .amom-card { border-color: #404040; }

.amom-card__image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.amom-card__body { padding: 1.25rem; }

.amom-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.amom-card__meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.dark .amom-card__meta { color: #9ca3af; }

.amom-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #4b5563;
}

.dark .amom-card__excerpt { color: #d1d5db; }

/* Share links */
.amom-share { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.amom-share a {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.amom-share a:hover { background: #e5e7eb; color: #111; }
.dark .amom-share a { background: #374151; color: #e5e7eb; }
.dark .amom-share a:hover { background: #4b5563; color: #fff; }

/* Portfolio Masonry - layout tipo masonry independente do tamanho da imagem */
.amom-masonry {
  column-count: 2;
  column-gap: 0.5rem;
  width: 100%;
}
@media (min-width: 768px) {
  .amom-masonry {
    column-count: 3;
    column-gap: 0.5rem;
  }
}
.amom-masonry-item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  overflow: hidden;
  page-break-inside: avoid;
}
.amom-masonry-item .amom-project-trigger {
  display: block;
  width: 100%;
  line-height: 0;
}
.amom-masonry-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  vertical-align: middle;
}
.amom-masonry-item:hover .amom-masonry-img {
  transform: scale(1.05);
}

/* Comment form - same design as contact */
.amom-comment-form input[type="text"],
.amom-comment-form input[type="email"],
.amom-comment-form input[type="url"],
.amom-comment-form textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
}
.dark .amom-comment-form input[type="text"],
.dark .amom-comment-form input[type="email"],
.dark .amom-comment-form input[type="url"],
.dark .amom-comment-form textarea {
  background: #262626;
  border-color: #404040;
  color: #fff;
}

/* Pagination */
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0; }
.pagination .page-numbers { padding: 0.5rem 1rem; border-radius: 0.375rem; background: #f3f4f6; color: #374151; text-decoration: none; }
.pagination .page-numbers:hover { background: #e5e7eb; }
.pagination .page-numbers.current { background: #000; color: #fff; }
.dark .pagination .page-numbers { background: #374151; color: #e5e7eb; }
.dark .pagination .page-numbers.current { background: #fff; color: #000; }

/* Página Sobre – texto do campo personalizado */
.amom-sobre-texto {
  line-height: 1.6;
}
.amom-sobre-texto br {
  display: block;
  margin-bottom: 0.5em;
}
