/* ============================================================
   style.css — página pública (index.html)
   ------------------------------------------------------------
   Tokens em tokens.css · Reset em base.css · Primitivas em components.css.
   Este arquivo cobre apenas os componentes específicos da home
   pública (hero, seções, depoimentos, footer do site institucional).
   ============================================================ */

.text-center { text-align: center; }

.section-title {
  font-family: var(--ec-serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--ec-ink);
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: var(--ec-sans);
  font-size: 15px;
  color: var(--ec-taupe);
  margin-bottom: 32px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--ec-peach);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.35s ease, letter-spacing 0.35s ease;
  font-family: var(--ec-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 138, 106, 0.28);
  filter: brightness(0.95);
  letter-spacing: 0.14em;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(196, 138, 106, 0.2);
  filter: brightness(0.9);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--ec-peach);
  color: #fff;
  padding: 14px 48px;
  border-radius: 30px;
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.35s ease;
  font-family: var(--ec-sans);
  font-size: 13px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 138, 106, 0.28);
  filter: brightness(0.95);
}
.btn-secondary:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

.link-heart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ec-ink);
  font-weight: 500;
  margin-top: 16px;
  transition: color 0.3s ease;
}
.link-heart:hover {
  color: var(--ec-terracota);
}
.heart-icon {
  color: var(--ec-taupe);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 56px;
  background-color: var(--ec-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--ec-serif);
  font-size: 32px;
  color: var(--ec-ink);
  line-height: 1;
  text-align: center;
}
.logo span {
  display: block;
  font-family: var(--ec-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ec-taupe);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ec-ink);
}
.nav-links a:not(.btn-primary):not(.nav-ig) {
  font-size: 13px;
  line-height: 1;
}
.nav-links a:not(.btn-primary) {
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background-color: var(--ec-terracota);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.btn-primary):hover {
  color: var(--ec-terracota);
}
.nav-links a:not(.btn-primary):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Ícone do Instagram no menu — terracota, sem sublinhado da nav */
.nav-links .nav-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-terracota);
  padding: 4px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.nav-links .nav-ig::after { display: none; }
.nav-links .nav-ig svg { width: 22px; height: 22px; }
.nav-links .nav-ig:hover {
  transform: translateY(-2px);
  color: var(--ec-peach);
}

/* Hero Section (Overlay Layout) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--ec-bg);
}
.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  max-width: 640px;
  padding: 80px 56px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-title {
  font-family: var(--ec-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ec-ink);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 16.5px; /* +10% sobre 15px */
  color: #8C7A6B;
  margin-bottom: 40px;
  max-width: 380px;
}
.hero .btn-primary {
  background-color: #B7A79A;
}
.hero-image {
  position: relative;
  width: 100%;
  z-index: 1;
  line-height: 0; /* Remove espaço extra abaixo da imagem */
}
.hero-image img {
  width: 100%;
  height: auto;  /* A foto determina a própria altura — sem cortes */
  display: block;
  object-fit: contain;
}

/* About Section (50/50 Split) */
.about {
  display: flex;
  background-color: #EDE1DB;
  padding: 80px;
  gap: 64px;
}
.about-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-content p {
  color: #8C7A6B;
  margin-bottom: 16px;
  max-width: 480px;
}

