/* ================================================================
   ETERNIZANDO FOTO ÍMÃS – styles.css
   Paleta: verde-escuro #1a3c2f, bege #f5efe6, dourado #c9a84c
   ================================================================ */

/* ============ RESET E BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background-color: #d4c9b8;
  color: #1a3c2f;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============ WRAPPER CENTRAL ============ */
/* Um único bloco que envolve header, main e footer,
   permitindo que o Fundo.png seja contínuo em toda a página */
.page-wrapper {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-image: url('assets/Fundo.png');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  background-color: #f5efe6;
}

/* Header, main e footer não têm max-width próprio – herdam do wrapper */
.site-header,
.site-main,
.site-footer {
  width: 100%;
}

/* ============ CABEÇALHO ============ */
.site-header {
  display: block;
  line-height: 0;
}

.header-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ============ PÁGINA PRINCIPAL ============ */
.site-main {
  padding: 0;
  /* Sem background próprio: o Fundo.png do .page-wrapper cobre esta área */
  background: transparent;
}

/* ============ TEXTO INSTITUCIONAL ============ */
.institutional-text {
  text-align: center;
  padding: 22px 24px 6px;
}

.institutional-phrase {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-style: italic;
  color: #1a3c2f;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.ornament {
  display: none;
}

/* ============ CARDS ============ */
.cards-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 12px 14px;
}

.card-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.card-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.card-btn:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
  border-radius: 4px;
}

.card-btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


/* ============ REDES SOCIAIS ============ */
.social-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 12px 16px 14px;
}

.social-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  outline: none;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
  border-radius: 50%;
}

.social-link--disabled {
  opacity: 0.6;
  cursor: default;
}

.social-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* ============ RODAPÉ ============ */
/* .site-footer herda largura do .page-wrapper – sem max-width próprio */
.site-footer {
  /* remove más herdanças antigas */
}

.footer-bg-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.footer-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 16px clamp(12px, 3.5vw, 20px);
  line-height: normal;
}

.footer-logo {
  width: clamp(100px, 38%, 150px);
  height: auto;
  object-fit: contain;
  margin-top: auto;
  margin-bottom: clamp(40px, 10vw, 60px);
}

.footer-credit {
  color: #F7E8D4;
  font-size: clamp(0.7rem, 2.2vw, 0.82rem);
  text-align: center;
  font-family: 'Georgia', serif;
  margin: 0;
}

.footer-nexden {
  color: #F7E8D4;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.72rem, 2.2vw, 0.85rem);
  transition: opacity 0.15s;
}

.footer-nexden:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.footer-nexden:focus-visible {
  outline: 2px solid #F7E8D4;
  outline-offset: 2px;
}

/* ================================================================
   MODAIS
   ================================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.modal.is-open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 20, 0.72);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: #faf6f0;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: #1a3c2f;
  color: #f5efe6;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: #c9a84c;
}

.modal-close:focus-visible {
  outline: 3px solid #c9a84c;
}

.modal-header {
  padding: 24px 20px 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

.modal-title {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: #1a3c2f;
  margin-bottom: 6px;
  padding-right: 40px;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  color: #5a6e60;
  font-style: italic;
  line-height: 1.4;
}

/* Corpo com rolagem interna */
.modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Rodapé fixo do modal de formulário */
.modal-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  background: #faf6f0;
  flex-shrink: 0;
}

/* ============ SELEÇÃO DE SERVIÇO ============ */
.service-picker {
  margin-bottom: 4px;
}

.service-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-opt {
  background: #fff;
  border: 2px solid #d6c9b0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1rem;
  color: #1a3c2f;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: 'Georgia', serif;
}

.service-opt:hover {
  border-color: #c9a84c;
  background: #fdf7eb;
}

.service-opt:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
}

.service-opt.selected {
  border-color: #1a3c2f;
  background: #1a3c2f;
  color: #f5efe6;
}

/* ============ FORMULÁRIOS ============ */
.orcamento-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.orcamento-form.hidden {
  display: none;
}

