/* Minimalist P&B portfolio — mobile-first */
:root{
  /* Colors */
  --bg: #fff;
  --fg: #111;
  --muted: #666;
  --accent: #000;
  --border: rgba(0,0,0,0.08);
  --green: #04a701;
  
  /* Layout */
  --max-width: 1400px;
  --container-padding: clamp(1.5rem, 5vw, 3rem);
  --gutter: clamp(1.5rem, 3vw, 2rem);
  --grid-gap: var(--gutter);
  --grid-columns: 12;
  
  /* Components */
  --radius: 2px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --header-height: 60px;
  --section-spacing: clamp(4rem, 10vh, 8rem);
  
  /* Mobile-specific */
  --mobile-button-height: 44px;
  --mobile-input-height: 48px;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-card-padding: 1.25rem;
}

/* Base resets and overflow prevention */
html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

::selection {
  background-color: #d6e4ff; /* cor de fundo da seleção */
  color: #0B2559; /* cor do texto selecionado */
}

/* Para navegadores baseados em Firefox */
::-moz-selection {
  background-color: #d6e4ff;
  color: #0B2559;
}


body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Container and section improvements */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fix for iOS viewport height */
@supports (-webkit-touch-callout: none) {
  .min-h-screen {
    min-height: -webkit-fill-available;
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color:var(--fg);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  letter-spacing:0.02em;
  scroll-behavior:smooth;
}

.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 1rem;
}

/* Typography */
.brand{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.12em;
  position: relative;
  padding: 0.5rem 0;
  text-align: center;
}
.brand .dot{
  color:var(--accent);
  opacity:0.9;
  display: inline-block;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  50% { opacity: 0.5; transform: scale(1.2); }
}

h1,h2,h3{
  font-family:'Cormorant Garamond', serif; 
  margin:0 0 .5rem 0;
  font-weight: 600;
  line-height: 1.1;
}
.lead{
  font-size:clamp(1.1rem, 1.5vw, 1.25rem);
  color:var(--muted);
  max-width:65ch;
  line-height: 1.6;
}
.section-title{
  font-size:clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom:2rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

/* Header */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  width: 100%;
  z-index: 40;
  background: rgba(255,255,255,0.98);
  height: var(--header-height, 60px);
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .site-header {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
  }
}
.site-header.scrolled{
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.site-header .container{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.nav {
  display: none;
}

.whatsapp-button {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--bg);
  border-radius: 22px;
  padding: 0 20px;
  transition: all 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.whatsapp-text {
  display: none;
}

/* Mobile styles */
@media (max-width: 767px) {
  .whatsapp-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
}

/* Desktop styles */
@media (min-width: 768px) {
  .whatsapp-text {
    display: inline-block;
  }
}

@media (hover: none) {
  .whatsapp-button:active {
    transform: scale(0.95);
    box-shadow: none;
  }
}
.site-header.scrolled .brand {
  transform: scale(0.9);
}

.nav__list{display:none}

/* Hamburger */
.hamburger{
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin-right: -8px;
}
.hamburger__box{
  width: 24px;
  height: 20px;
  display: inline-block;
  position: relative;
}
.hamburger__inner{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s var(--ease),
              opacity 0.2s var(--ease);
}
.hamburger__inner::before,
.hamburger__inner::after{
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s var(--ease),
              opacity 0.2s var(--ease);
}
.hamburger__inner::before{top: -6px}
.hamburger__inner::after{top: 6px}

.hamburger.open .hamburger__inner{
  transform: rotate(45deg);
}
.hamburger.open .hamburger__inner::before{
  transform: translateY(6px) rotate(-90deg);
  opacity: 1;
}
.hamburger.open .hamburger__inner::after{
  transform: translateY(-6px) rotate(-90deg);
  opacity: 1;
}

/* Overlay menu */
.menu-overlay{
  position: fixed;
  inset: var(--header-height, 60px) 0 0 0;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease);
}
.menu-overlay.open{
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.overlay__list{
  list-style: none;
  padding: 2rem var(--gutter);
  margin: 0;
  width: 100%;
}
.overlay__list li{
  margin: 0;
  transform: translateY(10px);
  opacity: 0;
  border-bottom: 1px solid var(--border);
}
.overlay__list li:last-child {
  border-bottom: none;
}
.overlay__list a{
  color: inherit;
  font-size: 1.25rem;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  padding: 1rem 0;
  display: block;
  position: relative;
}
.overlay__list a::after {
  content: '→';
  position: absolute;
  right: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--ease);
}
.overlay__list a:active::after {
  opacity: 1;
  transform: none;
}
.menu-overlay.open li {
  animation: overlayIn 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes overlayIn{
  to{
    transform: none;
    opacity: 1;
  }
}

/* Hero */
.hero{
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.hero__inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title{
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__subtitle{
  color: var(--muted);
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  max-width: 40ch;
  line-height: 1.6;
  text-align: center;
}
.hero__visual {
  position: relative;
}
.hero__visual::before {
  content: '';
  position: absolute;
  inset: -1rem;
  border: 1px solid var(--border);
  z-index: -1;
  opacity: 0.5;
}
.hero__visual img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: filter 0.6s var(--ease);
}
.hero__visual:hover img {
  filter: contrast(1.1) grayscale(0%);
}

/* Gallery */
.gallery {
  --gallery-bg: rgba(0,0,0,0.02);
  position: relative;
  padding: var(--section-spacing) 0;
  background: var(--gallery-bg);
  width: 100%;
  overflow: hidden;
}

.gallery__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: calc(var(--radius) * 2);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  aspect-ratio: 4/3;
  display: block;
  margin: 0;
}
.gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0));
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s var(--ease);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: all 0.5s var(--ease);
  transform-origin: center;
  will-change: transform, filter;
  margin: 0;
  padding: 0;
}