/* Services Section */
.services {
  padding: 80px 56px;
  background-color: var(--ec-bg);
}
.services-header {
  margin-bottom: 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  display: block;
  background-color: var(--ec-bg-soft);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(54, 34, 20, 0.12);
}
.service-card img {
  width: 100%;
  aspect-ratio: 15 / 17; /* 3/4 com altura reduzida em 15% */
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover img {
  transform: scale(1.06);
}
.service-card-body h3 {
  transition: color 0.3s ease;
}
.service-card:hover .service-card-body h3 {
  color: var(--ec-terracota);
}
.service-img-placeholder {
  width: 100%;
  aspect-ratio: 15 / 17; /* 3/4 com altura reduzida em 15% */
  background-color: var(--ec-bg-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-taupe);
  font-family: var(--ec-sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-card-body {
  padding: 24px;
  text-align: center;
}
.service-card-body h3 {
  font-family: var(--ec-serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ec-ink);
  margin-bottom: 8px;
}
.service-card-body p {
  font-size: 13px;
  color: #8C7A6B;
}

/* Testimonials Section (50/50 Split) */
.testimonials {
  display: flex;
  background-color: var(--ec-bg-soft);
}
.testimonials-content {
  flex: 1;
  padding: 80px 56px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.testimonial-text {
  font-family: var(--ec-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ec-ink);
  margin-bottom: 16px;
  max-width: 440px;
}
.testimonial-author {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ec-taupe);
}
.testimonial-desc {
  font-size: 14px;
  color: var(--ec-ink);
  margin-top: 24px;
  margin-bottom: 16px;
  max-width: 400px;
}
.testimonials-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* padding-right 56px alinha com o último card de Portfólio */
  padding: 40px 56px 40px 0;
}
.testimonials-image img {
  max-width: 100%;
  max-height: 540px;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Extra Testimonials */
.extra-testimonials {
  background-color: var(--ec-bg-soft);
  padding: 64px 56px 80px 56px; /* Adicionado padding-top para desgrudar da foto */
  margin-top: -1px; /* elimina linha fina causada por compositing/subpixel entre seções com mesmo bg */
}
.extra-testimonials-container {
  background-color: var(--color-bg); /* off-white quente da marca */
  border-radius: 16px;
  padding: 64px;
  display: flex;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.extra-testimonial-card {
  flex: 1;
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}
.extra-testimonial-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 30px rgba(54, 34, 20, 0.08);
}
.extra-testimonial-card .quote-icon-small {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.extra-testimonial-card:hover .quote-icon-small {
  transform: translateY(-2px);
  color: var(--ec-terracota);
}
.quote-icon-small {
  font-family: var(--ec-serif);
  font-size: 48px;
  color: var(--ec-peach);
  line-height: 0.5;
  margin-bottom: 16px;
}
.extra-testimonial-text {
  font-family: var(--ec-serif);
  font-style: italic;
  font-size: 19px; /* Levemente menor para acomodar melhor a quebra */
  color: var(--ec-ink);
  margin-bottom: 24px;
  line-height: 1.6;
  text-wrap: pretty; /* Ajuda a evitar palavras isoladas na última linha */
}
.extra-testimonial-author {
  font-family: var(--ec-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ec-taupe);
}

/* Experience Section */
.experience {
  background-color: var(--ec-bg); /* Fundo branco off-white para diferenciar dos depoimentos */
  padding: 80px 56px;
}
.experience-header {
  max-width: 800px;
  margin-bottom: 64px;
}
.experience-label {
  font-family: var(--ec-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ec-taupe);
  display: block;
  margin-bottom: 16px;
}
.experience-title {
  font-family: var(--ec-serif);
  font-size: 40px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ec-ink);
}
.highlight-peach {
  color: var(--ec-peach);
}
.experience-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(183, 167, 154, 0.2);
}
.experience-step {
  position: relative;
  padding-top: 48px;
  padding-right: 32px;
  border-left: 1px solid rgba(183, 167, 154, 0.2);
  padding-left: 32px;
}
.experience-step:first-child {
  border-left: none;
  padding-left: 0;
}
.step-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ec-peach);
  background-color: var(--ec-bg-soft);
  position: absolute;
  top: -4px;
  left: -4px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.experience-step.is-active .step-circle {
  background-color: #C48A6A;
  border-color: #C48A6A;
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(196, 138, 106, 0.15);
}
.experience-step .step-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.experience-step.is-active .step-content {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .experience-step .step-content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.experience-step:first-child .step-circle {
  left: 0;
}
.step-number {
  font-family: var(--ec-sans);
  font-size: 48px;
  font-weight: 300;
  color: var(--ec-peach);
  line-height: 1;
  margin-bottom: 24px;
}
.step-title {
  font-family: var(--ec-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--ec-ink);
  margin-bottom: 16px;
}
.step-desc {
  font-family: var(--ec-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ec-taupe);
}

/* Bottom CTA */
.bottom-cta {
  padding: 80px 56px;
  background-color: var(--ec-bg);
}
.divider {
  width: 120px;
  height: 1px;
  background-color: rgba(183, 167, 154, 0.3);
  margin: 0 auto 40px;
}
.bottom-cta .btn-primary {
  background-color: #B7A79A; /* Cor específica solicitada */
}

/* Footer */
.footer {
  padding: 0 56px 80px 56px;
  background-color: var(--ec-bg);
}
.footer-container {
  background-color: #B7A79A;
  border-radius: 16px;
  padding: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 32px;
  margin-bottom: 64px;
}
.footer-brand .logo {
  display: inline-block;
  text-align: center;
  margin-bottom: 24px;
  color: var(--ec-bg);
}
.footer-brand .logo span {
  color: rgba(246, 241, 235, 0.7);
  display: block;
  text-align: center;
}
.footer-tagline {
  font-family: var(--ec-sans);
  font-size: 13px;
  color: var(--ec-bg);
}
.footer-title {
  font-family: var(--ec-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--ec-bg);
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-family: var(--ec-sans);
  font-size: 13px;
  color: var(--ec-bg);
  transition: opacity 0.3s ease;
}
.footer-links a {
  position: relative;
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
  opacity: 1;
  padding-left: 10px;
}
.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background-color: var(--ec-bg);
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-links a:hover::before {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}
.footer-contact p, .footer-social p {
  font-family: var(--ec-sans);
  font-size: 13px;
  color: var(--ec-bg);
  margin-bottom: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(246, 241, 235, 0.3);
  padding-top: 24px;
}
.footer-bottom p {
  font-family: var(--ec-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ec-bg);
}
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ec-sans);
  font-size: 13px;
  color: var(--ec-bg);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-ig:hover {
  opacity: 0.7;
}
.footer-ig svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  color: #C48A6A;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.whatsapp-float svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



/* ============================================================
   Página Galeria (galeria.html)
   ============================================================ */

/* Hero */
.portfolio-hero {
  text-align: center;
  padding: 96px 56px 56px;
  max-width: 1100px;
  margin: 0 auto;
}
.portfolio-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.portfolio-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.1;
  color: var(--color-text-strong);
  margin-bottom: 18px;
  white-space: nowrap;
}
.portfolio-hero-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: #8C7A6B;
  max-width: 540px;
  margin: 0 auto;
}