.service-picker.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.form-section-title {
  font-size: 1.05rem;
  color: #1a3c2f;
  margin-bottom: 4px;
  font-weight: bold;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.88rem;
  color: #1a3c2f;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  border: 1.5px solid #c5b99a;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 1rem;
  color: #1a3c2f;
  background: #fff;
  font-family: 'Georgia', serif;
  transition: border-color 0.15s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a3c2f;
  box-shadow: 0 0 0 3px rgba(26, 60, 47, 0.12);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.optional {
  color: #8a9e8e;
  font-weight: 400;
  font-size: 0.8rem;
}

/* Casal – noiva & noivo lado a lado */
.form-row-couple {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.form-group--half {
  flex: 1;
}

.couple-ampersand {
  font-size: 1.4rem;
  color: #c9a84c;
  font-weight: bold;
  padding-bottom: 11px;
  flex-shrink: 0;
  line-height: 1;
  align-self: flex-end;
}

@media (max-width: 380px) {
  .form-row-couple {
    flex-direction: column;
    align-items: stretch;
  }

  .couple-ampersand {
    text-align: center;
    padding-bottom: 0;
    font-size: 1.1rem;
  }
}

.form-helper-text {
  font-size: 0.85rem;
  color: #6b7e70;
  font-style: italic;
  margin-bottom: 4px;
}

/* ============ ERRO DE VALIDAÇÃO ============ */
.form-error {
  background: #fde8e8;
  border: 1.5px solid #e74c3c;
  border-radius: 8px;
  padding: 12px 14px;
  color: #c0392b;
  font-size: 0.88rem;
  margin-top: 6px;
  line-height: 1.5;
}

/* ============ BOTÕES ============ */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  background: #1a3c2f;
  color: #f5efe6;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: clamp(0.78rem, 3.2vw, 0.94rem);
  font-family: 'Georgia', serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  box-sizing: border-box;
  transition: background 0.15s, transform 0.1s;
}

.btn-whatsapp:hover {
  background: #25a244;
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.btn-whatsapp:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
}

.whatsapp-btn-icon {
  width: clamp(16px, 3.8vw, 19px);
  height: clamp(16px, 3.8vw, 19px);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.btn-whatsapp-text {
  white-space: nowrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: #1a3c2f;
  border: 2px solid #1a3c2f;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: clamp(0.82rem, 3vw, 0.92rem);
  font-family: 'Georgia', serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-secondary:hover {
  background: #1a3c2f;
  color: #f5efe6;
}

.btn-secondary:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
}

.modal-gallery-cta {
  margin-top: 14px;
}

/* ============ CARROSSEL DE PORTFÓLIO ============ */
.carousel-component {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.carousel-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 60, 47, 0.9);
  color: #f7e8d4;
  border: 1px solid rgba(201, 168, 76, 0.5);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, opacity 0.2s, box-shadow 0.15s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:hover {
  background: #1a3c2f;
  color: #c9a84c;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

.carousel-arrow--prev {
  left: -4px;
}

.carousel-arrow--next {
  right: -4px;
}

.carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  gap: 12px;
  user-select: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

/* Indicadores de posição (Dots) */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 2px 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6c9b0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-dot:hover {
  background: #b5a485;
}

.carousel-dot.active {
  background: #1a3c2f;
  width: 20px;
  border-radius: 4px;
}

.carousel-dot:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* Slides do Antes e Depois no carrossel */
.ba-slide {
  max-width: 440px;
  margin: 0 auto;
}

.ba-slide .before-after-pair {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Slides das Galerias de Casamento e Aniversário */
.gallery-slide-card {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-card-item {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e0d0;
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 0;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.gallery-card-item:hover {
  transform: scale(1.015);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.gallery-card-item:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slide-label {
  text-align: center;
  font-size: 0.85rem;
  color: #1a3c2f;
  font-weight: 600;
  font-style: italic;
  font-family: 'Georgia', serif;
}

/* Placeholder visual para imagens provisórias */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #e8e0d0, #d6cbb5);
  color: #5a6e60;
  text-align: center;
}

.gallery-placeholder .placeholder-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.gallery-placeholder .placeholder-label {
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.3;
  opacity: 0.8;
}

/* ============ ANTES E DEPOIS ============ */
.before-after-pair {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding-bottom: 16px;
}

.before-after-pair:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.before-after-pair-label {
  font-size: 0.8rem;
  color: #8a9e8e;
  margin-bottom: 8px;
  font-style: italic;
}

.before-after-pair-label strong {
  color: #1a3c2f;
}

.before-after-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ba-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a3c2f;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(201, 168, 76, 0.15);
}

.ba-label.antes {
  color: #7a6e5e;
  background: rgba(180, 170, 150, 0.2);
}

.ba-label.depois {
  color: #1a3c2f;
  background: rgba(26, 60, 47, 0.12);
}

.ba-img-wrap {
  aspect-ratio: 4/3;
  background: #e8e0d0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.ba-img-wrap:hover {
  transform: scale(1.02);
}

.ba-img-wrap:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
}

.ba-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ SOBRE – GÉSSICA ============ */
.sobre-photo-wrap {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(201, 168, 76, 0.4);
}

.sobre-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: right top;
  aspect-ratio: 3/4;
}

.sobre-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: #2d4e3e;
  line-height: 1.65;
  margin-bottom: 18px;
}

.sobre-cta-text {
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  color: #1a3c2f;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 10, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1;
  background: #fff;
  color: #1a3c2f;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:focus-visible {
  outline: 3px solid #c9a84c;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ============ RESPONSIVIDADE ADICIONAL ============ */
@media (max-width: 400px) {
  .carousel-arrow--prev {
    left: -2px;
  }

  .carousel-arrow--next {
    right: -2px;
  }

  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .btn-whatsapp {
    padding: 9px 10px;
    font-size: 0.76rem;
    gap: 6px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }
}

/* ============ DESKTOP ============ */
/* O page-wrapper já é centralizado com max-width + margin: auto.
   Exibimos uma sombra discreta apenas no wrapper,
   não em cada seção separada para evitar emendas visíveis. */
@media (min-width: 601px) {
  body {
    background: #c8bdb0;
  }

  .page-wrapper {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.18);
  }
}