/* Touch device interactions */
@media (hover: none) {
  .gallery__item:active::before {
    opacity: 1;
  }
  .gallery__item:active img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.02);
  }
}

/* Hover device interactions */
@media (hover: hover) {
  .gallery__item:hover::before {
    opacity: 1;
  }
  .gallery__item:hover img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.02);
  }
}

/* Tablet+ layout */
@media (min-width: 580px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Desktop layout */
@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Pricing section */
.pricing {
  padding: var(--section-spacing) 0;
  background: var(--bg);
}

.pricing__grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s var(--ease);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.price-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.price-card__header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-card__header .price {
  font-size: 2rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
  font-weight: 600;
}

.price-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.price-card__features li {
  padding: 0.75rem 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card__features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

.pricing__info {
  margin-top: 4rem;
  padding: 2rem;
  background: rgba(0,0,0,0.02);
  border-radius: var(--radius);
}

.pricing__info p {
  margin: 0.75rem 0;
  color: var(--muted);
}

.pricing__info strong {
  color: var(--fg);
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
  }
}

/* Services section */
.services {
  padding: var(--section-spacing) 0;
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin-top: 3rem;
  width: 100%;
}

.service {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--bg);
}

.service__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.03);
  color: var(--fg);
}

.service__icon img {
  width: 24px;
  height: 24px;
}

.service__content {
  flex: 1;
}

.service h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.service p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
  margin: 0;
}

/* Service hover/active states */
@media (hover: hover) {
  .service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.12);
  }
}

@media (hover: none) {
  .service:active {
    transform: scale(0.98);
    background: rgba(0,0,0,0.01);
  }
}

/* Tablet breakpoint */
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0;
  }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .service {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    text-align: center;
    padding: 2rem;
  }
  
  .service__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
  }
}



/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--mobile-button-height);
  padding: 0 1.5rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: transform 0.3s var(--ease);
  min-width: 140px;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
  .btn:active {
    transform: scale(0.96);
  }
}
.btn::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--fg);
  opacity: 0.08;
  transition: width 0.4s var(--ease);
}
.btn:hover{
  transform: translateY(-2px);
}
.btn:hover::before{
  width: 100%;
}
.btn--primary{
  background: var(--fg);
  color: var(--bg);
}
.btn--primary::before{
  background: white;
  opacity: 0.1;
}