/* Categorias */
.portfolio-category {
  padding: 64px 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.portfolio-category-head {
  text-align: center;
  margin-bottom: 40px;
}
.portfolio-category-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  color: var(--color-text-strong);
  margin-bottom: 8px;
}
.portfolio-category-head p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #8C7A6B;
  max-width: 540px;
  margin: 0 auto;
}

/* Grid de fotos */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}
.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(54, 34, 20, 0.10);
}
.portfolio-photo:hover img {
  transform: scale(1.05);
}
.portfolio-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(140, 122, 107, 0.45);
}

/* ============================================================
   Galeria de eventos do Portfólio — cards individuais por festa
   ============================================================ */
.event-gallery {
  padding: 0 56px 96px;
  max-width: 1280px;
  margin: 0 auto;
}
.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.event-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(140, 122, 107, 0.16);
  border-color: rgba(196, 138, 106, 0.28);
}
.event-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-card:hover .event-card-cover img {
  transform: scale(1.05);
}
.event-card-body {
  padding: 28px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.event-card-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--color-text-strong);
  line-height: 1.2;
}
.event-card-tag,
.event-card-location {
  position: relative;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 10px;
  width: 100%;
  max-width: 220px;
}
/* Linha decorativa fininha em terracota abaixo de cada label */
.event-card-tag::after,
.event-card-location::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 1px;
  background-color: var(--color-accent);
  transform: translateX(-50%);
  opacity: 0.5;
}
.event-card-location { padding-bottom: 0; }
.event-card-location::after { display: none; }

@media (max-width: 1000px) {
  .event-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .event-gallery { padding: 0 24px 64px; }
  .event-gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .event-card-title { font-size: 22px; }
}

/* ============================================================
   Modal de galeria por evento — abre ao clicar em um event-card
   com data-gallery
   ============================================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.gallery-modal[hidden] { display: none !important; }
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(44, 36, 28, 0.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.gallery-modal-content {
  position: relative;
  background-color: var(--color-bg);
  border-radius: 20px;
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(44, 36, 28, 0.35);
  animation: galleryFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--color-border);
}
.gallery-modal-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--color-text-strong);
  line-height: 1.2;
}
.gallery-modal-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 8px;
}
.gallery-modal-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.gallery-modal-close:hover {
  background-color: var(--color-action);
  color: var(--color-text-inverse);
  border-color: var(--color-action);
}
/* Mosaico justificado — cada linha preenche 100% da largura,
   com fotos em alturas variadas mas mantendo proporção real
   (sem corte). Larguras e alturas são calculadas via JS na
   abertura do modal e em cada resize. */
.gallery-modal-grid {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.gallery-modal-grid img {
  /* Fallback antes do JS rodar: altura uniforme, largura proporcional */
  height: 260px;
  width: auto;
  display: block;
  border-radius: 8px;
  flex: 0 0 auto;
  cursor: zoom-in;
}

@media (max-width: 900px) {
  .gallery-modal { padding: 16px; }
  .gallery-modal-head { padding: 20px 22px 16px; }
  .gallery-modal-title { font-size: 22px; }
  .gallery-modal-grid { padding: 18px 22px 22px; gap: 8px; }
  .gallery-modal-grid img { height: 220px; }
}
@media (max-width: 540px) {
  .gallery-modal-grid img { height: 180px; }
}

/* ============================================================
   Lightbox — visualização ampliada de uma foto da galeria.
   Stack: gallery-modal (z 200) → lightbox (z 300).
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 14, 8, 0.92);
  animation: lbFadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox[hidden] { display: none !important; }
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 80px;
  cursor: zoom-out;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 235, 0.35);
  background-color: rgba(20, 14, 8, 0.4);
  color: #F6F1EB;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  line-height: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 28px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover,
.lightbox-nav:hover {
  background-color: rgba(246, 241, 235, 0.95);
  color: #2A1F14;
  border-color: rgba(246, 241, 235, 0.95);
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.04); }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 235, 0.7);
  background-color: rgba(20, 14, 8, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 235, 0.18);
}

@media (max-width: 700px) {
  .lightbox-stage { padding: 56px 16px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 20px; }
}

/* Indicador de página atual no menu (Portfólio) */
.nav-links a.is-active-page {
  color: var(--ec-terracota);
}
.nav-links a.is-active-page::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Responsivo Portfólio */
@media (max-width: 1000px) {
  .portfolio-hero-title { font-size: 44px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .portfolio-hero { padding: 72px 24px 40px; }
  .portfolio-hero-title { font-size: 36px; white-space: normal; }
  .portfolio-category { padding: 48px 24px; }
  .portfolio-category-head h2 { font-size: 28px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Mobile responsivo geral — index.html
   ≤900px  → tablet / mobile grande
   ≤600px  → mobile
   ============================================================ */

/* Hambúrguer (esconde no desktop, aparece em mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background-color: var(--ec-ink);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease,
              top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-toggle span {
  top: 50%;
  left: 50%;
  margin-left: -12px;
  margin-top: -1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  left: 0;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.nav-toggle.is-open span                { background-color: transparent; }
.nav-toggle.is-open span::before        { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after         { top: 0; transform: rotate(-45deg); }


@media (max-width: 900px) {
  /* ---------- Header ---------- */
  .header {
    padding: 16px 24px;
  }
  .logo {
    font-size: 22px;
  }
  .logo span {
    font-size: 8px;
    margin-top: 3px;
  }

  /* Mostra o hambúrguer */
  .nav-toggle { display: block; }

  /* Menu vira overlay full-screen quando aberto */
  .nav-links {
    position: fixed;
    inset: 0;
    background-color: var(--ec-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 16px;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 105;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-links a:not(.btn-primary):not(.nav-ig) {
    font-size: 16px;
    letter-spacing: 0.18em;
  }
  .nav-links .nav-ig svg { width: 26px; height: 26px; }
  .nav-links .btn-primary {
    margin-top: 12px;
    padding: 16px 40px;
  }

  /* Trava scroll do body quando menu aberto */
  body.nav-open { overflow: hidden; }

  /* ---------- Hero ---------- */
  /* column-reverse: foto aparece primeiro, título/subtítulo/botão abaixo */
  .hero {
    flex-direction: column-reverse;
  }
  .hero-content {
    position: relative;
    transform: none;
    top: 0;
    max-width: 100%;
    padding: 48px 28px 56px;
    align-items: center;       /* centraliza horizontalmente */
    text-align: center;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-desc {
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 100%;
  }
  /* Foto quadrada, centralizada, com crop no centro */
  .hero-image {
    width: 100%;
  }
  .hero-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  /* ---------- About ---------- */
  .about {
    flex-direction: column;
    padding: 56px 28px;
    gap: 32px;
  }
  .about-image {
    justify-content: center;
  }
  .about-image img {
    max-width: 320px;
  }
  .about-content p { max-width: 100%; }

  /* ---------- Services ---------- */
  .services {
    padding: 56px 28px;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .services-header { margin-bottom: 36px; }

  /* ---------- Testimonials — ordem mobile: título · texto · autor · foto · frase · botão ----------
     Trick: display:contents no wrapper .testimonials-content faz seus filhos
     virarem flex-items diretos de .testimonials, permitindo reordenar com `order`. */
  .testimonials {
    flex-direction: column;
    padding: 0 28px 56px;
  }
  .testimonials .testimonials-content {
    display: contents;
  }
  .testimonials .testimonials-content br { display: none; }

  .testimonials .section-title       { order: 1; padding-top: 56px; }
  .testimonials .section-subtitle    { order: 2; }
  .testimonials .testimonial-text    { order: 3; font-size: 20px; max-width: 100%; }
  .testimonials .testimonial-author  { order: 4; }
  .testimonials .testimonials-image  { order: 5; padding: 0; margin: 24px 0; justify-content: center; }
  .testimonials .testimonial-desc    { order: 6; max-width: 100%; text-align: center; margin: 8px auto 20px; }
  .testimonials .btn-primary         { order: 7; align-self: center; }

  .testimonials-image img { max-height: 420px; }

  /* ---------- Extra Testimonials ---------- */
  .extra-testimonials {
    padding: 40px 24px 56px;
  }
  .extra-testimonials-container {
    flex-direction: column;
    padding: 32px 24px;
    gap: 16px;
  }
  .extra-testimonial-text {
    font-size: 16px;
  }

  /* ---------- Experience (timeline vira vertical) ---------- */
  .experience {
    padding: 56px 28px;
  }
  .experience-title { font-size: 28px; }
  .experience-header { margin-bottom: 40px; }
  .experience-timeline {
    grid-template-columns: 1fr;
    border-top: none;
    border-left: 1px solid rgba(183, 167, 154, 0.25);
    padding-left: 24px;
    margin-left: 4px;
  }
  .experience-step {
    border-left: none;
    padding: 0 0 32px 0;
  }
  .experience-step:last-child { padding-bottom: 0; }
  .experience-step:first-child { padding-top: 0; }
  .step-circle,
  .experience-step:first-child .step-circle {
    top: 6px;
    left: -28px;
  }
  .step-number { font-size: 36px; margin-bottom: 12px; }
  .step-title { font-size: 20px; }

  /* ---------- Bottom CTA ---------- */
  .bottom-cta {
    padding: 56px 28px;
  }

  /* ---------- Section titles ---------- */
  .section-title { font-size: 32px; }

  /* ---------- Footer ---------- */
  .footer {
    padding: 48px 28px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}


@media (max-width: 600px) {
  /* Hero */
  .hero-title { font-size: 34px; line-height: 1.15; }
  .hero-desc  { font-size: 14px; }

  /* About */
  .about { padding: 48px 20px; gap: 24px; }
  .about-image img { max-width: 260px; border-radius: 14px; }

  /* Services — 1 coluna em telas muito pequenas */
  .services { padding: 48px 20px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 13px; }

  /* Testimonials */
  .testimonials { padding: 0 20px 48px; }
  .testimonials .section-title { padding-top: 48px; }
  .testimonials .testimonials-image { margin: 20px 0; }
  .testimonial-text { font-size: 18px; line-height: 1.5; }
  .testimonial-desc { font-size: 13px; }

  /* Extra testimonials */
  .extra-testimonials { padding: 32px 16px 48px; }
  .extra-testimonials-container { padding: 24px 18px; }
  .extra-testimonial-text { font-size: 15px; }

  /* Experience */
  .experience { padding: 48px 20px; }
  .experience-title { font-size: 22px; }
  .step-number { font-size: 32px; }
  .step-title { font-size: 18px; }

  /* Bottom CTA */
  .bottom-cta { padding: 48px 20px; }

  /* Footer 1 coluna */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 40px 20px 20px; }

  /* Header logo menor ainda */
  .header { padding: 14px 20px; }
  .logo { font-size: 20px; }
}