/* Fade-in on scroll */
[data-animate]{opacity:0;transform:translateY(14px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
[data-animate].in-view{opacity:1;transform:none}

/* Larger screens */
@media(min-width:768px){
  .hero__content {
    text-align: left;
    align-items: flex-start;
  }
  .hero__subtitle {
    text-align: left;
  }
  .nav {
    display: block;
  }
  .nav__list{
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
  }
  .nav__list a{
    text-decoration: none;
    color: var(--fg);
    position: relative;
    padding: .5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }
  .nav__list a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 0.3s var(--ease);
  }
  .nav__list a:hover::after{
    width: 100%;
  }
  .hamburger{
    display: none;
  }

  .hero__inner{
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery{
    padding: var(--section-spacing) 0;
  }
  .gallery__grid{
    grid-template-columns: repeat(3,1fr);
  }
  .services__grid{
    grid-template-columns: repeat(4,1fr);
  }

  
  .section-title::after {
    width: 3rem;
  }
}

@media(min-width:1200px){
  .hero{
    padding-top: calc(var(--header-height) + 2rem);
  }
  .hero__inner{
    gap: 6rem;
  }
  
  :root {
    --section-spacing: clamp(6rem, 15vh, 10rem);
  }
}

/* Gallery captions */
.gallery__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}

.gallery__item:hover .gallery__caption,
.gallery__item:active .gallery__caption {
  opacity: 1;
  transform: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  place-items: center;
  padding: 1rem;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.modal.open {
  display: grid;
}

.modal__content {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal h2 {
  margin-bottom: 1.5rem;
}

.modal form {
  display: grid;
  gap: 1rem;
}

.modal label {
  display: grid;
  gap: 0.5rem;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.modal__close:hover {
  color: var(--fg);
}

/* utilities */
.hidden{display:none}

/* small touches */
.site-footer{padding:2rem 0;text-align:center;border-top:1px solid rgba(0,0,0,0.04);font-size:.9rem}

/* lock scroll when menu open */
.body-lock{height:100%;overflow:hidden}

.hero.hero-fullscreen {
  background-image: url('../assets/back.png');
  background-size: cover;
  background-position: center center;
  color: white; /* Adjust text color for better contrast */
}

@media (max-width: 767px) {
  .hero.hero-fullscreen {
    background-image: url('../assets/backmob.png');
    padding-top: calc(var(--header-height) + 16rem); /* Increased padding for mobile */
  }
}

.hero.hero-fullscreen .hero__visual {
  display: none; /* Hide the original image */
}

.hero.hero-fullscreen .hero__subtitle,
.hero.hero-fullscreen .hero__title {
  color: white;
}

.hero.hero-fullscreen .btn {
  background-color: white;
  color: #111;
}

.site-header.transparent-header {
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.site-header.transparent-header .brand,
.site-header.transparent-header .nav__list a {
  color: white;
}

.site-header.transparent-header .brand-icon {
  filter: brightness(0) invert(1);
}

.site-header.transparent-header .hamburger__inner,
.site-header.transparent-header .hamburger__inner::before,
.site-header.transparent-header .hamburger__inner::after {
    background: white;
}

.site-header.transparent-header .whatsapp-button {
  background-color: white;
  color: var(--green);
}

/* Adiciona um fundo branco ao header quando o menu está aberto */
.site-header.menu-open {
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--border);
}

/* Garante que a cor da marca e do ícone seja a padrão */
.site-header.menu-open .brand,
.site-header.menu-open .brand-icon {
  color: var(--fg);
  filter: none;
}

/* Garante que o hambúrguer seja visível em fundo branco */
.site-header.menu-open .hamburger__inner,
.site-header.menu-open .hamburger__inner::before,
.site-header.menu-open .hamburger__inner::after {
  background: var(--fg);
}

.site-header.menu-open .whatsapp-button {
  background-color: var(--green);
  color: white;
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 200;
  backdrop-filter: blur(8px);
  animation: lightboxIn 0.3s var(--ease);
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.lightbox__close {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  background: white;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--fg);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lightbox__close:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--accent);
  color: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px; /* espaço entre o ícone e o texto */
  text-decoration: none;
}

.brand-icon {
  width: 25px;   /* tamanho do ícone */
  height: 25px;  /* mantém proporcional */
  object-fit: contain; /* evita distorção */
}

/* Footer Logo */
.footer-logo {
  text-align: center;
  margin-bottom: 1.5rem;
  order: 0;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
}

/* Footer */
.site-footer {
  background: var(--bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  order: 1; /* Links first on mobile */
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  order: 2; /* Social icons second */
}

.footer-social a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.footer-social a:hover {
  color: var(--fg);
}

.footer-copyright {
    order: 3; /* Copyright last on mobile */
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For absolute positioning of links */
  }

  .footer-copyright {
    order: 1;
  }

  .footer-links {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Prevent wrapping */
  }

  .footer-social {
    order: 3;
  }
}

/* Gallery Controls */
.gallery-controls {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-wrapper {
  width: 100%;
}

#search-gallery {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

@media (min-width: 768px) {
  .gallery-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .search-wrapper {
    width: auto;
    min-width: 300px;
  }
}

/* Legal Content Pages */
.legal-content {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.legal-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content p,
.legal-content ul {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}